I'm trying to convert a theater script to EPUB. The original file I received was a pdf. I already placed all the text in my InDesign document, but among all the text, there are some phrases between parenthesis that need to be in italics.
Is there a way that I could instruct InDesign to change all characters between parenthesis to italics? Or will I need to manually identify and change them?
Thanks for you help!
http://indesignsecrets.com/findbetween-a-useful-grep-string.php
This article describes a GREP search string, but you can also use it in a GREP style.
You want to use a GREP Style. First create a Character Style that only specifies Italic as the font style, nothing else. Then use the following for your GREP Style either in the GREP Styles dialogue avaiable from the Paragraph panel or as part of a Paragraph Style…
The cryptic expression is (?<=\().*?(?=\))
You can copy and paste that.
Result…
Wow, never heard about this. Thank you so much.
I'll try it when I get back home from work and post back with results.
Now for instance, say I would like to select something between other symbols beside parenthesis, which characters should I change in the string? Tho ones in the outside or the inside? For example, if I want to select something between quotes, would the string be "?<=\().*?(?=\)" or (?<=\().*?"?=\")?
Or am I just making stuff up and it not possible?
Again, thanks for all the help.
North America
Europe, Middle East and Africa
Asia Pacific