Lines Matching full:print

8print ("usage: ./gen-arabic-table.py ArabicShaping.txt UnicodeData.txt Blocks.txt", file=sys.stder…
69 print ()
71 print ("#define %s %s" % (short, value))
86 print ()
87 print ("static const uint8_t joining_table[] =")
88 print ("{")
93 print ()
94 print ("#define joining_offset_0x%04xu %d" % (start, offset))
103 print ()
105 print ("\n /* %s */" % block)
107 print ("\n /* FILLER */")
110 print ()
111 print (" /* %04X */" % (u//32*32), " " * (u % 32), end="")
114 print ()
115 print (" /* %04X */ " % u, end="")
116 print ("%s," % short_value[value], end="")
117 print ()
120 print ()
122 print ("}; /* Table items: %d; occupancy: %d%% */" % (offset, occupancy))
123 print ()
126 print ()
127 print ("static unsigned int")
128 print ("joining_type (hb_codepoint_t u)")
129 print ("{")
130 print (" switch (u >> %d)" % page_bits)
131 print (" {")
134 print (" case 0x%0Xu:" % p)
138print (" if (hb_in_range<hb_codepoint_t> (u, 0x%04Xu, 0x%04Xu)) return joining_table[u - 0x%0…
139 print (" break;")
140 print ("")
141 print (" default:")
142 print (" break;")
143 print (" }")
144 print (" return X;")
145 print ("}")
146 print ()
148 print ("#undef %s" % (short))
149 print ()
190 print ()
191 print ("static const uint16_t shaping_table[][4] =")
192 print ("{")
200 print (" {%s}, /* U+%04X %s */" % (value, u, names[u] if u in names else ""))
202 print ("};")
203 print ()
204 print ("#define SHAPING_TABLE_FIRST 0x%04Xu" % min_u)
205 print ("#define SHAPING_TABLE_LAST 0x%04Xu" % max_u)
206 print ()
222 print ()
223 print ("static const struct ligature_set_t {")
224 print (" uint16_t first;")
225 print (" struct ligature_pairs_t {")
226 print (" uint16_t second;")
227 print (" uint16_t ligature;")
228 print (" } ligatures[%d];" % max_i)
229 print ("} ligature_table[] =")
230 print ("{")
233 print (" { 0x%04Xu, {" % (first))
235 print (" { 0x%04Xu, 0x%04Xu }, /* %s */" % (liga[0], liga[1], names[liga[1]]))
236 print (" }},")
238 print ("};")
239 print ()
243 print ("/* == Start of generated table == */")
244 print ("/*")
245 print (" * The following table is generated by running:")
246 print (" *")
247 print (" * ./gen-arabic-table.py ArabicShaping.txt UnicodeData.txt Blocks.txt")
248 print (" *")
249 print (" * on files with these headers:")
250 print (" *")
253 print (" * %s" % (l.strip()))
254 print (" */")
255 print ()
256 print ("#ifndef HB_OT_SHAPE_COMPLEX_ARABIC_TABLE_HH")
257 print ("#define HB_OT_SHAPE_COMPLEX_ARABIC_TABLE_HH")
258 print ()
264 print ()
265 print ("#endif /* HB_OT_SHAPE_COMPLEX_ARABIC_TABLE_HH */")
266 print ()
267 print ("/* == End of generated table == */")