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
- Host: GitHub
- URL: https://github.com/huanlv94/vietnameses
- Owner: huanlv94
- Created: 2017-11-27T11:27:39.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-29T08:27:58.000Z (almost 8 years ago)
- Last Synced: 2025-04-08T09:11:58.925Z (7 months ago)
- Topics: gem, ruby, ruby-gem, vietnamese
- Language: Ruby
- Size: 8.79 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Build: 
[](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