[use] Simplify

Fixes https://github.com/harfbuzz/harfbuzz/pull/661
This commit is contained in:
Behdad Esfahbod 2018-01-03 14:24:44 +00:00
parent 308f419215
commit 877d15e73c
2 changed files with 2 additions and 3 deletions

View File

@ -354,7 +354,7 @@ data = map_to_use(data)
# Remove the outliers
singles = {}
for u in [0x034F, 0x25CC, 0x1107F]:
for u in [0x034F, 0x25CC]:
singles[u] = data[u]
del data[u]

View File

@ -482,7 +482,7 @@ static const USE_TABLE_ELEMENT_TYPE use_table[] = {
/* 11040 */ VBlw, VBlw, VAbv, VAbv, VAbv, VAbv, H, O, O, O, O, O, O, O, O, O,
/* 11050 */ O, O, N, N, N, N, N, N, N, N, N, N, N, N, N, N,
/* 11060 */ N, N, N, N, N, N, B, B, B, B, B, B, B, B, B, B,
/* 11070 */ O, O, O, O, O, O, O, O, O, O, O, O, O, O, O, O,
/* 11070 */ O, O, O, O, O, O, O, O, O, O, O, O, O, O, O, HN,
/* Kaithi */
@ -719,7 +719,6 @@ hb_use_get_categories (hb_codepoint_t u)
break;
case 0x11u:
if (unlikely (u == 0x1107Fu)) return HN;
if (hb_in_range<hb_codepoint_t> (u, 0x11000u, 0x110BFu)) return use_table[u - 0x11000u + use_offset_0x11000u];
if (hb_in_range<hb_codepoint_t> (u, 0x11100u, 0x1123Fu)) return use_table[u - 0x11100u + use_offset_0x11100u];
if (hb_in_range<hb_codepoint_t> (u, 0x11280u, 0x11377u)) return use_table[u - 0x11280u + use_offset_0x11280u];