Powered by OPF
OPF WIKI STATIC ARCHIVE
2,681 pages · 153 spaces · 776 tags · 4,025 history records · 96.2% of the original wiki recovered
Archived copy. This page was recovered from the Internet Archive snapshot of /display/REQ/ePub Version 2.0 Validation taken on 2013-07-27. The original wiki at wiki.opf-labs.org is being decommissioned.

ePub Version 2.0 Validation

Created by David Tarrant on May 21, 2012 · last edited by David Tarrant · on May 22, 2012 (view history) · 3 versions
Title
Validating ePub files
Detailed description The BnF is currently experimenting with dissemination in the ePub to support eBook readers (enabling reflow)
They decided to stick to a 2.0 specification for the format due to wide support for the format.
Issue champion Thomas
Other interested parties
 
Possible Solution approaches There are a couple of ePub validators:
           ePubCheck - http://code.google.com/p/epubcheckas used by http://validator.idpf.org/ the official site
           flightcrew - http://code.google.com/p/flightcrew/
(at the time of checking was NOT a better checker)
Context The BnF is currently experimenting with dissemination in the ePub to support eBook readers (enabling reflow)
They decided to stick to a 2.0 specification for the format due to wide support for the format.
Lessons Learned There are a number of exemplar files available at:
            [http://code.google.com/p/epub-samples/
_]These are all version 3.0 ePubs so the validating version 2.0 ePubs is a bit of a problem
Version 2.0 samples are openly available from the BnF at:
         [http://gallica.bnf.fr/ebooks?lang=EN_
]
Trying to parse one of these ePub with ePubCheck resulted in the following error:
         ERROR: bnf_v2.epub/mimetype: Mimetype file should contain only the string "application/epub+zip".
We think this is incorrect as the mimetype file was present and not compressed, on OS X the epub can be remade using zip as follows:
         zip -X0 book.epub mimetype; zip -Xur9D book.epub META-INF OEBPS -x *.DS_Store
We submitted this as an issue to ePubCheck
         http://code.google.com/p/epubcheck/issues/detail?id=180
Datasets http://gallica.bnf.fr/ebooks?lang=EN (Version 2.0 ePubs)_
http://code.google.com/p/epub-samples/ Version 3.0 ePubs)_
Solutions here