Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Wiki
  • Semantic Embedding Examples

Semantic Embedding Examples · Changes

Page history
Updated Semantic Embedding Examples (markdown) authored Apr 14, 2015 by Volker Sorge's avatar Volker Sorge
Show whitespace changes
Inline Side-by-side
Semantic-Embedding-Examples.md
View page @ 3dbe72a6
Some simple examples of embedded semantic tree. Note that for readability the attributes have been abbreviated Some simple examples of embedded semantic tree. Note that for readability the attributes have been abbreviated
## Single Operation
Original MathML: Original MathML:
```html ```html
<math> <math>
...@@ -45,6 +47,7 @@ Semantically enriched MathML: ...@@ -45,6 +47,7 @@ Semantically enriched MathML:
``` ```
## Operation and Relation
Original MathML: Original MathML:
```html ```html
...@@ -99,3 +102,38 @@ Enriched MathML: ...@@ -99,3 +102,38 @@ Enriched MathML:
</mrow> </mrow>
</math> </math>
``` ```
## Multiple Operations
```html
<math>
<mi>a</mi>
<mo>+</mo>
<mi>b</mi>
<mo>-</mo>
<mi>c</mi>
<mo>+</mo>
<mi>d</mi>
</math>
```
```html
<math>
<mrow semantic-type="infixop" semantic-role="addition" id="9" semantic-content="5" semantic-children="8,6">
<mrow semantic-type="infixop" semantic-role="subtraction" id="8" semantic-content="3" semantic-children="7,4" semantic-parent="8">
<mrow semantic-type="infixop" semantic-role="addition" id="7" semantic-content="1" semantic-children="0,2" semantic-parent="7">
<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>
<mi semantic-type="identifier" semantic-role="latinletter" id="2" semantic-parent="2">b</mi>
</mrow>
<mo semantic-type="operator" semantic-role="subtraction" id="3" semantic-operator="infixop,-" semantic-parent="3">-</mo>
<mi semantic-type="identifier" semantic-role="latinletter" id="4" semantic-parent="4">c</mi>
</mrow>
<mo semantic-type="operator" semantic-role="addition" id="5" semantic-operator="infixop,+" semantic-parent="5">+</mo>
<mi semantic-type="identifier" semantic-role="latinletter" id="6" semantic-parent="6">d</mi>
</mrow>
</math>
```
Clone repository

MathJax Wiki

  • Contributing
    • Contributor License Agreement etc
    • Quick guide to translating mathjax
  • Development
    • Development Process
      • Release Process Checklist
      • Documentation Update Process
      • Source Control Policies
    • Design Documents
      • MathJax Roadmap
      • CDN Hosting
        • CDN requirements
        • CDN Hosting at Google Cloud Storage
      • Performance Discussion
      • Profiling and Diagnostics Tools
      • Documentation generation guide
      • Testing
        • Platforms supported
        • Test Machines
  • MathJax web presence