From ba302bfa92f467b3459df5df3a31041166c20f48 Mon Sep 17 00:00:00 2001 From: milde Date: Tue, 10 Mar 2015 13:47:26 +0000 Subject: [PATCH] Use xhtml writer for MathML test: produce valid XHTML+MathML document. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7813 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- test/functional/expected/math_output_mathml.xhtml | 74 +++++++++++------------ test/functional/tests/math_output_mathml.py | 6 +- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/test/functional/expected/math_output_mathml.xhtml b/test/functional/expected/math_output_mathml.xhtml index 88936d0a9..dd8b0489c 100644 --- a/test/functional/expected/math_output_mathml.xhtml +++ b/test/functional/expected/math_output_mathml.xhtml @@ -1,17 +1,17 @@ - - + + Mathematics - +

Mathematics

-

Docutils supports inline math with the prefix or postfix :math: +

Docutils supports inline math with the prefix or postfix :math: role specificator, n!+sin(xn2) and Ac= @@ -38,7 +38,7 @@ role specificator, number of apples 7

-

Equations can be labeled with a reference name using the :name: option. +

Equations can be labeled with a reference name using the :name: option. See eq:M and eq:schrödinger below.

The determinant of the matrix

@@ -93,54 +93,54 @@ directives:

with the wave function Ψ, describes how the quantum state of a physical system changes in time.

-
+
Math-Accents:
-
+
- - - + - + +γ^\hat{\gamma}

- - + - + +α˜\tilde{\alpha}

- - + - + +ı\vec{\imath}

- - + - + +R\vec{R}

+ +

-a´ \acute{a}

+a´ \acute{a}

-t˙ \dot{t}

+t˙ \dot{t}

-γ^ \hat{\gamma}

+

-a` \grave{a}

+a` \grave{a}

-t¨ \ddot{t}

+t¨ \ddot{t}

-α˜ \tilde{\alpha}

+

-x˘ \breve{x}

+x˘ \breve{x}

-t \dddot{t}

+t \dddot{t}

-ı \vec{\imath}

+

-aˇ \check{a}

+aˇ \check{a}

-a¯ \bar{a}

+a¯ \bar{a}

-R \vec{R}

@@ -172,8 +172,8 @@ physical system changes in time.

x.

Math split over two lines: If a double backslash is detected outside a -\begin{...} \end{...} pair, the math code is wrapped in an AMSmath -align environment:

+\begin{...} \end{...} pair, the math code is wrapped in an AMSmath +align environment:

@@ -187,7 +187,7 @@ physical system changes in time.

=s in(x')sδ(x-x')dx'
-

Cases ("manually", with matrix environment):

+

Cases ("manually", with matrix environment):

@@ -202,8 +202,8 @@ physical system changes in time.

1 x>0
-

Cases with the AMSmath cases environment (not (yet) supported by -HTML writers with --math-output=MathML):

+

Cases with the AMSmath cases environment (not (yet) supported by +HTML writers with --math-output=MathML):

System Message: ERROR/3 (functional/input/data/math.txt, line 107)

diff --git a/test/functional/tests/math_output_mathml.py b/test/functional/tests/math_output_mathml.py index cdcc75c45..9066e663c 100644 --- a/test/functional/tests/math_output_mathml.py +++ b/test/functional/tests/math_output_mathml.py @@ -5,10 +5,10 @@ test_destination = "math_output_mathml.xhtml" # Keyword parameters passed to publish_file. reader_name = "standalone" parser_name = "rst" -writer_name = "html" +writer_name = "xhtml" # Settings settings_overrides['math_output'] = 'MathML' # local copy of default stylesheet: -settings_overrides['stylesheet_path'] = ( - 'functional/input/data/html4css1.css') +settings_overrides['stylesheet_path'] = ( + 'functional/input/data/html4-base.css') -- 2.11.4.GIT