move file to chise/
[chise/ruby.git] / tools / t8.rb
diff --git a/tools/t8.rb b/tools/t8.rb
new file mode 100755 (executable)
index 0000000..893ce94
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/env ruby
+$LOAD_PATH << '../src'
+require 'chise'
+require 'chise/kanjilist'
+include CHISE
+
+[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|
+  p idc
+  KanjiList::JOYO_KANJI_LIST.each_character {|char|
+#    d = char.decompose
+    d = char.glyph_decompose
+    p [char, d] if d.include?(idc)
+  }
+}