(DL.attention): New selector.
[www/chise.git] / symposium2003 / eto / count1.rb
1 #!/usr/bin/env ruby
2 $LOAD_PATH << '../ruby/src'
3 require 'chise'
4 require 'kanjilist'
5 include CHISE
6
7 h = Hash.new(0)
8 KanjiList.instance.jisx0208.each_character {|char|
9   ids = char.decompose
10   if ids.nil? || ids.char_length < 2
11     h['element'] += 1
12   else
13     idc = ids.char_at(0)
14     h[idc] += 1
15   end
16 }
17 p h.to_a.sort