The OPF package

Wrapper around the package. The details of the various entries are in the EPUB 3 Specification.

The module relies on the xmlbuilder2 package, which generates an XML file out of a set of JS objects. See the documentation of that library for the details; the short overview is:

  • JSON names starting with "@"" represent an attribute.
  • JSON name "#"" represent textual content of the element.
  • Otherwise a JSON name refers to an embedded dictionary representing a subelement in XML.

The core of the module is in the [[PackageWrapper]] class.

Classes

Interfaces

I
Collection

Representations of the "collections" element

I
CollectionMetadata

The minimal metadata, used in collections

I
Package

Encoding of the XML structure of the package file in JSON; simply a wrapper around [[PackageContent]].