xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas L. Delmelle" <andreas.delme...@telenet.be>
Subject Re: Series of hyphen in fo:block are bypassing wrap-option="wrap"
Date Thu, 07 Apr 2011 16:25:18 GMT
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.


To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message