class documentation

class BracketProcessor(MathsProcessor): (source)

View In Hierarchy

A processor for bracket commands.
Method checkdirection Check if the given bit is the desired bracket command.
Method checkleft Check if the command at the given index is left.
Method checkright Check if the command at the given index is right.
Method findmax Find the max size of the contents between the two given indices.
Method findright Find the right bracket starting at the given index, or 0.
Method process Convert the bracket using Unicode pieces, if possible.
Method processleft Process a left bracket.
Method resize Resize a bracket command to the given size.

Inherited from MathsProcessor:

Method __unicode__ Return a printable description.
def checkdirection(self, bit, command): (source)
Check if the given bit is the desired bracket command.
def checkleft(self, contents, index): (source)
Check if the command at the given index is left.
def checkright(self, contents, index): (source)
Check if the command at the given index is right.
def findmax(self, contents, leftindex, rightindex): (source)
Find the max size of the contents between the two given indices.
def findright(self, contents, index): (source)
Find the right bracket starting at the given index, or 0.
def process(self, contents, index): (source)
Convert the bracket using Unicode pieces, if possible.
def processleft(self, contents, index): (source)
Process a left bracket.
def resize(self, command, size): (source)
Resize a bracket command to the given size.