From 34b57149065d96f7528aaccaa7654e956ce27e93 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 17 Jul 2012 14:09:32 -0400 Subject: [PATCH] [Indic] Treat Khmer Register Shifters more like Nuktas Except that there may be a ZWNJ before a Register Shifter. --- src/hb-ot-shape-complex-indic-machine.rl | 2 +- .../shaper-indic/south-east-asian/script-khmer/misc/misc.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hb-ot-shape-complex-indic-machine.rl b/src/hb-ot-shape-complex-indic-machine.rl index e519e71d1..3c7193d92 100644 --- a/src/hb-ot-shape-complex-indic-machine.rl +++ b/src/hb-ot-shape-complex-indic-machine.rl @@ -56,7 +56,7 @@ RS = 14; Coeng = 15; c = C | Ra; -n = N N?; +n = (N.N? | ZWNJ?.RS); z = ZWJ|ZWNJ; h = H | Coeng; matra_group = (M | RS) N? H?; diff --git a/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/misc.txt b/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/misc.txt index 3396db319..c9e5443f0 100644 --- a/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/misc.txt +++ b/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/misc.txt @@ -12,3 +12,5 @@ ង្ឈឹ ង្គ្រ ង្រ្គ +ម៉្លេះ +ម‌៉្លេះ