Comments (4)
The EPUB validation has failed while using the option "--version" in the command line argument and getting the default message in the log file if there are any errors or warnings in the source EPUB file. The previous version 5.0.1 correctly indicated the error/warning with version details.
This is likely due to the change made in #1526. The --version
option now prints the version and exits the command, which I believe is the common behavior for command line tools.
Do you need to print the EPUBCheck version number and the check messages at the same time?
from epubcheck.
Hi @rdeltour ,
Thanks for your kind support.
Yes, I need to print the EPUBCheck version number and the check messages at the same time.
from epubcheck.
@rdeltour
I'm in need of outputting the version info with the check messages either, but would propose to introduce a new CLI option for this, maybe "-i"/"--info", which will simply add the version info to the "normal" output, e.g.:
java -jar /epubcheck.jar -i xyz.epub
will then output:
EPUBCheck v5.1.0 abgeschlossen
Verwendung der EPUB 3.3 Prüfungen
ERROR(RSC-005): xyz.epub/OEBPS/content.opf(3,56): Validierungsfehler: package dcterms:modified meta element must occur exactly once
EPUBCheck mit Fehlern abgeschlossen
Meldungen: 0 Schwerwiegende Fehler / 1 Fehler / 0 Warnungen / 0 Informationen
To "--version":
java -jar /epubcheck.jar --version
now outputs this:
EPUBCheck v5.1.0
Meldungen: 0 Schwerwiegende Fehler / 0 Fehler / 0 Warnungen / 0 Informationen
EPUBCheck abgeschlossen
This is very misleading. Please reduce the output to the version info only and then exit:
EPUBCheck v5.1.0
Misleading, because in my workflow, which runs for a decade now, "--version" was always part of the CLI command to test my epubs, so it took me some time to realize that there were errors in the epub I was checking, even though epubcheck says there were none.
from epubcheck.
@rdeltour
I made some testing and
java -jar /epubcheck.jar --help
outputs the trailing check informations either:
[...]
Meldungen: 0 Schwerwiegende Fehler / 0 Fehler / 0 Warnungen / 0 Informationen
EPUBCheck abgeschlossen
This should be fixed!
For a workaround until this is fixed:
java -jar /epubcheck.jar --version -q
java -jar /epubcheck.jar --help -q
suppresses the misleading check informations at the end.
from epubcheck.
Related Issues (20)
- EPUB Checker Execution Issue HOT 1
- Error showing HTTPS URL instead of internal path HOT 1
- Epub errors on Smashwords Please help!? HOT 1
- Undefined entities are not reported for EPUB2 checks. HOT 2
- Unjustified error message "Invalid byte 2 of 4-byte UTF-8 sequence" HOT 1
- 404 error in documentation checking your first epub HOT 2
- EPUB Help: RSC-001 Issue and PKG-026 Issue HOT 1
- Error when adding language attribute in package element in EPUB 2 HOT 1
- java.lang.ArrayIndexOutOfBoundsException
- Undeclared content is not flagged as a warning in EPUBCheck 5 HOT 2
- page-list navigation order does not check order.
- Unnecessary use of deprecated wrapper
- Possible false error with EPUB 2 check on ordered lists with value attribute HOT 2
- Still some issues with links on web site
- role="math" on images HOT 4
- search-key-map files epubcheck says ERROR(RSC-001) could not be found. HOT 1
- Clear Statement on Unicode Normalization Form for use in XHTML content for epubs
- File mode specification error: (wrong-type-argument listp ) HOT 2
- a11y:exemption is not recognized by epubcheck HOT 1
- Allow the use of version parameter for .epub files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epubcheck.