change directory
[chise/ruby.git] / tools / t7.rb
1 #!/usr/bin/env ruby
2 $LOAD_PATH << '../lib'
3 require 'chise'
4 require 'chise/kanjilist'
5 include CHISE
6
7 def atom_list(list)
8   list.map_character {|char|
9     char.decompose.char_length == 1 ? char.decompose : ""
10   }
11 end
12
13 puts atom_list(KanjiList::JOYO_KANJI_LIST)
14 puts atom_list(KanjiList::JISX0208_KANJI_LIST)