[unsafe-to-break] Mark Indic-like clusters as unsafe-to-break
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 11 Aug 2017 01:45:33 +0000 (18:45 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 11 Aug 2017 03:10:53 +0000 (20:10 -0700)
src/hb-ot-shape-complex-indic.cc
src/hb-ot-shape-complex-myanmar.cc
src/hb-ot-shape-complex-use.cc

index 02aab08..3cd8fd6 100644 (file)
@@ -624,6 +624,8 @@ setup_syllables (const hb_ot_shape_plan_t *plan HB_UNUSED,
                 hb_buffer_t *buffer)
 {
   find_syllables (buffer);
+  foreach_syllable (buffer, start, end)
+    buffer->unsafe_to_break (start, end);
 }
 
 static int
index 4e912c3..ebd2b40 100644 (file)
@@ -297,6 +297,8 @@ setup_syllables (const hb_ot_shape_plan_t *plan HB_UNUSED,
                 hb_buffer_t *buffer)
 {
   find_syllables (buffer);
+  foreach_syllable (buffer, start, end)
+    buffer->unsafe_to_break (start, end);
 }
 
 static int
index af68706..a5ab0ab 100644 (file)
@@ -354,6 +354,8 @@ setup_syllables (const hb_ot_shape_plan_t *plan,
                 hb_buffer_t *buffer)
 {
   find_syllables (buffer);
+  foreach_syllable (buffer, start, end)
+    buffer->unsafe_to_break (start, end);
   setup_rphf_mask (plan, buffer);
   setup_topographical_masks (plan, buffer);
 }