[indic-table] Minor adjust empty lines
This commit is contained in:
parent
281a2602cc
commit
57de568aad
|
@ -634,7 +634,7 @@ for u in uu:
|
||||||
end = (end-1)//8*8 + 7
|
end = (end-1)//8*8 + 7
|
||||||
|
|
||||||
if start != last + 1:
|
if start != last + 1:
|
||||||
if start - last <= 1+16*3:
|
if start - last <= 1+16*2:
|
||||||
print_block (None, last+1, start-1, indic_data)
|
print_block (None, last+1, start-1, indic_data)
|
||||||
else:
|
else:
|
||||||
if last >= 0:
|
if last >= 0:
|
||||||
|
@ -691,6 +691,6 @@ print ('#endif')
|
||||||
print ()
|
print ()
|
||||||
print ("/* == End of generated table == */")
|
print ("/* == End of generated table == */")
|
||||||
|
|
||||||
# Maintain at least 30% occupancy in the table */
|
# Maintain at least 50% occupancy in the table */
|
||||||
if occupancy < 30:
|
if occupancy < 50:
|
||||||
raise Exception ("Table too sparse, please investigate: ", occupancy)
|
raise Exception ("Table too sparse, please investigate: ", occupancy)
|
||||||
|
|
|
@ -451,15 +451,12 @@ static const uint16_t indic_table[] = {
|
||||||
/* Grantha */
|
/* Grantha */
|
||||||
|
|
||||||
/* 11300 */ _(X,X),_(SM,SM),_(SM,SM),_(SM,SM), _(X,X), _(X,X), _(X,X), _(X,X),
|
/* 11300 */ _(X,X),_(SM,SM),_(SM,SM),_(SM,SM), _(X,X), _(X,X), _(X,X), _(X,X),
|
||||||
/* 11308 */ _(X,X), _(X,X), _(X,X), _(X,X), _(X,X), _(X,X), _(X,X), _(X,X),
|
|
||||||
/* 11310 */ _(X,X), _(X,X), _(X,X), _(X,X), _(X,X), _(X,X), _(X,X), _(X,X),
|
#define indic_offset_0x11338u 1720
|
||||||
/* 11318 */ _(X,X), _(X,X), _(X,X), _(X,X), _(X,X), _(X,X), _(X,X), _(X,X),
|
|
||||||
/* 11320 */ _(X,X), _(X,X), _(X,X), _(X,X), _(X,X), _(X,X), _(X,X), _(X,X),
|
|
||||||
/* 11328 */ _(X,X), _(X,X), _(X,X), _(X,X), _(X,X), _(X,X), _(X,X), _(X,X),
|
|
||||||
/* 11330 */ _(X,X), _(X,X), _(X,X), _(X,X), _(X,X), _(X,X), _(X,X), _(X,X),
|
|
||||||
/* 11338 */ _(X,X), _(X,X), _(X,X), _(N,X), _(N,X), _(X,X), _(X,X), _(X,X),
|
/* 11338 */ _(X,X), _(X,X), _(X,X), _(N,X), _(N,X), _(X,X), _(X,X), _(X,X),
|
||||||
|
|
||||||
}; /* Table items: 1776; occupancy: 69% */
|
}; /* Table items: 1728; occupancy: 71% */
|
||||||
|
|
||||||
uint16_t
|
uint16_t
|
||||||
hb_indic_get_categories (hb_codepoint_t u)
|
hb_indic_get_categories (hb_codepoint_t u)
|
||||||
|
@ -497,7 +494,8 @@ hb_indic_get_categories (hb_codepoint_t u)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x11u:
|
case 0x11u:
|
||||||
if (hb_in_range<hb_codepoint_t> (u, 0x11300u, 0x1133Fu)) return indic_table[u - 0x11300u + indic_offset_0x11300u];
|
if (hb_in_range<hb_codepoint_t> (u, 0x11300u, 0x11307u)) return indic_table[u - 0x11300u + indic_offset_0x11300u];
|
||||||
|
if (hb_in_range<hb_codepoint_t> (u, 0x11338u, 0x1133Fu)) return indic_table[u - 0x11338u + indic_offset_0x11338u];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue