Method: Interscript.transliterate_file
- Defined in:
- lib/interscript.rb
.transliterate_file(system_code, input_file, output_file, maps = {}) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/interscript.rb', line 44 def transliterate_file(system_code, input_file, output_file, maps={}) input = File.read(input_file) output = transliterate(system_code, input, maps) File.open(output_file, 'w') do |f| f.puts(output) end puts "Output written to: #{output_file}" output_file end |