This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Re: Soft line breaks in XSL:FO output
- From: Steinar Bang <sb at dod dot no>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Fri, 10 Oct 2003 14:03:30 +0200
- Subject: [docbook-apps] Re: Soft line breaks in XSL:FO output
- Cancel-lock: sha1:XyUmjJEpvf69vjHw2BVLo2onhEs=
- Organization: Probably a good idea
- References: <878yntfshg.fsf@home.lan> <200310100940.h9A9edgr050711@adat.davidashen.net>
>>>>> David Tolpin <dvd@davidashen.net>:
> Soft linebreaks are called zero-width space in Unicode, 200B
> hexadecimal. Insert \x200b during preprocessing at points where you
> want the URL to be broken, turn hyphenation off for that part of the
> text
I tried inserting Èb at the points where I wanted the URLs to be
broken, but that didn't give me the desired results. I got
http:// some-
machine/path/to/somewhere
when the result I was hoping for, was:
http://
somemachine/path/to/somewhere
(I didn't spot the bit about turning hyphenation off, in your message.
Perhaps that would have fixed it?)
I ended up with inserting <fo:block/>. I put in the PI
<?fo-table-cell-break?> where I wanted the break, and put the
following template into my local customization style sheet for
generating XSL:FO:
<xsl:template match="processing-instruction('fo-table-cell-break')">
<fo:block/>
</xsl:template>
Thanx!
- Steinar
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.