Japanese numeral for Ruby kaigi by tal

puts $<.map{|i|l=d=0;i.gsub(/.../){k="8:y<DATLf;dU".index(($&[0]+$&[2]-300).chr)
l=k<4?(d+=(l>0?l:1)*10**k;0):k-2}
d+l}

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

download

return top