Text::ASCIIMathML 0.81


Text::ASCIIMathML 0.81

Text::ASCIIMathML is a Perl parser for ASCIIMathML text which produces MathML XML markup strings that are suitable for rendering by any MathML-compliant browser.

The parser uses the following attributes which are settable through the SetAttributes method:


 Specifies that the fonts should be optimized for Netscape/Mozilla/Firefox.

The output of the TextToMathML method always follows the schema < mstyle >...< /mstyle >< /math > The first argument of TextToMathML is the ASCIIMathML text to be parsed into MathML. The second argument is a reference to an array of attribute/value pairs to be attached to the < math > node and the third argument is a reference to an array of attribute/value pairs for the < mstyle > node. Common attributes for the < math > node are "title" and "xmlns"=>"&mathml;". Common attributes for the < mstyle > node are "mathcolor" (for text color), "displaystyle"=>"true" for using display style instead of inline style, and "fontfamily".


 use Text::ASCIIMathML;

 $parser=new Text::ASCIIMathML();

 $parser->SetAttributes(ForMoz => 1);

 $ASCIIMathML = "int_0^1 e^x dx";
 $mathML = $parser->TextToMathML($ASCIIMathML);
 $mathML = $parser->TextToMathML($ASCIIMathML, [title=>$ASCIIMathML]);
 $mathML = $parser->TextToMathML($ASCIIMathML, undef, [displaystyle=>1]);

 $mathMLTree = $parser->TextToMathMLTree($ASCIIMathML);
 $mathMLTree = $parser->TextToMathMLTree($ASCIIMathML, [title=>$ASCIIMathML]);
 $mathMLTree = $parser->TextToMathMLTree($ASCIIMathML,undef,[displaystyle=>1]);

 $mathML = $mathMLTree->text();
 $latex = $mathMLTree->latex();

Product's homepage


· Perl

Download and use it now: Text::ASCIIMathML 0.81 free download

Add a review

Tell us your experience with Text::ASCIIMathML 0.81

Related programsOur Recommendations

Q4Wine 1.1-r2

Q4Wine is an open source QT4 GUI (Graphical User Interface) for the Wine application.It will help


Mason 1.0.0

Mason is a tool that interactively builds a firewall using Linux' ipfwadm or ipchains firewalling.


Tex2im 1.8

Tex2im is a simple tool that converts LaTeX formulas into high resolution pixmap graphics for


ROXTerm 2.9.5

An Open Source, tabbed and free terminal emulator for Linux-based operating systems


Dlume 0.2.4

Dlume is handy and easy to use addressbook.Dlume is nice, Gtk 2-based address book. You can easily


v4l2capture 1.4

v4l2capture is a slim and easy-to-use Python module for capturing video with video4linux2. It


Logya 1.0 / 2.0 Alpha

Logya is a static website generator written in Python designed to be easy to use and


UALinux Ubuntu CyberPack

UALinux is one of the biggest third-party collection of software for Ubuntu, the world’s most


KidMP 0.4.0

KidMP is an open source, GPL licensed video and audio player designed especially for kids.KidMP was


django-markupfield 1.0.1

django-markupfield is an implementation of a custom MarkupField for Django. A MarkupField is


Thumbnail of Text::ASCIIMathML 0.81


3 stars

Price: FREE

Publisher/Developer: Mark Nodine

Release Date: Jun 16, 2012

View Program Details

Top Downloadslast week