On 20111014, Paul Tremblay wrote:
> [ Type: text/plain, Encoding: 7bit ]
> On 10/13/11 3:12 PM, Paul Tremblay wrote:
>> I have been off of this mailing list for a while, so sorry if this
>> topic has been covered. I notice that a math directive has been added,
>> and wondered if there are any plans on using ASCIImath in this directive?
>> http://www.wjagray.co.uk/maths/ASCIIMathTutorial.html
It has been considered in todo.txt.
http://docutils.sourceforge.net/docs/dev/todo.html#mathmarkup
The current implementation settled on LaTeX math syntax for several
reasons also given there.
(I just revised todo.txt and moved asciimathml and other alternatives to
the "alternatives" page (with a link from "todo"). This is now in the SVN
and will be on the web site after the next update.)
If you search in the list, you will also find a thread some years ago
discussing whether/how to support multiple math input formats. The
conclusion was, that this is too complicated to start with  maybe
adding this later if popular request is strong and all output formats are
supported.
> It seems like someone has already done the work for asciimath to mathml:
> http://pypi.python.org/pypi/asciimathml/0.9.3
> Any thoughts on using this library with the math directive?
Should be possible for rst > HTML. (It would require a conversion from
the element tree produced by the script to a MathML string that can be
put in the document.)
However, there is no easy option for other output formats like LaTeX.
(there is JavaScript script at
http://dlippman.imathas.com/asciimathtex/ASCIIMath2TeX.js)
Günter
