You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Prasanna <Pr...@in.bosch.com> on 2011/04/07 08:31:06 UTC
Series of hyphen in fo:block are bypassing wrap-option="wrap"
Hi,
Series of hyphen chars are not getting wrapped with wrap-option="wrap". Any
clue why this is happening?
The fo block with text such as ------------------------------------------------
------------------------ is not getting wrapped! The text is running till the
end of line in the pdf report.
Thanks,
Prasanna
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Series of hyphen in fo:block are bypassing wrap-option="wrap"
Posted by "Andreas L. Delmelle" <an...@telenet.be>.
On 07 Apr 2011, at 08:31, Prasanna wrote:
Hi Prasanna,
> Series of hyphen chars are not getting wrapped with wrap-option="wrap". Any
> clue why this is happening?
Some, but the most important one is probably that FOP implements Unicode line breaking rules, and Unicode UAX#14 does not allow breaking before characters of class HY (such as U+002D HYPHEN-MINUS). See: http://unicode.org/reports/tr14/#Algorithm and scroll down to find "LB21 Do not break before hyphen-minus ..."
If you need a true line-wrapping effect, the usually suggested workaround is to inject ZWSP into the text, either at strategically chosen locations or between every two characters/hyphens.
Regards,
Andreas
---
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org