Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-02-2026, 09:49 AM   #271
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,786
Karma: 153788055
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
What's the point of pbubcheck having code to change to missing images when it's not used in ePub2 and ePub3?
JSWolf is offline   Reply With Quote
Old 09-02-2026, 03:36 PM   #272
Kayadelenium
Zealot
Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.
 
Kayadelenium's Avatar
 
Posts: 130
Karma: 200000
Join Date: Jul 2026
Location: Planet Earth
Device: Kobo Forma
JSWolf — it is used in EPUB 3; you are seeing it hidden rather than absent. Measured just now, one EPUB 3 book with one image that nothing references:

without any flag — epubcheck: silent. epubveri: silent.
with -u — epubcheck: USAGE(OPF-097). epubveri: USAGE OPF-097.

OPF-097 is a usage note rather than an error, and epubcheck hides usage messages unless you pass -u. epubveri does the same thing, deliberately, so that a book gives you the same report from both tools by default.

In EPUB 2 you are right, and that is the part worth separating: epubcheck never asks the question there at all. Its rule lives in the EPUB 3 checker and has no EPUB 2 counterpart, so an unused image in an EPUB 2 book gets no answer from either tool — which is why it looked missing to you and present to Doitsu. You validate different versions.

That gap is what 0.13.3 fills, as ADV-010 behind --advisory. It is opt-in because reporting something epubcheck is silent about is exactly the kind of difference that looks like a false positive if it turns up unasked, and it never changes the verdict.

So, to see an unused resource:
  • EPUB 3 — epubveri -u -i book.epub (or epubcheck -u), in either tool;
  • EPUB 2 — epubveri --advisory -i book.epub, epubveri only.

And one thing worth knowing if you try it from Sigil or calibre: both plugins run with usage and advisory off, so it will not appear there unless you turn them on in the plugin's settings.
Kayadelenium is online now   Reply With Quote
Old 09-02-2026, 04:03 PM   #273
Kayadelenium
Zealot
Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.
 
Kayadelenium's Avatar
 
Posts: 130
Karma: 200000
Join Date: Jul 2026
Location: Planet Earth
Device: Kobo Forma
A correction to my own advice above. I said you could turn usage notes and advisory checks on "in the plugin's settings". That is right for calibre and wrong for Sigil.

In calibre, Doitsu's plugin has a real preferences dialog — from the Edit Book toolbar, or Preferences / Plugins / Customize.

In Sigil there is no such thing. A plugin gets no settings screen at all: Manage Plugins shows name, version, author, type, engine and platforms, and nothing else. A plugin can store preferences, but the only way to change them is to edit its JSON file by hand, or to ship a second plugin whose whole job is one checkbox. Neither is something to ask of someone who just wants to validate a book.

So on Sigil the switch is effectively unreachable, and that is worth knowing before anyone goes looking for it. We are thinking about what an editor integration should do about it — a validator that hides half of what it found behind a setting nobody can reach is not much use.

None of this changes the command line, where --advisory stays opt-in for the reason I gave: a script diffing epubveri against epubcheck has to see the same report from both.
Kayadelenium is online now   Reply With Quote
Old 09-03-2026, 12:26 PM   #274
Kayadelenium
Zealot
Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.
 
Kayadelenium's Avatar
 
Posts: 130
Karma: 200000
Join Date: Jul 2026
Location: Planet Earth
Device: Kobo Forma
JSWolf — the unused-image check from #221, and a correction to what I told you in #272.

I said then that a plugin runs with usage notes and advisory findings off, so you would have to switch them on. That was true of the two plugins that existed that day. There are four now, and the two I wrote behave the other way round.

Mine: there is nothing to switch on. The Sigil one shows every finding, each line labelled ERROR, WARNING, USAGE or ADVISORY. That is not generosity — Sigil gives a plugin no settings screen at all, and a switch nobody can reach is worse than no switch. The calibre one shows everything too; its three boxes in Preferences / Plugins / epubveri / Customize are there to turn things off, not on.

So open an EPUB 2 book in either and ADV-010 is simply in the list: nothing draws, applies or loads this file. No flag, no JSON, no preference.

Doitsu's: my earlier answer still stands. His calibre plugin has a preferences dialog with the setting in it. His Sigil one has nowhere to put a dialog, so the setting lives in the plugin's JSON preferences file and you edit it by hand. His threads are the place to ask about those two.

Both of mine are days old and I would rather you found a wrong error in one than not, so: https://github.com/veripublica/epubv...ugins/releases
Kayadelenium is online now   Reply With Quote
Old 09-03-2026, 12:55 PM   #275
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 14,090
Karma: 83429614
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
A very minor suggestion; would it be feasible to include some means of distinguishing the two plugins from each other, such as including the word sigil or calibre in the zip file name, rather than both being named epubveri_vx.y.zip?
PeterT is offline   Reply With Quote
Old 09-03-2026, 01:18 PM   #276
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,786
Karma: 153788055
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Now I'm seeing epubveri mentioning unused images. That's good. Then I can remove unused images.
JSWolf is offline   Reply With Quote
Old 09-03-2026, 04:01 PM   #277
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 54,241
Karma: 182161593
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
Now I'm seeing epubveri mentioning unused images. That's good. Then I can remove unused images.
That's never been an issue for me since I use Sigil's Delete Unused Media Files tool.
DNSB is offline   Reply With Quote
Old 09-04-2026, 02:47 PM   #278
Kayadelenium
Zealot
Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.
 
Kayadelenium's Avatar
 
Posts: 130
Karma: 200000
Join Date: Jul 2026
Location: Planet Earth
Device: Kobo Forma
A note for anyone here who would rather not use a command line: there are now editor plugins that run epubveri for you, and both were updated today.

Sigil: https://github.com/veripublica/epubv...g/sigil-v0.3.0
calibre's Edit Book: https://github.com/veripublica/epubv...calibre-v0.3.0

They download the epubveri binary themselves and verify it against the release checksums before running it, so there is nothing else to install. Findings land in the editor's own panel and a double-click puts the cursor on the problem.

Both are days old and have mostly been run on macOS, so they are worth trying rather than relying on. Doitsu's own epubveri plugins are in the Sigil and calibre plugin indexes and remain the tested option. Discussion for each lives in its own thread, and I will keep plugin news there rather than here:

Sigil: https://www.mobileread.com/forums/sh...d.php?t=374939
calibre: https://www.mobileread.com/forums/sh...d.php?t=374940

What is most useful back is the same thing as always: a book where epubveri reports something epubcheck does not. That is the report that changes the software.
Kayadelenium is online now   Reply With Quote
Old Yesterday, 04:01 PM   #279
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,912
Karma: 24240563
Join Date: Dec 2010
Device: Kindle PW2
I noticed one difference:

epubveri won't flag:

Code:
<body epub:type="cover" role="doc-cover">
EPUBCheck reports:

Code:
ERROR RSC-005: Error while parsing file: value of attribute "role" is invalid; must be equal to "application", "document", "none" or "presentation"
Doitsu is offline   Reply With Quote
Old Yesterday, 06:26 PM   #280
Kayadelenium
Zealot
Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.
 
Kayadelenium's Avatar
 
Posts: 130
Karma: 200000
Join Date: Jul 2026
Location: Planet Earth
Device: Kobo Forma
epubveri 0.13.4 — Doitsu's role report, and the two layers underneath it.

https://github.com/veripublica/epubv...es/tag/v0.13.4

Doitsu — fixed, and thank you.

Your case first. <body epub:type="cover" role="doc-cover"> now draws the same RSC-005 epubcheck gives, at the same line. `body` is unusually strict about `role` — four values, `application` / `document` / `none` / `presentation` — and that is read straight out of epubcheck's own schema rather than guessed at.

Then I asked whether one element was enough, and it was not. Probing seventeen elements with an invented role token: epubcheck rejects it on sixteen of them and we were accepting it on fifteen. So two more things are fixed here:
  • A role value must now be one of the 111 names epubcheck's schema declares — 39 of them the DPUB-ARIA `doc-*` set. Extracted from the schema, not transcribed. And `role` is a single token in XHTML, not a list: `role="doc-noteref button"` is an error in both tools.
  • role is not allowed on <html> at all, which is an attribute-list difference rather than a value one. It was the sixteenth.

What is deliberately still missing, since a validator should say so. epubcheck also restricts which of the 111 each element may carry, across 1739 lines of schema. That layer is not implemented: `<p role="doc-cover">` is wrong there and accepted here. The reason is a measurement rather than laziness — those per-element sets are broad enough that the token layer alone accounts for fifteen of the sixteen disagreements, so the cheap half is nearly all of the value, and the rest carries real risk of telling someone their accessibility markup is invalid when it is not.

The same probing found the next layer down: the values of `aria-hidden`, `aria-level`, `aria-live`, `aria-checked` are still unconstrained here and are not in epubcheck. That is filed rather than fixed, with its measurement, because there is a control problem: across 474 books I have here, exactly three distinct `aria-*` attributes are used and none of them is one with an enumerated value — so nothing I own could tell me I had got one wrong.

A word on how these were checked, since a vocabulary of 111 names is exactly the kind of list that invents errors on valid markup. Every element/role pair that actually occurs across those 474 books still passes in both tools, W3C's own 209 conformance publications produce no role finding at all, and epubcheck's 981-scenario corpus is unchanged at 100% with no false positives. The new rules fire where epubcheck fires and nowhere else that I can find.
Kayadelenium is online now   Reply With Quote
Old Today, 02:42 AM   #281
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,912
Karma: 24240563
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Kayadelenium View Post
What is deliberately still missing, since a validator should say so.
I understand that you want to match the behavior of EPUBCheck, but in this case, you might want to report it as an EPUBCheck bug, because the EPUB Type to ARIA Role Authoring Guide 1.1 clearly states that role="doc-cover" should only be used for <img> tags.

I also noticed another case where epubveri doesn't display an error message.

Code:
    <nav id="pagelist" epub:type="page-list" role="doc-pagelist">
      <ol hidden="hidden">
        <li></li>
      </ol>
    </nav>
EPUBCheck reports:

Code:
ERROR RSC-005: Error while parsing file: element "li" incomplete; expected element "a" or "span"

Last edited by Doitsu; Today at 04:59 AM.
Doitsu is offline   Reply With Quote
Old Today, 09:03 AM   #282
Kayadelenium
Zealot
Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.Kayadelenium ought to be getting tired of karma fortunes by now.
 
Kayadelenium's Avatar
 
Posts: 130
Karma: 200000
Join Date: Jul 2026
Location: Planet Earth
Device: Kobo Forma
Doitsu — thank you, and yes: reproduced, and fixed for the next release.

<li></li> inside a page-list nav drew nothing here and RSC-005 element "li" incomplete; expected element "a" or "span" from epubcheck. One line was responsible: the check collected an <li>'s element children and returned quietly when there were none, so the case never reached a rule at all.

Your example turned out to be one of four shapes falling through it, which I only saw by probing around it rather than fixing what you sent:
  • <li></li> — one error, as you reported.
  • <li> </li> — whitespace is not a label either, and epubcheck says exactly the same thing about it.
  • <li>bare text</li>two errors from epubcheck, one for the text standing where the label belongs and one for the label still being absent. This is the one I would have missed.
  • <li><ol>…</ol></li> — already matched.

All four now agree with epubcheck: same ids, same messages, five findings to its five on a book carrying all of them.

Worth saying plainly, because it is the argument for reports like yours: nothing I own could have found this. epubcheck's own 981-scenario corpus is unchanged either way, and of the 474 books I keep here, 73 carry an EPUB 3 nav and not one has a label-less <li>. A shelf that says "no change" is only telling you it has no examples.

On role="doc-cover" — you are right that the authoring guide puts it on <img>, and epubcheck's schema constrains <body> to four values regardless. What this tool implements is deliberately whatever epubcheck enforces, so the disagreement you found is between the guide and epubcheck rather than between epubcheck and epubveri. If that changes upstream, this follows it.

Not released yet — it will go out with the next version rather than on its own, since a missed error harms nobody who has it. I will post here when it lands.
Kayadelenium is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
EPUBCheck v4.2.6 jhowell ePub 0 06-30-2021 03:49 PM
EPUBCheck v4.2.5 jhowell ePub 0 03-23-2021 09:45 AM
EPUBCheck v4.2.4 jhowell ePub 3 06-24-2020 09:51 AM
EPUBCheck v4.1.1 Doitsu ePub 2 03-18-2019 10:39 AM
Web-based epubcheck upgraded to epubcheck 1.0.5 kjk ePub 4 02-09-2010 09:53 PM


All times are GMT -4. The time now is 09:32 AM.


MobileRead.com is a privately owned, operated and funded community.