Some non-ASCII characters in MathML elements don't render correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When I create an epub3 with some MathML inside, if I type a non-ASCII character (e.g. an accented letter) in elements like <mtext>, that character is the last that will be displayed on ebook-viewer: the rest of the string will disappear.
I experimented this issue on ebook-viewer bundled with Calibre 64bit 2.48 for Mac (OS X El Capitan) and Calibre 64bit 2.32.1 and 2.48 for Windows 7 (both OS 64bit). Although rendering of MathML is obtained with MathJax, other applications that use MathJax (Readium, ADE4.5 for Windows) seem not affected.
Adding and removing "<script type="text/
This is the <math> element in the attached sample epub (it's not mathematically meaningful...):
<math display="block" xmlns="http://
<semantics>
<mtext>Questo è curioso.</mtext>
<annotation-xml encoding=
</semantics>
</math>
It's the same without <semantics> and <annotation-xml>.
Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.
status fixreleased