Converting PDF-->EPUB produces non-compliant IDs

Bug #1917371 reported by user5467 on 2021-03-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

After calibre-converting some PDF file to EPUB and calibre syntax checking an error was determined: "<h3 id="2013" ...>" ( id value may not begin with a digit ).
Improvement proposal: by converting insert a prefix "a" if digit.
If such behavior is not the best solution in all cases, it could be made switchable to "disable" in settings.

It's not an error it's a warning. I think these days pretty much all
devices support arbitrary ids, so it can be ignored. Or you can just
have the editor auto-fix it for you if you care.

The numeric ids come from pdftohtml, so this should be fixed there, if
at all. Otherwise its just extra work calibre has to do during
conversion to remap ids, for very dubious benefit.

 status wontfix

Changed in calibre:
status: New → Won't Fix
Kovid Goyal (kovid) wrote :

Actually, on second thoughts this may be do-able fairly easily, attach
an example PDF showing the issue.

 status incomplete

Changed in calibre:
status: Won't Fix → Incomplete
Launchpad Janitor (janitor) wrote :

[Expired for calibre because there has been no activity for 60 days.]

Changed in calibre:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers