... | @@ -291,4 +291,82 @@ Semantically enriched MathML: |
... | @@ -291,4 +291,82 @@ Semantically enriched MathML: |
|
<mi type="identifier" role="latinletter" id="9" parent="14">f</mi>
|
|
<mi type="identifier" role="latinletter" id="9" parent="14">f</mi>
|
|
</mrow>
|
|
</mrow>
|
|
</mrow>
|
|
</mrow>
|
|
</math> |
|
</math>
|
|
\ No newline at end of file |
|
|
|
|
|
|
|
|
|
## Example with sum operator
|
|
|
|
|
|
|
|
Original MathML:
|
|
|
|
```html
|
|
|
|
<math>
|
|
|
|
<msubsup>
|
|
|
|
<mi>∑</mi>
|
|
|
|
<mi>b</mi>
|
|
|
|
<mi>c</mi>
|
|
|
|
</msubsup>
|
|
|
|
<mi>b</mi>
|
|
|
|
<mi>c</mi>
|
|
|
|
<mo>+</mo>
|
|
|
|
<mi>a</mi>
|
|
|
|
</math>
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
Semantic Tree:
|
|
|
|
```html
|
|
|
|
<stree>
|
|
|
|
<infixop role="addition" id="11">
|
|
|
|
+
|
|
|
|
<content>
|
|
|
|
<operator role="addition" id="6">+</operator>
|
|
|
|
</content>
|
|
|
|
<children>
|
|
|
|
<bigop role="sum" id="10">
|
|
|
|
<children>
|
|
|
|
<limboth role="sum" id="3">
|
|
|
|
<children>
|
|
|
|
<largeop role="sum" id="0">∑</largeop>
|
|
|
|
<identifier role="latinletter" font="italic" id="1">b</identifier>
|
|
|
|
<identifier role="latinletter" font="italic" id="2">c</identifier>
|
|
|
|
</children>
|
|
|
|
</limboth>
|
|
|
|
<infixop role="implicit" id="9">
|
|
|
|
|
|
|
|
<content>
|
|
|
|
<operator role="multiplication" id="8"></operator>
|
|
|
|
</content>
|
|
|
|
<children>
|
|
|
|
<identifier role="latinletter" font="italic" id="4">b</identifier>
|
|
|
|
<identifier role="latinletter" font="italic" id="5">c</identifier>
|
|
|
|
</children>
|
|
|
|
</infixop>
|
|
|
|
</children>
|
|
|
|
</bigop>
|
|
|
|
<identifier role="latinletter" font="italic" id="7">a</identifier>
|
|
|
|
</children>
|
|
|
|
</infixop>
|
|
|
|
</stree>
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
Semantically enriched MathML:
|
|
|
|
```html
|
|
|
|
<math type="infixop" role="addition" id="11" children="10,7" content="6">
|
|
|
|
<mrow type="bigop" role="sum" id="10" children="3,9" parent="11">
|
|
|
|
<msubsup type="limboth" role="sum" id="3" children="0,1,2" parent="10">
|
|
|
|
<mi type="largeop" role="sum" id="0" parent="3">∑</mi>
|
|
|
|
<mi type="identifier" role="latinletter" id="1" parent="3">b</mi>
|
|
|
|
<mi type="identifier" role="latinletter" id="2" parent="3">c</mi>
|
|
|
|
</msubsup>
|
|
|
|
<mrow type="infixop" role="implicit" id="9" children="4,5" content="8" parent="10">
|
|
|
|
<mi type="identifier" role="latinletter" id="4" parent="9">b</mi>
|
|
|
|
<mrow type="operator" role="multiplication" id="8" children="" operator="infixop," parent="9"/>
|
|
|
|
<mi type="identifier" role="latinletter" id="5" parent="9">c</mi>
|
|
|
|
</mrow>
|
|
|
|
</mrow>
|
|
|
|
<mo type="operator" role="addition" id="6" operator="infixop,+" parent="11">+</mo>
|
|
|
|
<mi type="identifier" role="latinletter" id="7" parent="11">a</mi>
|
|
|
|
</math>
|
|
|
|
|
|
|
|
```
|
|
|
|
|