Improve normalization heuristic
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 11 Feb 2013 11:50:17 +0000 (06:50 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 11 Feb 2013 17:59:00 +0000 (12:59 -0500)
commit6e74c64211b6aaac48bae8c87f9420d8dc03fd93
tree8143f681053e225f471f64f3cd553ca7956d9c81
parent614242efb043f2ed78916377138d456279a20a54
Improve normalization heuristic

Before, for most scripts, we were not trying to recompose two characters
if the second one had ccc=0.  That fails for Myanmar where U+1026
decomposes to U+1025,U+102E, both of which have ccc=0.  However, we do
want to try to recompose those.  We now check whether the second is a
mark, using general category instead.

At the same time, remove optimization that was conflicting with this.

[Let the Ngapi hackfest begin!]
src/hb-ot-shape-normalize.cc