naxeem / thaana-transliterator

PHP, JS script to transliterate thaana (dhivehi)
GNU General Public License v2.0
21 stars 7 forks source link

Thaana Transliterator

Thaana text to Latin transliterator.

You can use the copmoser package, or the simple PHP class or Javascript fuction.

Install

composer require naxeem/thaana-transliterator

Usage


use naxeem\ThaanaTransliterator\Transliterator;

$transliterator =  new Transliterator;

echo $transliterator->transliterate("ސަލާމް");

Other versions

NPM

github.com/mapmeld/thaana-transliterator by @mapmeld

Javascript

github.com/naxeem/thaana-transliterator-js

PHP Class

github.com/naxeem/thaana-transliterator-php-class

Use Online / Demo

Online Thaana Transliterator

Input/Output

Input

ހުރިހާ އިންސާނުން ވެސް އުފަންވަނީ، ދަރަޖައާއި ޙައްޤުތަކުގައި މިނިވަންކަމާއި ހަމަހަމަކަން ލިބިގެންވާ ބައެއްގެ ގޮތުގައެވެ. އެމީހުންނަށް ހެޔޮވިސްނުމާއި، ހެޔޮ ބުއްދީގެ ބާރު ލިބިގެންވެއެވެ. އަދި އެމީހުން އެކަކު އަނެކަކާ މެދު މުޢާމަލާތް ކުރަންވަނީ، އުޚުއްވަތްތެރި ކަމުގެ ރޫޙެއްގައެވެ.

Output

Hurihaa insaanun ves ufanvanee, dharajaaai hahquthakugai minivankamaai hamahamakan libigenvaa baehge gothugaeve. Emeehunnah heyovisnumaai, heyo buhdheege baaru libigenveeve. Adhi emeehun ekaku anekakaa medhu muaamalaai kuranvanee, ukhuhvaitheri kamuge roohehgaeve.

Contributing

Anyone is welcome to improve this.

Many thanks to @jinas123 for porting taana transliterator to composer.