[khmer] Rewrite grammar completely

System Internals / HarfBuzz - Behdad Esfahbod [behdad.org] - 1 October 2018 17:23 EDT

Based on experimenting with Uniscribe to extract grammar and categories.

Failures down from 44 to 35:

KHMER: 299089 out of 299124 tests passed. 35 failed (0.0117008%)

We still don't enforce the one-matra rule pre-decomposition, but enforce an order and one-matra-per-position post-decomposition.

https://github.com/harfbuzz/harfbuzz/issues/667

51436547 [khmer] Rewrite grammar completely
src/hb-ot-shape-complex-indic.hh | 2 +-
src/hb-ot-shape-complex-khmer-machine.hh | 300 ++++++++++++++++++++-----------
src/hb-ot-shape-complex-khmer-machine.rl | 42 +++--
src/hb-ot-shape-complex-khmer.cc | 4 +-
src/hb-ot-shape-complex-khmer.hh | 99 +++++-----
5 files changed, 270 insertions(+), 177 deletions(-)

Upstream: cgit.freedesktop.org


  • Share