I am designing a book to teach English speakers Hebrew.
The back has a dictionary of all the words in the book. The style of the dictionary right now is
English Word \ Transliterated Hebrew Word \ Hebrew Word and then the opposite in the next section:
Hebrew Word \ Transliterated Word \ English Word
Some of the “words” are actually phrases. Right now, the punctuation is coming out on the wrong side.
Ex: Be quiet! \ Sheket! \ ??????!
Instead of: Be quiet! \ Sheket! \ !??????
I have InTool’s World Ready plugin.
So I made a character style to apply to the Hebrew with the correct text direction and then I tried a GREP find and replace with the following code:
[^.,;:?!\d a-z|A-Z]+
which is supposed to find all non-English characters. It gets all dashes too, but that’s not a problem.
When I select an entire phrase with punctuation and apply my character style, it works perfectly. But the GREP is finding each individual word and not changing the punctuation placing.
What am I doing wrong? How can I get it to select all non-English characters until it sees an English character (and thereby get the whole phrase) as opposed to taking each one individually and thereby accomplishing nothing?
Thanks!