numbering
numbering
¶
Enumerations related to list numbering in WordprocessingML files.
WD_NUMBER_FORMAT
¶
Bases: BaseXmlEnum
Specifies how a numbering level renders its counter.
Corresponds to ST_NumberFormat in ISO/IEC 29500 §17.18.59. The specification
defines a long tail of locale-specific formats; the ones this library can actually
render a number for are marked below. For the rest, and for any value not listed
here at all, NumberingLevel.format_number falls back to decimal — a wrong
number is less useful than an obviously plain one, but the alternative of raising
would make a document using Japanese counting unreadable rather than imperfect.
MS API name: WdListNumberStyle (the closest equivalent; the mapping is not exact)
DECIMAL
class-attribute
instance-attribute
¶
Arabic numerals: 1, 2, 3.
UPPER_ROMAN
class-attribute
instance-attribute
¶
Upper-case Roman numerals: I, II, III.
LOWER_ROMAN
class-attribute
instance-attribute
¶
Lower-case Roman numerals: i, ii, iii.
UPPER_LETTER
class-attribute
instance-attribute
¶
UPPER_LETTER = (
3,
"upperLetter",
"Upper-case letters: A, B, C, continuing AA, BB, CC after Z. Rendered.",
)
Upper-case letters: A, B, C, continuing AA, BB, CC after Z.
LOWER_LETTER
class-attribute
instance-attribute
¶
LOWER_LETTER = (
4,
"lowerLetter",
"Lower-case letters: a, b, c, continuing aa, bb, cc after z. Rendered.",
)
Lower-case letters: a, b, c, continuing aa, bb, cc after z.
ORDINAL
class-attribute
instance-attribute
¶
Ordinal numerals: 1st, 2nd, 3rd.
CARDINAL_TEXT
class-attribute
instance-attribute
¶
Cardinal text: One, Two, Three.
ORDINAL_TEXT
class-attribute
instance-attribute
¶
Ordinal text: First, Second, Third.
HEX
class-attribute
instance-attribute
¶
Hexadecimal numerals: 8, 9, A, B.
CHICAGO
class-attribute
instance-attribute
¶
CHICAGO = (
9,
"chicago",
"The Chicago Manual of Style sequence of footnote marks: *, †, ‡, §. Rendered.",
)
The Chicago Manual of Style footnote marks.
DECIMAL_ZERO
class-attribute
instance-attribute
¶
DECIMAL_ZERO = (
10,
"decimalZero",
"Arabic numerals with a leading zero below ten: 01, 02, 03. Rendered.",
)
Arabic numerals with a leading zero below ten: 01, 02, 03.
BULLET
class-attribute
instance-attribute
¶
BULLET = (
11,
"bullet",
"A bullet rather than a number. The character shown is the literal level text, so the counter is not rendered at all.",
)
A bullet rather than a number; the level text is shown literally.
NONE
class-attribute
instance-attribute
¶
No numbering is shown for this level.
RUSSIAN_LOWER
class-attribute
instance-attribute
¶
Lower-case Cyrillic letters.
RUSSIAN_UPPER
class-attribute
instance-attribute
¶
Upper-case Cyrillic letters.
IDEOGRAPH_DIGITAL
class-attribute
instance-attribute
¶
Chinese numerals.
JAPANESE_COUNTING
class-attribute
instance-attribute
¶
Japanese counting.
AIUEO
class-attribute
instance-attribute
¶
Japanese aiueo ordering.
IROHA
class-attribute
instance-attribute
¶
Japanese iroha ordering.
DECIMAL_FULL_WIDTH
class-attribute
instance-attribute
¶
Full-width Arabic numerals.
DECIMAL_HALF_WIDTH
class-attribute
instance-attribute
¶
Half-width Arabic numerals.
GANADA
class-attribute
instance-attribute
¶
Korean ganada ordering.
CHOSUNG
class-attribute
instance-attribute
¶
Korean chosung ordering.