I have an InDesign document with text styled as one of the following custom character styles throughout the document:
I am trying to write a script to scan the entire document and wrap each text of a particular character style with the appropriate HTML tag, except of course the text without any assigned character style. Thus, the following text:
The quick brown fox jumps right over the lazy dog.
...should look like:
The quick <b>brown</b> fox <b>jumps ri</b>ght <i>ov</i>er <b><i>the</i></b> lazy dog.
Is this doable? I am sure it is. I don't mind using some kind of GREP/Find-Change method if possible. I don't want to use "Export to HTML" because there are some custom tags that won't show that way.