Japanese numeral for Ruby kaigi by HIROX (kaigi)

#!ruby -Kun\x0d
p eval $_.chop.gsub(/./){|r|Hash[/\xe4\xb8\x80/,1,/\xe4\xba\x8c/,2,/\xe4\xb8\x89/,3,/\xe5\x9b\x9b/,4,/\xe4\xba\x94/,5,/\xe5\x85\xad/,6,/\xe4\xb8\x83/,7,/\xe5\x85\xab/,8,/\xe4\xb9\x9d/,9,/\xe5\x8d\x81/,'*10+',/\xe7\x99\xbe/,'*100+',/\xe5\x8d\x83/,'*1000+'].each{|k,v|break v if r=~k}}.gsub(/(^\*|\+$|(\+)\*)/,'\2')

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

download

return top