... | ... | @@ -38,12 +38,12 @@ Straightforward translation of the semantic tree into the MathML element, |
|
|
naturally ruins the msubsup element. Here's the semantically enriched MathML:
|
|
|
```html
|
|
|
<math>
|
|
|
<msubsup semantic-type="superscript" semantic-role="latinletter" semantic-id="4" semantic-children="3,2">
|
|
|
<mrow semantic-type="subscript" semantic-role="subsup" semantic-id="3" semantic-children="0,1" semantic-parent="4">
|
|
|
<mi semantic-type="identifier" semantic-role="latinletter" semantic-id="0" semantic-parent="3">a</mi>
|
|
|
<mi semantic-type="identifier" semantic-role="latinletter" semantic-id="1" semantic-parent="3">b</mi>
|
|
|
<msubsup type="superscript" role="latinletter" id="4" children="3,2">
|
|
|
<mrow type="subscript" role="subsup" id="3" children="0,1" parent="4">
|
|
|
<mi type="identifier" role="latinletter" id="0" parent="3">a</mi>
|
|
|
<mi type="identifier" role="latinletter" id="1" parent="3">b</mi>
|
|
|
</mrow>
|
|
|
<mi semantic-type="identifier" semantic-role="latinletter" semantic-id="2" semantic-parent="4">c</mi>
|
|
|
<mi type="identifier" role="latinletter" id="2" parent="4">c</mi>
|
|
|
</msubsup>
|
|
|
</math>
|
|
|
|
... | ... | @@ -79,10 +79,10 @@ Semantic Tree: |
|
|
Semantically enriched MathML:
|
|
|
```html
|
|
|
<math>
|
|
|
<msubsup semantic-type="limboth" semantic-role="sum" semantic-id="3" semantic-children="0,1,2">
|
|
|
<mo semantic-type="largeop" semantic-role="sum" semantic-id="0" semantic-parent="3">∑</mo>
|
|
|
<mi semantic-type="identifier" semantic-role="latinletter" semantic-id="1" semantic-parent="3">b</mi>
|
|
|
<mi semantic-type="identifier" semantic-role="latinletter" semantic-id="2" semantic-parent="3">c</mi>
|
|
|
<msubsup type="limboth" role="sum" id="3" children="0,1,2">
|
|
|
<mo type="largeop" role="sum" id="0" parent="3">∑</mo>
|
|
|
<mi type="identifier" role="latinletter" id="1" parent="3">b</mi>
|
|
|
<mi type="identifier" role="latinletter" id="2" parent="3">c</mi>
|
|
|
</msubsup>
|
|
|
</math>
|
|
|
|
... | ... | |