I've created two grep queries that I use to tag the italics of placed text. Then I manually apply the Basic Paragraph clear overides style. Then I run another Grep querry that takes the words and sentences that have the tags and applies an italic style that I created in the Character style pallet. Here is my Grep Querry for find and Tag italics.
Find What:
(.+)
Change to:
[i]$1[/i]
Find Format:
+Italic
Here is My Querry for appling italic character style to tagged text.
Find What:
(\[\i\])(.+?)(\[/\i\])
Change to:
$2
What I'm wondering is if this all could be run from a javascript including applying the Basic Paragraph clear overrides part. I'm not sure where to even begin as I'm new to scripting. Any help would be very appriciated. Thanks.