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?

To insert the guide section:

  1. Open content.opf in an editor.

  2. 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>

  

 

 

 

back to top