Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Rightclick on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Paul Tremblay <paulhtremblay@gm...>  20120228 18:24:58

Hi Guenter, If you think a directive option would work better than an option, then I would go with the directive option. I suppose one could mix different types of math in a document. I am not that well versed in latex to know exactly how to convert it. Converting latex to mathml might not require a complete reworking of my code. For example, ASCIImath uses text(apple) Whereas latex uses \text(apple) If latex is indeed that close to ASCIImath, it doesn't seem to make sense to use latex, since ASCIImath math doesn't need the back slashes. Converting latex to mathml sounds like I would need to write a whole new library. Like I said, I don't know the syntax of latex. Paul On Tue, Feb 28, 2012 at 8:04 AM, Guenter Milde <milde@...> wrote: > On 20120228, Paul Tremblay wrote: > > On 2/27/12 6:18 AM, Guenter Milde wrote: > >> On 20120219, Paul Tremblay wrote: > > >>> I've written a library that converts ASCII Math to Mathml: > >>> https://sourceforge.net/projects/asciimathpython/ > >> Good news. > > >> How is this related to ASCIIMathML_? > > >> .. _ASCIIMathML: http://pypi.python.org/pypi/asciimathml/ > > > My asciitomathml is much more complete than the ASCIIMathML in your > > link. I originally started working on the ASCIIMathML project, but found > > the code inscrutable and not easily changed. My own library is complete, > > and handles all cases of ASCII math. I imagine it handles nearly all > > types of math markup. > > I see. This makes it a good candidate for Docutils indeed and it makes me > want more (: > > ASCIIMathML.js (http://www1.chapman.edu/~jipsen/mathml/asciimath.html) > accepts standard LaTeX notation as an alternative. Do you think your > library could be used as basis for an improved LaTeX > MathML translator > for Docutils? > > Also, an ASCIIMath > LaTeX converter would be very desirable for > adoption of ASCIIMath as rst math input format. There is a JavaScript > script at http://dlippman.imathas.com/asciimathtex/ASCIIMath2TeX.js How > difficult would it be to write a Pythonbased ASCIImath  LaTeX math > converter? > > ... > > > In order for the math input to be recognized, the rst2xml.py script > > could simply accept two options. Other scripts could likewise accept > > these options: > > > mathinput ascii > > IMV, the input format should rather be given in the document. Otherwise > documents may render invalid/untranslatable. I envisage a directive option > and derived roles like: > > .. math:: > :input: asciimath > > .. role:: asciimath(math) > :input: asciimath > > > > mathoutput mathml > > This could be easily done by making the setting of the HTML writer a > generic one. > > We could use list of accepted output formats in order of preference > (idea by David) with defaults like:: > > [html4css1 writer] > > mathoutput: mathjax, mathml, html, literal > > [html4strict writer] > > mathoutput: mathml, mathjax, html, literal > > [latex2e writer] > > mathoutput: latex, literal > > which could be overridden in a config file or the command line like > > rst2html mathoutput=html,mathml,literal > > > Thanks > > Günter > > > >  > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL  plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnowd2d > _______________________________________________ > Docutilsdevelop mailing list > Docutilsdevelop@... > https://lists.sourceforge.net/lists/listinfo/docutilsdevelop > > Please use "Reply All" to reply to the list. > 