Hi there, and I hope our wonderful IDS member Jongware sees this and is not on vacation or anything…
Jongware, I use your preptext.jsx script quite a bit in my EPUB workflow but it's not working right in CS5.5.
The problem is that it creates and applies character styles to text that is already styled properly because of the paragraph style definition. For example, if my Headline para style is Bold Helvetica, running preptext will create a Bold character style and apply it to all the text in the headline. I'm pretty sure it used to *ignore* that, and only act on locally overridden text.
For an EPUB workflow, this makes using the script unworkable because of the horrendousness :D of the tags ID applies to these double-hit paragraphs; you get both the <p> class assigned to the whole thing and also a <span> char class applied:
<p class=”Heading2″><span class=”Bold—Scaps”>Preface</span></p>
Interestingly, it is smart enough to ignore nested styles; as far as I can tell, but it double-hits GREP styles too. If I added a GREP style to automatically make the word “Roman” appear in bold italic (and named my character style roman-ital), the script creates and applies a Bold-Italic character style to it. When you export to EPUB, the text with the double-hit has both span tags applied:
past, to its <span class=”Bold-Italic roman-ital”>Roman</span> foundations and
I show people how to use your preptext.jsx script in all my Lynda.com videos on ID>EPUB, and :: sigh :: didn't notice how it messed up 5.5 files, I guess. So it's unusable for this purpose.
:: whine whine::: can you fix it? Even if it would require people to pay for the script, it'd be worth it, let me tell you.
AM