Repository Details
Shared by
HelloGitHub Rating
0 ratings
用于 Ruby 的中文汉字转拼音
Past 7 days Received 0 stars ✨
Use arrow keys to explore dates, Home and End for the first and last date, Escape to dismiss.| Date | Star | Daily change |
|---|---|---|
| 周二 | 542 | — |
| 周三 | 542 | 0 |
| 周四 | 542 | 0 |
| 周五 | 542 | 0 |
| 周六 | 542 | 0 |
| 周日 | 542 | 0 |
| 周一 | 542 | 0 |
542
Stars
No
Chinese
Ruby
Language
No
Active
8
Contributors
15
Issues
No
Organization
None
Latest
64
Forks
BSD-3-Clause
License
可以把汉字转化为对应的拼音的库,同时能够较好的处理多音字的情况。正确处理多音字,示例代码如下:
```ruby
PinYin.of_string('南京市长江大桥', :unicode)
return ["nán", "jīng", "shì", "cháng", "jiāng", "dà", "qiáo"]
能够正确的将“长”转为“chang2”,而不是“zhang3”
```
Comments
Rating:
No comments yet