TabularCode
Convertion for tabular codes like Chinese quwei and Japanese kuten.
Supported row-cell notations:
| Module | Language | National standard | Alternative name |
|---|---|---|---|
| Quwei | Simplified Chinese | GB 2312-80 | Quwei 区位 |
| Kuten | Japanese | JIS X 0208:1997 | Kuten 区点 |
| KSX1001 | Korean | KS X 1001:1992 |
Installation
Add this line to your application's Gemfile:
gem 'tabular_code'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tabular_code
Usage
Example program:
require 'tabular_code'
puts Quwei.to_str([4444] * 44)
[Quwei, Kuten, KSX1001].each do |i|
p [i.from_char('一'), i.to_char(5050)]
end
p '我爱你'.quwei
p '愛してる'.kuten
p '사랑해요'.ksx1001
Example output:
See rdoc and rspec tests for more details.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request