Auto-remove invalid attribute: role=

Bug #2072645 reported by Tobias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Won't Fix
Undecided
Unassigned

Bug Description

Calibre 7.13 on Linux Mint

In a converted .epub I found invalid role="doc-noteref" attributes (by epub 2 standard) in the links to the footnotes.

The source was a .docx
I re-tested with a .odt document. No role attributes were added there. So I conclude this was not added by calibre, but adopted from the .docx file.

Does it make sense to auto-remove role attributes when converting to epub2?

Revision history for this message
Kovid Goyal (kovid) wrote :

no. That role serves an actual useful purpose. Ebook reading software
can use it to implement popup footnotes. And that role causes no issues
with anything other than the horrible epubcheck. As I said in the FAQ I
am not interested in dumbing down calibre's EPUB output to comply with
epubcheck.

Changed in calibre:
status: New → Won't Fix
Revision history for this message
Tobias (phoenix-iv) wrote (last edit ):

Ah, we met in the forum.

But then the question is: Why not purposefulness ADD the role tag when it is not present?
Like I wrote it was NOT added when converting a .odt (attached)

AND then go all the way and also add role="doc-footnote" to the footnote and role="doc-backlink" to the backlink.

I would say either go the one way or the other.

What do you think? Please keep this bug open or give a statement.

Revision history for this message
Kovid Goyal (kovid) wrote :

Because DOCX is much better supported than ODT, in fact never use ODT
save your document as docx in libreoffice if you want to convert it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.