From: Norman Walsh Date: Mon, 28 Jan 2002 16:13:09 +0000 (+0000) Subject: Provide option to allow URLs to be conditionally hyphenated X-Git-Tag: release/1.79.1~6^2~5948 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bea1474e97d3b6eafcafb41a8f746b114fa2034f;p=docbook-dsssl Provide option to allow URLs to be conditionally hyphenated --- diff --git a/xsl/fo/param.ent b/xsl/fo/param.ent index c187d1382..69e870864 100644 --- a/xsl/fo/param.ent +++ b/xsl/fo/param.ent @@ -121,6 +121,7 @@ + diff --git a/xsl/fo/param.xweb b/xsl/fo/param.xweb index 3c9d72adb..0900f64c2 100644 --- a/xsl/fo/param.xweb +++ b/xsl/fo/param.xweb @@ -188,6 +188,7 @@ to be incomplete. Don't forget to read the source, too :-) &blockquote.properties; &ulink.show; &ulink.footnotes; +&ulink.hyphenate; FO @@ -467,6 +468,7 @@ around all these parameters. + diff --git a/xsl/fo/xref.xsl b/xsl/fo/xref.xsl index 49754d44e..3023c0c07 100644 --- a/xsl/fo/xref.xsl +++ b/xsl/fo/xref.xsl @@ -344,7 +344,9 @@ xsl:use-attribute-sets="xref.properties"> - + + + @@ -356,12 +358,34 @@ and $ulink.show != 0"> [ - + + + ] + + + + + + + + + / + + + + + + + + + + + diff --git a/xsl/params/ulink.hyphenate.xml b/xsl/params/ulink.hyphenate.xml new file mode 100644 index 000000000..0fc56f4bf --- /dev/null +++ b/xsl/params/ulink.hyphenate.xml @@ -0,0 +1,28 @@ + + +ulink.hyphenate +string + + +ulink.hyphenate +Allow URLs to be automatically hyphenated + + + + + + + + +Description + +If not empty, the specified character (or more generally, content) is +added to URLs after every /. If the character specified is a +Unicode soft hyphen (0x00AD) or Unicode zero-width space (0x200B), some FO +processors will be able to reasonably hyphenate long URLs. + +As of 28 Jan 2002, discretionary hyphens are more widely and correctly +supported than zero-width spaces for this purpose. + + +