hanzi
Hanzi
Utilities for dealing with chinese characters
Installation
-
Add the dependency to your
shard.yml
:dependencies: hanzi: github: nipinium/hanzi
-
Run
shards install
Usage
require "hanzi"
# Convert pinyin numbers to tone marks
puts Hanzi::Pinyin.number_to_tone("pin1 yin1")
# => "pīn yīn"
# Translate hanzi to pinyin
puts Hanzi::Pinyin.hanzi_to_pinyin("节操")
# => "jié cāo"
LICENSE
MIT
Repository
hanzi
Owner
Statistic
- 1
- 0
- 0
- 0
- 0
- over 5 years ago
- February 7, 2019
License
MIT License
Links
Synced at
Wed, 06 Nov 2024 16:03:40 GMT
Languages