Sha256: 7fe18459a76195be83a13d999bc2dd3ec01ec51a20ca369e43aadb09b9f131b5
Contents?: true
Size: 541 Bytes
Versions: 2
Compression:
Stored size: 541 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__)) require 'ting' require 'csv' zhuyin = Ting.writer(:zhuyin, :marks) pinyin = Ting.writer(:hanyu, :accents) pinyin2 = Ting.writer(:hanyu, :numbers) writers = [ [:hanyu, :numbers], [:hanyu, :accents], [:ipa, :ipa], [:tongyong, :accents], [:wadegiles, :supernum], [:zhuyin, :marks], [:palladius, :no_tones] ].map {|args| Ting.writer(*args)} Ting.all_syllables do |s| puts CSV.generate { |csv| csv.puts writers.map {|w| w.call(s) } } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ting-0.12.0 | bin/ting_table |
ting-0.11.0 | bin/ting_table |