i
[chise/ruby.git] / chise / defkanji.rb
index e2ea84c..e0c7379 100755 (executable)
@@ -98,6 +98,7 @@ module CHISE
       #p "休".decompose.to_er
       eval_print_loop
     end
+
     def show_ids(str)
       str.de_er.to_a.sort.uniq.each {|ch|
        char = ch.char
@@ -105,6 +106,7 @@ module CHISE
        print "#{char}  #{ids.map_ucs}\n" #できるだけucsに正規化するべし。
       }
     end
+
     def eval_print_loop
       while true
        line = STDIN.gets
@@ -121,12 +123,14 @@ module CHISE
       define_ids_represent
       define_ids_link
     end
+
     def define_ids_element
       IDS_ELEMENT.each_char {|ch|
        char = ch.char
        char.ids_element = ch
       }
     end
+
     def define_ids_meaning
       IDS_MEANING.each {|line|
        next if line.nil? || line == "" || line =~ /^#/
@@ -136,6 +140,7 @@ module CHISE
        print "#{ch}    #{ids}\n"
       }
     end
+
     def define_ids_represent
       IDS_REPRESENT.each {|line|
        next if line.nil? || line == "" || line =~ /^#/
@@ -145,6 +150,7 @@ module CHISE
        print "#{char.map_ucs}  #{rep}\n"
       }
     end
+
     def define_ids_link
       IDS_LINK.each {|line|
        next if line.nil? || line == "" || line =~ /^#/