From 87cd63266e73af316b250573ef57388a0bcc9133 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 19 Jul 2012 21:17:48 -0400 Subject: [PATCH] [Indic] Recategorize some Kannada right matras Kannada failures down from 3.5% to 2.93%. --- src/hb-ot-shape-complex-indic.cc | 2 +- .../texts/in-tree/shaper-indic/indic/script-kannada/misc/MANIFEST | 1 + .../shaper-indic/indic/script-kannada/misc/right-matras.txt | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/misc/right-matras.txt diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index e4325b8..19ced2d 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -142,7 +142,7 @@ consonant_position (hb_codepoint_t u, hb_ot_map_t *map, hb_font_t *font) IS_ORYA(u) ? POS_AFTER_POST : \ IS_TAML(u) ? POS_AFTER_POST : \ IS_TELU(u) ? (u <= 0x0C42 ? POS_BEFORE_SUB : POS_AFTER_SUB) : \ - IS_KNDA(u) ? (u != 0x0CD5 ? POS_BEFORE_SUB : POS_AFTER_SUB) : \ + IS_KNDA(u) ? (u < 0x0CC3 || u > 0xCD6 ? POS_BEFORE_SUB : POS_AFTER_SUB) : \ IS_MLYM(u) ? POS_AFTER_POST : \ IS_SINH(u) ? POS_AFTER_SUB : \ /*default*/ POS_AFTER_SUB \ diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/misc/MANIFEST index 29cfb2f..f53f999 100644 --- a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/misc/MANIFEST +++ b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/misc/MANIFEST @@ -1 +1,2 @@ misc.txt +right-matras.txt diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/misc/right-matras.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/misc/right-matras.txt new file mode 100644 index 0000000..3130f35 --- /dev/null +++ b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/misc/right-matras.txt @@ -0,0 +1,7 @@ +ಸ್ಕು +ಸ್ಕೂ +ಸ್ಕೃ +ಸ್ಕೄ +ಸ್ಕಾ +ಸ್ಕೕ +ಸ್ಕೕ -- 2.7.4