epub file.Īfter selecting an EPUB document via double-click, the configuration type EPUB - EpubCheck appears in the dropdown list next to ✼hoose configuration«. epub for an EPUB!įigure 1: Upload of an EPUB document - Step 1: Clicking ✼hoose file« to open theįigure 2: Upload of an EPUB document - Step 2: Choosing an. NOTICE: All formats of the files to be uploaded must be XML compatible. You can select an EPUB document to be validated (see figure 2). Furthermore, you can check here your EPUBsīy clicking the ✼hoose file« button (see figure 1), your file manager opens, where Help of a previously created configuration. Under the menu option ✽ocuments« you can check Word and InDesign documents with the NCX file Validates the NCX against the schema. Checking bitmaps Validates the image header and image type. DTBook files Validates the DTBook file against the schema. Checks that each reference image exists in the package. must be a preferred type, or have a provided fallback.ġ.1.5 Further file formats XHTML files EpubCheck validates the XHTML file against the schema files.Opens each item and runs the appropriate checker ( OPSChecker for XHTML, DTBookChecker for DTBook, BitmapChecker for images, etc.).for newer media-types in OEBPS 1.2 documents.for deprecated media-types in OPS documents.for text/html, which is not appropriate for epubs.for invalid content in the media-type attribute.Checks the unique-identifier to ensure that it references an actual id in the OPF file.The OCFChecker also retrieves the OPF file. The encryption.xml, container.xml and signatures.xml files, if they exist, are checked against the respective schemas. That image really exists in the ZIP file and is listed in the manifest. Include things like ensuring that if there is an image called out in the XHTML file, Of the individual XML files but are required for a valid EPUB document. The tool will also run a set of checks for things that aren't related to the validity In addition to validating the files against the schemas, More schema files which defines the structure of the file, and the tool validates Sure it is well-formed, and that it validates.įor each of the XML based files (OPF, NCX, XHTML, DTBook, SVG) the tool has one or Most of the files in an EPUB document are XML files. ZIP file is corrupt, has bad info in the header, or is otherwise incomplete.ġ.1.2 Parsing and validating the files in the package This by reading from byte 30 in the file looking for "mimetype" and then from byteģ8 in the file looking for application/epub+ZIP.Īfter these checks the ZIP file is loaded as a ZIP package, which will fail if the The mimetype file is at the proper location and has the appropriate content. The EpubCheck tool ensures that the ZIPįile has a "ZIP header" or section at the begining of the file. The first thing validated is the ZIP file. So much of the details of how the checkers work will be glossed over. Of this document is to outline what the tool does, not necessarily how it does it, In the following sections we will examine what each of the checkers does. As the toolĮxamines the file, it will use an OCFChecker to validate the OCF structure, an OPFChecker to validate the OPF file, and so on. "checkers" each of which examines a particular portion of the EPUB file. When the EpubCheck tool is used to validate a document it does so by using a set of (The source of the following information is the EpubCheck wiki.) Result can be found under 2.2 The output.ġ.1 How EpubCheck processes an EPUB document The result of this check is an XML check report. Was developed by the idpf (International Digital Publishing Forum) and is freely accessible under. The OPF and the OPS markup as well as iternal reference consistency is checked. Among other things, the OCF container structure, It checks whether theįile complies with the general EPUB standards and, thus, it is a valid EPUB which EpubCheck is an open source tool to validate EPUB documents.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |