From 15c7d39533a1eb1da0748011f3378fd0f02ed14d Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Tue, 8 Oct 2013 20:03:29 +0000 Subject: Update stylesheets to docbook-xsl-1.78.1. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- .../params/hyphenate.verbatim.xml | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/hyphenate.verbatim.xml (limited to 'stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/hyphenate.verbatim.xml') diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/hyphenate.verbatim.xml b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/hyphenate.verbatim.xml new file mode 100644 index 000000000..c66e700cf --- /dev/null +++ b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/hyphenate.verbatim.xml @@ -0,0 +1,45 @@ + + +hyphenate.verbatim +boolean + + +hyphenate.verbatim +Should verbatim environments be hyphenated on space characters? + + + + + + +Description + +If the lines of program listing are too long to fit into one +line it is quite common to split them at space and indicite by hook +arrow that code continues on the next line. You can turn on this +behaviour for programlisting, +screen and synopsis elements by +using this parameter. + +Note that you must also enable line wrapping for verbatim environments and +select appropriate hyphenation character (e.g. hook arrow). This can +be done using monospace.verbatim.properties +attribute set: + +<xsl:attribute-set name="monospace.verbatim.properties" + use-attribute-sets="verbatim.properties monospace.properties"> + <xsl:attribute name="wrap-option">wrap</xsl:attribute> + <xsl:attribute name="hyphenation-character">&#x25BA;</xsl:attribute> +</xsl:attribute-set> + +For a list of arrows available in Unicode see http://www.unicode.org/charts/PDF/U2190.pdf and http://www.unicode.org/charts/PDF/U2900.pdf and make sure that +selected character is available in the font you are using for verbatim +environments. + + + -- cgit v1.2.3-54-g00ecf