move file to chise/
[chise/ruby.git] / tools / t2.rb
diff --git a/tools/t2.rb b/tools/t2.rb
new file mode 100755 (executable)
index 0000000..5da8f3e
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/env ruby
+$LOAD_PATH << '../src'
+require 'chise'
+include CHISE
+p "字".decompose      # "+宀子"
+p "榊".decompose
+p "榊".decompose_all
+p "鬱".decompose      # "木缶木冖鬯彡"
+p "鬱".decompose_all  # 再帰的分解
+p "終了".decompose
+p "終了".decompose_all