-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: revert the spine/toc nav order check to a WARNING #1056
Conversation
As agreed on the 2019-07-11 EPUB CG call: https://www.w3.org/2019/07/11-epub3cg-minutes.html Changes the behavior introduced in #999 Fixes #1036
What about the request to explain the severity? Can we just dump something in an info message? |
For example, pump out a generic suggestion like: "This rule is under review and may change in a future release. See the issue tracker."? It just feels really awkward to output stuff like this via epubcheck, but if we make something generic then perhaps it could just be attached/detached to issues if we end up in a similar place again?? |
ah right. I had started the PR before this idea was brought. I'll think about how to do this (we have "suggestion" messages, that take another line and are bound to a message, and that might be usable for that purpose). |
We could add that to a new line, but then that might broke any tool that rely on regex parsing? (other messages consistently start with Or we can append that to the message text, but then the line would get quite long… |
I have to admit to never turning on any verbosity, so I just assumed such things could come out with their error/warning but labeled as info or some such on a new line. I have no problem putting a prefix in front of the message, if that's the issue. I just had no idea what it should be so didn't add to the suggested text. |
I ended up adding a new The message will read:
@bduga can you please confirm this is OK with what you suggested in the CG call? |
Looks good to me! |
@mattgarrish since your review is still marked as pending, can you please confirm you're OK too with the info message? |
Let me post a kind of concern. ‘ERROR’ in the INFO message may not comfortable if the system using EPUBCheck extract ‘ERROR’ as text by regular expression from the result message. |
I hadn't thought of that (and just merged the PR). The change did intend to not break existing regex-based output parsers, notably by relying on the existing message mechanism rather than just adding a new line. I would expect an output parser to use a regex checking that Is your concern grounded on an existing system? |
Yes, if existing system will use /^ERROR/ or /ERROR(.*):/ for extraction, it's no problem but just use of /ERROR/ should be modified. The objective to change ERROR to WARNING is to avoid error detection by eBook stores when accepting EPUBs, and then NOT using 'ERROR' word in the result message will be safer, I think. Anyway, sorry for my too late reaction. |
This addresses the concern raised by @ShinyaTakami in #1056.
This addresses the concern raised by @ShinyaTakami in #1056.
As agreed on the 2019-07-11 EPUB CG call:
https://www.w3.org/2019/07/11-epub3cg-minutes.html
Changes the behavior introduced in #999
Fixes #1036