# - - - - - M a n i f e s t c o n s t a n t s
Names of constants are capitalized.
Name of the
ODD_MASTER = "odd-master"
Name of the
EVEN_MASTER = "even-master"
Name of the
for the main flow.
REPEAT_MASTER = "repeat-master"
Name of the header region on odd-numbered pages.
ODD_BEFORE = "odd-before"
Name of the header region on even-numbered pages.
EVEN_BEFORE = "even-before"
Width of the margin on the binding side of the page. To save paper, this is just wide enough to clear a standard 3-hole punch with about a pica to spare.
WIDE_MARGIN = "4pc"
Width of the margins not on the binding side. Tight, to save paper.
NARROW_MARGIN = "3pc"
Height of the page heading and a little more space.
HEADING_EXTENT = "18pt"
This dictionary specifies assorted properties on the
region-body: two columns with a
REGION_BODY_PROPS = h.dash(columnCount='2', columnGap=GUTTER_WIDE)
Gap between the end of the ID and the beginning of the section title in a report block.
PRE_TITLE = h.FoDim("1.5", "pc")
How much each section level is indented in the report. We
use an instance of the
FoDim class from the
fohelpers.py module, because such instances support
arithmetic operations that make it easy to insert computed
dimensions into the output.
INDENT_PER_LEVEL = h.FoDim("1", "pc")
For those cases where the title is so long that it wraps, this dimension specifies how much further the continuation lines are indented relative to the start of the first line.
CONTINUED_INDENT = h.FoDim("8", "pc")
Font families can be a comma-separated list; the output toolchain will use the first one it finds.
MAIN_FONT_FAMILY = "Palatino, Palladio, serif"
Font family for rendering a DocBook
application tag, which is to be rendered as
oblique sans in the TCC standard.
APP_FONT_FAMILY = "Deja Vu Sans, Helvetica, sans-serif"
Dictionary of font attributes for the header.
HEAD_FONT = h.font(fontFamily=MAIN_FONT_FAMILY, fontSize=HEAD_SIZE)
Font for rendering DocBook
fontSize is specified,
because this tag may be rendered in the header as
well as the body.
APP_FONT = h.font(fontFamily=APP_FONT_FAMILY, fontStyle='oblique')
This font is used in FO inlines to render the DocBook
replaceable element, which marks up its
content as oblique (slanted) type.
REPLACE_FONT = h.font(fontStyle="oblique")
For rendering the section
id: a bold
ID_FONT = h.font(fontFamily=MONO_FONT_FAMILY, fontSize=BODY_SIZE, fontWeight="bold")