Sha256: cf120cadd4ff4368613f792e9bb24a5c0bac4717216d160bbb2f180acd058dcc

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 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

1 entries across 1 versions & 1 rubygems

Version Path
ting-0.9.0 examples/hello.rb