Skip to content
Testaroo
epub6.4 KB

EPUB 3: E-book (nav document)

The same book as EPUB 3, navigated by an XHTML navigation document (with an NCX fallback for older readers). The modern twin in an EPUB2↔EPUB3 conversion set.

Archive contents: 11 entriesepub
  • mimetype
  • container.xml
  • content.opf
  • nav.xhtml
  • toc.ncx
  • style.css
  • cover.xhtml
  • cover.png
  • chapter1.xhtml
  • chapter2.xhtml
  • chapter3.xhtml

Specifications

Format
EPUB 3.0
Navigation
nav.xhtml (+ NCX fallback)
Chapters
3
Has Cover
true

Testing contract

Expected to pass
Scenario
Exercise EPUB 3: E-book (nav document) in its epub versions workflow. The same book as EPUB 3, navigated by an XHTML navigation document (with an NCX fallback for older readers).
Expected result
ZIP package contains 11 members; mimetype='application/epub+zip'; mimetype compression method=0. Declared feature checks: navigation=nav.xhtml (+ NCX fallback); chapters=3; hasCover=True. The declared comparison counterpart is ebk-epub2; preserve the stated difference instead of expecting the container bytes to match.

What is a .epub file?

EPUB is the open e-book standard, a ZIP archive containing XHTML content documents, CSS, images, and a package manifest describing reading order and metadata. It supports reflowable text that adapts to screen size and is supported by most e-readers except Kindle natively. It is the dominant format for distributable e-books.

How to use this file

Use an example EPUB to test e-book parsing, ZIP-package and manifest handling, reading-order and metadata extraction, and rendering in e-reader applications.

How to use this file for testing

“EPUB 3: E-book (nav document)” is a deterministic Testaroo fixture for Conversion testing. The same content exported across many formats and linked as a group, so you can convert one and diff against the expected twin.

Documented properties for this file: EPUB 3.0. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such, expect parsers to fail loudly rather than silently accept them.

E-book fixtures are structured archives documented down to their spine and manifest. Test readers and converters, and where a valid↔intentionally-invalid pair exists, assert graceful handling of the malformed container.

Code examples

ebook-convert compatible-epub3.epub out.pdf   # Calibre
unzip -l compatible-epub3.epub                # EPUB is a ZIP

Generated by generation/ebooks_extra.py. Free for any use, no attribution required, license.