An open API service indexing awesome lists of open source software.

https://github.com/huanlv94/vietnameses

Gem xử lý dấu trong Tiếng Việt
https://github.com/huanlv94/vietnameses

gem ruby ruby-gem vietnamese

Last synced: 4 months ago
JSON representation

Gem xử lý dấu trong Tiếng Việt

Awesome Lists containing this project

README

          

Build: ![Build Status](https://travis-ci.org/lehuan94cntt/vietnameses.svg?branch=master)
[![Gem Version](https://badge.fury.io/rb/vietnameses.svg)](https://badge.fury.io/rb/vietnameses)

Vietnameses
===========

```
Xử lý string là tiếng việt trong ruby.
```

Bạn nghĩ việc bỏ dấu trong Tiếng Việt là khó khăn ?

Mọi việc sẽ trở nên đơn giản hơn với `Vietnameses`.

Installation
------------

gem install vietnameses

Compatibility
-------------

### Ruby

Yêu cầu với ruby 1.9.3 trở lên.

Cách sử dụng
------------

### Require the gem

``` ruby
require 'vietnameses'
```

### Started
``` ruby
str = 'Töi tën lā Hųân!'
str_out = Vietnameses.convert_iso(str) # From string ISO-8859-1
puts str_out

str = 'Tôi là ai ?'
str_out = Vietnameses.convert_unicode(str) # From string UTF-8
puts str_out
```

Testing
-------
run test with `rspec`

Author
------

@huanlv