MathDOM - Content MathML in Python
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mathdom-0.8.tar.gz
.
File metadata
- Download URL: mathdom-0.8.tar.gz
- Upload date:
- Size: 108.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e44ea8a24c26c9fdcba26aabbd5e8cff566c1742a541abd02219b7e7dab19e92 |
|
MD5 | 9cc9f378198b44a1bb1c9069167f1ded |
|
BLAKE2b-256 | e26068210edb75588799faee396760fab8e06a039f1833c64a96961d80064ea0 |
File details
Details for the file mathdom-0.8-py2.5.egg
.
File metadata
- Download URL: mathdom-0.8-py2.5.egg
- Upload date:
- Size: 174.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a960661a50a0cbf8441e5d572f7d6764efc343e85d6450232bf2c7d95e0dce4d |
|
MD5 | 2b5aaf7398bb13b484b9a73211617d7b |
|
BLAKE2b-256 | a0c260042ba51998e7177aa33512fc111aba960fe669fe1889f7edffb322849b |