Re: Series of hyphen in fo:block are bypassing wrap-option="wrap"

2011-04-07 Thread Andreas L. Delmelle
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-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Series of hyphen in fo:block are bypassing wrap-option="wrap"

2011-04-07 Thread Prasanna
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-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org