Have an account? Sign in
"*" indicates required fields
You agree that CreativePro Network may send you emails, including the newsletter selections above. You can unsubscribe at any time.
By signing in, you agree to our Terms of Use and acknowledge our Privacy Notice.
New user? Create an account
By signing in, you agree to our Terms of Use and acknowledge our Privacy Notice.
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.
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.
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.
@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.
This site uses cookies, but not the kind you eat. We use cookies to remember log in details, provide secure log in, improve site functionality, and deliver personalized content. By continuing to browse the site, you accept cookies.