Mathml render with matrix and power.

Forums » Dev.Opera » Archived Opera Web Standards Curriculum Discussions

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

16. August 2009, 15:50:41

SpintroniK

Posts: 2

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.

21. August 2009, 09:44:32

White Lynx

Posts: 1978

It 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.

26. August 2009, 18:47:56

SpintroniK

Posts: 2

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

Forums » Dev.Opera » Archived Opera Web Standards Curriculum Discussions