DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4614>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4614

wrap property combined with Chinese





------- Additional Comments From [EMAIL PROTECTED]  2003-11-04 03:58 -------
After tracing the source code, I found the wrapping occurs in class
    org.apache.fop.layout.LineArea
Further tracing shows that the method:
    private boolean canBreakMidWord() 
affects the wrapping result. Notice that when variable hyphProps.language 
has value of "zh", "ja", "ko", "vi", the function will return true, where
proper wrapping will be display.
My temp solution is to specify a "language" property in block, e.g.
    <fo:block font-family="SimSun" wrap-option="wrap" language="zh">
    </fo:block>
It turns out that the wrapping is working.

I believe that this shouldn't be counted as a solution. FOP DOES support
wrapping on CJK characters, but somehow there's no notes available on this,
or the configuration on FOP should be refined?

Reply via email to