I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-03-25 18:43:39-07 by rsthacker in response to 10324
Re: Need more complete document aboutg how to use ASCIIMathML
The following worked for me in a Text::Restructured:

.. mathml:: newsymbol{"|"}{"∣" "\mid"} a | b
.. mathml:: newsymbol{"!|"}{"∤" "\not\mid"} a !| b

.. mathml:: 3+1/{2+1/{3+1/7}}

The first line defines a new symbol "|" to use the HTML entity "∣" or
LaTeX command "\mid" and then uses it to produce "a divides b". The second
is similar except it defines "!|" to mean "not divides". The third created
the continued fraction.

Here's the HTML that gets produced:

<?xml version="1.0" encoding="utf8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" [
<!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
]>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<meta name="generator" content="prest release 0.3.40" />
</head>
<body>
<div class="document">
<p><math title="newsymbol{&quot;|&quot;}{&quot;&amp;#x2223;&quot; &quot;\mid&quot;} a | b" xmlns="&mathml;"><mstyle displaystyle="true"><mi>a</mi><mo>&#x2223;</mo><mi>b</mi></mstyle></math></p>
<p><math title="newsymbol{&quot;!|&quot;}{&quot;&amp;#x2224;&quot; &quot;\not\mid&quot;} a !| b" xmlns="&mathml;"><mstyle displaystyle="true"><mi>a</mi><mo>&#x2224;</mo><mi>b</mi></mstyle></math></p>
<p><math title="3+1/{2+1/{3+1/7}}" xmlns="&mathml;"><mstyle displaystyle="true"><mn>3</mn><mo>+</mo><mfrac><mn>1</mn><mrow><mn>2</mn><mo>+</mo><mfrac><mn>1</mn><mrow><mn>3</mn><mo>+</mo><mfrac><mn>1</mn><mn>7</mn></mfrac></mrow></mfrac></mrow></mfrac></mstyle></math></p>
</div>
</body>
</html>
Direct Responses: Write a response