]> granicus.if.org Git - docbook-dsssl/commitdiff
Change 'left' to 'start' and 'right' to 'end' to support right-to-left
authorBob Stayton <bobs@sagehill.net>
Sat, 7 Mar 2009 00:02:47 +0000 (00:02 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 7 Mar 2009 00:02:47 +0000 (00:02 +0000)
writing mode.

22 files changed:
xsl/params/admon.style.xml
xsl/params/alignment.xml
xsl/params/article.appendix.title.properties.xml
xsl/params/blockquote.properties.xml
xsl/params/body.start.indent.xml
xsl/params/component.title.properties.xml
xsl/params/foil.properties.xml
xsl/params/footer.column.widths.xml
xsl/params/header.column.widths.xml
xsl/params/index.div.title.properties.xml
xsl/params/nongraphical.admonition.properties.xml
xsl/params/page.margin.inner.xml
xsl/params/page.margin.outer.xml
xsl/params/pgwide.properties.xml
xsl/params/root.properties.xml
xsl/params/section.title.properties.xml
xsl/params/side.float.properties.xml
xsl/params/sidebar.float.type.xml
xsl/params/sidebar.properties.xml
xsl/params/table.cell.padding.xml
xsl/params/title.margin.left.xml
xsl/params/writing.mode.xml

index c2c881c3125a5d1ec8fd897eba57113cfb2b210d..38f1c27ac93266f8a3bd7723a0574d53322c34a9 100644 (file)
@@ -16,7 +16,8 @@ admonitions.</refpurpose>
 
 <refsynopsisdiv>
 <src:fragment xml:id="admon.style.frag"><xsl:param name="admon.style">
-  <xsl:text>margin-left: 0.5in; margin-right: 0.5in;</xsl:text>
+  <xsl:value-of select="concat('margin-', $direction.align.start,
+           ': 0.5in; margin-', $direction.align.end, ': 0.5in;"/>
 </xsl:param></src:fragment>
 </refsynopsisdiv>
 
index 0d5d9cea863fd6ece019ebf7f13188f2e800607b..9c0a3de35e3b89dca283a4c84153e0edfdfddd4c 100644 (file)
@@ -9,7 +9,9 @@
   <refmiscinfo class="other" otherclass="datatype">list</refmiscinfo>
   <refmiscinfo class="other" otherclass="list-type">open</refmiscinfo>
   <refmiscinfo class="other" otherclass="value">left</refmiscinfo>
+  <refmiscinfo class="other" otherclass="value">start</refmiscinfo>
   <refmiscinfo class="other" otherclass="value">right</refmiscinfo>
+  <refmiscinfo class="other" otherclass="value">end</refmiscinfo>
   <refmiscinfo class="other" otherclass="value">center</refmiscinfo>
   <refmiscinfo class="other" otherclass="value">justify</refmiscinfo>
 </refmeta>
 <refsection><info><title>Description</title></info>
 
 <para>The default text alignment is used for most body text.
+Allowed values are 
+<literal>left</literal>,
+<literal>right</literal>,
+<literal>start</literal>,
+<literal>end</literal>,
+<literal>center</literal>,
+<literal>justify</literal>.
+The default value is <literal>justify</literal>.
 </para>
 
 </refsection>
index e94088695ac07ccb412ca4999b614fd36e0f0267..61337a1bd68002618ef87daea02267bd4b8e5519 100644 (file)
@@ -16,7 +16,7 @@
 <refsynopsisdiv>
 <src:fragment xml:id="article.appendix.title.properties.frag">
 <xsl:attribute-set name="article.appendix.title.properties" use-attribute-sets="section.title.properties                          section.title.level1.properties">
-  <xsl:attribute name="margin-left">
+  <xsl:attribute name="margin-{$direction.align.start}">
     <xsl:value-of select="$title.margin.left"/>
   </xsl:attribute>
 </xsl:attribute-set>
index 440f04e2991b35bbf9f2eabdb1c6ece8af521673..76d7f1c3616f47b27f3c3760b4bf0c0adf144b1c 100644 (file)
@@ -16,8 +16,8 @@
 <refsynopsisdiv>
 <src:fragment xml:id="blockquote.properties.frag">
 <xsl:attribute-set name="blockquote.properties">
-<xsl:attribute name="margin-left">0.5in</xsl:attribute>
-<xsl:attribute name="margin-right">0.5in</xsl:attribute>
+<xsl:attribute name="margin-{$direction.align.start}">0.5in</xsl:attribute>
+<xsl:attribute name="margin-{$direction.align.end}">0.5in</xsl:attribute>
 <xsl:attribute name="space-after.minimum">0.5em</xsl:attribute>
 <xsl:attribute name="space-after.optimum">1em</xsl:attribute>
 <xsl:attribute name="space-after.maximum">2em</xsl:attribute>
index 461e90dbab6ca94ef7b6e5490645776a6df72b8a..4e348f1c77ea921fd4a1c89a54ce5a19917975c1 100644 (file)
 <refsection><info><title>Description</title></info>
 
 <para>This parameter provides
-one means of indenting the body text relative to
-the left page margin.
+the means of indenting the body text relative to
+section titles.
+For left-to-right text direction, it indents the left side.
+For right-to-left text direction, it indents the right side.
 It is used in place of the 
 <parameter>title.margin.left</parameter> for
-all XSL-FO processors except FOP.
+all XSL-FO processors except FOP 0.25.
 It enables support for side floats to appear
 in the indented margin area.
 </para>
index aff1c2906d51b74d3b506ca97804425b1cbd63ed..58cd4b434db42f6503b0a3d6fee1deff3c73b9bb 100644 (file)
@@ -24,7 +24,7 @@
   <xsl:attribute name="text-align">
     <xsl:choose>
       <xsl:when test="((parent::article | parent::articleinfo | parent::info/parent::article) and not(ancestor::book) and not(self::bibliography))         or (parent::slides | parent::slidesinfo)">center</xsl:when>
-      <xsl:otherwise>left</xsl:otherwise>
+      <xsl:otherwise>start</xsl:otherwise>
     </xsl:choose>
   </xsl:attribute>
   <xsl:attribute name="start-indent"><xsl:value-of select="$title.margin.left"/></xsl:attribute>
index 00c2290378862afb32ff3f8d93545f61cd5de975..11ad146bbbc7652e90580b1afab5c8e0cdd0a909 100644 (file)
@@ -19,8 +19,8 @@
       <xsl:attribute name="font-family">
         <xsl:value-of select="$slide.font.family"/>
       </xsl:attribute>
-      <xsl:attribute name="margin-left">1in</xsl:attribute>
-      <xsl:attribute name="margin-right">1in</xsl:attribute>
+      <xsl:attribute name="margin-{$direction.align.start}">1in</xsl:attribute>
+      <xsl:attribute name="margin-{$direction.align.end}">1in</xsl:attribute>
       <xsl:attribute name="font-size">
         <xsl:value-of select="$body.font.size"/>
       </xsl:attribute>
index a17589b329dfd775fc044d00aebb90b9b6d24aea..eca22705959c1b672a27076d18012901e78e9dde 100644 (file)
@@ -28,14 +28,20 @@ three columns.  The default value is
 
 <para>The parameter value must be three numbers, separated
 by white space. The first number represents the relative
-width of the left footer for
-single-sided output, or the inside footer for
+width of the inside footer for
 double-sided output.  The second number is the relative
 width of the center footer.  The third number is the
-relative width of the right footer for
-single-sided output, or the outside footer for
+relative width of the outside footer for
 double-sided output.
 </para>
+<para>For single-sided output, the first number is the
+relative width of left footer for left-to-right
+text direction, or the right footer for right-to-left
+text direction.  
+The third number is the
+relative width of right footer for left-to-right
+text direction, or the left footer for right-to-left
+text direction.</para>
 
 <para>The numbers are used to specify the column widths
 for the table that makes up the footer area.
index 86a1fd8ade8c9737ee2206f6759e319ba2f9c7d1..7d85b96ad64cbc460bc8b2b57d301a412234350f 100644 (file)
@@ -28,14 +28,20 @@ three columns.  The default value is
 
 <para>The parameter value must be three numbers, separated
 by white space. The first number represents the relative
-width of the left header for
-single-sided output, or the inside header for
+width of the inside header for
 double-sided output.  The second number is the relative
 width of the center header.  The third number is the
-relative width of the right header for
-single-sided output, or the outside header for
+relative width of the outside header for
 double-sided output.
 </para>
+<para>For single-sided output, the first number is the
+relative width of left header for left-to-right
+text direction, or the right header for right-to-left
+text direction.  
+The third number is the
+relative width of right header for left-to-right
+text direction, or the left header for right-to-left
+text direction.</para>
 
 <para>The numbers are used to specify the column widths
 for the table that makes up the header area.
index 6ff2413e61a71b4431f3ca1d3c8e14a339716493..edbec2f2e719f0a632b038b78ff2d88d50a477d7 100644 (file)
@@ -17,7 +17,7 @@ index</refpurpose>
 <refsynopsisdiv>
 <src:fragment xml:id="index.div.title.properties.frag">
 <xsl:attribute-set name="index.div.title.properties">
-  <xsl:attribute name="margin-left">0pt</xsl:attribute>
+  <xsl:attribute name="margin-{$direction.align.start}">0pt</xsl:attribute>
   <xsl:attribute name="font-size">14.4pt</xsl:attribute>
   <xsl:attribute name="font-family"><xsl:value-of select="$title.fontset"/></xsl:attribute>
   <xsl:attribute name="font-weight">bold</xsl:attribute>
index f66ddf43460cc9731cfa6d303b40d60a7fe0b020..ba8a06a5ee4c52ad7d2e5fb7357a6b65ab1acfc3 100644 (file)
@@ -18,8 +18,8 @@
   <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
   <xsl:attribute name="space-before.optimum">1em</xsl:attribute>
   <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
-  <xsl:attribute name="margin-left">0.25in</xsl:attribute>
-  <xsl:attribute name="margin-right">0.25in</xsl:attribute>
+  <xsl:attribute name="margin-{$direction.align.start}">0.25in</xsl:attribute>
+  <xsl:attribute name="margin-{$direction.align.end}">0.25in</xsl:attribute>
 </xsl:attribute-set>
 </src:fragment>
 </refsynopsisdiv>
index e2815ae681397e598ef6297cfc80f779d7298201..535b02d9a7dbf80be1a7c37dfad3a01a2e4f028b 100644 (file)
 
 <refsection><info><title>Description</title></info>
 
-<para>The inner page margin is the distance from binding edge of the
-page to the first column of text. In the left-to-right, top-to-bottom writing
-direction, this is the left margin of recto pages.</para>
-<para>The inner and outer margins are usually the same unless the output
-is double-sided.
-</para>
+<para>The inner page margin is the distance from bound edge of the
+page to the first column of text. </para>
+
+<para>The inner page margin is the distance from bound edge of the
+page to the outer edge of the first column of text.</para>
+
+<para>In left-to-right text direction,
+this is the left margin of recto (front side) pages.
+For single-sided output, it is the left margin
+of all pages.</para>
+
+<para>In right-to-left text direction,
+this is the right margin of recto pages.
+For single-sided output, this is the
+right margin of all pages.</para>
 
 </refsection>
 </refentry>
index 654d0ffdb576928801445d685c8508fc5d125e06..3f8099700ad4223b50123da6680c923ba98e072f 100644 (file)
 
 <refsection><info><title>Description</title></info>
 
-<para>The outer page margin is the distance from non-binding edge of the
-page to the last column of text. In the left-to-right, top-to-bottom writing
-direction, this is the right margin of recto pages.</para>
-<para>The inner and outer margins are usually the same unless the output
-is double-sided.
-</para>
+<para>The outer page margin is the distance from non-bound edge of the
+page to the outer edge of the last column of text.</para>
+
+<para>In left-to-right text direction,
+this is the right margin of recto (front side) pages.
+For single-sided output, it is the right margin
+of all pages.</para>
+
+<para>In right-to-left text direction,
+this is the left margin of recto pages.
+For single-sided output, this is the
+left margin of all pages.</para>
 
 </refsection>
 </refentry>
index c3552581540d2e652754e2c5a13dab0d59e16931..c63b4615bc26eccd4b8fd08aae1aba0a671b218b 100644 (file)
@@ -37,7 +37,7 @@ In a stylesheet that sets the parameter
 <parameter>body.start.indent</parameter>
 to a non-zero value in order to indent body text,
 this attribute set can be used to outdent pgwide
-figures to the left margin.
+figures to the start margin.
 </para>
 
 <para>If a document uses a multi-column page layout,
index 81401bbb78c7d32e9b94b4740f391cf4c8697546..26c9951f52a80e64e868dc5d8248dc70e59b0bd1 100644 (file)
@@ -30,6 +30,9 @@
   </xsl:attribute>
   <xsl:attribute name="font-selection-strategy">character-by-character</xsl:attribute>
   <xsl:attribute name="line-height-shift-adjustment">disregard-shifts</xsl:attribute>
+  <xsl:attribute name="writing-mode">
+    <xsl:value-of select="$direction.mode"/>
+  </xsl:attribute>
 </xsl:attribute-set>
 </src:fragment>
 </refsynopsisdiv>
index 6ed3bac6b1e044a3db034f10fb276eb7fdd584bb..ab849afd57c0d3107790bc1ae69f791ae8a54d29 100644 (file)
@@ -25,7 +25,7 @@
   <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute>
   <xsl:attribute name="space-before.optimum">1.0em</xsl:attribute>
   <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute>
-  <xsl:attribute name="text-align">left</xsl:attribute>
+  <xsl:attribute name="text-align">start</xsl:attribute>
   <xsl:attribute name="start-indent"><xsl:value-of select="$title.margin.left"/></xsl:attribute>
 </xsl:attribute-set>
 </src:fragment>
index 4821b03d31b9a954be5f415d088071fa993e3c65..0a6d904ccafc2eff62288c2188b2dc9d02b00a85 100644 (file)
 <src:fragment xml:id="side.float.properties.frag">
 <xsl:attribute-set name="side.float.properties">
   <xsl:attribute name="width">2in</xsl:attribute>
-  <xsl:attribute name="padding-left">4pt</xsl:attribute>
-  <xsl:attribute name="padding-right">4pt</xsl:attribute>
+  <xsl:attribute name="padding-start">4pt</xsl:attribute>
+  <xsl:attribute name="padding-end">4pt</xsl:attribute>
   <xsl:attribute name="padding-top">2pt</xsl:attribute>
   <xsl:attribute name="padding-bottom">2pt</xsl:attribute>
-  <xsl:attribute name="margin-left">0pt</xsl:attribute>
-  <xsl:attribute name="margin-right">0pt</xsl:attribute>
-  <xsl:attribute name="text-align">left</xsl:attribute>
+  <xsl:attribute name="margin-{$direction.align.start}">0pt</xsl:attribute>
+  <xsl:attribute name="margin-{$direction.align.end}">0pt</xsl:attribute>
+  <xsl:attribute name="text-align">start</xsl:attribute>
 </xsl:attribute-set>
 </src:fragment>
 </refsynopsisdiv>
@@ -40,10 +40,10 @@ of the values for a side float.</para>
 
 <para>If you do only <literal>left</literal> or 
 <literal>start</literal> side floats, you may want to set the
-<literal>padding-left</literal> attribute to zero.
+<literal>padding-start</literal> attribute to zero.
 If you do only <literal>right</literal> or 
 <literal>end</literal> side floats, you may want to set the
-<literal>padding-right</literal> attribute to zero.
+<literal>padding-end</literal> attribute to zero.
 </para>
 
 </refsection>
index be01fe378bca0bf5f3b14a5f61d298ff2731ba14..8c6a286a0628cc9456f3826edd4802116421e1d3 100644 (file)
@@ -45,20 +45,37 @@ the float appears at the top of the page.  On some processors,
 that may be the next page rather than the current page.
 </para>
 </listitem>
+
 <listitem>
 <para>If <parameter>sidebar.float.type</parameter> is
-<quote><literal>left</literal></quote> or
-<quote><literal>start</literal></quote>, then 
-a left side float is used.
+<quote><literal>left</literal></quote>,
+then a left side float is used.
 </para>
 </listitem>
+
+<listitem>
+<para>If <parameter>sidebar.float.type</parameter> is
+<quote><literal>start</literal></quote>,
+then when the text direction is left-to-right a left side float is used.
+When the text direction is right-to-left, a right side float is used.
+</para>
+</listitem>
+
 <listitem>
 <para>If <parameter>sidebar.float.type</parameter> is
-<quote><literal>right</literal></quote> or
-<quote><literal>end</literal></quote>, then 
-a right side float is used.
+<quote><literal>right</literal></quote>,
+then a right side float is used.
 </para>
 </listitem>
+
+<listitem>
+<para>If <parameter>sidebar.float.type</parameter> is
+<quote><literal>end</literal></quote>,
+then when the text direction is left-to-right a right side float is used.
+When the text direction is right-to-left, a left side float is used.
+</para>
+</listitem>
+
 <listitem>
 <para>If your XSL-FO processor supports floats positioned on the
 <quote><literal>inside</literal></quote> or
index a7242bbc85373888856f648b5204ac6af62ee03a..fc98ac0cd4d553d19541d18e8aed30002f524c27 100644 (file)
   <xsl:attribute name="border-width">1pt</xsl:attribute>
   <xsl:attribute name="border-color">black</xsl:attribute>
   <xsl:attribute name="background-color">#DDDDDD</xsl:attribute>
-  <xsl:attribute name="padding-left">12pt</xsl:attribute>
-  <xsl:attribute name="padding-right">12pt</xsl:attribute>
+  <xsl:attribute name="padding-start">12pt</xsl:attribute>
+  <xsl:attribute name="padding-end">12pt</xsl:attribute>
   <xsl:attribute name="padding-top">6pt</xsl:attribute>
   <xsl:attribute name="padding-bottom">6pt</xsl:attribute>
-  <xsl:attribute name="margin-left">0pt</xsl:attribute>
-  <xsl:attribute name="margin-right">0pt</xsl:attribute>
+  <xsl:attribute name="margin-{$direction.align.start}">0pt</xsl:attribute>
+  <xsl:attribute name="margin-{$direction.align.end}">0pt</xsl:attribute>
 <!--
   <xsl:attribute name="margin-top">6pt</xsl:attribute>
   <xsl:attribute name="margin-bottom">6pt</xsl:attribute>
index c5f0887f3468cd48e161fd0da768424255b6f623..25fd653581c5ee2dc71788a65791dd41dfa94c22 100644 (file)
@@ -16,8 +16,8 @@
 <refsynopsisdiv>
 <src:fragment xml:id="table.cell.padding.frag">
 <xsl:attribute-set name="table.cell.padding">
-  <xsl:attribute name="padding-left">2pt</xsl:attribute>
-  <xsl:attribute name="padding-right">2pt</xsl:attribute>
+  <xsl:attribute name="padding-start">2pt</xsl:attribute>
+  <xsl:attribute name="padding-end">2pt</xsl:attribute>
   <xsl:attribute name="padding-top">2pt</xsl:attribute>
   <xsl:attribute name="padding-bottom">2pt</xsl:attribute>
 </xsl:attribute-set>
index 3c49e5a9586f85c0ed2b2f7c0d8e9cf4e5ddfdf5..dc50dd137ab1f92967cd9fe49029aacb973620f7 100644 (file)
 <refsection><info><title>Description</title></info>
 
 <para>This parameter provides
-one means of adjusting the left margin for titles.
-The left margin of the body region
+the means of adjusting the left margin for titles
+when the XSL-FO processor being used is
+an old version of FOP (0.25 and earlier).
+It is only useful when the <parameter>fop.extensions</parameter>
+is nonzero.</para>
+
+<para>The left margin of the body region
 is calculated to include this space,
-and titles are outdented to the left by this amount,
-effectively leaving titles at the left margin
+and titles are outdented to the left outside
+the body region by this amount,
+effectively leaving titles at the intended left margin
 and the body text indented.
-Currently this method is only used for FOP because
+Currently this method is only used for old FOP because
 it cannot properly use the <parameter>body.start.indent</parameter>
 parameter.
-the relative 
 </para>
 <para>
-The default value for FOP is -4pc, which means the
+The default value when the <parameter>fop.extensions</parameter>
+parameter is nonzero is -4pc, which means the
 body text is indented 4 picas relative to
 the titles.
-The default value for other processors is 0pt, and
-the body indent is provided by the <parameter>body.start.indent</parameter>
+The default value when the <parameter>fop.extensions</parameter>
+parameter equals zero is 0pt, and
+the body indent should instead be specified
+using the <parameter>body.start.indent</parameter>
 parameter.
 </para>
 <para>
@@ -52,13 +60,6 @@ If you set the value to zero, be sure to still include
 a unit indicator such as <literal>0pt</literal>, or
 the FO processor will report errors.
 </para>
-<para>
-This parameter must be set to 0pt if the
-<parameter>passivetex.extensions</parameter>
-parameter is nonzero because PassiveTeX cannot handle
-the math expression with negative values 
-used to calculate the indents.
-</para>
 
 </refsection>
 </refentry>
index 899f1094e6b6da7ae6984bedc0ac8a80eb03bd88..c6959333d2375ec7ea02f607e19532a11d10fae9 100644 (file)
@@ -37,8 +37,7 @@ key name 'writing-mode' to look it up in the gentext file.
 But the param can also be
 set on the command line to override that gentext value.
 </para>
-<para>
-Accepted values are:
+<para>Accepted values are:
 <variablelist>
   <varlistentry>
     <term>lr-tb</term>
@@ -56,7 +55,7 @@ Accepted values are:
     <term>tb-rl</term>
     <listitem>
       <para>Top-to-bottom text flow in each vertical line, lines stack right to left.
-      Not supported in HTML output.</para>
+      Supported by only a few XSL-FO processors. Not supported in HTML output.</para>
     </listitem>
   </varlistentry>
   <varlistentry>