XML technologies / ePUB / ePub für (In)Designer / Finishing tasks / Creating guide sections
(Excerpt from “ePub für (In)Designer — Mit InDesign Schritt für Schritt zum E-Book” by Sascha Heck & Yves Apel)
InDesign produces valid ePubs conforming to IDPF standards. Apple and Amazon, however, impose additional rules on ePub and Mobipocket files published in their stores. At least Apple and Amazon require an additional guide section in the e-book’s content.opf file. Add it manually: InDesign does not output this information.
A normal content.opf file has three definitions, metadata, manifest and spine. The guide section must be added as a fourth definition. What does it do?
Like the other two definitions, guide references the e-book’s main parts: cover, title page, contents, and so on.
Beyond ordinary navigation, iBook Store and Kindle Store need extra references to reach different chapters. Guide references cannot be arbitrary; follow the IDPF list at Open Packaging Format (OPF) 2.0.1 v1.0.1: Guide.
Kindle needs only the
tocreference, whereas Apple iBook Store should receive as many applicable references as possible.
To insert the guide section:
Open content.opf in an editor.
Between
</spine>and</package>insert the following code lines, each representing a reference (type="Referenz").title="..."supplies a description.href="Dateiname.html"links to the relevant HTML file.
<guide>
<reference type="cover" title="Deckelseite" href="Dateiname.html"/>
<!-- Jeder »type« darf nur einmal benutzt werden. -->
<reference type="toc" title="Inhaltsverzeichnis" href="Dateiname.html"/>
<reference type="text" title="Erstes Kapitel" href="Dateiname.html"/>
<!-- »type="text"« definiert das erste Kapitel. -->
</guide>
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