class documentation

class MathSchema(math):

Known subclasses: docutils.utils.math.latex2mathml.mroot, docutils.utils.math.latex2mathml.msub, docutils.utils.math.latex2mathml.msubsup, docutils.utils.math.latex2mathml.msup

View In Hierarchy

Base class for schemata expecting 2 or more children.

The special attribute switch indicates that the last two child elements are in reversed order and must be switched before XML-export.

Method __init__ Set up node with children and attributes.
Method append Append child and return self or first non-full parent.
Class Variable nchildren Expected number of children or None
Instance Variable switch Undocumented

Inherited from math:

Method __getitem__ Undocumented
Method __len__ Undocumented
Method __repr__ Undocumented
Method __setitem__ Undocumented
Method close Close element and return first non-full parent or None.
Method extend Undocumented
Method full Return boolean indicating whether children may be appended.
Method get Undocumented
Method toprettyxml Return XML representation of self as string.
Method xml​_starttag Undocumented
Class Variable html​_tagname Tag name for HTML representation.
Class Variable parent Parent node in MathML DOM tree.
Class Variable xml​_entities Undocumented
Instance Variable attributes Undocumented
Instance Variable children Undocumented
Method ​_xml Undocumented
Method ​_xml​_body Undocumented
Class Variable ​_boolstrings String representation of boolean MathML attribute values.
Class Variable ​_level Undocumented
def __init__(self, *children, **kwargs):

Set up node with children and attributes.

Attributes are downcased: Use CLASS to set "class" value. >>> math(mn(3), CLASS='test') math(mn(3), class='test') >>> math(CLASS='test').toprettyxml() '<math class="test">

</math>'

def append(self, child):

Append child and return self or first non-full parent.

If self is full, go up the tree and return first non-full node or None.

switch: bool =

Undocumented