summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
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)) {