EPUB 3 - Scripted Content with the scripted Property
An EPUB 3 whose one content document declares properties="scripted" and contains a single inline script that rewrites one paragraph. It makes no network request and reads correctly with scripting switched off, so it tests the property and the fallback rather than the script.
- mimetype
- container.xml
- content.opf
- nav.xhtml
- style.css
- chapter1.xhtml
Specifications
- Seed
- 20260807
- Epub Version
- 3.0
- Scripted Property
- true
- Script Elements
- 1
- Script Effect
- replaces the text of one paragraph
- Network Access
- false
- Works With Scripting Disabled
- true
Testing contract
Expected to pass- Scenario
- Open the book with scripting enabled, then with scripting disabled.
- Expected result
- With scripting on, the paragraph reads that scripting is enabled; with it off, the original sentence remains and nothing is blank or broken.
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 - Scripted Content with the scripted Property” is a deterministic Novus Examples fixture for Conversion testing, HTML parsing. 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 scripted-content.epub out.pdf # Calibre
unzip -l scripted-content.epub # EPUB is a ZIPRelated files
- epubEPUB 3 - Inline SVG in XHTML (svg property)SVG written straight into an XHTML content document, with properties="svg" declared on the manifest item as EPUB 3 requires. The other half of the SVG question: inline vector markup rather than a standalone content document.

- epubEPUB 3 - MathML with the mathml Property DeclaredAn EPUB 3 with a block MathML equation and the required properties="mathml" on its content document. The baseline for MathML support, paired with a twin that omits the declaration.

- epubEPUB 3 - SVG Content Document in the SpineAn EPUB 3 whose first spine item is an SVG content document rather than XHTML, followed by a chapter that explains what should have appeared. For testing readers that assume every reading-order document is XHTML.

- epubEPUB 3 - SVG Cover Wrapping a Raster ImageA fixed-layout cover built as an SVG content document that pulls in a PNG through xlink:href and centres it as a single-page spread. For testing cover extraction, which usually looks for a raster and finds vector markup instead.

- azw3AZW3 — Kindle KF8 E-bookThe valid EPUB converted to AZW3 (Kindle KF8) with Calibre — the modern Kindle format. For testing AZW3 readers and EPUB→AZW3 conversion.

- cbzCBZ — Comic Book ArchiveA CBZ comic archive — a ZIP of sequentially named JPEG pages, the standard container for digital comics. Built from generated pages; for testing comic readers and CBZ→PDF conversion.

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