From 11aa3ef18dbc6ac9561bd119f5ca2c1aa1209c3a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 11 May 2012 17:30:48 +0200 Subject: [PATCH] [Indic] Treat U+0951..U+0954 all similar to U+0952 --- src/hb-ot-shape-complex-indic.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index 089df06e7..ec6073844 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -203,7 +203,8 @@ _hb_ot_shape_complex_setup_masks_indic (hb_ot_map_t *map, hb_buffer_t *buffer, h else if (unlikely (info.codepoint == 0x200D)) info.indic_category() = OT_ZWJ; - if (unlikely (info.codepoint == 0x0952)) { + /* The spec only suggests this for U+0952, but we do more. */ + if (unlikely (hb_in_range (info.codepoint, 0x0951, 0x0954))) { info.indic_category() = OT_A; info.indic_position() = POS_SMVD; }