ASCIIMathML Enrichment Demo
+Input
++ This demo is similar to the + MathML Semantic Enrichnment Demo + but uses + ASCIIMathML as + an alternative input format, which provides real-time feedback as you + type but can often generate MathML with odd semantics in it. + SnuggleTeX includes some functionality that can to convert this raw MathML into + something equivalent to its own MathML output, thereby allowing you to + semantically enrich it in + certain simple cases, making ASCIIMathML a possibly viable input format + for simple semantic maths. + +
++ To try the demo, simply enter some some ASCIIMathML into the box below. + You should see a real time preview of this while you type. + Then hit Go! to use SnuggleTeX to semantically enrich your + input. + +
+ +Live Preview
++ This is a MathML rendering of your input, generated by ASCIIMathML as you type. + +
++ This is the underlying MathML source generated by ASCIIMathML, again updated in real time. + +
+Enhanced Presentation MathML
++ This shows the result of attempting to enrich the raw Presentation MathML + generated by ASCIIMathML: + +
<math xmlns="http://www.w3.org/1998/Math/MathML"> + <mrow> + <mrow> + <mn>2</mn> + <mo>*</mo> + <mi>x</mi> + </mrow> + <mo>+</mo> + <mrow> + <mn>3</mn> + <mo>*</mo> + <mi>y</mi> + </mrow> + </mrow> +</math>
Content MathML
++ This shows the result of an attempted + conversion to Content MathML: + +
<math xmlns="http://www.w3.org/1998/Math/MathML"> + <apply> + <plus/> + <apply> + <times/> + <cn>2</cn> + <ci>x</ci> + </apply> + <apply> + <times/> + <cn>3</cn> + <ci>y</ci> + </apply> + </apply> +</math>
Maxima Input Form
++ This shows the result of an attempted + conversion to Maxima Input syntax: + +
(2 * x) + (3 * y)
MathML Parallel Markup
++ This shows the enhanced Presentation MathML with other forms encapsulated + as annotations: + +
<math xmlns="http://www.w3.org/1998/Math/MathML"> + <semantics> + <mrow> + <mrow> + <mn>2</mn> + <mo>*</mo> + <mi>x</mi> + </mrow> + <mo>+</mo> + <mrow> + <mn>3</mn> + <mo>*</mo> + <mi>y</mi> + </mrow> + </mrow> + <annotation-xml encoding="MathML-Content"> + <apply> + <plus/> + <apply> + <times/> + <cn>2</cn> + <ci>x</ci> + </apply> + <apply> + <times/> + <cn>3</cn> + <ci>y</ci> + </apply> + </apply> + </annotation-xml> + <annotation encoding="ASCIIMathInput"/> + <annotation encoding="Maxima">(2 * x) + (3 * y)</annotation> + </semantics> +</math>
