update.
[chise/ruby.git] / sample / t2.rb
1 #!/usr/bin/env ruby
2 $KCODE = "u"
3 $LOAD_PATH.unshift("..")
4 require "chise/char"
5 p "字".decompose       # "+宀子"
6 p "榊".decompose
7 p "榊".decompose_all
8 p "鬱".decompose       # "木缶木冖鬯彡"
9 p "鬱".decompose_all   # 再帰的分解
10 p "終了".decompose
11 p "終了".decompose_all