# File lib/transliteration/bidi.rb, line 57 57: def self.detranslify(str, allow_slashes = true) 58: slash = allow_slashes ? '/' : ''; 59: 60: str.split('/').inject(out = "") do |out, pg| 61: strings = pg.split('+') 62: 1.step(strings.length-1, 2) do |x| 63: TABLE_FROM.each do | translation | 64: strings[x].gsub!(/#{translation[1]}/, translation[0]) 65: end 66: end 67: out << slash << strings.to_s 68: end 69: out[slash.length, out.length-slash.length] 70: end