update.
[chise/ruby.git] / sample / t8.rb
index 1540e76..01f598e 100755 (executable)
@@ -4,11 +4,10 @@ $LOAD_PATH.unshift("..")
 require "chise/char"
 require "chise/kanjilist"
 
-[IDC_LR, IDC_AB, IDC_LMR, IDC_AMB, IDC_FS, IDC_FA, IDC_FB, IDC_FL, IDC_FUL, IDC_FUR, IDC_FLL, IDC_O].each {|idc|
+[CHISE::IDC_0, CHISE::IDC_1, CHISE::IDC_2, CHISE::IDC_3, CHISE::IDC_4, CHISE::IDC_5, CHISE::IDC_6, CHISE::IDC_7, CHISE::IDC_8, CHISE::IDC_9, CHISE::IDC_A, CHISE::IDC_B].each {|idc|
   p idc
-  KanjiList::JOYO_KANJI_LIST.each_character {|char|
-#    d = char.decompose
-    d = char.glyph_decompose
+  CHISE::KanjiList::JOYO_KANJI_LIST.each_character {|char|
+    d = char.decompose
     p [char, d] if d.include?(idc)
   }
 }