summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '3rdParty/DocBook/XSL/params/writing.mode.xml')
-rw-r--r--3rdParty/DocBook/XSL/params/writing.mode.xml83
1 files changed, 83 insertions, 0 deletions
diff --git a/3rdParty/DocBook/XSL/params/writing.mode.xml b/3rdParty/DocBook/XSL/params/writing.mode.xml
new file mode 100644
index 0000000..c695933
--- /dev/null
+++ b/3rdParty/DocBook/XSL/params/writing.mode.xml
@@ -0,0 +1,83 @@
+<refentry xmlns="http://docbook.org/ns/docbook"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="5.0" xml:id="writing.mode">
+<refmeta>
+<refentrytitle>writing.mode</refentrytitle>
+<refmiscinfo class="other" otherclass="datatype">string</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>writing.mode</refname>
+<refpurpose>Direction of text flow based on locale</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment xml:id="writing.mode.frag">
+<xsl:param name="writing.mode">
+ <xsl:call-template name="gentext">
+ <xsl:with-param name="key">writing-mode</xsl:with-param>
+ <xsl:with-param name="lang">
+ <xsl:call-template name="l10n.language">
+ <xsl:with-param name="target" select="/*[1]"/>
+ </xsl:call-template>
+ </xsl:with-param>
+ </xsl:call-template>
+</xsl:param>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsection><info><title>Description</title></info>
+
+<para>Sets direction of text flow and text alignment based on locale.
+The value is normally taken from the gentext file for the
+lang attribute of the document's root element, using the
+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:
+<variablelist>
+ <varlistentry>
+ <term>lr-tb</term>
+ <listitem>
+ <para>Left-to-right text flow in each line, lines stack top to bottom.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>rl-tb</term>
+ <listitem>
+ <para>Right-to-left text flow in each line, lines stack top to bottom.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>tb-rl</term>
+ <listitem>
+ <para>Top-to-bottom text flow in each vertical line, lines stack right to left.
+ Supported by only a few XSL-FO processors. Not supported in HTML output.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>lr</term>
+ <listitem>
+ <para>Shorthand for lr-tb.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>rl</term>
+ <listitem>
+ <para>Shorthand for rl-tb.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>tb</term>
+ <listitem>
+ <para>Shorthand for tb-rl.</para>
+ </listitem>
+ </varlistentry>
+</variablelist>
+</para>
+
+</refsection>
+</refentry>