Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 06:33 PM   #1
Tobias
Junior Member
Tobias began at the beginning.
 
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"
I am surprised that the conversion tool seems to produce invalid epub2 xhtml?

Is this something that I should care about and correct or does it not matter?
Tobias is online now   Reply With Quote
Old Yesterday, 08:20 PM   #2
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: 37,474
Karma: 149856306
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.
DNSB is offline   Reply With Quote
Old Yesterday, 11:02 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,096
Karma: 22669824
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://manual.calibre-ebook.com/faq...e-is-not-valid
kovidgoyal is offline   Reply With Quote
Old Today, 05:04 AM   #4
Tobias
Junior Member
Tobias began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2024
Device: none
I think @kovidgoyal 's reply hits it well, thank you!

From the link:

Quote:
The EPUB I produced with calibre is not valid?

calibre does not guarantee that an EPUB produced by it is valid. The only guarantee it makes is that if you feed it valid XHTML 1.1 + CSS 2.1 it will output a valid EPUB. calibre tries hard to ensure that EPUBs it produces actually work as intended on a wide variety of devices, a goal that is incompatible with producing valid EPUBs, and one that is far more important to the vast majority of its users. If you need a tool that always produces valid EPUBs, calibre is not for you. This means, that if you want to send a calibre produced EPUB to an online store that uses an EPUB validity checker, you have to make sure that the EPUB is valid yourself, calibre will not do it for you – in other words you must feed calibre valid XHTML + CSS as the input documents.
Tobias is online now   Reply With Quote
Old Today, 07:10 AM   #5
Tobias
Junior Member
Tobias began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2024
Device: none
Quote:
Originally Posted by DNSB View Post
For your own use, simply removing the role="whatever"s will work.
I just got feedback from a publisher who told me to make sure the file is 100% valid, because otherwise there can be error messages from shops during distribution.
Tobias is online now   Reply With Quote
Old Today, 08:03 AM   #6
Tobias
Junior Member
Tobias began at the beginning.
 
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
Tobias is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors from epubcheck crutledge Plugins 4 02-15-2015 07:57 AM
Smashwords finds errors in my ePub file Johneltin Sigil 24 08-08-2013 05:27 PM
EPubCheck errors -- any idea how to fix? eggheadbooks1 ePub 20 07-28-2011 12:43 PM
epubcheck errors regarding NCX - can you help me translate these? Dusk ePub 27 06-14-2011 09:58 PM
beginner needs help with epubcheck errors... jeanina ePub 10 01-25-2011 08:49 PM


All times are GMT -4. The time now is 08:22 AM.


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