Giter Club home page Giter Club logo

bromanizer's Introduction

About

Bromanizer is automatic romanization system for Burmese text, based on BGN/PCGN 1970 Standard

Usage

See the tests below for example usage.

self.assertEqual(Romanizer.romanize(BGN_PCGN, 'ကို'), "ko")
self.assertEqual(Romanizer.romanize(BGN_PCGN, 'အက'), "aga")
self.assertEqual(Romanizer.romanize(BGN_PCGN, 'မဒမ'), "madama")
self.assertEqual(Romanizer.romanize(BGN_PCGN, 'ပြစင်'), 'pyazin')
self.assertEqual(Romanizer.romanize(BGN_PCGN, 'အကာ'), 'aga')
self.assertEqual(Romanizer.romanize(BGN_PCGN, 'အိုဘဲ့'), 'obè')
self.assertEqual(Romanizer.romanize(BGN_PCGN, "အပ်"), "at")
self.assertEqual(Romanizer.romanize(BGN_PCGN, "မအူ"), "ma-u")
self.assertEqual(Romanizer.romanize(BGN_PCGN, "သီးပင်အိုင်"),'thibin-aing')
self.assertEqual(Romanizer.romanize(BGN_PCGN, "ဩဘာ"), "awba")
self.assertEqual(Romanizer.romanize(BGN_PCGN, "ဧဏီ"), "eni")
self.assertEqual(Romanizer.romanize(BGN_PCGN, "ကြောင်ဥကျဉ်"), "kyaung-ugyin")
self.assertEqual(Romanizer.romanize(BGN_PCGN, "သဒ္ဒါ"), "thadda")
self.assertEqual(Romanizer.romanize(BGN_PCGN, "အန္တိမဘဝ"), "andimabawa")
self.assertEqual(Romanizer.romanize(BGN_PCGN, "ဥက္ကဌ"), "ukkada")
self.assertEqual(Romanizer.romanize(BGN_PCGN, "ရွှေငန်း"),"shwengan")
self.assertEqual(Romanizer.romanize(BGN_PCGN, "ညီညာ"), "nyinya")
self.assertEqual(Romanizer.romanize(BGN_PCGN, "အင်းကွတ်"),"in-gut")
self.assertEqual(Romanizer.romanize(BGN_PCGN, "ကွန်ရက်"),"kun-yet")
self.assertEqual(Romanizer.romanize(BGN_PCGN, "တိုင်အောင်"), "taing-aung")
self.assertEqual(Romanizer.romanize(BGN_PCGN, "ဟက်ဟက်ပက်ပက်ရယ်"),"het-hetpetpetyè")
self.assertEqual(Romanizer.romanize(BGN_PCGN, "ဝသီ"), "wathi")
self.assertEqual(Romanizer.romanize(BGN_PCGN, "ဘေးမဲ့"), "bemè")
self.assertEqual(Romanizer.romanize(BGN_PCGN, "သင်္ဘော"),"thinbaw")
self.assertEqual(Romanizer.romanize(BGN_PCGN, "ဘင်္ဂလားအော်"), "bin-gala-aw")
self.assertEqual(Romanizer.romanize(BGN_PCGN, "စင်္ကာပူ"),"sin-gabu")

TODO

  • Add MLCTS and IPA transliteraions.
  • Add more tests.

bromanizer's People

Contributors

trhura avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ayechanmon2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.