AsianCharacter
This gem provides prononciation and pinyin transcription for Chinese characters
Installation
Add this line to your application's Gemfile:
gem 'asian_character'
And then execute:
$ bundle
Or install it yourself as:
$ gem install asian_character
Usage
require 'asian_character'
word = AsianCharacter::Word.new('谢谢')
#to get pinyin transcription
= word. #returns xie4xie4
#to get a url to mp3 audio sound
audio_url = word.sound_url
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request