XML technologies / ePUB / Open Publication Format / The Manifest element / CSS in the manifest
(Excerpt from “E-Books mit ePUB ─ Von Word zum E-Book mit XML” by Dr. Victor Wang)
As mentioned, a CSS stylesheet providing suitable display of OPS content must also be listed in the manifest. Two special cases concerning CSS inclusion deserve attention here.
Using multiple stylesheets
Every stylesheet used must be declared in the manifest, including imported ones. For example, if the general stylesheet allgemein.css uses @import "speziell.css"; to address the special stylesheet speziell.css, both must be included in the manifest as an Item.
Embedded fonts
Fonts used through the CSS property @font-face, for example @font-face {font-family: "Helvetica"; src:url(fonts/helvetica.otf);}, should also appear in the manifest. Unfortunately, the OPF specification does not yet define a media type for this. Depending on the font format, these media types may be suitable:
OpenType font
(*.opt):
media-type="application/x-font-opentype"or
media-type="application/vnd.ms-opentype"TrueType font
(*.ttf):
media-type="application/x-font-truetype"or
media-type="application/x-font-ttf"
At present, use custom fonts cautiously: only a few readers, including Adobe Digital Editions and Sony Reader, support them. Apple iBooks ignores font-embedding specifications, leaving the choice to the user. The media type can therefore currently be considered a matter of style.
Copyright © mitp 2011
You may print the online version for your private use.
Otherwise, this chapter from “E-Books mit ePUB” 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.
Verlagsgruppe Hüthig Jehle Rehm GmbH, Im Weiher 10, 69121 Heidelberg, kundenbetreuung(at)hjr-verlag.de