move file to chise/
[chise/ruby.git] / tools / t1.rb
diff --git a/tools/t1.rb b/tools/t1.rb
new file mode 100755 (executable)
index 0000000..3e6ab22
--- /dev/null
@@ -0,0 +1,9 @@
+#!/usr/bin/env ruby
+$LOAD_PATH << '../src'
+require 'chise'
+include CHISE
+p "字"                        # "字"
+p "字".ucs            # 23383
+p "字".daikanwa               # 6942(大漢和番号)
+p "字".total_strokes  # 6
+p "字".inspect_all    # 保有する素性情報を全て出力する