summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2008-02-08 23:50:33 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2008-02-08 23:50:33 +0000
commit306f6559bddb47b68a8b27285f6d84139890f6ce (patch)
treebcd9571e3aa6e1fd59927a68f8cb9d8e1c2d22eb
parente5b7a12cfc631932d7ef0fbdb4ee8ed5ed3fd27e (diff)
downloadpango-306f6559bddb47b68a8b27285f6d84139890f6ce.tar.gz
Bug 504810 – Samvruthokaram (combination of U+0D41 and U+0D4D) is not
2008-02-08 Behdad Esfahbod <behdad@gnome.org> Bug 504810 – Samvruthokaram (combination of U+0D41 and U+0D4D) is not rendered correctly Patch from Praveen A * modules/indic/indic-ot-class-tables.c: * modules/indic/indic-ot.c (indic_ot_reorder): "Fix" it. svn path=/branches/pango-1-18/; revision=2563
-rw-r--r--ChangeLog10
-rw-r--r--modules/indic/indic-ot-class-tables.c2
-rw-r--r--modules/indic/indic-ot.c6
3 files changed, 17 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3bf07b41..1676bbdd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2008-02-08 Behdad Esfahbod <behdad@gnome.org>
+
+ Bug 504810 – Samvruthokaram (combination of U+0D41 and U+0D4D) is not
+ rendered correctly
+ Patch from Praveen A
+
+ * modules/indic/indic-ot-class-tables.c:
+ * modules/indic/indic-ot.c (indic_ot_reorder):
+ "Fix" it.
+
2008-01-10 Behdad Esfahbod <behdad@gnome.org>
Bug 508179 – PangoGlyphUnit confusion
diff --git a/modules/indic/indic-ot-class-tables.c b/modules/indic/indic-ot-class-tables.c
index 963dcfa5..5c561765 100644
--- a/modules/indic/indic-ot-class-tables.c
+++ b/modules/indic/indic-ot-class-tables.c
@@ -270,7 +270,7 @@ static const IndicOTSplitMatra sinhSplitTable[] = {{0x0DD9, 0x0DCA}, {0x0DD9, 0x
#define TAML_SCRIPT_FLAGS (SF_MPRE_FIXUP | SF_NO_POST_BASE_LIMIT)
#define TELU_SCRIPT_FLAGS (SF_MATRAS_AFTER_BASE | 3)
#define KNDA_SCRIPT_FLAGS (SF_MATRAS_AFTER_BASE | 3)
-#define MLYM_SCRIPT_FLAGS (SF_MPRE_FIXUP | SF_NO_POST_BASE_LIMIT )
+#define MLYM_SCRIPT_FLAGS (SF_MPRE_FIXUP | SF_NO_POST_BASE_LIMIT | SF_PROCESS_ZWJ)
#define SINH_SCRIPT_FLAGS (SF_MPRE_FIXUP | SF_NO_POST_BASE_LIMIT | SF_PROCESS_ZWJ)
/*
diff --git a/modules/indic/indic-ot.c b/modules/indic/indic-ot.c
index 87dea87e..de1b4224 100644
--- a/modules/indic/indic-ot.c
+++ b/modules/indic/indic-ot.c
@@ -259,6 +259,12 @@ glong indic_ot_reorder(const gunichar *chars, const glong *utf8_offsets, glong c
case CC_NUKTA:
case CC_VIRAMA:
case CC_AL_LAKUNA:
+ /* patch for rendering fix for Malayalam SAMVRUTHOKARA by suresh */
+ if (chars[prev - 1] == 0x0D41) {
+ writeChar(&output, chars[prev], prev, blwf_p);
+ break;
+ }
+ /* end patch */
writeChar(&output, C_DOTTED_CIRCLE, prev, blwf_p);
writeChar(&output, chars[prev], prev, blwf_p);
break;