OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: RE: [docbook-apps] Re: Soft line breaks in XSL:FO output

I do something similar for long filenames (we have hyphenation turned off altogether):

<filename class="text">/net/monolith<?sbr?>/homes/dcramer<?sbr?>/foo/bar/baz</filename>

  <xsl:template match="processing-instruction('sbr')">
      character=" "

That way you only have a break if you need it. We're using xep 2.8, which doesn't support zero width spaces, but does fine with this. Worth a try in fop.


-----Original Message-----
From: Steinar Bang [mailto:sb@dod.no]
Sent: Friday, October 10, 2003 7:03 AM
To: docbook-apps@lists.oasis-open.org
Subject: [docbook-apps] Re: Soft line breaks in XSL:FO output

>>>>> 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 &#200b at the points where I wanted the URLs to be
broken, but that didn't give me the desired results.  I got

 http://                   some-

when the result I was hoping for, was:


(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')">


- 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/.

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]