From 9f259769a61f17b47701bbad79e1865571338417 Mon Sep 17 00:00:00 2001 From: David Corbett Date: Tue, 21 Nov 2017 14:16:10 -0500 Subject: [PATCH] Categorize U+A8B4 as Consonant_Medial --- src/gen-use-table.py | 3 +++ src/hb-ot-shape-complex-use-table.cc | 2 +- .../373e67bf41ca264e260a9716162b71a23549e885.ttf | Bin 0 -> 1164 bytes test/shaping/tests/use-syllable.tests | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 test/shaping/fonts/sha1sum/373e67bf41ca264e260a9716162b71a23549e885.ttf diff --git a/src/gen-use-table.py b/src/gen-use-table.py index e8acc5670..4ded54230 100755 --- a/src/gen-use-table.py +++ b/src/gen-use-table.py @@ -307,6 +307,9 @@ def map_to_use(data): # TODO: https://github.com/harfbuzz/harfbuzz/pull/609 if U == 0x20F0: UISC = Cantillation_Mark; UIPC = Top + # TODO: https://github.com/harfbuzz/harfbuzz/pull/626 + if U == 0xA8B4: UISC = Consonant_Medial + values = [k for k,v in items if v(U,UISC,UGC)] assert len(values) == 1, "%s %s %s %s" % (hex(U), UISC, UGC, values) USE = values[0] diff --git a/src/hb-ot-shape-complex-use-table.cc b/src/hb-ot-shape-complex-use-table.cc index ab6730db0..fd6978f28 100644 --- a/src/hb-ot-shape-complex-use-table.cc +++ b/src/hb-ot-shape-complex-use-table.cc @@ -377,7 +377,7 @@ static const USE_TABLE_ELEMENT_TYPE use_table[] = { /* A880 */ VMPst, VMPst, B, B, B, B, B, B, B, B, B, B, B, B, B, B, /* A890 */ B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, /* A8A0 */ B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, B, - /* A8B0 */ B, B, B, B, FPst, VPst, VPst, VPst, VPst, VPst, VPst, VPst, VPst, VPst, VPst, VPst, + /* A8B0 */ B, B, B, B, MPst, VPst, VPst, VPst, VPst, VPst, VPst, VPst, VPst, VPst, VPst, VPst, /* A8C0 */ VPst, VPst, VPst, VPst, H, VMAbv, O, O, O, O, O, O, O, O, O, O, /* A8D0 */ B, B, B, B, B, B, B, B, B, B, O, O, O, O, O, O, diff --git a/test/shaping/fonts/sha1sum/373e67bf41ca264e260a9716162b71a23549e885.ttf b/test/shaping/fonts/sha1sum/373e67bf41ca264e260a9716162b71a23549e885.ttf new file mode 100644 index 0000000000000000000000000000000000000000..214a1956d9aa21730492f9a3bd6bae25b4bf4f2f GIT binary patch literal 1164 zcmZuwTWB0r82-;(nspN=t+}+7Hja{Dm4NBe*it2!>}Ipj;0Civ%D%)&vThc$lVvk$ zn^0p^)RI%^QUXR?@O3Le#U^hm6{IL_5gJkPDSc`C&<9b&8JW=aJ2Q!hcn<&N`_F$n zw`3}nq&iw8m0pU*<7QpWCt)J`k%-xSvEDfCBb`WfVQcOiNDju%^v@D$dx6cq!J!^w z?%)OB4&Zch@VUrGeKmg&DQm#5j_0jH<@VR3h#vsHFqyF?9$o7G2J124=Ob zrVwK+G-T(T%#0)Tr`&pSpJ1-3xTfkJ(6-;=ZuzfeT|8c25_caHE&FH>BI=tDclFNN zxkzU;3ekO{I}km`eALq!oi5B3bJ-t=OAg+7Qavr_MpZ4yo^3qk^_(HV0?M>Vp8~K2X z;ZvM@iy~CuUfTxeZo6(=7IF7T(^BjO@6O1@4Y7HeFTZT_x4(On^NlO~(i@jQ)D1D( zRBDjN*f77cP%f{ml*_BZo3H1O5tRmS$;+EGqg*G~XZZ8B+eGl#GUKg$%Gp9l#+>)Iv9_mGx?M zM_a2_f9)I@9!dUd-*xaNI_7i#c-rtEBuSsjYCtkqWev0ryNcO1m({Lhdb1$pIe z8K&k}l=d+0qJ>y2-k(B`az7;d^GC2gOs6UAuXl}Q>?|e5>}-S**`j4r;&pohI=DrN Z8Edu(K35#4gk$BW!1GgB{ZCdu_1}>C5e5JN literal 0 HcmV?d00001 diff --git a/test/shaping/tests/use-syllable.tests b/test/shaping/tests/use-syllable.tests index e06e2fa20..0661142c6 100644 --- a/test/shaping/tests/use-syllable.tests +++ b/test/shaping/tests/use-syllable.tests @@ -3,3 +3,4 @@ fonts/sha1sum/e68a88939e0f06e34d2bc911f09b70890289c8fd.ttf::U+AA00,U+AA34,U+AA36 fonts/sha1sum/e68a88939e0f06e34d2bc911f09b70890289c8fd.ttf::U+AA00,U+AA35,U+AA33:[a_cham=0+1121|laMedial_cham=0@-32,0+0|yaMedial_cham=0+542] 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]