<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 this 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>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 12728 | eedwards |
Upgrade ANT doc build infrastructure to assemble PDFs: - remove non-namespaced DocBook source and add namespaced DocBook source. - add Apache FOP 1.1 - copy fonts, images, XSL into _build, establishing new asset structure. The original structure remains until all guides using it can be upgraded, and several other issues can be resolved. - updated build.xml to allow for per-target build properties. - upgraded the P4SAG to use the new infrastructure. - tweaked admonition presentation in PDFs to remove admonition graphics, and resemble closely the presentation used in the new HTML layout, including the same colors. With these changes, building PDFs involves using a shell, navigating into the guide's directory (just P4SAG for now), and executing "ant pdf". Issues still to be resolved: - PDF generation encounters several warnings about missing fonts (bold versions of Symbol and ZapfDingbats), and a couple of locations where the page content exceeds the defined content area. - Due to issues within Apache FOP, PDF generation emits a substantial amount of output that is not easily suppressed without losing important warning information. - Apache FOP's interface to ANT does not expose a way to set the font base directory. The current configuration does work under Mac OSX, but further testing on Windows will need to be done to determine if the relative paths defined continue to work. The workaround is for Windows users to customize the fop-config.xml to provide absolute system paths to the required fonts. - HTML generation needs further browser testing, and exhibits broken navigation on iOS browsers within the TOC sidebar. - A number of PDF and HTML presentation tweaks still need to be made, for example: sidebars, gui* DocBook tags, whitespace, section separation, etc. |