Japanese numeral for Ruby kaigi by tabasa

#!ruby -n\x0d
sub!(/\xe4\xb8\x80/){1}\x0d
gsub!(/\xe4\xba\x8c/){2}\x0d
gsub!(/\xe4\xb8\x89/){3}\x0d
gsub!(/\xe5\x9b\x9b/){4}\x0d
gsub!(/\xe4\xba\x94/){5}\x0d
gsub!(/\xe5\x85\xad/){6}\x0d
gsub!(/\xe4\xb8\x83/){7}\x0d
gsub!(/\xe5\x85\xab/){8}\x0d
gsub!(/\xe4\xb9\x9d/){9}\x0d
gsub!(/\d/){"+#$&*"}\x0d
sub!(/\xe7\x99\xbe\xe5\x8d\x81/,"\xe7\x99\xbe+\xe5\x8d\x81")\x0d
sub!(/\xe5\x8d\x83\xe7\x99\xbe/,"\xe5\x8d\x83+\xe7\x99\xbe")\x0d
sub!(/\xe5\x8d\x81/){10}\x0d
sub!(/\xe7\x99\xbe/){100}\x0d
sub!(/\xe5\x8d\x83/){1000}\x0d
eval"p "+$_+"1"

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top