diff --git a/src/hb-ot-shape-complex-indic-private.hh b/src/hb-ot-shape-complex-indic-private.hh index bbf548405..5f4856ea9 100644 --- a/src/hb-ot-shape-complex-indic-private.hh +++ b/src/hb-ot-shape-complex-indic-private.hh @@ -177,7 +177,7 @@ static const hb_codepoint_t ra_chars[] = { 0x0AB0, /* Gujarati */ 0x0B30, /* Oriya */ 0x0BB0, /* Tamil */ /* No Reph */ - 0x0C30, /* Telugu */ /* No Reph */ + 0x0C30, /* Telugu */ /* Reph formed only with ZWJ */ 0x0CB0, /* Kannada */ 0x0D30, /* Malayalam */ /* No Reph, Logical Repha */ diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc index ffba98670..36bf24059 100644 --- a/src/hb-ot-shape-complex-indic.cc +++ b/src/hb-ot-shape-complex-indic.cc @@ -471,8 +471,8 @@ initial_reordering_consonant_syllable (const hb_ot_map_t *map, hb_buffer_t *buff start + 3 <= end && info[start].indic_category() == OT_Ra && info[start + 1].indic_category() == OT_H && - (unlikely (buffer->props.script == HB_SCRIPT_SINHALA) ? - info[start + 2].indic_category() == OT_ZWJ /* In Sinhala, form Reph only if ZWJ is present */: + (unlikely (buffer->props.script == HB_SCRIPT_SINHALA || buffer->props.script == HB_SCRIPT_TELUGU) ? + info[start + 2].indic_category() == OT_ZWJ /* In Sinhala & Telugu, form Reph only if ZWJ is present */: !is_joiner (info[start + 2] /* In other scripts, any joiner blocks Reph formation */ ) )) {