[Indic] Form Telugu Reph out of Ra,Virama,ZWJ
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 20 Jul 2012 18:13:35 +0000 (14:13 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 20 Jul 2012 18:13:35 +0000 (14:13 -0400)
Apparently this was approved in Feb 2012.  No font yet.

src/hb-ot-shape-complex-indic-private.hh
src/hb-ot-shape-complex-indic.cc

index bbf5484..5f4856e 100644 (file)
@@ -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 */
 
index ffba986..36bf240 100644 (file)
@@ -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 */ )
        ))
     {