Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chenillen-pinyin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chenillen-pinyin

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

本类实现汉字转拼音功能,由perl的Lingua::Han::PinYin包port而来(包括UniHan的数据)。

由于实际需要只实现utf-8版本,需要gbk等转拼音的请使用Iconv自行转换。

感谢Lingua::Han::PinYin原作者(http://www.fayland.org/journal/Han-PinYin.html)的工作.

#Author H.J.Leochen ( http://www.upulife.com ) work on coding, I just move it to a gem and plugin for rails usage
#License:: MIT

#Gem builder: chenillen (http://allenchan.com.cn)

= Pinyin (permlink)- Convert Chinese Characters to Pinyin letters, better usage in Rails as gem or plugins == Install $ sudo gem install Pinyin --source http://gem.github.com

= irb Usage require 'rubygems' require 'pinyin' py = Pinyin.new py.to_permlink("中国") ==>> zhong-guo py.to_pinyin_abbr("中国") ==>> zg

Bugs

  1. 多音字不知道怎么处理

  2. 英文中文夹杂的string中间英文和中文字相间的会没有separator

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc