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

Bug #1532323 reported by Francesco Martini
6
This bug affects 1 person
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/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="http://www.w3.org/1998/Math/MathML">
 <semantics>
  <mtext>Questo è curioso.</mtext>
  <annotation-xml encoding="application/xhtml+xml" name="alternate-representation"><p xmlns="http://www.w3.org/1999/xhtml">Questo è curioso</p></annotation-xml>
 </semantics>
</math>

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

Revision history for this message
Francesco Martini (lbjma) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

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
Revision history for this message
Rita Bikkerman (ritabikkerman) wrote :

I had been struggling with my math assignments for quite some time and was desperately searching for a reliable solution. That's when I stumbled upon this site https://myhomeworkdone.com/do-my-math.html. I must say, I was pleasantly surprised by the quality of service provided here. The team of experts not only helped me understand the concepts better but also delivered my assignments on time. The best part is that they offer a wide range of math topics as well. If you are looking for assistance with your math homework, I would definitely recommend checking out this site.

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

Other bug subscribers

Bug attachments

Remote bug watches

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