XML technologies / ePUB / ePub für (In)Designer / Text / Typography for e-books / Text alignment
(Excerpt from “ePub für (In)Designer — Mit InDesign Schritt für Schritt zum E-Book” by Sascha Heck & Yves Apel)
Novels commonly use justified body text. In ePub, however, most e-readers currently lack hyphenation. CSS offers no hyphenation control. JavaScript libraries and the new CSS3 property text-justify can handle hyphenation, but are still immature. There is no real control over where or how words break. E-books adapt to display width, like browser lines when a window narrows. Breaks also change when readers enlarge text, a standard feature and a strong argument for e-books. ePub can use soft hyphens to suggest breaks, called discretionary hyphens in InDesign. This may help very long words, but reader full-text search may mishandle them and not all readers display them. Until a good standardized hyphenation solution exists, we recommend left-aligned e-books.
Figure: Without hyphenation, justified ePub text has ugly gaps.
Prefer left alignment.
Copyright © dpunkt.verlag GmbH 2012
You may print the online version for your private use.
Otherwise, this chapter from “ePub für (In)Designer” is subject to the same terms as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Wieblinger Weg 17, 69123 Heidelberg, fon 06221-14830, fax 06221-148399, hallo(at)dpunkt.de
back to top