Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lidashuang/pinyin
chinese pinyin lib for elixir
https://github.com/lidashuang/pinyin
Last synced: 3 months ago
JSON representation
chinese pinyin lib for elixir
- Host: GitHub
- URL: https://github.com/lidashuang/pinyin
- Owner: defp
- License: apache-2.0
- Created: 2014-07-09T20:29:44.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-11T06:24:20.000Z (over 7 years ago)
- Last Synced: 2024-04-15T22:26:20.456Z (7 months ago)
- Language: Elixir
- Size: 1.76 MB
- Stars: 21
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-elixir - pinyin - Chinese Pinyin lib for Elixir. (Text and Numbers)
- fucking-awesome-elixir - pinyin - Chinese Pinyin lib for Elixir. (Text and Numbers)
- freaking_awesome_elixir - Elixir - Chinese Pinyin lib for Elixir. (Text and Numbers)
README
Pinyin for Elixir
=========================简单的汉字转拼音工具
## Example:
```iex
iex(40)> Pinyin.pinyin "Elixir编程语言"
["Elixir", "biān", "chéng", "yǔ", "yán"]
iex(41)> Pinyin.letter "Elixir编程语言"
["Elixir", "bian", "cheng", "yu", "yan"]
iex(42)> Pinyin.letter_with_tone "Elixir编程语言"
["Elixir", "bian1", "cheng2", "yu3", "yan2"]
iex(43)> Pinyin.permlink "Elixir编程语言"
"Elixir-bian-cheng-yu-yan"
iex(44)>
```
## thanksThe pinyin data library from ruby-pinyin project:
https://github.com/janx/ruby-pinyin