Private Named Entities problems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I came across a German classic EPUB, Grimms Märchen, using lots of private named entities for ligatures in its Fraktur font:
http://
from http://
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
[
<!ENTITY ll "">
]>
and then using them like ſo≪en in the XHTML texts.
As far as I can see this is coded correctly though not recommendable; my two Pocketbooks have different problems displaying it.
Calibre's current viewer (3.23 on Linux Mint Debian Ed.) displays those ligatures correctly, but also displays the closing ]> from <!DOCTYPE … . 3.13 did not display the ligatures.
Calibre's current editor (3.23) flags >70k errors and then ≈200 warnings about that, offering to replace the named entities with the referenced characters — but then does NOT replace the ≪ by its definition  but by ≪ , others not at all, removing only the warnings but not the errors.
Beautifying just removes the above definitions, thus ruining their display.
Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.
status fixreleased