There is a problem in canBreakMidWord() function that cannot split word correctly for zh-cn, zh-tw locales. The locale format is described in RFC 3306 : RFC 3066: Tags for the Identification of Languages ftp://ftp.isi.edu/in-notes/rfc3066.txt Please find the patch in attachment.
Created attachment 11896 [details] LineArea RFC 3306 patch
correction: should be RFC 3066.
Thanks for taking the time to formulate this Patch. However, please be aware that the maintenance code (FOP versions 0.20.x) is frozen. Development is focused on CVS Head, and so it is unlikely that your patch will be committed to the code base. We will be very pleased if you could review our development code, and possibly submit patches to the development version. Thanks, Chris
This bug have caused a lot of problem for CJK people. I think it is very easy to fix. It really need someone to fix it.
Bug cleanup time. FOP Trunk offers an implementation of Unicode TR14 linebreaking, which also covers the breaking rules for Chinese.
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed