[Home] [By Thread] [By Date] [Recent Entries]
At 2012-08-15 07:13 -0400, Philip Vallone wrote:
I have an xml input that will be processed into a FO file, via Saxon and Apache's FOP (1.0). The resulting string will eventually be output to a fo:table-cell. FOP does a decent job of hyphenating, however it is not perfect. If I have a string input like this: Yes, if you look on page 317 of my XSL-FO book (you can download it in full for free) at: http://www.CraneSoftwrights.com/training/#pfux (use the "Try and Buy free trial A4/US download" links) ... you'll see an example of this where I recommend to students to inject the string with Unicode zero-width spaces: ​ That way if the string fits, you see no visual difference, but if the string does not fit, it breaks more likely where you have injected the zero-width spaces. I needed to solve this problem for URIs. Of course your space method and my zero-width-space method still presents the problem that if the user uses copy and paste from the printed material, those characters are embedded in the copied content. In my case I typically make the URI linkable so that users will be more tempted to simply click on it than use copy and paste. I hope this helps. . . . . . . . . . . . Ken -- Public XSLT, XSL-FO, UBL and code list classes in Europe -- Oct 2012 Contact us for world-wide XML consulting and instructor-led training Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|

Cart



