![]() ![]() This file has a root element package and four child elements: metadata, manifest, spine, and guide. The OPF file, traditionally named content.opf, houses the EPUB book's metadata, file manifest, and linear reading order. This is accomplished by two XML files with the extensions. The OPF specification's purpose is to " the mechanism by which the various components of an OPS publication are tied together and provides additional structure and semantics to the electronic publication". ![]() Īn example skeleton of an XHTML file for EPUB looks like this: However, reading systems are not required to provide the fonts necessary to display every Unicode character, though they are required to display at least a placeholder for characters that cannot be displayed fully. This is to support international and multilingual books. Unicode is required, and content producers must use either UTF-8 or UTF-16 encoding. For a table of all required mimetypes, see Section 1.3.7 of the specification. Other media types are allowed, but creators must include alternative renditions using supported types. ĮPUB also requires that PNG, JPEG, GIF, and SVG images be supported using the mimetypes image/png, image/jpeg, image/gif, image/svg+xml. The mimetype for CSS documents in EPUB is text/css. Font-embedding can be accomplished using the property, as well as including the font file in the OPF's manifest (see below). Custom properties include oeb-page-head, oeb-page-foot, and oeb-column-number. This specialized syntax requires that reading systems support only a portion of CSS properties and adds a few custom properties. Styling and layout are performed using a subset of CSS 2.0, referred to as OPS Style Sheets. The mimetype for XHTML documents in EPUB is application/xhtml+xml. There are, however, a few restrictions on certain elements. This is different from previous versions (OEBPS 1.2 and earlier), which used a subset of XHTML. Open Publication Structure 2.0.1 Īn EPUB file uses XHTML 1.1 (or DTBook) to construct the content of a book as of version 2.0.1. Finally, the files are bundled in a zip file as a packaging format. XML is used to create the document manifest, table of contents, and EPUB metadata. ĮPUB internally uses XHTML or DTBook (an XML standard provided by the DAISY Consortium) to represent the text and structure of the content document, and a subset of CSS to provide layout and formatting.
0 Comments
Leave a Reply. |