writing.mode.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <refentry xmlns="http://docbook.org/ns/docbook"
  2. xmlns:xlink="http://www.w3.org/1999/xlink"
  3. xmlns:xi="http://www.w3.org/2001/XInclude"
  4. xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
  5. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  6. version="5.0" xml:id="writing.mode">
  7. <refmeta>
  8. <refentrytitle>writing.mode</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">string</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>writing.mode</refname>
  13. <refpurpose>Direction of text flow based on locale</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="writing.mode.frag">
  17. <xsl:param name="writing.mode">
  18. <xsl:call-template name="gentext">
  19. <xsl:with-param name="key">writing-mode</xsl:with-param>
  20. <xsl:with-param name="lang">
  21. <xsl:call-template name="l10n.language">
  22. <xsl:with-param name="target" select="/*[1]"/>
  23. </xsl:call-template>
  24. </xsl:with-param>
  25. </xsl:call-template>
  26. </xsl:param>
  27. </src:fragment>
  28. </refsynopsisdiv>
  29. <refsection><info><title>Description</title></info>
  30. <para>Sets direction of text flow and text alignment based on locale.
  31. The value is normally taken from the gentext file for the
  32. lang attribute of the document's root element, using the
  33. key name 'writing-mode' to look it up in the gentext file.
  34. But this param can also be
  35. set on the command line to override that gentext value.
  36. </para>
  37. <para>Accepted values are:
  38. <variablelist>
  39. <varlistentry>
  40. <term>lr-tb</term>
  41. <listitem>
  42. <para>Left-to-right text flow in each line, lines stack top to bottom.</para>
  43. </listitem>
  44. </varlistentry>
  45. <varlistentry>
  46. <term>rl-tb</term>
  47. <listitem>
  48. <para>Right-to-left text flow in each line, lines stack top to bottom.</para>
  49. </listitem>
  50. </varlistentry>
  51. <varlistentry>
  52. <term>tb-rl</term>
  53. <listitem>
  54. <para>Top-to-bottom text flow in each vertical line, lines stack right to left.
  55. Supported by only a few XSL-FO processors. Not supported in HTML output.</para>
  56. </listitem>
  57. </varlistentry>
  58. <varlistentry>
  59. <term>lr</term>
  60. <listitem>
  61. <para>Shorthand for lr-tb.</para>
  62. </listitem>
  63. </varlistentry>
  64. <varlistentry>
  65. <term>rl</term>
  66. <listitem>
  67. <para>Shorthand for rl-tb.</para>
  68. </listitem>
  69. </varlistentry>
  70. <varlistentry>
  71. <term>tb</term>
  72. <listitem>
  73. <para>Shorthand for tb-rl.</para>
  74. </listitem>
  75. </varlistentry>
  76. </variablelist>
  77. </para>
  78. </refsection>
  79. </refentry>