summaryrefslogtreecommitdiff
path: root/docutils/test/functional/expected/math_output_mathml.html
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2021-05-20 12:22:27 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2021-05-20 12:22:27 +0000
commit2b81f7ddfedb4859cc4d545bc0aafed3f48c8cb8 (patch)
tree6ea2a3fe2ee2816addb4ec4a751c5ba586d646a0 /docutils/test/functional/expected/math_output_mathml.html
parenta6e1d037d605f6d7340170c88372c2a66883c0a5 (diff)
downloaddocutils-2b81f7ddfedb4859cc4d545bc0aafed3f48c8cb8.tar.gz
MathML: support more functions and symbols.
- Support emellished identifiers, - support more functions and symbols from "amsmath", - map HYPHEN-MINUS -> MINUS SIGN and COLON -> RATIO im math context, - simplify doctests with starred import, - dont wrap content in <mrow> when it is inferred by an element (let these elements inherit from "mrow"). - tex2unichar: Fix/extend character mappings. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8748 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/functional/expected/math_output_mathml.html')
-rw-r--r--docutils/test/functional/expected/math_output_mathml.html230
1 files changed, 99 insertions, 131 deletions
diff --git a/docutils/test/functional/expected/math_output_mathml.html b/docutils/test/functional/expected/math_output_mathml.html
index 5cb03d5a1..d5f95a3bf 100644
--- a/docutils/test/functional/expected/math_output_mathml.html
+++ b/docutils/test/functional/expected/math_output_mathml.html
@@ -14,31 +14,27 @@
<p>Docutils supports inline math with the prefix or postfix <span class="docutils literal">:math:</span>
role specificator, <math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mi>n</mi><mo>!</mo><mo>+</mo><mi>sin</mi><mo>&ApplyFunction;</mo><mo stretchy="false">(</mo>
- <msubsup>
- <mi>x</mi><mi>n</mi><mn>2</mn>
- </msubsup>
- <mo stretchy="false">)</mo>
- </mrow>
+ <mi>n</mi><mo>!</mo><mo>+</mo><mi>sin</mi><mo>&ApplyFunction;</mo><mo stretchy="false">(</mo>
+ <msubsup>
+ <mi>x</mi><mi>n</mi><mn>2</mn>
+ </msubsup>
+ <mo stretchy="false">)</mo>
</math> and <math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <msub>
- <mi>A</mi><mtext>c</mtext>
- </msub>
- <mo>=</mo>
- <mfrac>
- <mrow>
- <mi>π</mi>
- </mrow>
- <mrow>
- <mn>4</mn>
- </mrow>
- </mfrac>
- <msup>
- <mi>d</mi><mn>2</mn>
- </msup>
- </mrow>
+ <msub>
+ <mi>A</mi><mtext>c</mtext>
+ </msub>
+ <mo>=</mo>
+ <mfrac>
+ <mrow>
+ <mi>π</mi>
+ </mrow>
+ <mrow>
+ <mn>4</mn>
+ </mrow>
+ </mfrac>
+ <msup>
+ <mi>d</mi><mn>2</mn>
+ </msup>
</math>, as well as displayed math via the
<cite>math</cite> directive:</p>
<div>
@@ -132,9 +128,7 @@ See <a class="reference internal" href="#eq-m">eq:M</a> and <a class="reference
</math>
</div>
<p>is <math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mo stretchy="false">|</mo><mi mathvariant="bold">M</mi><mo stretchy="false">|</mo><mo>=</mo><mi>a</mi><mi>d</mi><mo>-</mo><mi>b</mi><mi>c</mi>
- </mrow>
+ <mo stretchy="false">|</mo><mi mathvariant="bold">M</mi><mo stretchy="false">|</mo><mo>=</mo><mi>a</mi><mi>d</mi><mo>−</mo><mi>b</mi><mi>c</mi>
</math>.</p>
<p>More than one display math block can be put in one math directive.
For example, the following sum and integral with limits:</p>
@@ -220,9 +214,7 @@ directives:</p>
</math>
</div>
<p>with the <em>wave function</em> <math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mi class="capital-greek">Ψ</mi>
- </mrow>
+ <mi class="capital-greek">Ψ</mi>
</math>, describes how the quantum state of a
physical system changes in time.</p>
<dl>
@@ -235,127 +227,103 @@ physical system changes in time.</p>
</colgroup>
<tbody>
<tr><td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mover>
- <mrow>
- <mi>a</mi>
- </mrow>
- <mo>´</mo>
- </mover>
- </mrow>
+ <mover>
+ <mrow>
+ <mi>a</mi>
+ </mrow>
+ <mo>´</mo>
+ </mover>
</math> <span class="docutils literal">\acute{a}</span></p></td>
<td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mover>
- <mrow>
- <mi>t</mi>
- </mrow>
- <mo>˙</mo>
- </mover>
- </mrow>
+ <mover>
+ <mrow>
+ <mi>t</mi>
+ </mrow>
+ <mo>·</mo>
+ </mover>
</math> <span class="docutils literal">\dot{t}</span></p></td>
<td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mover>
- <mrow>
- <mi>γ</mi>
- </mrow>
- <mo>^</mo>
- </mover>
- </mrow>
+ <mover>
+ <mrow>
+ <mi>γ</mi>
+ </mrow>
+ <mo>^</mo>
+ </mover>
</math> <span class="docutils literal"><span class="pre">\hat{\gamma}</span></span></p></td>
</tr>
<tr><td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mover>
- <mrow>
- <mi>a</mi>
- </mrow>
- <mo>`</mo>
- </mover>
- </mrow>
+ <mover>
+ <mrow>
+ <mi>a</mi>
+ </mrow>
+ <mo>`</mo>
+ </mover>
</math> <span class="docutils literal">\grave{a}</span></p></td>
<td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mover>
- <mrow>
- <mi>t</mi>
- </mrow>
- <mo>¨</mo>
- </mover>
- </mrow>
+ <mover>
+ <mrow>
+ <mi>t</mi>
+ </mrow>
+ <mo>··</mo>
+ </mover>
</math> <span class="docutils literal">\ddot{t}</span></p></td>
<td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mover>
- <mrow>
- <mi>α</mi>
- </mrow>
- <mo>˜</mo>
- </mover>
- </mrow>
+ <mover>
+ <mrow>
+ <mi>α</mi>
+ </mrow>
+ <mo>∼</mo>
+ </mover>
</math> <span class="docutils literal"><span class="pre">\tilde{\alpha}</span></span></p></td>
</tr>
<tr><td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mover>
- <mrow>
- <mi>x</mi>
- </mrow>
- <mo>˘</mo>
- </mover>
- </mrow>
+ <mover>
+ <mrow>
+ <mi>x</mi>
+ </mrow>
+ <mo>˘</mo>
+ </mover>
</math> <span class="docutils literal">\breve{x}</span></p></td>
<td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mover>
- <mrow>
- <mi>t</mi>
- </mrow>
- <mo>⃛</mo>
- </mover>
- </mrow>
+ <mover>
+ <mrow>
+ <mi>t</mi>
+ </mrow>
+ <mo>···</mo>
+ </mover>
</math> <span class="docutils literal">\dddot{t}</span></p></td>
<td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mover>
- <mrow>
- <mi>ı</mi>
- </mrow>
- <mo>⃗</mo>
- </mover>
- </mrow>
+ <mover>
+ <mrow>
+ <mi>ı</mi>
+ </mrow>
+ <mo>⃗</mo>
+ </mover>
</math> <span class="docutils literal"><span class="pre">\vec{\imath}</span></span></p></td>
</tr>
<tr><td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mover>
- <mrow>
- <mi>a</mi>
- </mrow>
- <mo>ˇ</mo>
- </mover>
- </mrow>
+ <mover>
+ <mrow>
+ <mi>a</mi>
+ </mrow>
+ <mo>ˇ</mo>
+ </mover>
</math> <span class="docutils literal">\check{a}</span></p></td>
<td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mover>
- <mrow>
- <mi>a</mi>
- </mrow>
- <mo>¯</mo>
- </mover>
- </mrow>
+ <mover>
+ <mrow>
+ <mi>a</mi>
+ </mrow>
+ <mo>-</mo>
+ </mover>
</math> <span class="docutils literal">\bar{a}</span></p></td>
<td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
- <mrow>
- <mover>
- <mrow>
- <mi>R</mi>
- </mrow>
- <mo>⃗</mo>
- </mover>
- </mrow>
+ <mover>
+ <mrow>
+ <mi>R</mi>
+ </mrow>
+ <mo>⃗</mo>
+ </mover>
</math> <span class="docutils literal">\vec{R}</span></p></td>
</tr>
</tbody>
@@ -403,7 +371,7 @@ physical system changes in time.</p>
<munderover>
<mo>∫</mo>
<mrow>
- <mo>-</mo><mo>∞</mo>
+ <mo>−</mo><mo>∞</mo>
</mrow>
<mrow>
<mo>∞</mo>
@@ -432,7 +400,7 @@ physical system changes in time.</p>
<munderover>
<mo>∫</mo>
<mrow>
- <mo>-</mo><mo>∞</mo>
+ <mo>−</mo><mo>∞</mo>
</mrow>
<mrow>
<mo>∞</mo>
@@ -480,7 +448,7 @@ physical system changes in time.</p>
<msub>
<mi>s</mi><mi>δ</mi>
</msub>
- <mo stretchy="false">(</mo><mi>x</mi><mo>-</mo><mi>x</mi><mo>'</mo><mo stretchy="false">)</mo>
+ <mo stretchy="false">(</mo><mi>x</mi><mo>−</mo><mi>x</mi><mo>'</mo><mo stretchy="false">)</mo>
</mtd>
</mtr>
<mtr>
@@ -498,7 +466,7 @@ physical system changes in time.</p>
<msub>
<mi>s</mi><mi>δ</mi>
</msub>
- <mo stretchy="false">(</mo><mi>x</mi><mo>-</mo><mi>x</mi><mo>'</mo><mo stretchy="false">)</mo><mi mathvariant="normal">d</mi><mi>x</mi><mo>'</mo>
+ <mo stretchy="false">(</mo><mi>x</mi><mo>−</mo><mi>x</mi><mo>'</mo><mo stretchy="false">)</mo><mi mathvariant="normal">d</mi><mi>x</mi><mo>'</mo>
</mtd>
</mtr>
</mtable>
@@ -516,7 +484,7 @@ physical system changes in time.</p>
<mtable>
<mtr>
<mtd>
- <mo>-</mo><mn>1</mn>
+ <mo>−</mo><mn>1</mn>
</mtd>
<mtd>
<mi>x</mi><mo>&lt;</mo><mn>0</mn>