10 for line in sys.stdin:
18 fields = [x.strip () for x in line.split (';')]
22 if width not in ['A', 'W', 'F']:
25 if chars.find ('..') > 0:
26 (start,end) = chars.split ('..')
30 start, end = int(start,16), int(end,16)
32 for i in range (start, end+1):
36 def write_intervals (S):
45 print "{0x%04X, 0x%04X}, " % (start, end)
48 print "{0x%04X, 0x%04X} " % (start, end)
52 print "table for g_unichar_iswide():"
54 write_intervals (W['W'])
56 print "table for g_unichar_iswide_cjk():"
58 write_intervals (W['A'])