XML technologies / ePUB / ePub für (In)Designer / Validating the ePub file / EpubCheck locally

(Excerpt from “ePub für (In)Designer — Mit InDesign Schritt für Schritt zum E-Book” by Sascha Heck & Yves Apel)

EpubCheck also runs locally without Sigil or oXygen XML. Download and unpack EpubCheck to obtain a folder with several files. The important one is epubcheck-x.x.jar, where x.x is the version. Also install Java on your computer.

Opening epubcheck-x.x.jar

Figure: Opening epubcheck-x.x.jar.

Checking on Macintosh

  1. Open Terminal, normally at Macintosh HD/Applications/Utilities/Terminal.app.

  2. Type “java -jar ”, preserving spaces before and after -jar.

  3. Drag epubcheck-x.x.jar, with your version number, into Terminal. Its path is copied.

  4. Ensure a space follows epubcheck-x.x.jar in Terminal.

  5. Drag the ePub into Terminal.

    Dragging ePub into Terminal

    Figure: Dragging ePub into Terminal.

  6. Press Enter.

  7. Errors appear in Terminal. No error means the test passed.

    Validation result in Terminal

    Figure: Validation result in Terminal.

Checking on Windows

  1. Open Run … with Windows + R or the Start menu field Start → Search programs and files.

  2. Enter cmd.exe in Search programs and files and press Enter.

  3. Windows needs the Java installation path. With Windows 7 64-bit and Java 6 it is C:\Program Files (x86)\Java\jre6\bin. Prefix it with cd and a space: “cd C:\Program Files (x86)\Java\jre6\bin”, then press Enter.

    Specifying Java’s path

    Figure: Specifying Java’s path.

  4. Type “java -jar ”, preserving spaces before and after -jar.

  5. Drag epubcheck-x.x.jar into the window to copy its path.

  6. Ensure a space follows epubcheck-x.x.jar.

  7. Drag the ePub into the window.

    Dragging ePub into the window

    Figure: Dragging ePub into the window.

  8. Press Enter.

  9. Errors appear in the window; none means the test passed.

    Validation result on Windows

    Figure: Validation result on Windows.

Error list

Through EpubCheck 1.1, a list of most frequently reported errors was maintained and explained. Version 1.2 improved many error messages and extended checks. Unfortunately no current list exists.

  

 

 

 

back to top