When formatting a chinese document the wrap property does not work well. Sometimes an overflow takes place, and for now I can't explain why this happens at that moment. I use following font "Arial Unicode MS" Does anybody have the same problem?
Created attachment 755 [details] test case to reproduce the problem
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?
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed