Number (rinoh.number)

Functions for formatting numbers:

class rinoh.number.NumberFormat

How (or if) numbers are displayed

Accepts: none, number, symbol, lowercase character, uppercase character, lowercase roman, uppercase roman

class rinoh.number.NumberStyle(base=None, **attributes)

Style class for Number

number_format

How numbers are formatted

Accepts NumberFormat: none, number, symbol, lowercase character, uppercase character, lowercase roman, uppercase roman

Default: number

label_prefix

Text to prepend to the label (inherited from LabelStyle)

Accepts StyledText: a list of styled text strings, separated by spaces. A styled text string is a quoted string (' or "), optionally followed by a style name enclosed in braces: 'text string' (style name)

Default: (no value)

label_suffix

Text to append to the label (inherited from LabelStyle)

Accepts StyledText: a list of styled text strings, separated by spaces. A styled text string is a quoted string (' or "), optionally followed by a style name enclosed in braces: 'text string' (style name)

Default: (no value)

custom_label

Use a custom label if specified (inherited from LabelStyle)

Accepts Bool: true or false

Default: false

hide

Suppress rendering this element (inherited from Style)

Accepts Bool: true or false

Default: false

class rinoh.number.NumberedParagraph(content, custom_label=None, id=None, style=None, parent=None)
style_class

alias of NumberedParagraphStyle

rinoh.number.format_number(number, format)

Format number according the given format (NumberFormat)