Resolves: rhbz#431401 a hack to split syllables on 1st 0d4d of a 0d4d...

This commit is contained in:
Caolan McNamara 2008-02-04 15:14:00 +00:00
parent aeba8a4c94
commit 63d5041f05
2 changed files with 15 additions and 2 deletions

View File

@ -1,7 +1,7 @@
diff -ur icu.orig/source/layout/IndicReordering.cpp icu/source/layout/IndicReordering.cpp diff -ur icu.orig/source/layout/IndicReordering.cpp icu/source/layout/IndicReordering.cpp
--- icu.orig/source/layout/IndicReordering.cpp 2006-11-10 09:42:44.000000000 +0000 --- icu.orig/source/layout/IndicReordering.cpp 2006-11-10 09:42:44.000000000 +0000
+++ icu/source/layout/IndicReordering.cpp 2006-11-10 09:47:05.000000000 +0000 +++ icu/source/layout/IndicReordering.cpp 2006-11-10 09:47:05.000000000 +0000
@@ -423,6 +423,48 @@ @@ -423,6 +423,57 @@
state = stateTable[state][charClass & CF_CLASS_MASK]; state = stateTable[state][charClass & CF_CLASS_MASK];
@ -14,6 +14,15 @@ diff -ur icu.orig/source/layout/IndicReordering.cpp icu/source/layout/IndicReord
+ (chars[cursor] == 0x0CC6 && chars[cursor + 1] == 0x0CC2 && chars[cursor + 2] == 0x0CD5)) { /*for 3 split matra of Kannada*/ + (chars[cursor] == 0x0CC6 && chars[cursor + 1] == 0x0CC2 && chars[cursor + 2] == 0x0CD5)) { /*for 3 split matra of Kannada*/
+ return cursor + 3; + return cursor + 3;
+ } + }
+ else if ( (charCount >= cursor + 4) &&
+ (
+ chars[cursor] == 0x0D4D &&
+ (chars[cursor + 1] >= 0x0d15 && chars[cursor + 1] <= 0x0d39) &&
+ chars[cursor + 2] == 0x0D4D && chars[cursor + 3] == 0x0D30
+ )
+ ) {
+ return cursor + 1;
+ }
+ /*for 2 split matra*/ + /*for 2 split matra*/
+ else if (charCount >= cursor + 2) { + else if (charCount >= cursor + 2) {
+ /*for Bengali*/ + /*for Bengali*/

View File

@ -1,6 +1,6 @@
Name: icu Name: icu
Version: 3.8.1 Version: 3.8.1
Release: 4%{?dist} Release: 5%{?dist}
Summary: International Components for Unicode Summary: International Components for Unicode
Group: Development/Tools Group: Development/Tools
License: MIT License: MIT
@ -145,6 +145,10 @@ rm -rf $RPM_BUILD_ROOT
%doc source/__docs/%{name}/html/* %doc source/__docs/%{name}/html/*
%changelog %changelog
* Mon Feb 04 2008 Caolan McNamara <caolanm@redhat.com> - 3.8.1-5
- Resolves: rhbz#431401 split syllables on 1st 0d4d of a 0d4d +
(>= 0d15 && <= 0d39) + 0d4d + 0d30 sequence
* Thu Jan 31 2008 Caolan McNamara <caolanm@redhat.com> - 3.8.1-4 * Thu Jan 31 2008 Caolan McNamara <caolanm@redhat.com> - 3.8.1-4
- Resolves: rhbz#431029, rhbz#424661 Remove workaround for 0D31 characters - Resolves: rhbz#431029, rhbz#424661 Remove workaround for 0D31 characters