Make src tests pass again
This commit is contained in:
parent
7da435f08c
commit
6d4016f1ba
|
@ -24,11 +24,13 @@ print " *"
|
||||||
for line in header:
|
for line in header:
|
||||||
print " * %s" % (line.strip())
|
print " * %s" % (line.strip())
|
||||||
print " */"
|
print " */"
|
||||||
|
print
|
||||||
|
print "#ifndef HB_OT_SHAPE_COMPLEX_ARABIC_TABLE_HH"
|
||||||
|
print "#define HB_OT_SHAPE_COMPLEX_ARABIC_TABLE_HH"
|
||||||
|
print
|
||||||
print "static const uint8_t joining_table[] ="
|
print "static const uint8_t joining_table[] ="
|
||||||
print "{"
|
print "{"
|
||||||
|
|
||||||
|
|
||||||
min_u = 0x110000
|
min_u = 0x110000
|
||||||
max_u = 0
|
max_u = 0
|
||||||
num = 0
|
num = 0
|
||||||
|
@ -71,15 +73,14 @@ for line in f:
|
||||||
else:
|
else:
|
||||||
value = "JOINING_TYPE_" + fields[2]
|
value = "JOINING_TYPE_" + fields[2]
|
||||||
print " %s, /* %s */" % (value, '; '.join(fields))
|
print " %s, /* %s */" % (value, '; '.join(fields))
|
||||||
|
|
||||||
print
|
print
|
||||||
print "};"
|
print "};"
|
||||||
print
|
print
|
||||||
|
|
||||||
print "#define JOINING_TABLE_FIRST 0x%04X" % min_u
|
print "#define JOINING_TABLE_FIRST 0x%04X" % min_u
|
||||||
print "#define JOINING_TABLE_LAST 0x%04X" % max_u
|
print "#define JOINING_TABLE_LAST 0x%04X" % max_u
|
||||||
print
|
print
|
||||||
|
print "#endif /* HB_OT_SHAPE_COMPLEX_ARABIC_TABLE_HH */"
|
||||||
|
print
|
||||||
print "/* == End of generated table == */"
|
print "/* == End of generated table == */"
|
||||||
|
|
||||||
occupancy = num * 100 / (max_u - min_u + 1)
|
occupancy = num * 100 / (max_u - min_u + 1)
|
||||||
|
|
|
@ -74,9 +74,12 @@ for h in headers:
|
||||||
for l in h:
|
for l in h:
|
||||||
print " * %s" % (l.strip())
|
print " * %s" % (l.strip())
|
||||||
print " */"
|
print " */"
|
||||||
|
print
|
||||||
|
print "#ifndef HB_OT_SHAPE_COMPLEX_INDIC_TABLE_HH"
|
||||||
|
print "#define HB_OT_SHAPE_COMPLEX_INDIC_TABLE_HH"
|
||||||
|
print
|
||||||
|
|
||||||
# Shorten values
|
# Shorten values
|
||||||
print
|
|
||||||
short = [{
|
short = [{
|
||||||
"Bindu": 'Bi',
|
"Bindu": 'Bi',
|
||||||
"Visarga": 'Vs',
|
"Visarga": 'Vs',
|
||||||
|
@ -178,7 +181,6 @@ print "#define indic_offset_total %d" % offset
|
||||||
print
|
print
|
||||||
occupancy = used * 100. / total
|
occupancy = used * 100. / total
|
||||||
print "}; /* Table occupancy: %d%% */" % occupancy
|
print "}; /* Table occupancy: %d%% */" % occupancy
|
||||||
|
|
||||||
print
|
print
|
||||||
print "static INDIC_TABLE_ELEMENT_TYPE"
|
print "static INDIC_TABLE_ELEMENT_TYPE"
|
||||||
print "get_indic_categories (hb_codepoint_t u)"
|
print "get_indic_categories (hb_codepoint_t u)"
|
||||||
|
@ -190,7 +192,6 @@ for u,d in singles.items ():
|
||||||
print " if (unlikely (u == 0x%04X)) return _(%s,%s);" % (u, short[0][d[0]], short[1][d[1]])
|
print " if (unlikely (u == 0x%04X)) return _(%s,%s);" % (u, short[0][d[0]], short[1][d[1]])
|
||||||
print " return _(x,x);"
|
print " return _(x,x);"
|
||||||
print "}"
|
print "}"
|
||||||
|
|
||||||
print
|
print
|
||||||
print "#undef _"
|
print "#undef _"
|
||||||
for i in range (2):
|
for i in range (2):
|
||||||
|
@ -200,8 +201,8 @@ for i in range (2):
|
||||||
for v in vv:
|
for v in vv:
|
||||||
print "#undef %s_%s" % \
|
print "#undef %s_%s" % \
|
||||||
(what_short[i], short[i][v])
|
(what_short[i], short[i][v])
|
||||||
|
|
||||||
print
|
print
|
||||||
|
print "#endif /* HB_OT_SHAPE_COMPLEX_INDIC_TABLE_HH */"
|
||||||
print
|
print
|
||||||
print "/* == End of generated table == */"
|
print "/* == End of generated table == */"
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,10 @@
|
||||||
* # ArabicShaping-6.1.0.txt
|
* # ArabicShaping-6.1.0.txt
|
||||||
* # Date: 2011-04-15, 23:16:00 GMT [KW]
|
* # Date: 2011-04-15, 23:16:00 GMT [KW]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef HB_OT_SHAPE_COMPLEX_ARABIC_TABLE_HH
|
||||||
|
#define HB_OT_SHAPE_COMPLEX_ARABIC_TABLE_HH
|
||||||
|
|
||||||
static const uint8_t joining_table[] =
|
static const uint8_t joining_table[] =
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -720,4 +724,6 @@ static const uint8_t joining_table[] =
|
||||||
#define JOINING_TABLE_FIRST 0x0600
|
#define JOINING_TABLE_FIRST 0x0600
|
||||||
#define JOINING_TABLE_LAST 0x08AC
|
#define JOINING_TABLE_LAST 0x08AC
|
||||||
|
|
||||||
|
#endif /* HB_OT_SHAPE_COMPLEX_ARABIC_TABLE_HH */
|
||||||
|
|
||||||
/* == End of generated table == */
|
/* == End of generated table == */
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
* # Date: 2011-06-14, 18:26:00 GMT [KW, LI]
|
* # Date: 2011-06-14, 18:26:00 GMT [KW, LI]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef HB_OT_SHAPE_COMPLEX_INDIC_TABLE_HH
|
||||||
|
#define HB_OT_SHAPE_COMPLEX_INDIC_TABLE_HH
|
||||||
|
|
||||||
|
|
||||||
#define ISC_A INDIC_SYLLABIC_CATEGORY_AVAGRAHA /* 11 chars; Avagraha */
|
#define ISC_A INDIC_SYLLABIC_CATEGORY_AVAGRAHA /* 11 chars; Avagraha */
|
||||||
#define ISC_Bi INDIC_SYLLABIC_CATEGORY_BINDU /* 34 chars; Bindu */
|
#define ISC_Bi INDIC_SYLLABIC_CATEGORY_BINDU /* 34 chars; Bindu */
|
||||||
|
@ -864,5 +867,6 @@ get_indic_categories (hb_codepoint_t u)
|
||||||
#undef IMC_TR
|
#undef IMC_TR
|
||||||
#undef IMC_VOL
|
#undef IMC_VOL
|
||||||
|
|
||||||
|
#endif /* HB_OT_SHAPE_COMPLEX_INDIC_TABLE_HH */
|
||||||
|
|
||||||
/* == End of generated table == */
|
/* == End of generated table == */
|
||||||
|
|
Loading…
Reference in New Issue