Bug 29711 - [PATCH] LineArea.canBreakMidWord() RFC3066 fix
Summary: [PATCH] LineArea.canBreakMidWord() RFC3066 fix
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: page-master/layout (show other bugs)
Version: 0.20.5
Hardware: All All
: P3 major
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-21 10:25 UTC by Xiaogang Cao
Modified: 2012-04-01 07:00 UTC (History)
0 users



Attachments
LineArea RFC 3306 patch (858 bytes, patch)
2004-06-21 10:27 UTC, Xiaogang Cao
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xiaogang Cao 2004-06-21 10:25:28 UTC
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.
Comment 1 Xiaogang Cao 2004-06-21 10:27:04 UTC
Created attachment 11896 [details]
LineArea RFC 3306 patch
Comment 2 Xiaogang Cao 2004-06-21 11:01:23 UTC
correction: should be RFC 3066.
Comment 3 Chris Bowditch 2004-06-22 07:58:50 UTC
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
Comment 4 Cai Qian 2004-12-19 23:35:37 UTC
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.
Comment 5 Andreas L. Delmelle 2008-09-20 13:36:42 UTC
Bug cleanup time. 
FOP Trunk offers an implementation of Unicode TR14 linebreaking, which also covers the breaking rules for Chinese.
Comment 6 Glenn Adams 2012-04-01 07:00:23 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed