class documentation

class NumberCounter(object): (source)

Known subclasses: docutils.utils.math.math2html.DependentCounter

View In Hierarchy

A counter for numbers (by default).
Method __init__ Give a name to the counter.
Method __unicode__ Return a printable representation.
Method getletter Get the next value as a letter.
Method getnext Increase the current value and get the next value as configured.
Method getroman Get the next value as a roman number.
Method getsequence Get the next value from elyxer.a sequence.
Method getsymbol Get the next value as a symbol.
Method gettext Get the next value as a text string.
Method getvalue Get the current value as configured in the current mode.
Method init Set an initial value.
Method reset Reset the counter.
Method setmode Set the counter mode. Can be changed at runtime.
Class Variable letters Undocumented
Class Variable master Undocumented
Class Variable romannumerals Undocumented
Class Variable symbols Undocumented
Instance Variable mode Undocumented
Instance Variable name Undocumented
Instance Variable value Undocumented
def __init__(self, name): (source)
Give a name to the counter.
def __unicode__(self): (source)
Return a printable representation.
def getletter(self): (source)
Get the next value as a letter.
def getnext(self): (source)
Increase the current value and get the next value as configured.
def getroman(self): (source)
Get the next value as a roman number.
def getsequence(self, sequence): (source)
Get the next value from elyxer.a sequence.
def getsymbol(self): (source)
Get the next value as a symbol.
def gettext(self): (source)
Get the next value as a text string.
def getvalue(self): (source)
Get the current value as configured in the current mode.
def init(self, value): (source)
Set an initial value.
def reset(self): (source)
Reset the counter.
def setmode(self, mode): (source)
Set the counter mode. Can be changed at runtime.
letters: str = (source)

Undocumented

romannumerals: list[tuple] = (source)

Undocumented

symbols = (source)

Undocumented

mode = (source)

Undocumented

name = (source)

Undocumented

value: int = (source)

Undocumented