Hi Mark,
Am Wed, 9 Aug 2017 22:34:43 -0700wrote Mark Giffin <mgiffin@earthlink.net>:
> Using XEP 4.21. I have XSL-FO tables that have cells with long URLs> in them (which are also links), and the URLs get compressed so much> that they are unreadable. They stay on the same line and do not wrap.> Is there a way to get them to wrap to the next line? I tried the same> files with Apache FOP and it just wraps the URLs.> > Source XML files are DITA, running through DITA Open Toolkit version > 2.3.3. But it does the same thing with OT version 1.8.5.
Some time ago, I've implemented an algorithm for DocBook. I wrote aXSLT template that inserts zero-width space characters before or aftersspecific characters.
Although the stylesheet is based on DocBook, I assume it can be easilyadapted to DITA as well:
https://github.com/openSUSE/suse-xsl/blob/develop/suse2013/fo/hyphenate-url.xsl
The template covers some specific things, for example, it doesn't breakbefore "http://" strings.
You need to define some parameters (ulink.hyphenate.before.chars andulink.hyphenate.after.chars) where you can find here:
https://github.com/openSUSE/suse-xsl/blob/develop/suse2013/fo/param.xsl#L399
Hope this gives you some inspirations. :)
Good luck!
-- Gruß/Regards, Thomas Schraitle
_______________________________________________(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Fri Aug 11 00:54:11 2017
This archive was generated by hypermail 2.1.8 : Fri Aug 11 2017 - 00:54:30 PDT