Interfaces to create formatters are dependent on the specific formatter class being instantiated. The interfaces described below are the required interfaces which all formatters must support once initialized.
One data element is defined at the module level:
push_font()
method described below, or as the new value to any
other push_property()
method. Pushing the AS_IS
value allows the corresponding pop_property()
method to
be called without having to track whether the property was changed.
The following attributes are defined for formatter instance objects:
Format specifications are strings which, in combination with a counter value, are used to compute label values. Each character in the format string is copied to the label value, with some characters recognized to indicate a transform on the counter value. Specifically, the character "1" represents the counter value formatter as an Arabic number, the characters "A" and "a" represent alphabetic representations of the counter value in upper and lower case, respectively, and "I" and "i" represent the counter value in Roman numerals, in upper and lower case. Note that the alphabetic and roman transforms require that the counter value be greater than zero.
(
size, italic, bold, teletype)
)
0
. Changed values of the logical tag must be
true values; false values other than AS_IS are not
sufficient to change the margin.
= 1
])
= 1
])
See About this document... for information on suggesting changes.