... | ... | @@ -230,14 +230,12 @@ Semantically enriched MathML: |
|
|
|
|
|
While in the semantic tree a new content operator is introduced, there is no equivalent MathML element. Do empty mrows really matter? This is the rendering:
|
|
|
|
|
|
|
|
|
Original MathML:
|
|
|
<math>
|
|
|
<mi>a</mi>
|
|
|
<mi>b</mi>
|
|
|
</math>
|
|
|
|
|
|
|
|
|
Semantically enriched MathML:
|
|
|
<math>
|
|
|
<mrow semantic-type="infixop" semantic-role="implicit" id="3" semantic-content="2" semantic-children="0,1">
|
... | ... | @@ -246,3 +244,44 @@ Semantically enriched MathML: |
|
|
<mi semantic-type="identifier" semantic-role="latinletter" id="1" semantic-parent="1">b</mi>
|
|
|
</mrow>
|
|
|
</math>
|
|
|
|
|
|
|
|
|
The more complex example from above.
|
|
|
|
|
|
Original MathML:
|
|
|
<math>
|
|
|
<mi>a</mi>
|
|
|
<mo>+</mo>
|
|
|
<mi>b</mi>
|
|
|
<mo>∘</mo>
|
|
|
<mi>c</mi>
|
|
|
<mi>d</mi>
|
|
|
<mo>+</mo>
|
|
|
<mi>e</mi>
|
|
|
<mo>∘</mo>
|
|
|
<mi>f</mi>
|
|
|
</math>
|
|
|
|
|
|
|
|
|
Semantically enriched MathML:
|
|
|
<math>
|
|
|
<mrow semantic-type="infixop" semantic-role="addition" id="10" semantic-content="1,6" semantic-children="0,13,14">
|
|
|
<mi semantic-type="identifier" semantic-role="latinletter" id="0" semantic-parent="0">a</mi>
|
|
|
<mo semantic-type="operator" semantic-role="addition" id="1" semantic-operator="infixop,+" semantic-parent="1">+</mo>
|
|
|
<mrow semantic-type="infixop" semantic-role="multiplication" id="13" semantic-content="3" semantic-children="2,12" semantic-parent="13">
|
|
|
<mi semantic-type="identifier" semantic-role="latinletter" id="2" semantic-parent="2">b</mi>
|
|
|
<mo semantic-type="operator" semantic-role="multiplication" id="3" semantic-operator="infixop,∘" semantic-parent="3">∘</mo>
|
|
|
<mrow semantic-type="infixop" semantic-role="implicit" id="12" semantic-content="11" semantic-children="4,5" semantic-parent="12">
|
|
|
<mi semantic-type="identifier" semantic-role="latinletter" id="4" semantic-parent="4">c</mi>
|
|
|
<mrow semantic-type="operator" semantic-role="multiplication" id="11" semantic-children="" semantic-operator="infixop," semantic-parent="11"/>
|
|
|
<mi semantic-type="identifier" semantic-role="latinletter" id="5" semantic-parent="5">d</mi>
|
|
|
</mrow>
|
|
|
</mrow>
|
|
|
<mo semantic-type="operator" semantic-role="addition" id="6" semantic-operator="infixop,+" semantic-parent="6">+</mo>
|
|
|
<mrow semantic-type="infixop" semantic-role="multiplication" id="14" semantic-content="8" semantic-children="7,9" semantic-parent="14">
|
|
|
<mi semantic-type="identifier" semantic-role="latinletter" id="7" semantic-parent="7">e</mi>
|
|
|
<mo semantic-type="operator" semantic-role="multiplication" id="8" semantic-operator="infixop,∘" semantic-parent="8">∘</mo>
|
|
|
<mi semantic-type="identifier" semantic-role="latinletter" id="9" semantic-parent="9">f</mi>
|
|
|
</mrow>
|
|
|
</mrow>
|
|
|
</math> |