Bug 75171

Summary: normal/italic is totally wrong on import of .mml file
Product: LibreOffice Reporter: Regina Henschel <rb.henschel>
Component: Formula EditorAssignee: Not Assigned <libreoffice-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium CC: fred.wang, serval2412
Version: 4.3.0.0.alpha0+ Master   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Source with mathvariant="normal" attribute

Description Regina Henschel 2014-02-18 19:21:30 UTC
Created attachment 94303 [details]
Source with mathvariant="normal" attribute

Open the attached file. It will open in Math.
The formula should look like
  int {func e^x nospace{nitalic d x}}
and does so in browser.
But LibreOffice imports it as
 { int  {italic "e"^italic "x" {italic "d" italic "x"}}}

It does not simple ignore the mathvariant="normal" attribute (which is the bug 124259 in Apache OpenOffice), but generates totally wrong formula.
1.
e, x and d are marked up as 'identifier' in the the .mml file. But LibreOffice converts them to text. Doing so, can result in the wrong font.
2.
e and d are explicitly marked with mathvariant="normal" in the file, but LibreOffice forces them to italic.
Comment 1 Julien Nabet 2014-02-18 21:35:42 UTC
Frédéric: I thought you might be interested in this one.
Comment 2 Frédéric Wang 2014-02-18 22:18:34 UTC
Last time I checked, LibreOffice MathML import was very limited and had many bugs (and I'm not sure we can preserve all the info when converting MathML => StarMath). Personally, I'm not really willing to work on MathML import and think it would probably be best to switch to MathML as the internal language.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.