On Aug 29, 2008, at 17:52, Cheri Dennison wrote:

Hi


Attached is the FO file (
http://www.nabble.com/file/p19222600/book.xml_fo_with_problem.xml
book.xml_fo_with_problem.xml ) and a PDF showing the two offending lines
that used to wrap correctly with the old FOP and DB stylesheets (
http://www.nabble.com/file/p19222600/fop_testing_wrap_test.pdf
fop_testing_wrap_test.pdf ).

The first line is on Adobe page 19, and the second is on Adobe page 34.

AFAIU, this is a known 'issue'. (see also: https://issues.apache.org/ bugzilla/show_bug.cgi?id=43474) Issue-between-quotes because, in spite of the default value for wrap- option being "wrap", strictly speaking, this only indicates that the formatter MAY (not MUST) insert implicit line-breaks. The method by which those are determined is left up to the implementation. FOP uses Unicode TR#14 (see: http://unicode.org/reports/tr14/) as a reference, and there, a break between two arbitrary alphanumeric characters is not considered, unless the two are separated by a space (which can also be a zero-width space).

As long as no one finds the time/energy to implement real line- wrapping on top of that, the workaround is to customize the stylesheet to insert zero-width spaces at strategic positions in the uninterrupted strings that would not fit on a single line. FOP will then gladly use these as additional break-possibilities.


HTH!


Cheers

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to