11 f = open("glyphlist.txt", "r")
12 for line in f.readlines():
17 name, list = line.split(';')
18 list = map(lambda x: int(x, 16), list.split(' '))
19 agl.append((name, list))
21 for name, ucslist in agl:
24 agltab.append((name, ucs))
27 aglmap[ucs].append(name)
37 sys.stdout.write("\n")
39 sys.stdout.write(item)
41 sys.stdout.write("\n")
46 for name, ucs in agltab:
47 namelist.append("\"%s\"" % name)
48 codelist.append("%d" % ucs)
58 dupoffsets.append("%d,%d" % (ucs, ofs))
60 dupnames.append("\"%s\"" % name)
63 print "static const char *agl_name_list[] = {"
67 print "static const unsigned short agl_code_list[] = {"
71 print "static const unsigned short agl_dup_offsets[] = {"
75 print "static const char *agl_dup_names[] = {"