Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install mathdom

How to install mathdom

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install mathdom
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.8 Available View build log
Windows (64-bit)
0.8 Available View build log
Mac OS X (10.5+)
0.8 Available View build log
Linux (32-bit)
0.8 Available View build log
Linux (64-bit)
0.8 Available View build log
 
Author
Depended by
Lastest release
version 0.8 on Jan 5th, 2011

MathDOM - Content MathML in Python

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

You can call it the shortest way between different term representations and a Content MathML DOM. Ever noticed the annoying differences between terms in different programming languages? Build your application around MathDOM 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 of your application. Literal terms are connected through an intermediate AST step that makes writing converters for SQL/Java/Lisp/your-favourite easy.

New in version 0.8:

  • works with (and requires) lxml 2.0 or later

New in version 0.7.2:

  • works with (and requires) lxml 1.3 or later

New in version 0.7.1:

  • bug fix for operator qualifiers

New in version 0.7:

  • works with lxml 0.9 out-of-the-box

New in version 0.6.7:

  • added missing '%' operator (modulo)
  • adapted to updated lxml API

New in version 0.6.6:

  • closer APIs of mathdom and lmathdom
  • convenience functions to portably create apply, ci and cn elements

New in version 0.6.5:

  • XSLT extension function to include literal terms in output
  • bug fix in Python term serializer

New in version 0.6.4:

  • Updated setup.py script to use setuptools if available
  • Support for splitting package into two PyXML and lxml dependent packages
  • Now builds patched lxml during install

New in version 0.6.3.1:

  • Fixes a number of bugs in mathdom and lmathdom modules

New in version 0.6.2:

  • Generalized parser framework
  • Python term parser

New in version 0.6.1:

  • integration of the PyMathML renderer (untested!)
  • more generic integration of XSLT scripts

New in version 0.6:

  • RelaxNG validation (lxml)
  • Presentation MathML export (based on XSLT/lxml)
  • stricter spec conformance (encloses MathML output in <math> tag

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.