Go to file
Kailash Nadh dd706167d5
Merge pull request #8 from shreehari-a/master
Adjust ml2en python scripts to pep8 indentation guideline of 4 spaces.
2021-12-10 13:40:03 +05:30
ml2en Adjust ml2en python scripts to pep8 indentation guideline of 4 spaces. 2021-12-10 02:10:00 +05:30
README.md Fix README description, examples, and version 2020-08-01 14:20:02 +05:30
index.html Formatting fix 2014-02-15 15:16:04 +05:30
ml2en.java Add Java version 2019-07-03 16:11:20 +05:30
ml2en.js Added new rule for ukaram+chandrakkala 2014-10-28 11:28:11 +05:30
ml2en.php Added new rule for ukaram+chandrakkala 2014-10-28 11:28:11 +05:30
ml2en.py Adjust ml2en python scripts to pep8 indentation guideline of 4 spaces. 2021-12-10 02:10:00 +05:30
ml2en.rb Added new rule for ukaram+chandrakkala 2014-10-28 11:28:11 +05:30
setup.py Fix README description, examples, and version 2020-08-01 14:20:02 +05:30

README.md

ml2en (Python, Javascript, PHP)

An algorithm to transliterate phonetically transliterate Malayalam Unicode strings to Roman / Latin characters (Manglish).

Documentation: http://kailashnadh.name/code/ml2en

Licensed under GNU GPL v2 license.

Example

Input:

വ്യാഴത്തിന്റെ കാന്തികക്ഷേത്രം സൗരവാതത്തെ ചെറുക്കുന്ന മേഖലയാണ്‌ വ്യാഴത്തിന്റെ കാന്തമണ്ഡലം. സൂര്യനിലേക്കുള്ള ദിശയിൽ ഏതാണ്ട് എഴുപത് ലക്ഷം കിലോമീറ്ററും വിപരീത ദിശയിൽ ശനിയുടെ പരിക്രമണപഥം വരെയും ഇത് വ്യാപിച്ചുകിടക്കുന്നു. സൗരയൂഥത്തിലെ ഗ്രഹങ്ങളുടെ കാന്തമണ്ഡലങ്ങളിൽ വച്ച് ഏറ്റവും ശക്തിയേറിയതാണ്‌ വ്യാഴത്തിന്റേത്. സൗരമണ്ഡലം കഴിഞ്ഞാൽ സൗരയൂഥത്തിലെ ഏറ്റവും വലിയ ഘടനയും ഇതുതന്നെ. ഭൂമിയുടെ കാന്തമണ്ഡലത്തെക്കാൾ വീതിയേറിയതും പരന്നതുമായ വ്യാഴത്തിന്റെ കാന്തമണ്ഡലത്തിന്റെ ശക്തി ഭൂമിയൂടേതിന്റെ പത്തിരട്ടിയോളവും വ്യാപ്തം 18000 ഇരട്ടിയോളവുമാണ്‌.

Output:

Vyaazhatthinte kaanthikakshethram sauravaathatthe cherukkunna mekhalayaanu vyaazhatthinte kaanthamandalam. Sooryanilekkulla dishayil ethaandu ezhupathu laksham kilomeettarum vipareetha dishayil shaniyute parikramanapatham vareyum ithu vyaapicchukitakkunnu. Saurayoothatthile grahangalute kaanthamandalangalil vacchu ettavum shakthiyeriyathaanu vyaazhatthintethu. Sauramandalam kazhinjaal saurayoothatthile ettavum valiya ghatanayum ithuthanne. Bhoomiyute kaanthamandalatthekkaal veethiyeriyathum parannathumaaya vyaazhatthinte kaanthamandalatthinte shakthi bhoomiyootethinte patthirattiyolavum vyaaptham 18000 irattiyolavumaanu.

Why?

(Phonetic) Romanisation of Malayalam script can work decently well with phonetic search algorithms (for example, along with the Metaphone or Soundex algorithms). Could also potentially help people learning the language.

Usage

The algorithm's available in three different languages, Python, Javascript, and PHP.

Python

Install with pip3 install ml2en

from ml2en import ml2en
print(ml2en.transliterate("ഭൂമിയുടെ"))

Javascript

<script src="ml2en.js"></script>
<script>
	alert(ml2en("ഭൂമിയുടെ"));
</script>

PHP

<?php
	require 'ml2en.php';
	echo ml2en::transliterate("ഭൂമിയുടെ");
?>