EPUB 3 - MathML with altimg and alttext Fallback
The same equation carrying the fallbacks a reader without a MathML engine needs: an altimg raster, its declared dimensions and baseline offset, and an alttext reading of the formula for speech. For testing fallback selection and what a screen reader announces.
- mimetype
- container.xml
- content.opf
- nav.xhtml
- style.css
- chapter1.xhtml
- quadratic.png
- cover.png
Specifications
- Seed
- 20260807
- Epub Version
- 3.0
- Mathml Property
- true
- Altimg
- images/quadratic.png
- Altimg Size
- 96x24
- Has Alttext
- true
- Has Cover Image
- true
Testing contract
Expected to pass- Scenario
- Render the chapter in a reader with no MathML layout engine, then with a screen reader.
- Expected result
- The 96x24 altimg is shown in place of the markup, and assistive technology announces the alttext reading instead of spelling out the element names.
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 - MathML with altimg and alttext Fallback” is a deterministic Novus Examples fixture for Conversion testing, Media accessibility. 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: seed 20260807. 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 mathml-altimg-fallback.epub out.pdf # Calibre
unzip -l mathml-altimg-fallback.epub # EPUB is a ZIPRelated files
- epubEPUB 2.0.1 - NCX pageList with pageTargetsAn EPUB 2.0.1 that records print pagination the older way: an NCX pageList of pageTarget elements pointing at anchors in the text. The EPUB 2 counterpart of the EPUB 3 page-list nav, and what a converter has to translate between.

- epubEPUB 3 - Media Overlay (SMIL + MP3 narration)An EPUB 3 with a real media overlay: a SMIL document ties three paragraph ids to clip ranges in an embedded MP3, and the package declares media:duration and media:active-class. The narration track is deliberately silent audio, so the fixture stays small and byte-identical on every run.

- epubEPUB 3 - Media Overlay Across Three DocumentsThree chapters, three SMIL overlays and three MP3 tracks, with a media:duration refines entry per overlay plus the package total. For testing whether a reader plays continuously across document boundaries and whether it sums the per-document durations correctly.

- epubEPUB 3 - Media Overlay with No media:durationA working media overlay whose package omits the required media:duration metadata entirely. Everything else is intact, so this fixture isolates one question: does the reader refuse the overlay, or fall back to measuring the audio itself?

- epubEPUB 3 - Media Overlay, Intentionally Invalid (dangling text src)An intentionally invalid media overlay: the second par's text src points at a fragment identifier that does not exist in the chapter. Intentionally invalid and clearly labelled - for testing whether playback skips the orphaned segment, stops dead, or throws.

- epubEPUB 3 - Page List Navigation (pagebreak markers)An EPUB 3 carrying print-page navigation: a hidden page-list nav, matching pagebreak markers in the content with doc-pagebreak roles, and an equivalent NCX pageList. For testing go-to-page features and the page-number reporting that accessibility conformance asks for.

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