Issue 90553 - import MathML : Pb with ^
Summary: import MathML : Pb with ^
Alias: None
Product: Math
Classification: Application
Component: code (show other issues)
Version: OOo 2.4.0
Hardware: All All
: P3 Trivial with 2 votes (vote)
Target Milestone: 4.0.0
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2008-06-10 13:06 UTC by apourche
Modified: 2014-12-27 16:48 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

Sample MML that show the PB (379 bytes, text/mathml)
2008-06-10 13:08 UTC, apourche
no flags Details
bad view in openOffice (4.25 KB, image/png)
2008-06-10 13:10 UTC, apourche
no flags Details
Good View in Firefox (20.00 KB, image/png)
2008-06-10 13:11 UTC, apourche
no flags Details
Patch to fix all simple accent problems from Libre Office (2.08 KB, patch)
2012-07-01 14:57 UTC, jrincayc
no flags Details | Diff
simple accents (1.40 KB, application/mathml+xml)
2012-08-08 16:38 UTC, Regina Henschel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description apourche 2008-06-10 13:06:39 UTC
This equation isn't imported correctly in OO because of the char ^:
<math xmlns="">
    <mstyle fontfamily="serif">
                    <mo accent="true">^</mo>
Comment 1 apourche 2008-06-10 13:08:30 UTC
Created attachment 54359 [details]
Sample MML that show the PB
Comment 2 apourche 2008-06-10 13:10:54 UTC
Created attachment 54360 [details]
bad view in openOffice
Comment 3 apourche 2008-06-10 13:11:19 UTC
Created attachment 54361 [details]
Good View in Firefox
Comment 4 michael.ruess 2008-06-11 13:24:34 UTC
MRU->TL: the import of the attached MML gives "font serif t csup  widehat_A",
but it should be more sth. like "font serif {hat t}_A". The csup is not
necessary because of widehat; also the widehatis in wrong position.
Comment 5 jrincayc 2010-02-24 18:52:32 UTC
Note that this bug can be triggered by opening a ODT file that comes from
Microsoft Word.  

This has also been reported in the redhat bugzilla
Comment 6 jrincayc 2012-06-30 01:51:45 UTC
I created and put up a patch for this bug for libreoffice. I would guess that it can be used for Open Office as well:
Comment 7 Regina Henschel 2012-06-30 12:47:24 UTC
@jrincayc: Your patch is appreciated. Please attach it here and assure, that you give the patch under Apache License, Version 2.0 (
Comment 8 jrincayc 2012-07-01 14:57:12 UTC
Created attachment 78525 [details]
Patch to fix all simple accent problems from Libre Office

Patch created for Libre Office, but I think it should probably work with Open Office, and I am giving the patch under Apache License, Version 2.0.
Comment 9 Regina Henschel 2012-08-08 15:09:40 UTC
I have tried LO3.6 and it does not show the formula as I can see it in the browser. Isn't this patch applied to LO3.6?

I have applied the patch to my local working copy of AOO. There too I still see the wrong formula.

Has someone verified, that the patch works as intended?

What I did:
 Open a new formula document.
 Tools > Import Formula...
 Choose the file attached to this bug.
Comment 10 Regina Henschel 2012-08-08 16:38:11 UTC
Created attachment 78883 [details]
simple accents

The patch does not solve the bad rendering of the first attachment, but is solves wrong import for those simple accents, which can be applied from the 'Attributes' category in Math. The attached file contains a collection of that characters.
Comment 11 SVN Robot 2012-08-08 17:17:00 UTC
"regina" committed SVN revision 1370843 into trunk:
#i90553# fix simple accents in MathML importPatch by: Joshua Cogliati;Review ...
Comment 12 2013-07-10 15:07:09 UTC
adjusted target to version that will contain the fix
Comment 13 Regina Henschel 2014-12-27 16:48:36 UTC
Single accents are good, but the initial document is still not rendered correctly. There seems to be an additional problem here.