From 8f6e390f2f8e4216e1337a830a51cbed6434a0de Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 1 Dec 2006 21:22:19 +0000 Subject: Red Hat Bug 213632: ZWJ (200d) and ZWNJ (200c) showing same output Patch 2006-12-01 Behdad Esfahbod Red Hat Bug 213632: ZWJ (200d) and ZWNJ (200c) showing same output Patch from LingNing Zhang * modules/indic/indic-ot.c (indic_ot_reorder): Handle ZWNJ. --- modules/indic/indic-ot.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/indic') diff --git a/modules/indic/indic-ot.c b/modules/indic/indic-ot.c index a03e0141..3af5e119 100644 --- a/modules/indic/indic-ot.c +++ b/modules/indic/indic-ot.c @@ -410,6 +410,9 @@ glong indic_ot_reorder(const gunichar *chars, const glong *utf8_offsets, glong c if (IS_VATTU(charClass) && supressVattu) { tag = nukt_p; } + else if ((i + 2 < baseConsonant) && (chars[i + 2] == C_SIGN_ZWNJ)) { + tag = nukt_p; + } supressVattu = IS_VATTU(charClass); } else if (IS_VIRAMA(charClass) && chars[i + 1] == C_SIGN_ZWNJ) -- cgit v1.2.1