07-09-2024, 07:33 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2024
Device: none
|
EPUBCheck finds errors with footnotes
EPUBCheck from W3C is throwing a lot of errors on a converted .docx to epub 2 file:
Referring to a footnote: Code:
<a role="doc-noteref" Code:
ERROR(RSC-005): book.epub/index_split_051.html(58,494): Validierungsfehler: Attribut "role" ist an diesem Element nicht erlaubt. Erlaubt ist nur das Attribut "accesskey", "charset", "coords", "dir", "hreflang", "lang", "rel", "rev", "shape", "style", "tabindex", "target", "type" oder "xml:lang" Is this something that I should care about and correct or does it not matter? |
07-09-2024, 09:20 PM | #2 |
Bibliophagist
Posts: 40,603
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Perhaps that 'role' is an ePub3 element has something to do with the error. For your own use, simply removing the role="whatever"s will work.
Alternatively, have calibre generate ePub3 files. |
Advert | |
|
07-10-2024, 12:02 AM | #3 |
creator of calibre
Posts: 44,565
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
07-10-2024, 06:04 AM | #4 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2024
Device: none
|
I think @kovidgoyal 's reply hits it well, thank you!
From the link: Quote:
|
|
07-10-2024, 08:10 AM | #5 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2024
Device: none
|
|
Advert | |
|
07-10-2024, 09:03 AM | #6 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2024
Device: none
|
I brought this into the bug tracker. It does not sit right with me that the role attribute is not removed, but also not intentionally added. Unfortunately @kovidgoyal is very quick with shutting down conversations.
https://bugs.launchpad.net/calibre/+bug/2072645 |
07-10-2024, 09:36 AM | #7 | |
Well trained by Cats
Posts: 30,454
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
07-10-2024, 10:41 AM | #8 |
Evangelist
Posts: 420
Karma: 2737916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Over the past decade or so I've prepared about a dozen books for publication working with several authors. At some point on nearly every single one I had to study up on some "error" thrown by some checking software, and go into the code to fix it. It is a moving target. A file Amazon took a month ago may not pass tomorrow. And it rarely makes any sense.
If you want to publish, just running a conversion will rarely be enough. You have to be willing to get into the code, learn the new glitch-of-the-day, and keep smiling. Or snarling. But that's the way it is. |
07-10-2024, 11:17 AM | #9 | |
creator of calibre
Posts: 44,565
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
The *only* valid reason for me to dumb down calibre's output is if that output causes issues with a significant fraction of real world reading software. epubcheck simply isn't a reason I will ever do that. As I said in the FAQ, if this is a problem for you, then calibre is not the software for you. |
|
07-10-2024, 05:16 PM | #10 | |
Bibliophagist
Posts: 40,603
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
For me, the time saved by using calibre more than covers the time to correct any issues that epubcheck may have with a calibre generated epub. Specifying ePub3 as the output helps so role:, epub:type, epub:prefix, etc. are not considered errors. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Errors from epubcheck | crutledge | Plugins | 4 | 02-15-2015 08:57 AM |
Smashwords finds errors in my ePub file | Johneltin | Sigil | 24 | 08-08-2013 06:27 PM |
EPubCheck errors -- any idea how to fix? | eggheadbooks1 | ePub | 20 | 07-28-2011 01:43 PM |
epubcheck errors regarding NCX - can you help me translate these? | Dusk | ePub | 27 | 06-14-2011 10:58 PM |
beginner needs help with epubcheck errors... | jeanina | ePub | 10 | 01-25-2011 09:49 PM |