Re: [docbook-apps] db 5, para formatting, fo output

From
davep <>
Date
2011-07-25T15:39:10+00:00
ID
Thread
Re: [docbook-apps] db 5, para formatting, fo output
On 07/25/2011 04:30 PM, Bob Stayton wrote:
> Hi Dave,
> The DocBook XSL stylesheets can already insert zero-width spaces for 
> long URLs.  See this reference:
>
> http://www.sagehill.net/docbookxsl/Ulinks.html#BreakLongUrls
>
> Bob Stayton
> Sagehill Enterprises
> 

Thanks Bob... I think :-)
I had

<xsl:param name="ulink.hyphenate">&#x200B;</xsl:param>
I have added
<xsl:param name="ulink.hyphenate.chars">/</xsl:param>
I ran that and I'm still getting squashed, long lines?
src
<link
xlink:href="http://money.cnn.com/magazines/fortune/fortune_archive/2004/02/23/362182/index.htm">http://money.cnn.com/magazines/fortune/fortune_archive/2004/02/23/362182/index.htm</link>

Screenshot attached?


regards






>
>
> ----- Original Message ----- From: "davep" <>
> To: <>
> Sent: Monday, July 25, 2011 8:22 AM
> Subject: Re: [docbook-apps] db 5, para formatting, fo output
>
>
>> On 07/25/2011 03:41 PM, davep wrote:
>>> Attached (if it gets through) the horrible looking result when 
>>> justification is on and the line includes a url of any length.
>>> 1. I'd like to have justified text (param alignment='justified'), 
>>> but if it contains a url...
>>> (Yes, not easy)
>>> or
>>> 2. How to persuade the formatter to hyphenate url's at / or similar 
>>> to make it look better?
>>> Using xep
>>
>> Half a solution
>>
>> <xsl:template match="d:link">
>> <xsl:copy>
>> <xsl:copy-of select="@*"/>
>> <xsl:value-of select="replace(.,'/','/&#x200b;')"/>
>> </xsl:copy>
>> </xsl:template>
>>
>> As a pre-process.
>>   Still looks ugly using justified text.... though OK when left 
>> justified.
>>
>> I somehow don't think I can do better than this.
>>
>> Any suggestions appreciated.
>>
>>
>>
>>
>>
>> regards
>>
>> -- 
>> Dave Pawson
>> XSLT XSL-FO FAQ.
>> http://www.dpawson.co.uk
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: 
>> For additional commands, e-mail: 
>>
>>
>>
>
>


regards

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk