From bdd080431a40bc941ece3230f338b94a46bd12a2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 20 Jul 2012 16:03:09 -0400 Subject: [PATCH] [Indic] Reposition Oriya Candrabindu Oriya failures down from 0.65% to 0.20%. --- src/hb-ot-shape-complex-indic.cc | 1 + .../texts/in-tree/shaper-indic/indic/script-oriya/misc/MANIFEST | 1 + .../in-tree/shaper-indic/indic/script-oriya/misc/bindu.txt | 2 ++ 3 files changed, 4 insertions(+) create mode 100644 test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/misc/bindu.txt diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index f75a500c8..228fc632f 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -291,6 +291,7 @@ set_indic_properties (hb_glyph_info_t &info, hb_ot_map_t *map, hb_font_t *font) pos = POS_SMVD; } + if (unlikely (u == 0x0B01)) pos = POS_BEFORE_SUB; /* Oriya Bindu is BeforeSub in the spec. */ info.indic_category() = cat; diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/misc/MANIFEST index 29cfb2f28..66a2468d3 100644 --- a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/misc/MANIFEST +++ b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/misc/MANIFEST @@ -1 +1,2 @@ +bindu.txt misc.txt diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/misc/bindu.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/misc/bindu.txt new file mode 100644 index 000000000..13de6eef0 --- /dev/null +++ b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/misc/bindu.txt @@ -0,0 +1,2 @@ +ମୁଁ +ମୁଂ