Some non-ASCII characters in MathML elements don't render correctly

Bug #1532323 reported by Francesco Martini on 2016-01-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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/x-mathjax-config"></script>" in the head of the xhtml file does not change anything. Aside from this problem, the rendering of MathML works well.

This is the <math> element in the attached sample epub (it's not mathematically meaningful...):
<math display="block" xmlns="">
  <mtext>Questo è curioso.</mtext>
  <annotation-xml encoding="application/xhtml+xml" name="alternate-representation"><p xmlns="">Questo è curioso</p></annotation-xml>

It's the same without <semantics> and <annotation-xml>.

Francesco Martini (lbjma) wrote :

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

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

Other bug subscribers

Bug attachments