dreamingblackcat / rabbit-crystal

A direct port of rabbit-ruby gem to crystal language. It's a font converter library for converting between unicode and zawgyi fonts (two conflicting fonts in Myanmar language).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rabbit-crystal

This is a direct port of Rabbit-Ruby gem to crystal language. Basically, it provides a converter class that lets you convert between unicode and zawgyi (two conflicting fonts in Myanmar).

Installation

Add this to your application's shard.yml:

dependencies:
  rabbit-crystal:
    github: dreamingblackcat/rabbit-crystal

Usage

require 'rabbit'

rabbit = Rabbit::Converter.new

rabbit.uni2zg("မင်္ဂလာပါ")  # returns zg strings "မဂၤလာပါ"

rabbit.zg2uni("မဂၤလာပါ")   # returns unicode strings "မင်္ဂလာပါ"

Contributing

  1. Fork it (https://github.com/your-github-user/rabbit-crystal/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Credits

As this is a direct port, the credit all goes to the original creator of Rabbit Converter and the creator of Rabbit-Ruby gem.

License

MIT

About

A direct port of rabbit-ruby gem to crystal language. It's a font converter library for converting between unicode and zawgyi fonts (two conflicting fonts in Myanmar language).

License:MIT License


Languages

Language:Crystal 100.0%