Skip to content

defp/pinyin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 11, 2017
41e7b5b · May 11, 2017

History

15 Commits
Mar 5, 2016
Mar 5, 2016
Jul 7, 2014
May 11, 2017
Jul 10, 2014
Mar 5, 2016
May 11, 2017

Repository files navigation

Pinyin for Elixir

简单的汉字转拼音工具

Example:

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)>

thanks

The pinyin data library from ruby-pinyin project:

https://github.com/janx/ruby-pinyin

About

chinese pinyin lib for elixir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages