Unfortunately, not every message is as easy to understand as this one, and there are times whenĮPUBCheck will not provide useful a line number or character offset (e.g., it often reports Not allowed, as shown in the following screen grab of the file: It also provides aīrief message explaining the problem - in this case, a p tag is used where it is ( 98) and character offset ( 5) where it occurs. ( accessible_epub_3.epub/EPUB/ch01.xhtml) as well as the line number The EPUBCheck error message identifies both the file containing the error Messages: 0 fatals / 1 error / 0 warnings / 0 infos Parsing file: element "p" not allowed here expected the element end-tag The following is an example of a report containing a markup error: Validating using EPUB version 3.2 rules.ĮRROR(RSC-005): accessible_epub_3.epub/EPUB/ch01.xhtml(98,5): Error while In practice, however, EPUBCheck will often uncover warnings and errors that need fixing The final statement just confirms that the program has terminated successfully.Ī clean validation result is preferred outcome before moving on to check the accessibility of a The next line two lines indicate that no issues were found, but this is where any issues will be In the case of the precedingĮxample, the progam is checking against the requirements of EPUB 3.2. The first line specifies what version of EPUB is being validated. Messages: 0 fatals / 0 errors / 0 warnings / 0 infos If EPUBCheck does not detect any problems, it will emit a series of messages like the following: Validating using EPUB version 3.2 rules. The rest of the examples on this page for readability purposes. The following is an example of how EPUBCheck could be called from the command line to validate theĪccessible_epub_3.epub file: > java -jar c:\epubcheck\epubcheck.jar c:\epubs\accessible_epub_3.epubįull paths to the epubcheck.jar file and publication to be checked are omitted from The full path to the file has to be specified if it is not in the same publication.epub - The second argument is the name of the packaged EPUB.To reference this file depends on where EPUBCheck is installed and what directory EPUBCheck is Jar file ( epubcheck.jar) that contains the EPUBCheck program. -jar path\to\epubcheck.jar - The first argument is a reference to the Java.The command to run EPUBCheck is the same regardless of the operating system used. The following command will change the command line interface to the c:\epubs TheĬd command is used to change the directory. Where the publication to be validated is located to avoid entering lengthy file paths. When starting a new command-line interface, the starting directory is usually listed before the inputĪlthough EPUBCheck can be run from almost any directory, it is often simpler to change directories to ( powershell.exe) can be used to run EPUBCheck. On Windows, both the Command Prompt ( cmd.exe) and PowerShell Which interface to use depends on the operating The EPUBCheck program is written as a Java library, so running it requires some basic knowledge ofĮntering instructions from a command-line interface. That are in violation of the requirements of the standard and/or that could cause a publication not Tool that automatically checks EPUB publications for conformance to the standard. Getting StartedĮPUBCheck is a free command-line validation Life is now wonderful.Instructions on how to obtain and configure a system to run EPUBCheck are available from the EPUBCheck Usage wiki This page does notĬover installation issues. (sorry, my machine speaks Spanglish most of the time)īasically, that last line says the system can't find the specified file.Įnvironment: Windows 7, SP1 (ahem!), Sigil 0.9.7 Process = Popen(list(args), stdout=PIPE, stderr=PIPE)įile "subprocess.py", line 947, in _init_įile "subprocess.py", line 1224, in _execute_childįileNotFoundError: El sistema no puede encontrar el archivo especificadoĮrror: El sistema no puede encontrar el archivo especificado Self.exitcode = target_n(container)įile "C:\Users\Ovonel\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 109, in runįile "C:\Users\Ovonel\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 30, in jarWrapper Loaded everything, but now, when I run EpubCheck on this machine only, I get the following error:įile "C:\Program Files (x86)\Sigil\plugin_launchers\python\launcher.py", line 135, in launch So this weekend, I came into possession of yet another laptop. I downloaded Epubcheck v0.3.8, and have successfully loaded it on my working computers. I know you people don't have nearly enough to do taking care of us N00Bs (kidding, of course), but I've encountered a strange problem.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |