ePub 3

From MobileRead
Jump to: navigation, search

ePub version 3 is the newest version of the standard and has now been recommended by the idpf standards committee. This page will describe some of the features as related to the existing ePub 2.01 version.

Contents

[edit] Document Organization

In version 2.01 there were three defining documents, the OPF (Open Packaging Format), the OCF (Open Container Format), and the OPS (Open Publications Structure). The OPS referenced a DAISY standard for the NCX file. The new 3.0 standard has 4 defining documents with new names. The OPF becomes the ePub Publications standard. The OCF remains the same and the OPS received the most changes to become the ePub Content Documents. This now includes the old NCX specifications which are no longer used. A fourth document is concerned with Media Overlays and is a new feature of ePub version 3.

The OPF file should contain:

<package xmlns="http://www.idpf.org/2007/opf" version="3.0" xml:lang="en">

[edit] Open Container Format

An ePub file continues to be a self contained document with everything contained in one zip file. In 2.0 the access outside with links was not defined but this omission has been addressed in 3.0 to limit the access to specific cases outside the zip file. The following items are specified in the OCF.

[edit] Publications standard

The version 2.01 standard remains basically in tact with a few additions. The dcterms:modified has been added to provide a solution for consistent publication identifiers. The metadata elements have been expanded to permit descriptions to be targeted at specific portions of a document as well as the whole document. There is a new link entry that can be used to reference external meta data sources. A new properties entry allows defining publication resources.

[edit] The Content Documents

This is the biggest area of change.

[edit] Navigation

An internal navigation syntax is defined for ePub 3. It has a human- and machine-readable grammar for publication-wide navigation information and is based on the HTML5 nav element. In this way it is more like an inline TOC in a book since it is an XHTML document. An example follows for a top level "toc":

<nav epub:type="toc" id="toc">
  <h1>Table of contents</h1>
  <ol>
    <li>
      <a href="chap1.xhtml">Chapter 1</a>
      <ol>
        <li>
          <a href="chap1.xhtml#sec-1.1">Chapter 1.1</a>
          <ol hidden="">
            <li>
              <a href="chap1.xhtml#sec-1.1.1">Section 1.1.1</a>
            </li>
            <li>
              <a href="chap1.xhtml#sec-1.1.2">Section 1.1.2</a>
            </li>
          </ol>
         </li>
         <li>
           <a href="chap1.xhtml#sec-1.2">Chapter 1.2</a>
         </li>
       </ol>
     </li>
    <li>
      <a href="chap2.xhtml">Chapter 2</a>
    </li>
  </ol>
 </nav>

The top level is indicated by a type of "toc". There can only be one instance in a document. The items are in ordered lists showing the flow of the document. All sections are expected to be present although some can be suppressed from the visual display by using the "hidden" tag as show for the 3rd level. Nav elements can reference other nav elements in secondary lists such as the 'lot' list of tables or 'loi' list of illustrations.

Note that an toc.ncx file, NCX, will be permitted in a document to provide backward compatibility for existing readers.

There is also a navigation item that will provide page numbers mapping to a hardcopy book. The page-list nav element is a container for pagination information. It provides navigation to positions in the Publication content that correspond to the locations of page boundaries present in a print source being represented by this ePub Publication. Its form looks just like the TOC form shown above except:

The page-list nav element corresponds to the pageList element in the superseded NCX. [OPF2]

Note: The dc:source [Publications30] element provides a means of identifying the source publication to which the given pagination information applies.

[edit] Linking

There are planned to be several methods of linking.

<link rel="stylesheet" href="horizontal.css" class="horizontal"/>

[edit] Scripting

Scripting is now supported with specific limitations to make it robust even if the reading application doesn't support it.

[edit] CSS

EPUB 3 defines a profile of CSS based on CSS 2.1 with added modules from CSS3. All of CSS 2.1 are applicable except:

CSS3 specific items include:

[edit] Embedded Fonts

With and without Obfuscation. Support for OpenType and WOFF type fonts are required.

[edit] Media Overlays

HTML5 adds video and audio elements directly but there is additional support in ePub 3 with a defined format and processing model for publication-wide synchronization of text and audio. Multiple features to assist Text-to-Speech (TTS) engines have been added.

Systems that support audio playback must support MP3 audio and should support MP4 AAC LC audio. SMIL is required to control the audio insertion and synchronize the data. See SMIL for more details.

Any ePub Content Document associated with a Media Overlay may contain embedded media such as video, audio, and images. The Media Overlay text element may be used in such instances to reference the embedded media by its ID.

To make the Media overlay work the file pointers must be in the manifest. The reading system must show the appropriate page on the screen while the audio is playing. The user can navigate the document normally and the appropriate media will automatically keep pace. There could also be audio or video elements in the ePub file that are not contained within the media overlay. They are not synchronized. The user interface should provide media controls for these items.

[edit] Available Readers

[edit] For more information

Personal tools
Namespaces
Variants
Actions
Navigation
MobileRead Networks
Toolbox
Advertisement