K***@adobeforums.com
2007-06-22 04:09:37 UTC
I'm just beginning to figure out GREP.
Is it possible to find the words on both sides of a hard hyphen and
apply a character style to each word but not to the hyphen? For example,
for the compound word "African-American", I want to find "African" and
"American" and apply a No break character style to each so that the
compound word is allowed to break only on the hyphen.
I know how to do this in NoteTab using regex on a tagged text file, but
I don't see a way to do it within ID.
Is it possible to find the words on both sides of a hard hyphen and
apply a character style to each word but not to the hyphen? For example,
for the compound word "African-American", I want to find "African" and
"American" and apply a No break character style to each so that the
compound word is allowed to break only on the hyphen.
I know how to do this in NoteTab using regex on a tagged text file, but
I don't see a way to do it within ID.
--
Kenneth Benson
Pegasus Type, Inc.
www.pegtype.com
Kenneth Benson
Pegasus Type, Inc.
www.pegtype.com