move file to chise/
[chise/ruby.git] / tools / t7.rb
diff --git a/tools/t7.rb b/tools/t7.rb
new file mode 100755 (executable)
index 0000000..cd8b634
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/env ruby
+$LOAD_PATH << '../src'
+require 'chise'
+require 'chise/kanjilist'
+include CHISE
+
+def atom_list(list)
+  list.map_character {|char|
+    char.decompose.char_length == 1 ? char.decompose : ""
+  }
+end
+
+puts atom_list(KanjiList::JOYO_KANJI_LIST)
+puts atom_list(KanjiList::JISX0208_KANJI_LIST)