Imad Muratspahic

EPUB Parsing & Rendering Engine

Parse OPF, spine, and nav. Sanitize HTML. Master the CSS profile. Empfohlen von 0 bis 99 Jahre
EAN 9783565997930
Familienlizenz Family Sharing
16,99 €
inkl. MwSt.
63 Seiten
Oktober 2026
neobooks

Every e-reader, library app, and conversion pipeline has to answer the same question: given a.epub file from anywhere, how do you turn it into pages a person can actually read? This handbook answers it end to end, from the first byte of the ZIP container to a working reference engine you can run yourself. You'll open the container correctly - and see exactly how a miscompressed mimetype file breaks readers silently - parse the OPF package document's metadata, manifest, and spine, and build a unified table of contents from both the EPUB 3 navigation document and its EPUB 2 NCX predecessor. From there, the book treats every content document as what it actually is in the wild: untrusted HTML that has to be sanitized against script injection, tracking beacons, and path-traversal attacks before it's safe to render. The second half covers what most tutorials skip. The EPUB CSS profile, and how the cascade really resolves across reading-system, author, and user stylesheets. The exact IDPF font-obfuscation algorithm, byte-for-byte, so embedded fonts stop failing with no explanation. Pagination for reflowable text and the EPUB CFI addressing scheme that keeps a reader's place through a font-size change. Fixed-layout rendition, synthetic spreads, and the accessibility gap fixed layout introduces. Validation against EPUBCheck, and the performance discipline a library of a few thousand books actually demands. Every technique is demonstrated in real, runnable Python, including a compact reference engine in the closing chapter that ties the whole pipeline together - tested against this book's own EPUB file. Written for engineers building a reading app, a documentation viewer, a conversion tool, or QA tooling around the EPUB format, not for casual readers wondering how their e-reader works.

Imad Muratspahic is an independent author of practical how-to guides, technical handbooks, history and fiction. The books aim to be clear, honest and useful from the first page.

Sie können dieses eBook zum Beispiel mit den folgenden Geräten lesen:
• tolino Reader 
Laden Sie das eBook direkt über den Reader-Shop auf dem tolino herunter oder übertragen Sie das eBook auf Ihren tolino mit einer kostenlosen Software wie beispielsweise Adobe Digital Editions. 
• Sony Reader & andere eBook Reader 
Laden Sie das eBook direkt über den Reader-Shop herunter oder übertragen Sie das eBook mit der kostenlosen Software Sony READER FOR PC/Mac oder Adobe Digital Editions auf ein Standard-Lesegeräte. 
• Tablets & Smartphones 
Möchten Sie dieses eBook auf Ihrem Smartphone oder Tablet lesen, finden Sie hier unsere kostenlose Lese-App für iPhone/iPad und Android Smartphone/Tablets. 
• PC & Mac 
Lesen Sie das eBook direkt nach dem Herunterladen mit einer kostenlosen Lesesoftware, beispielsweise Adobe Digital Editions, Sony READER FOR PC/Mac oder direkt über Ihre eBook-Bibliothek in Ihrem Konto unter „Meine eBooks“ -  „Sofort online lesen über Meine Bibliothek“.
 
Bitte beachten Sie, dass die Kindle-Geräte das Format nicht unterstützen und dieses eBook somit nicht auf Kindle-Geräten lesbar ist.