Back

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

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: GREP to find proper name BUT exclude a titles #34325
    Clair Koroma
    Participant

    Ah Justin, I did not see your expression. I will add it to my GREP library for reference in my future quests for formatting dominance over my long-doc layouts. Thanks for sharing.

    in reply to: GREP to find proper name BUT exclude a titles #34322
    Clair Koroma
    Participant

    Thanks Justin:)
    I initially tried the “no break” option but the problem was that it applied it to the entire name so that John Smith always had to exist on the same line, John and Smith could not span two lines. With the “no language” style, John and Smith can exist on different lines but neither John nor Smith will hyphenate across lines.

    in reply to: GREP to find proper name BUT exclude a titles #34320
    Clair Koroma
    Participant

    Alas, I think I figured it out. I nested the GREP in a paragraph style and applied a “no language” character style to the string. So far the tests work, the first and last name can break lines, that is rest on separate lines BUT neither the first nor last name will hyphenate and rest on separate lines.

    in reply to: GREP to find proper name BUT exclude a titles #34318
    Clair Koroma
    Participant

    @Justin, the names are in a paragraph, no commas or delineators, randomly throughout the text.

    @Jongware, THANK YOU, this formula works:-) There a quite a few titles for which I have to look BUT not so many that I cannot include them in the look ahead. Makes my life much easier.

    Now, let’s say I wanted to incorporate this grep into a paragraph style where we find the proper names and whenever, those names are found, neither the first or last name should be hyphenated in the event of a line break, thoughts? If I assign a no break to the entirety of the expression it appears to try to keep the entire name together at all times and the hyphenation feature nested in paragraph styles.

Viewing 4 posts - 1 through 4 (of 4 total)