Check out my first novel, midnight's simulacra!

EPUB: Difference between revisions

From dankwiki
No edit summary
No edit summary
Line 3: Line 3:
==Contents==
==Contents==
* There must be a file <tt>mimetype</tt> in the toplevel containing the string <tt>application/epub+zip</tt>
* There must be a file <tt>mimetype</tt> in the toplevel containing the string <tt>application/epub+zip</tt>
* There must be a directory <tt>META-INF</tt> in the toplevel
* There must be a directory <tt>META-INF</tt> in the toplevel containing:
** <tt>container.xml</tt> specifies one or more ''rootfiles'', using their locations relative to the toplevel:
<pre>
<?xml version="1.0"?>
<container xmlns="urn:oasis:names:tc:opendocument:xmlns:container" version="1.0">
<rootfiles>
  <rootfile full-path="PATHPATHPATH" media-type="application/oebps-package+xml"/>
</rootfiles>
</container>
</pre>

Revision as of 18:56, 21 January 2024

EPUB (in version 3.3 as of 2023-12-21) is a container for ebooks using ZIP for its archive and compression. Most of the content is XHTML or media (usually graphics).

Contents

  • There must be a file mimetype in the toplevel containing the string application/epub+zip
  • There must be a directory META-INF in the toplevel containing:
    • container.xml specifies one or more rootfiles, using their locations relative to the toplevel:
<?xml version="1.0"?>
<container xmlns="urn:oasis:names:tc:opendocument:xmlns:container" version="1.0">
 <rootfiles>
  <rootfile full-path="PATHPATHPATH" media-type="application/oebps-package+xml"/>
 </rootfiles>
</container>