#p "休".decompose.to_er
eval_print_loop
end
+
def show_ids(str)
str.de_er.to_a.sort.uniq.each {|ch|
char = ch.char
print "#{char} #{ids.map_ucs}\n" #できるだけucsに正規化するべし。
}
end
+
def eval_print_loop
while true
line = STDIN.gets
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 =~ /^#/
print "#{ch} #{ids}\n"
}
end
+
def define_ids_represent
IDS_REPRESENT.each {|line|
next if line.nil? || line == "" || line =~ /^#/
print "#{char.map_ucs} #{rep}\n"
}
end
+
def define_ids_link
IDS_LINK.each {|line|
next if line.nil? || line == "" || line =~ /^#/