summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Peveler <matt.peveler@gmail.com>2021-02-06 04:36:35 +0000
committerMatthew Peveler <matt.peveler@gmail.com>2021-02-06 05:16:35 +0000
commitff6518096403927976da5b34901a73d98c730d19 (patch)
treee22d889e30f2aa5e057656aac4a9d8f5a957683c
parente7443d7be5b518ddf0ee660cd97c873d3786eac4 (diff)
downloadasciidoc-py3-ff6518096403927976da5b34901a73d98c730d19.tar.gz
fix failing latexmathml tests
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
-rw-r--r--tests/data/asciimath-html5.html (renamed from tests/data/asciimathml-html5.html)30
-rw-r--r--tests/data/asciimath-xhtml11.html (renamed from tests/data/asciimathml-xhtml11.html)30
-rw-r--r--tests/data/latexmathml-html5.html8
-rw-r--r--tests/data/latexmathml-xhtml11.html8
-rw-r--r--tests/testasciidoc.conf2
5 files changed, 37 insertions, 41 deletions
diff --git a/tests/data/asciimathml-html5.html b/tests/data/asciimath-html5.html
index 0586cf8..753fef3 100644
--- a/tests/data/asciimathml-html5.html
+++ b/tests/data/asciimath-html5.html
@@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="AsciiDoc test">
-<title>ASCIIMathML Formulae</title>
+<title>ASCIIMath Formulae</title>
<style type="text/css">
/* Shared CSS for AsciiDoc xhtml11 and html5 backends */
@@ -1674,20 +1674,20 @@ else
</head>
<body class="article">
<div id="header">
-<h1>ASCIIMathML Formulae</h1>
+<h1>ASCIIMath Formulae</h1>
</div>
<div id="content">
<div id="preamble">
<div class="sectionbody">
-<div class="paragraph"><p><a href="http://www1.chapman.edu/~jipsen/mathml/asciimath.html">ASCIIMathML</a> is
-a clever JavaScript written by Peter Jipsen that dynamically
-transforms mathematical formulae written in a wiki-like plain text
-markup to <a href="http://www.w3.org/Math/">MathML</a> markup which is displayed as
+<div class="paragraph"><p><a href="http://asciimath.org/">ASCIIMath</a> is a clever JavaScript written by
+Peter Jipsen that dynamically transforms mathematical formulae
+written in a wiki-like plain text markup to
+<a href="https://www.w3.org/Math/">MathML</a> markup which is displayed as
standard mathematical notation by the Web Browser. See <em>Appendix E</em>
in the AsciiDoc User Guide for more details.</p></div>
-<div class="paragraph"><p>The AsciiDoc <span class="monospaced">xhtml11</span> backend supports ASCIIMathML&#8201;&#8212;&#8201;it links the
-ASCIIMathML script and escapes ASCIIMathML delimiters and special
-characters to yield valid XHTML. To use ASCIIMathML:</p></div>
+<div class="paragraph"><p>The AsciiDoc <span class="monospaced">xhtml11</span> backend supports ASCIIMath&#8201;&#8212;&#8201;it links the
+ASCIIMath script and escapes ASCIIMath delimiters and special
+characters to yield valid XHTML. To use ASCIIMath:</p></div>
<div class="olist arabic"><ol class="arabic">
<li>
<p>
@@ -1697,12 +1697,12 @@ Include the <span class="monospaced">-a asciimath</span> command-line option whe
</li>
<li>
<p>
-Enclose ASCIIMathML formulas inside math or double-dollar
+Enclose ASCIIMath formulas inside math or double-dollar
passthroughs or in math passthrough blocks.
</p>
</li>
</ol></div>
-<div class="paragraph"><p>Here&#8217;s the <a href="asciimathml.txt">AsciiDoc source</a> that generated this
+<div class="paragraph"><p>Here&#8217;s the <a href="asciimath.txt">AsciiDoc source</a> that generated this
page.</p></div>
<div class="ulist"><div class="title">NOTE</div><ul>
<li>
@@ -1715,17 +1715,15 @@ When you use the <span class="monospaced">asciimath:[]</span> inline macro you n
</li>
<li>
<p>
-See the
- <a href="http://www1.chapman.edu/~jipsen/mathml/asciimath.html">ASCIIMathML</a>
- website for ASCIIMathML documentation and the latest version.
+See the <a href="http://asciimath.org">ASCIIMath</a> website for ASCIIMath
+ documentation and the latest version.
</p>
</li>
<li>
<p>
If the formulas don&#8217;t appear to be correct you probably need to
install the correct math fonts (see the
- <a href="http://www1.chapman.edu/~jipsen/mathml/asciimath.html">ASCIIMathML</a>
- website for details).
+ <a href="http://asciimath.org">ASCIIMath</a> website for details).
</p>
</li>
<li>
diff --git a/tests/data/asciimathml-xhtml11.html b/tests/data/asciimath-xhtml11.html
index ce43b24..3ce4312 100644
--- a/tests/data/asciimathml-xhtml11.html
+++ b/tests/data/asciimath-xhtml11.html
@@ -5,7 +5,7 @@
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="generator" content="AsciiDoc test" />
-<title>ASCIIMathML Formulae</title>
+<title>ASCIIMath Formulae</title>
<style type="text/css">
/* Shared CSS for AsciiDoc xhtml11 and html5 backends */
@@ -1676,20 +1676,20 @@ else
</head>
<body class="article">
<div id="header">
-<h1>ASCIIMathML Formulae</h1>
+<h1>ASCIIMath Formulae</h1>
</div>
<div id="content">
<div id="preamble">
<div class="sectionbody">
-<div class="paragraph"><p><a href="http://www1.chapman.edu/~jipsen/mathml/asciimath.html">ASCIIMathML</a> is
-a clever JavaScript written by Peter Jipsen that dynamically
-transforms mathematical formulae written in a wiki-like plain text
-markup to <a href="http://www.w3.org/Math/">MathML</a> markup which is displayed as
+<div class="paragraph"><p><a href="http://asciimath.org/">ASCIIMath</a> is a clever JavaScript written by
+Peter Jipsen that dynamically transforms mathematical formulae
+written in a wiki-like plain text markup to
+<a href="https://www.w3.org/Math/">MathML</a> markup which is displayed as
standard mathematical notation by the Web Browser. See <em>Appendix E</em>
in the AsciiDoc User Guide for more details.</p></div>
-<div class="paragraph"><p>The AsciiDoc <code>xhtml11</code> backend supports ASCIIMathML&#8201;&#8212;&#8201;it links the
-ASCIIMathML script and escapes ASCIIMathML delimiters and special
-characters to yield valid XHTML. To use ASCIIMathML:</p></div>
+<div class="paragraph"><p>The AsciiDoc <code>xhtml11</code> backend supports ASCIIMath&#8201;&#8212;&#8201;it links the
+ASCIIMath script and escapes ASCIIMath delimiters and special
+characters to yield valid XHTML. To use ASCIIMath:</p></div>
<div class="olist arabic"><ol class="arabic">
<li>
<p>
@@ -1699,12 +1699,12 @@ Include the <code>-a asciimath</code> command-line option when you run
</li>
<li>
<p>
-Enclose ASCIIMathML formulas inside math or double-dollar
+Enclose ASCIIMath formulas inside math or double-dollar
passthroughs or in math passthrough blocks.
</p>
</li>
</ol></div>
-<div class="paragraph"><p>Here&#8217;s the <a href="asciimathml.txt">AsciiDoc source</a> that generated this
+<div class="paragraph"><p>Here&#8217;s the <a href="asciimath.txt">AsciiDoc source</a> that generated this
page.</p></div>
<div class="ulist"><div class="title">NOTE</div><ul>
<li>
@@ -1717,17 +1717,15 @@ When you use the <code>asciimath:[]</code> inline macro you need to escape <code
</li>
<li>
<p>
-See the
- <a href="http://www1.chapman.edu/~jipsen/mathml/asciimath.html">ASCIIMathML</a>
- website for ASCIIMathML documentation and the latest version.
+See the <a href="http://asciimath.org">ASCIIMath</a> website for ASCIIMath
+ documentation and the latest version.
</p>
</li>
<li>
<p>
If the formulas don&#8217;t appear to be correct you probably need to
install the correct math fonts (see the
- <a href="http://www1.chapman.edu/~jipsen/mathml/asciimath.html">ASCIIMathML</a>
- website for details).
+ <a href="http://asciimath.org">ASCIIMath</a> website for details).
</p>
</li>
<li>
diff --git a/tests/data/latexmathml-html5.html b/tests/data/latexmathml-html5.html
index dae63c0..b3f194f 100644
--- a/tests/data/latexmathml-html5.html
+++ b/tests/data/latexmathml-html5.html
@@ -1964,18 +1964,18 @@ else
<div id="content">
<div id="preamble">
<div class="sectionbody">
-<div class="paragraph"><p><a href="http://www.maths.nottingham.ac.uk/personal/drw/lm.html">LaTeXMathML</a>
+<div class="paragraph"><p><a href="https://www.maths.nottingham.ac.uk/plp/pmadw/lm.html">LaTeXMathML</a>
capability has been added to AsciiDoc for users who are more familar
with or prefer LaTeX math formulas to the
-<a href="https://asciidoc.org/asciimathml.html">ASCIIMathML</a>
+<a href="https://asciidoc.org/asciimath.html">ASCIIMath</a>
notation.</p></div>
<div class="paragraph"><p><em>LaTeXMathML</em> is a derivative of
-<a href="https://asciidoc.org/asciimathml.html">ASCIIMathML</a>&#8201;&#8212;&#8201;in
+<a href="https://asciidoc.org/asciimath.html">ASCIIMath</a>&#8201;&#8212;&#8201;in
terms of usage the only difference it that you use the <span class="monospaced">latexmath</span>
attribute instead of the <span class="monospaced">asciimath</span> attribute.</p></div>
<div class="paragraph"><p><em>LaTeXMathML</em> processes LaTeX math formulas not arbitrary LaTeX (as
<span class="monospaced">dblatex(1)</span> does). See the
-<a href="http://www.maths.nottingham.ac.uk/personal/drw/lm.html">LaTeXMathML</a>
+<a href="https://www.maths.nottingham.ac.uk/plp/pmadw/lm.html">LaTeXMathML</a>
website for details.</p></div>
<div class="paragraph"><p>Here&#8217;s the <a href="latexmathml.txt">AsciiDoc source</a> that generated this
page.</p></div>
diff --git a/tests/data/latexmathml-xhtml11.html b/tests/data/latexmathml-xhtml11.html
index 64140b4..c75c2ff 100644
--- a/tests/data/latexmathml-xhtml11.html
+++ b/tests/data/latexmathml-xhtml11.html
@@ -1966,18 +1966,18 @@ else
<div id="content">
<div id="preamble">
<div class="sectionbody">
-<div class="paragraph"><p><a href="http://www.maths.nottingham.ac.uk/personal/drw/lm.html">LaTeXMathML</a>
+<div class="paragraph"><p><a href="https://www.maths.nottingham.ac.uk/plp/pmadw/lm.html">LaTeXMathML</a>
capability has been added to AsciiDoc for users who are more familar
with or prefer LaTeX math formulas to the
-<a href="https://asciidoc.org/asciimathml.html">ASCIIMathML</a>
+<a href="https://asciidoc.org/asciimath.html">ASCIIMath</a>
notation.</p></div>
<div class="paragraph"><p><em>LaTeXMathML</em> is a derivative of
-<a href="https://asciidoc.org/asciimathml.html">ASCIIMathML</a>&#8201;&#8212;&#8201;in
+<a href="https://asciidoc.org/asciimath.html">ASCIIMath</a>&#8201;&#8212;&#8201;in
terms of usage the only difference it that you use the <code>latexmath</code>
attribute instead of the <code>asciimath</code> attribute.</p></div>
<div class="paragraph"><p><em>LaTeXMathML</em> processes LaTeX math formulas not arbitrary LaTeX (as
<code>dblatex(1)</code> does). See the
-<a href="http://www.maths.nottingham.ac.uk/personal/drw/lm.html">LaTeXMathML</a>
+<a href="https://www.maths.nottingham.ac.uk/plp/pmadw/lm.html">LaTeXMathML</a>
website for details.</p></div>
<div class="paragraph"><p>Here&#8217;s the <a href="latexmathml.txt">AsciiDoc source</a> that generated this
page.</p></div>
diff --git a/tests/testasciidoc.conf b/tests/testasciidoc.conf
index f0d7dd4..4566d7c 100644
--- a/tests/testasciidoc.conf
+++ b/tests/testasciidoc.conf
@@ -153,7 +153,7 @@ ASCIIMathML
['xhtml11','html5']
% source
-../doc/asciimathml.txt
+../doc/asciimath.txt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
LaTeXMathML