ANN: MathDOM 0.5.2 - MathML in Python - now featuring lxml API!

S

Stefan Behnel

Hi everyone,

MathDOM 0.5.2 is ready for download from SourceForge.

http://mathdom.sourceforge.net/

MathDOM is a set of Python modules (using pyparsing and either PyXML or lxml)
that import mathematical terms as a Content MathML DOM. It currently parses
MathML and literal infix terms into a DOM and writes out MathML and literal
infix, prefix, postfix or Python terms. The DOM elements are enhanced by
domain specific methods that make using the DOM a little easier.

You can call it the shortest way between different term representations and an
enhanced Content MathML DOM. Ever noticed the annoying differences between
terms in different programming languages? Build your application around the
DOM and stop caring about the term representation that users prefer or that
your machine can execute. If you need a different representation, add a
converter, but don't change the model. Literal terms are connected through an
intermediate AST step that makes writing converters for
Python/SQL/yourfavorite easier.

** New in 0.5.2 **

This release features the original 4DOM based API as well as a completely new
API based on a patched version of lxml. lxml is an ElementTree like API on top
of libxml2, which combines fast XPath, XSLT, XInclude, etc. computation with
the ease of a pythonesque API. Try it, it's worth making the change.

Have fun,
Stefan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top