rpms/qt/F-9 qt-x11-opensource-src-4.3.4-as_IN-437440.patch,1.1,1.2
Kevin Kofler (kkofler)
fedora-extras-commits at redhat.com
Tue Apr 8 01:37:55 UTC 2008
Author: kkofler
Update of /cvs/pkgs/rpms/qt/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18345/F-9
Modified Files:
qt-x11-opensource-src-4.3.4-as_IN-437440.patch
Log Message:
* Tue Apr 08 2008 Kevin Kofler <Kevin at tigcc.ticalc.org> 4.4.0-0.4.rc1
- updated patch for #437440 ([as-IN] Consonant combination issue) by Pravin Satpute
qt-x11-opensource-src-4.3.4-as_IN-437440.patch:
Index: qt-x11-opensource-src-4.3.4-as_IN-437440.patch
===================================================================
RCS file: /cvs/pkgs/rpms/qt/F-9/qt-x11-opensource-src-4.3.4-as_IN-437440.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- qt-x11-opensource-src-4.3.4-as_IN-437440.patch 26 Mar 2008 11:27:21 -0000 1.1
+++ qt-x11-opensource-src-4.3.4-as_IN-437440.patch 8 Apr 2008 01:37:12 -0000 1.2
@@ -1,5 +1,5 @@
--- qt-x11-opensource-src-4.3.4/src/gui/text/qscriptengine.cpp 2008-02-19 23:17:19.000000000 +0530
-+++ qt-x11-opensource-src-4.3.4/src/gui/text/qscriptengine.cpp_mod 2008-03-26 12:02:54.000000000 +0530
++++ qscriptengine.cpp_mod 2008-04-01 17:39:48.000000000 +0530
@@ -2174,7 +2174,7 @@ static const unsigned char indicPosition
None, None, None, None,
None, None, None, None,
@@ -9,7 +9,7 @@
None, None, None, None,
None, None, None, None,
None, None, None, None,
-@@ -2814,9 +2814,13 @@ static bool indic_shape_syllable(QOpenTy
+@@ -2814,7 +2814,7 @@ static bool indic_shape_syllable(QOpenTy
int script = item->script;
Q_ASSERT(script >= QUnicodeTables::Devanagari && script <= QUnicodeTables::Sinhala);
const unsigned short script_base = 0x0900 + 0x80*(script-QUnicodeTables::Devanagari);
@@ -17,10 +17,24 @@
+ unsigned short ra = script_base + 0x30;
const unsigned short halant = script_base + 0x4d;
const unsigned short nukta = script_base + 0x3c;
-+ if(script==14)
-+ {
-+ ra= script_base + 0x70;
-+ }
- int len = item->length;
- IDEBUG(">>>>> indic shape: from=%d, len=%d invalid=%d", item->from, item->length, invalid);
+@@ -2856,6 +2856,19 @@ static bool indic_shape_syllable(QOpenTy
+ unsigned short *uc = reordered.data();
+ bool beginsWithRa = false;
+
++ // Exception in Bengali Script
++ //
++ // Bengali script supports two languages bengali and assamese
++ // Unfortunately for both languages there is different ra defined in same script chart
++ // for Bengali it ra is 'Base+ 0x30' and for assamese 'Base+0x70'
++ // Base is same 0x0980
++ // To handle this exception we need to change ra to from const to normal variable
++ // and aslo need to change ra to 'Base+0x70' whenever we will get assamese language
++ //character in data
++ if((script == QUnicodeTables::Bengali) && (*uc==0x09F0)){
++ ra = script_base + 0x70;
++ }
++
+ // Rule 1: find base consonant
+ //
+ // The shaping engine finds the base consonant of the
More information about the fedora-extras-commits
mailing list