Issue 111888 - problem using nested superscripts imported from a document with MathML
Summary: problem using nested superscripts imported from a document with MathML
Status: CONFIRMED
Alias: None
Product: Math
Classification: Application
Component: code (show other issues)
Version: OOO320m19
Hardware: Unknown Windows Vista
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: needmoreinfo, oooqa
: 113497 (view as issue list)
Depends on:
Blocks:
 
Reported: 2010-05-27 20:57 UTC by eastern_man
Modified: 2014-12-26 19:37 UTC (History)
5 users (show)

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


Attachments
This is created in Amaya (608 bytes, application/mathml+xml)
2010-05-28 15:02 UTC, eastern_man
no flags Details
Another problem with fractions has actually the same cause: a problem with brackets addition. (576 bytes, text/plain)
2010-05-28 16:38 UTC, eastern_man
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description eastern_man 2010-05-27 20:57:36 UTC
It is known that in Writer's formulas a construction like a^b^c causes an error. 
However there is a solution if you work with Writer: to type a^{b^c} (see http://
user.services.openoffice.org/en/forum/viewtopic.php?
f=12&t=29032&p=132273&hilit=subscript#p132273 ).

But if Writer opens a document (I tried an xml document with MathML created by 
Amaya) it converts a MathML expression (superscript of superscript) to "a^b^c" 
form so it is doesn't work.

So the thing to make the convertion make it "a^{b^c}".
Comment 1 eric.bachard 2010-05-28 07:42:10 UTC
Added me on CC
Comment 2 eric.savary 2010-05-28 08:56:07 UTC
@MRU: I don't know if not allowing a^b^c (on edit) is a bug, a missing feature
or ok.
In case of a bug, this should be fixed. A feature, this issue is also an
enhancement for we cannot import correctly what we don't allow while editing.

@eastern_man: please attach this MathML document.
Comment 3 Joost Andrae 2010-05-28 10:24:55 UTC
I see this as a missing feature

W3C.org's browser Amaya is to be seen as reference implementation for MathML.
From my POV if the syntax a^b^c is allowed in Amaya then OOo's Math application
should be able parse this token as well. But I cannot find a reference within
the MathML standard (see http://www.w3.org/standards/webdesign/math) that
validates the string a^b^c as valid formula

Please attach a valid MathML source code snippet to this issue which shows the
superscript of a superscript

JA->TL: please take a look
Comment 4 eric.bachard 2010-05-28 10:31:24 UTC
@TL : FYI, there is a student working on improve Math, for the Google summer of code, and IMHO, he's 
working on similar improvement.
Comment 5 thomas.lange 2010-05-28 10:42:12 UTC
.
Comment 6 michael.ruess 2010-05-28 10:44:09 UTC
MRU->TL: as long as Math is not able to process nested exponents, the import of
constructs like a^b^c should better result in a^{b^c}.
Comment 7 eastern_man 2010-05-28 15:02:23 UTC
Created attachment 69689 [details]
This is created in Amaya
Comment 8 eastern_man 2010-05-28 16:36:00 UTC
@ja: "syntax a^b^c is allowed in Amaya" sounds rather strange since such syntax 
is used in OOo but not in MathML documents.

The thing is that "a^b^c" is a result of convertion from a .mml file and this 
does not depend on the creating program (as I understand). MathML, in contrast 
to OOo formula syntax, does not use any "brackets" since tags are "brackets" 
themselves.

So more than that, I expect more mistakes in covertion from MathML if OOo does 
not put necessary brackets. I'll try.. Yes, try the second one, 
"fractions.mml". In Amaya (in MathML) fraction "a/d" is outside the integral 
and the "c/b" one is inside. OOo converts it to

a over d  int csub {c + d} csup {a + b} c over b func dx

and OOo somewhy puts the integral with boundaries and "c" into the numerator. 
The problem wouldn't have occured if OOo had added brackets like this:

a over d  int csub {c + d} csup {a + b} {c over b func dx}

So that's a more general bug.
Comment 9 eastern_man 2010-05-28 16:38:50 UTC
Created attachment 69691 [details]
Another problem with fractions has actually the same cause: a problem with brackets addition.
Comment 10 jbf.faure 2010-05-29 07:30:38 UTC
Add me to cc.
Comment 11 michael.ruess 2010-07-28 14:43:25 UTC
*** Issue 113497 has been marked as a duplicate of this issue. ***
Comment 12 Regina Henschel 2014-12-26 19:36:03 UTC
Comment on attachment 69689 [details]
This is created in Amaya

correct MIME
Comment 13 Regina Henschel 2014-12-26 19:37:46 UTC
(In reply to eastern_man from comment #9)
> Created attachment 69691 [details]
> Another problem with fractions has actually the same cause: a problem with
> brackets addition.

Please don't mix problems. Bad import of fractions is already covered by issue 84002.