Forbid Batak killers after vowel signs
authorDavid Corbett <corbett.dav@husky.neu.edu>
Wed, 22 Nov 2017 21:32:52 +0000 (16:32 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Sun, 24 Dec 2017 22:21:22 +0000 (14:21 -0800)
src/gen-use-table.py
src/hb-ot-shape-complex-use-table.cc
test/shaping/fonts/sha1sum/59a585a63b3df608fbeef00956c8c108deec7de6.ttf [new file with mode: 0644]
test/shaping/tests/use-syllable.tests

index 4ded54230e1ef10a0f6f6f10bee25f8f6c237d76..bbcaaf89bd73d95f93f591843f89ed549a5e2c79 100755 (executable)
@@ -297,6 +297,9 @@ def map_to_use(data):
                if U == 0x17DD: UISC = Vowel_Dependent
                if 0x1CE2 <= U <= 0x1CE8: UISC = Cantillation_Mark
 
+               # TODO: https://github.com/harfbuzz/harfbuzz/pull/627
+               if 0x1BF2 <= U <= 0x1BF3: UISC = Nukta; UIPC = Bottom
+
                # TODO: U+1CED should only be allowed after some of
                # the nasalization marks, maybe only for U+1CE9..U+1CF1.
                if U == 0x1CED: UISC = Tone_Mark
index fd6978f281e08e93dd1736dafb870558021ca634..c1a33625a6c5defd6f90a98b64a85e6537926929 100644 (file)
@@ -307,7 +307,7 @@ static const USE_TABLE_ELEMENT_TYPE use_table[] = {
   /* 1BC0 */     B,     B,     B,     B,     B,     B,     B,     B,     B,     B,     B,     B,     B,     B,     B,     B,
   /* 1BD0 */     B,     B,     B,     B,     B,     B,     B,     B,     B,     B,     B,     B,     B,     B,     B,     B,
   /* 1BE0 */     B,     B,     B,     B,     B,     B, CMAbv,  VPst,  VAbv,  VAbv,  VPst,  VPst,  VPst,  VAbv,  VPst,  VAbv,
-  /* 1BF0 */  FAbv,  FAbv,  VPst,  VPst,     O,     O,     O,     O,     O,     O,     O,     O,     O,     O,     O,     O,
+  /* 1BF0 */  FAbv,  FAbv, CMBlw, CMBlw,     O,     O,     O,     O,     O,     O,     O,     O,     O,     O,     O,     O,
 
   /* Lepcha */
 
diff --git a/test/shaping/fonts/sha1sum/59a585a63b3df608fbeef00956c8c108deec7de6.ttf b/test/shaping/fonts/sha1sum/59a585a63b3df608fbeef00956c8c108deec7de6.ttf
new file mode 100644 (file)
index 0000000..70f0513
Binary files /dev/null and b/test/shaping/fonts/sha1sum/59a585a63b3df608fbeef00956c8c108deec7de6.ttf differ
index 0661142c60ee656708a7458b7eceacf3dd5095ba..a48633b8383012aac93a0e2ab858b7e47383c21a 100644 (file)
@@ -4,3 +4,4 @@ fonts/sha1sum/e68a88939e0f06e34d2bc911f09b70890289c8fd.ttf::U+AA00,U+AA35,U+AA33
 fonts/sha1sum/e68a88939e0f06e34d2bc911f09b70890289c8fd.ttf::U+AA00,U+AA35,U+AA36:[a_cham=0+1121|laMedial_waMedial_cham=0@43,0+0]
 fonts/sha1sum/074a5ae6b19de8f29772fdd5df2d3d833f81f5e6.ttf:--no-glyph-names:U+11320,U+20F0,U+11367:[3=0+502|1=0@33,0+0|4=0@300,8+0]
 fonts/sha1sum/373e67bf41ca264e260a9716162b71a23549e885.ttf:--no-glyph-names:U+A8AC,U+A8B4,U+A8B5:[2=0+377|3=0+242|4=0+210]
+fonts/sha1sum/59a585a63b3df608fbeef00956c8c108deec7de6.ttf:--no-glyph-names:U+1BC7,U+1BEA,U+1BF3:[1=0+749|2=0+402|4=0+535|3=0+401]