projects
/
chise
/
ruby.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add config file
[chise/ruby.git]
/
tools
/
t7.rb
1
#!/usr/bin/env ruby
2
$KCODE = 'u'
3
$LOAD_PATH << '../lib'
4
require 'chise'
5
require 'chise/kanjilist'
6
include CHISE
7
8
def atom_list(list)
9
list.map_character {|char|
10
char.decompose.char_length == 1 ? char.decompose : ""
11
}
12
end
13
14
puts atom_list(KanjiList::JOYO_KANJI_LIST)
15
puts atom_list(KanjiList::JISX0208_KANJI_LIST)