projects
/
chise
/
ruby.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
i
[chise/ruby.git]
/
sample
/
t7.rb
1
#!/usr/bin/env ruby
2
$KCODE = "u"
3
$LOAD_PATH.unshift("..")
4
require "chise/char"
5
require "chise/kanjilist"
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)