source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/hyphenate.verbatim.xml@ 67f507c

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 67f507c was 15c7d39, checked in by Matthew Burgess <matthew@…>, 11 years ago

Update stylesheets to docbook-xsl-1.78.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.1 KB
Line 
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="hyphenate.verbatim">
7<refmeta>
8<refentrytitle>hyphenate.verbatim</refentrytitle>
9<refmiscinfo class="other" otherclass="datatype">boolean</refmiscinfo>
10</refmeta>
11<refnamediv>
12<refname>hyphenate.verbatim</refname>
13<refpurpose>Should verbatim environments be hyphenated on space characters?</refpurpose>
14</refnamediv>
15
16<refsynopsisdiv>
17<src:fragment xml:id="hyphenate.verbatim.frag"><xsl:param name="hyphenate.verbatim" select="0"/></src:fragment>
18</refsynopsisdiv>
19
20<refsection><info><title>Description</title></info>
21
22<para>If the lines of program listing are too long to fit into one
23line it is quite common to split them at space and indicite by hook
24arrow that code continues on the next line. You can turn on this
25behaviour for <tag>programlisting</tag>,
26<tag>screen</tag> and <tag>synopsis</tag> elements by
27using this parameter.</para>
28
29<para>Note that you must also enable line wrapping for verbatim environments and
30select appropriate hyphenation character (e.g. hook arrow). This can
31be done using <parameter>monospace.verbatim.properties</parameter>
32attribute set:</para>
33
34<programlisting>&lt;xsl:attribute-set name="monospace.verbatim.properties"
35 use-attribute-sets="verbatim.properties monospace.properties"&gt;
36 &lt;xsl:attribute name="wrap-option"&gt;wrap&lt;/xsl:attribute&gt;
37 &lt;xsl:attribute name="hyphenation-character"&gt;&amp;#x25BA;&lt;/xsl:attribute&gt;
38&lt;/xsl:attribute-set&gt;</programlisting>
39
40<para>For a list of arrows available in Unicode see <uri xlink:href="http://www.unicode.org/charts/PDF/U2190.pdf">http://www.unicode.org/charts/PDF/U2190.pdf</uri> and <uri xlink:href="http://www.unicode.org/charts/PDF/U2900.pdf">http://www.unicode.org/charts/PDF/U2900.pdf</uri> and make sure that
41selected character is available in the font you are using for verbatim
42environments.</para>
43
44</refsection>
45</refentry>
Note: See TracBrowser for help on using the repository browser.