I’ve been head deep into EPUB… and wanted to share another finding with InDesign CS5.5. A short post only, because I’m in the middle of work 🙂
InDesign CS5.5 now recognises character styles that are applied through nested styles and GREP styles during EPUB export. That’s very cool! It adds a span tag with class references to the style names by default, when leaving the Export Tagging, Tag setting set to [automatic] and Class field left empty.
FWIW I’m not promoting using the [automatic] setting with class field left empty as a ‘best practice’… 🙂
There is however one exception: Drop Caps. When using a drop cap that’s formatted through the Drop Caps and Nested Style feature, no <span> tag is added to the resulting html inside the EPUB. The Drop Cap is basically totally ignored…
So I applied the Drop Cap character style over the top of the already formatted Drop Cap, and left the Tag set to [automatic], but added a Class name “dropcap”
After Exporting the EPUB and taking a look at the HTML that was generated I saw this:
Hmmm…. so I removed the Drop Cap reference within the Paragraph Style…
And exported the same document again, leaving the character style applied to the initial cap and with Export Tagging defined as before and ended up with the same result as earlier. As a last step, I forced the Tag option to span and exported once more…
Same result once again.
Wanted to share this finding. It’s not a major issue, as the matching style declaration is also added to the template.css, but it just makes a bit harder to develop a reusable template.css file for publications, when this char-style-override occurs. (Note, that I had the Include Style Overrides option in EPUB Export dialog deselected during all of this).