Sha256: 9f3db941e6b0e1565e6b43e6995c2574275f730124352c90e0dc73d6f9425caa

Contents?: true

Size: 622 Bytes

Versions: 1

Compression:

Stored size: 622 Bytes

Contents

# Spingying - 获得汉字拼音首字母

[![Build Status](https://travis-ci.org/wear/spinying.png?branch=master)](https://travis-ci.org/wear/spinying)

## 简介

汉字生成拼音首字母.比如"蜂鸟"可转成"fn",简单,方便,不依赖任何外部服务!


## 用法
加入gemfile

`
gem 'spinying','~> 0.9'
`

调用范例

`
Spinying.parse(:word => '南方周末').should == 'nfzm'
`

简体中文会返回拼音首字母,英文则返回原文。

注意:经测试繁体字母对应还有问题

## 作者

Stephen wear636359220@gmail.com

Copyright (c) 2013 Stephen, released under the MIT license

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spinying-0.9 README.markdown