3 SOURCE_DIR = File.join(File.dirname(__FILE__), '..', 'data')
4 TARGET_DIR = File.join(File.dirname(__FILE__), '..', 'htdocs')
5 MAPPING_TABLE = File.join(SOURCE_DIR, 'swfont.txt')
9 def_erb_method('render()', 'sw2ebas.rhtml')
12 table_file = File.new(MAPPING_TABLE)
13 table_file.each_line do |line|
15 (codepoint, sw, chars) = line.split(/\s/)
16 # printf("> %s %s %s\n", codepoint, sw, chars)
17 @lines.push([codepoint, sw, chars])
22 out = File.new(File.join(TARGET_DIR, 'sw2ebas.html'), 'w')
23 out.print MyMapper.new.render()