Re: [docbook-apps] breaking long urls in pdf

From
Bob Stayton <>
Date
2005-08-30T23:22:37+00:00
ID
02c001c5adb9$b23e4eb0$6400a8c0@toshiro
Thread
Re: [docbook-apps] breaking long urls in pdf
Actually, you don't need to insert the spaces yourself, you can have the
stylesheet do it after each slash, using the ulink.hyphenate parameter:

http://docbook.sourceforge.net/release/xsl/current/doc/fo/ulink.hyphenate.html

You just enter the url attribute and leave the content blank.  Then the
displayed ulink will be hyphenated but the URL will not, and the stylesheet
will not treat them as different.

Bob Stayton
Sagehill Enterprises
DocBook Consulting



----- Original Message ----- 
From: "Cheryl Chase" <>
To: <>
Sent: Tuesday, August 30, 2005 2:58 PM
Subject: [docbook-apps] breaking long urls in pdf


> I'm a new user of docbook and xep, working on formatting a medical book.
>
> I tried the "inserting zero-width spaces after slashes" trick to make
> my long urls break nicely in a pdf.
>
> Unfortunately, that caused xep to decide that, since the link text
> was now different from the link, it should display the link in square
> brackets following the link text. Like this:
>
>
> *** XML
>
> <para>For more information, see:
> <ulink url="http://www.hopkinschildrens.org/specialties/categorypages/
> intersex/">http://www.hopkinschildrens.org/&#x200b;specialties/
> &#x200b;categorypages/&#x200b;intersex/</ulink></para>
>
>
> *** PDF
>
> For more information, see: http://www.hopkinschildrens.org/
> specialties/categorypages/intersex/
> [http://www.hopkinschildrens.org/specialties/categorypages/intersex/]
>
> How can I suppress this behavior?
>
> Thanks,
>
> Cheryl
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>