XML technologies / ePUB / ePub für (In)Designer / Text / Cleaning text / Double spaces

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

Double spaces are already unacceptable in print, but before ePub export, check the document again with Find/Change (Ctrl + F). They look particularly bad on small screens such as the iPhone.

Replacing double spaces

Figure: Replacing double spaces.

As in print, do not indent ePub text with spaces. Enter an indent value in the upper toolbar or Paragraph panel. For a one-em indent, enter the font size: 10 pt for 10-point text, which InDesign converts to millimeters.

If the indent should grow when readers enlarge text on their e-reader, define it in ePub with em, the typographic em square. InDesign cannot preset this: it exports only a fixed pixel value. Manually change it in the CSS file. We start editing HTML and CSS later under The ePub structure, but here is the line to find for changing the indent: text-indent: 10px;. Change it to text-indent: 1em; for a one-em indent. Larger and intermediate values such as 1.2 em are possible too.

Setting indents in InDesign

Figure: Use First Line Left Indent instead of spaces.

  

 

 

 

back to top