Skip to content

yelinaung/mmfont

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mmfont

Build Status Gem Version Dependency Status Inline docs

A simple gem which converts zawgyi1 <=> unicode strings. It uses the rules from paytan and basically, the ruby converter. It's written with TDD. Special thanks to @steveklabnik for his tutorials How I Start Ruby.

Installation

Add this line to your application's Gemfile:

gem 'mmfont'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mmfont

Usage

require 'mmfont'

mmfont = Mmfont::Converter.new

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

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

Is it fast ?

I am not sure. But of course, Ruby is basically slow, regardless of implementations, compared to Nodejs, Go, Rust etc. Some benchmarks, maybe ?

TODO

  • Write TESTS!

Contributing

  1. Fork it ( https://github.com/yelinaung/mmfont )
  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

License

MIT

About

A simple Ruby gem which converts zawgyi1 <=> unicode strings

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages