5 print "luatexbase.provides_module({\n"
6 print " name = 'luatexja.jisx0213'})\n"
7 print "module('luatexja.jisx0213', package.seeall)\n"
8 print "table_jisx0213_2004 = {\n"
9 print "-- [index: (men-1)*0x10000 + kuten] = ucs_code\n"
10 open("jisx0213-2004-8bit-std.txt", "r").each_line {|line|
17 if line =~ /0x([0-9A-F]+)\s+U\+([0-9A-F]+)\s+.*$/
18 jxcode = $1.hex - 0x2020
20 jxcode = jxcode - 0x8080 + 0x10000
23 print " [0x", jxcode.to_s(16), "]=0x", ucscode, ",\n"