Dev.Opera - Follow the standards, break the rulesDev.Opera - Follow the standards, break the rules

Login

Lost password?

Forums » Opera Web Standards Curriculum Discussions

Discuss the Opera Web Standards Curriculum. Give us feedback, including suggesting improvements, pointing out errors, asking for help, and requesting more clarity in how to use the course to teach and learn.

Note: You need to login to post in the forums. if you don't have an account you first need to sign up.

By SpintroniK anchor Sunday, 16. August 2009, 15:50:41

avatar

Mathml render with matrix and power.

Hello.

In advance, sorry if this kind of post has already been posted...
I'm currently working on a software thats generates mathml.
Thus, I'm trying to implement some features like matrix power.
I encountered a little problem with this kind of use.
The problem occurs when I use the mfenced tag in msup tag...
Example :
http://www.w3.org/Math/XSL/pmathml2.xml
This is an official test so, this is a good way to produce valid
mathml code and, it shows particulary well the display bug...
Jut compare the picture and the result.

Version
10.00 Beta 3

Build
4537

Platform
Linux

System
i686, 2.6.26-2-686

Qt library
3.3.8b

OS
GNU/Linux Debian GNU/Linux testing (squeeze) 2.6.26-2-686

So, I just wanted to know if this is normal and if this will
be fix in the future version...

Thanks in advance.

Jeremy.

By White Lynx anchor Friday, 21. August 2009, 09:44:32

avatarIt should work if you replace
<msup>
<mfenced open="[" close="]">
<mrow>
<mi>a</mi>
<mo>+</mo>
<mi>b</mi>
</mrow>
</mfenced>
<mn>260</mn>
</msup>

with its equivalent
<msup>
<mrow>
<mfenced open="[" close="]">
<mrow>
<mi>a</mi>
<mo>+</mo>
<mi>b</mi>
</mrow>
</mfenced>
</mrow>
<mn>260</mn>
</msup>


In MathML 2 they are the same because inferred 'mrow' around children of msub are implied. But Opera supports subset of MathML that does not infer mrows automatically. To avoid this limitation just wrap children in mrows explicitly in cases when layout schemata like msub and mfenced are nested.

By SpintroniK anchor Wednesday, 26. August 2009, 18:47:56

avatarOh ! I did't notice this point :s
Thanks it works perfectly now.

Moderators: pepelsbey | dstorey | chrismills | shwetankdixit | brucelawson | iheni | andreasbovens | zibin | mollydotcom