From 5589b25969139878a5ad7a03d4bf3f3ef33865d1 Mon Sep 17 00:00:00 2001 From: Bob Stayton Date: Sun, 20 Nov 2011 20:28:47 +0000 Subject: [PATCH] Add support for side regions in FO output. --- xsl/params/body.margin.inner.xml | 45 +++++++++++++++++++++++++++++ xsl/params/body.margin.outer.xml | 46 ++++++++++++++++++++++++++++++ xsl/params/region.inner.extent.xml | 44 ++++++++++++++++++++++++++++ xsl/params/region.outer.extent.xml | 44 ++++++++++++++++++++++++++++ 4 files changed, 179 insertions(+) create mode 100644 xsl/params/body.margin.inner.xml create mode 100644 xsl/params/body.margin.outer.xml create mode 100644 xsl/params/region.inner.extent.xml create mode 100644 xsl/params/region.outer.extent.xml diff --git a/xsl/params/body.margin.inner.xml b/xsl/params/body.margin.inner.xml new file mode 100644 index 000000000..b4c43830d --- /dev/null +++ b/xsl/params/body.margin.inner.xml @@ -0,0 +1,45 @@ + + +body.margin.inner +length + + +body.margin.inner +Specify the size of the inner margin of the body region + + + + +0.5in + + + +Description + +The inner body margin is the extra inner side +(binding side) margin taken from the body +region in addition to the inner page margin. +It makes room for a side region for text content whose width is +specified by the region.inner.extent +parameter. + +For double-sided output, +this side region +is fo:region-start on a odd-numbered page, +and fo:region-end on an even-numbered page. + +For single-sided output, +this side region +is fo:region-start for all pages. + +This correspondence applies to all languages, +both left-to-right and right-to-left writing modes. + +The default value is zero. + + diff --git a/xsl/params/body.margin.outer.xml b/xsl/params/body.margin.outer.xml new file mode 100644 index 000000000..48833f92f --- /dev/null +++ b/xsl/params/body.margin.outer.xml @@ -0,0 +1,46 @@ + + +body.margin.outer +length + + +body.margin.outer +Specify the size of the outer margin of the body region + + + + +0.5in + + + +Description + +The outer body margin is the extra outer side +(opposite the binding side) margin taken +from the body +region in addition to the outer page margin. +It makes room for a side region for text content whose width is +specified by the region.outer.extent +parameter. + +For double-sided output, +this side region +is fo:region-end on a odd-numbered page, +and fo:region-start on an even-numbered page. + +For single-sided output, +this side region +is fo:region-end for all pages. + +This correspondence applies to all languages, +both left-to-right and right-to-left writing modes. + +The default value is zero. + + diff --git a/xsl/params/region.inner.extent.xml b/xsl/params/region.inner.extent.xml new file mode 100644 index 000000000..234848711 --- /dev/null +++ b/xsl/params/region.inner.extent.xml @@ -0,0 +1,44 @@ + + +region.inner.extent +length + + +region.inner.extent +Specifies the width of the inner side region + + + + +0.4in + + + +Description + +The region inner extent is the width of the optional +text area next to the inner side (binding side) of the +body region. + +For double-sided output, this side region +is fo:region-start on a odd-numbered page, +and fo:region-end on an even-numbered page. + +For single-sided output, this side region +is fo:region-start for all pages. + +This correspondence applies to all languages, +both left-to-right and right-to-left writing modes. + +The default value of this parameter is zero. If you enlarge this extent, +be sure to also enlarge the body.margin.inner +parameter to make room for its content, otherwise any text in +the side region may overlap with the body text. + + + diff --git a/xsl/params/region.outer.extent.xml b/xsl/params/region.outer.extent.xml new file mode 100644 index 000000000..42cb218d3 --- /dev/null +++ b/xsl/params/region.outer.extent.xml @@ -0,0 +1,44 @@ + + +region.outer.extent +length + + +region.outer.extent +Specifies the width of the outer side region + + + + +0.4in + + + +Description + +The region outer extent is the width of the optional +text area next to the outer side (opposite the binding side) of the +body region. + +For double-sided output, this side region +is fo:region-end on a odd-numbered page, +and fo:region-start on an even-numbered page. + +For single-sided output, this side region +is fo:region-end for all pages. + +This correspondence applies to all languages, +both left-to-right and right-to-left writing modes. + +The default value of this parameter is zero. If you enlarge this extent, +be sure to also enlarge the body.margin.outer +parameter to make room for its content, otherwise any text in +the side region may overlap with the body text. + + + -- 2.40.0