summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-07-30 17:48:53 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-07-30 17:48:53 +0000
commit20b8ffb95be718683c1c608c7f2fea1ece7ffc81 (patch)
treeeead32e71518489ef55c74976edbbaa7478994f1 /modules
parentffdcd28a9a3c87be593d17c8695302e259fdbc4a (diff)
downloadpango-20b8ffb95be718683c1c608c7f2fea1ece7ffc81.tar.gz
Suppress blwf on the first consonant in a syllable. (#118301, Taneem
Fri Jul 30 13:33:49 2004 Owen Taylor <otaylor@redhat.com> * modules/indic/indic-ot.c (indic_ot_reorder): Suppress blwf on the first consonant in a syllable. (#118301, Taneem Ahmed)
Diffstat (limited to 'modules')
-rw-r--r--modules/indic/indic-ot.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/indic/indic-ot.c b/modules/indic/indic-ot.c
index 332638a4..95a8bf01 100644
--- a/modules/indic/indic-ot.c
+++ b/modules/indic/indic-ot.c
@@ -294,7 +294,10 @@ glong indic_ot_reorder(const gunichar *chars, const glong *utf8_offsets, glong c
for (i = baseLimit; i < baseConsonant; i += 1) {
gunichar ch = chars[i];
- gulong tag = blwf_p;
+ /* Applying blwf to the first consonant doesn't makes sense
+ * since the below-form follows the consonant that it is
+ * put under */
+ gulong tag = (i == baseLimit) ? half_p : blwf_p;
IndicOTCharClass charClass = indic_ot_get_char_class(class_table, ch);
if (IS_CONSONANT(charClass)) {