XML technologies / ePUB / ePub für (In)Designer / Text / Paragraph and character styles / CS5.5: Mapping tags to styles

(Excerpt from “ePub für (In)Designer — Mit InDesign Schritt für Schritt zum E-Book” by Sascha Heck & Yves Apel)

With InDesign CS5.5 comes an exciting feature. Paragraph Style Options has Export Tagging in the left column. Export Details previews how InDesign converts styles into CSS.

Paragraph options: tag and class names

Figure: Assign a tag and your own class name.

Automatic lets InDesign name the class

Figure: Automatic lets InDesign name the class.

Character options: tag and class names

Figure: Character styles also have Export Tagging,
where you define the class for span.

If paragraph or character style tagging under Export Tagging is set to [Automatic], the preview shows the automatic tag and CSS class. Choose whether to keep the name generated from the style or supply another. Class properties stay the same, but clear naming helps later HTML/CSS editing.

Assign classes to tags unless you want e-readers to choose their appearance using default tag rendering; see also Brief introduction to HTML and CSS.

Editing all export tags

CS5.5 also edits all tags together. From the Paragraph Styles panel menu choose Edit All Export Tags.

Paragraph styles: Edit All Export Tags

Figure: Paragraph styles—Edit All Export Tags.

Edit All Export Tags

Figure: Edit All Export Tags.

This feature conveniently predetermines export tags. It also adapts styles to an existing CSS file you want to link to ePub.

There are drawbacks: object, table and cell styles cannot be edited or previewed as CSS here. We will still get as much as possible from ePub, starting under The ePub structure.

  

 

 

 

back to top