]> granicus.if.org Git - docbook-dsssl/commitdiff
Add support for more characters to hyphen on when ulink.hyphenate
authorBob Stayton <bobs@sagehill.net>
Mon, 8 May 2006 03:57:05 +0000 (03:57 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 8 May 2006 03:57:05 +0000 (03:57 +0000)
is turned on.

xsl/params/ulink.hyphenate.chars.xml [new file with mode: 0644]
xsl/params/ulink.hyphenate.xml

diff --git a/xsl/params/ulink.hyphenate.chars.xml b/xsl/params/ulink.hyphenate.chars.xml
new file mode 100644 (file)
index 0000000..d27c7b3
--- /dev/null
@@ -0,0 +1,32 @@
+<refentry id="ulink.hyphenate.chars">
+<refmeta>
+<refentrytitle>ulink.hyphenate.chars</refentrytitle>
+<refmiscinfo role="type">string</refmiscinfo>
+</refmeta>
+<refnamediv>
+<refname>ulink.hyphenate.chars</refname>
+<refpurpose>List of characters to allow ulink URLs to be automatically hyphenated on</refpurpose>
+</refnamediv>
+
+<refsynopsisdiv>
+<src:fragment id='ulink.hyphenate.chars.frag'>
+<xsl:param name="ulink.hyphenate.chars" select="'/'"/>
+</src:fragment>
+</refsynopsisdiv>
+
+<refsect1><title>Description</title>
+
+<para>If the <parameter>ulink.hyphenate</parameter> is not empty, then 
+hyphenation of ulinks is turned on, and any
+character contained in this parameter is treated as an allowable
+hyphenation point.</para>
+
+<para>The default value is <quote>/<quote>, but the parameter
+could be customized
+to contain other URL characters, as for example:</para>
+<programlisting>
+&lt;xsl:param name="ulink.hyphenate.chars"&gt;:/@&amp;?.#&lt;/xsl:param&gt;
+</programlisting>
+
+</refsect1>
+</refentry>
index 4c4fc84f344fa7f72942e8275e9000eea26421ee..1838777d3426690e13be9f56d22ebe0969f648d7 100644 (file)
@@ -17,7 +17,9 @@
 <refsect1><title>Description</title>
 
 <para>If not empty, the specified character (or more generally, content) is
-added to URLs after every <quote>/</quote>. If the character specified is a
+added to URLs after every character included in the string
+in the <parameter>ulink.hyphenate.chars</parameter> parameter (default
+is <quote>/</quote>). If the character in this parameter is a
 Unicode soft hyphen (0x00AD) or Unicode zero-width space (0x200B), some FO
 processors will be able to reasonably hyphenate long URLs.</para>