MediaWiki:Gadget-SimpleTransliterate.js/Indian.js

From Wikidata
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
function indianTrasliteration() {
	var dictionary = {
	// https://en.wikipedia.org/wiki/Romanization_of_Burmese
    // Based on http://www.loc.gov/catdir/cpso/romanization/burmese.pdf
    "က": "ka",
    "ခ": "kha",
    "ဂ": "ga",
    "ဃ": "gha",
    "င": "ṅa",
    "စ": "ca",
    "ဆ": "cha",
    "ဇ": "ja",
    "ဈ": "jha",
    "ည": "ñña",
    "ဉ": "ña",
    "ဠ": "ḷa",
    "အ": "’a",
    "ဋ": "ṭa",
    "ဌ": "ṭha",
    "ဍ": "ḍa",
    "ဎ": "ḍha",
    "ဏ": "ṇa",
    "တ": "ta",
    "ထ": "tha",
    "ဒ": "da",
    "ဓ": "dha",
    "န": "na",
    "ဟ": "ha",
    "ပ": "pa",
    "ဖ": "pha",
    "ဗ": "ba",
    "ဘ": "bha",
    "မ": "ma",
    "ယ": "ya",
    "ရ": "ra",
    "လ": "la",
    "ဝ": "va",
    "သ": "sa",
    "ာ": "ā",
    "ါ": "ā",
    "ေ": "i",
    "ဣ": "i",
    "ိ": "i",
    "ီ": "ī",
    "ဲ": "ai",
    "ဤ": "ī",
    "ဥ": "u",
    "ဦ": "ū",
    "ဧ": "e",
    "ု": "u",
    "ူ": "l",
    "ဩ": "o",
    "ဪ": "oʻ",
    "ျ": "y",
    "ွ": "v",
    "ြ": "r",
    "ှ": "h",
    "ဿ": "◌ss",
    "်": "ʻ",
    "ံ": "ṃ",
    "့": "ʹ",
    "း": "ʺ",
    "၊": ",",
    "။": ".",
    "0": "0",
    "1": "1",
    "2": "2",
    "3": "3",
    "4": "4",
    "5": "5",
    "6": "6",
    "7": "7",
    "8": "8",
    "9": "9",
    "၏": "e*",
    "၌": "n*",
    "၍": "r*",
    "၎": "l*"
	};
}