From d2da5e0b4b4ffc1722403ffb90b8777cfa1cd174 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 25 Nov 2013 17:50:07 -0500 Subject: [PATCH] [myanmar] Relax pwo-tone group a bit This is broken sequence according to OpenType spec, Uniscribe, and current HarfBuzz implementation. But Roozbeh says this is a valid sequence, so allow it. There are multiple "(DB As?)?" constructs in the grammar, but Roozbeh thinks only this one needs changing. Test case: 1014,1063,103A Fixes https://bugs.freedesktop.org/show_bug.cgi?id=71949 --- src/hb-ot-shape-complex-myanmar-machine.rl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-shape-complex-myanmar-machine.rl b/src/hb-ot-shape-complex-myanmar-machine.rl index 51d42dd64..2ac3e8904 100644 --- a/src/hb-ot-shape-complex-myanmar-machine.rl +++ b/src/hb-ot-shape-complex-myanmar-machine.rl @@ -70,7 +70,7 @@ c = C|Ra; # is_consonant medial_group = MY? MR? ((MW MH? | MH) As?)?; main_vowel_group = VPre* VAbv* VBlw* A* (DB As?)?; post_vowel_group = VPst MH? As* VAbv* A* (DB As?)?; -pwo_tone_group = PT A* (DB As?)?; +pwo_tone_group = PT A* DB? As?; complex_syllable_tail = As* medial_group main_vowel_group post_vowel_group* pwo_tone_group* V* j?; syllable_tail = (H | complex_syllable_tail);