Sha256: 665840f044bb54e08d89148d855f057a8c21154db168ac495894db0c0d9aafa8

Contents?: true

Size: 358 Bytes

Versions: 6

Compression:

Stored size: 358 Bytes

Contents

$: << File.join(File.dirname(__FILE__), '../lib')

require 'pinyin'

conv1 = Pinyin::Converter.new(:hanyu, :numbers, :wadegiles, :accents)
conv2 = Pinyin::Converter.new(:wadegiles, :accents, :zhuyin, :marks)

pinyin    = 'wo3 de2 peng2 you3 shi4 dai4 fu'
wadegiles = conv1 << pinyin
zhuyin    = conv2 << wadegiles

puts pinyin, wadegiles, zhuyin

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
arnebrasseur-pinyin-0.1.5 examples/hello.rb
ting-0.3.0 examples/hello.rb
ting-0.2.1 examples/hello.rb
ting-0.2.0 examples/hello.rb
pinyin-0.0.1 examples/hello.rb
pinyin-0.1.4 examples/hello.rb