Next / Previous / Contents / TCC Help System / NM Tech homepage

13.10. XSL-FO layout constants

These constants are used by Section 10.25, “hist.cgi: foMasters(): Set up the XSL-FO page layout” to define XSL-FO page masters as part of process of generating the PDF.

13.10.1. REPEAT_MASTER

Name of the page-sequence-master.

cbchistlib.py
REPEAT_MASTER = 'all'

13.10.2. ODD_MASTER

Name of the simple-page-master for odd pages.

cbchistlib.py
ODD_MASTER = 'odd'

13.10.3. EVEN_MASTER

Name of the simple-page-master for even pages.

cbchistlib.py
EVEN_MASTER = 'even'

13.10.4. ODD_BEFORE

Name of the odd-page header region.

cbchistlib.py
ODD_BEFORE = 'odd-before'

13.10.5. EVEN_BEFORE

Name of the even-page header region.

cbchistlib.py
EVEN_BEFORE = 'even-before'

13.10.6. ODD_DIMS

An fo.PageDims instance describing the layout of odd pages. We start with the stock instance for letter paper and modify the margins. The computation for width is: 51 picas - 4 picas left margin - 3 picas right margin = 44 picas.

cbchistlib.py
ODD_DIMS = fo.pageDimsFactory(fo.PAPER_LETTER)
ODD_DIMS.pageMargins.left = "4pc"
ODD_DIMS.pageMargins.right = "3pc"
ODD_DIMS.bodyMargins.top = "3pc"
ODD_DIMS.bodyMargins.bot = "0pt"

13.10.7. EVEN_DIMS

An fo.PageDims instance for the layout of even pages.

cbchistlib.py
EVEN_DIMS = fo.pageDimsFactory(fo.PAPER_LETTER)
EVEN_DIMS.pageMargins.left = "3pc"
EVEN_DIMS.pageMargins.right = "4pc"
EVEN_DIMS.bodyMargins.top = "3pc"
EVEN_DIMS.bodyMargins.bot = "0pt"

13.10.8. GENERIC_HEADER

Running head for the PDF report.

cbchistlib.py
GENERIC_HEADER = "Christmas Bird Count history report"