5 Replies Latest reply on Oct 23, 2014 12:24 PM by TᴀW

    Script to Convert Attributes to Character Styles

    RickGroff Level 1

      I'm trying to expand on Peter Kahrel's PerfectPrepText.jsx (which uses Jongware's preptext.jsx) to convert italic, bold, bold italic, superscript, subscript, and underscore to character styles prior to exporting files for EPub. It works perfectly with fonts whose variations actually ARE "italic", "bold", and "bold italic", but I can't figure out what to insert to have it also recognize fonts that use "oblique" instead of "italic" as well as fonts that have numbered variations (55 Roman, 56 Italic, etc.).

       

      Any ideas?