Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Use GREP to avoid breaking hyphenated compounds #62147
    BradWalrod
    Participant

    Here are the two GREP styles (applying a “nobreak” character style to both) that I've been using for text paragraphs for a while:

    [lu]+(?=[—–-])

    (?<=[-–—])[lu]+

    (That's a hyphen, en dash, and em dash that it's looking for. I like how you've added the apostrophe, but I wouldn't have gussed that ID would hyphenate before or after one.)

    I suppose that instead of your [w|’] and my [-–—], we could consider [S], which would catch anything that's not a space.

    Brad

Viewing 1 post (of 1 total)