Module:pi-Latn-translit

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Pāli (Latin) to:

  • Pāli (Brahmī)
  • Pāli (Devanāgarī)
  • Pāli (Bengali)
  • Pāli (Burmese)
    • Mon variation
    • Old Shan variation
    • New Shan variation
  • Pāli (Khmer)
  • Pāli (Sinhalese)
  • Pāli (Thai)
  • Pāli (Tai Tham)
  • Pāli (Lao)

transliterator.

Invoked by {{pi-alt}}, Module:pi-decl/noun and Module:pi-conj/verb.

The category Pali terms with inconsistent transliterations records cases where the automatic transliteration has been found to be wrong.

Example

  •  Latin : buddhaṃ saranaṃ gacchāmi
  •  Devanāgarī : बुद्धं सरनं गच्छामि
  •  Bengali : বুদ্ধং সরনং গচ্ছামি
  •  Brāhmī : 𑀩𑀼𑀤𑁆𑀥𑀁 𑀲𑀭𑀦𑀁 𑀕𑀘𑁆𑀙𑀸𑀫𑀺
  •  Burmese : ဗုဒ္ဓံ သရနံ ဂစ္ဆာမိ
    •  Mon variation : ဗုဒ္ဓံ သရနံ ဂစ္ဆာမိ
    •  Old Shan variation : ၿုၻ္ꩪံ သရၼံ ၷၸ္ꧡႃမိ
    •  New Shan variation : ၿုၻ်ꩪံ သရၼံ ၷၸ်ꧡႃမိ
  •  Khmer : ពុទ្ធំ សរនំ គច្ឆាមិ
  •  Sinhalese : බුද‍්ධං සරනං ගච‍්ඡාමි
  •  Thai : พุทฺธํ สรนํ คจฺฉามิ
  •  Tai Tham : ᨻᩩᨴ᩠ᨵᩴ ᩈᩁᨶᩴ ᨣᨧ᩠ᨨᩣᨾᩥ
  •  Lao : ພຸທ຺ຘໍ ສຣນໍ ຄຈ຺ຉາມິ
  •  Chakma : 𑄝𑄪𑄘𑄴𑄙𑄁 𑄥𑄢𑄚𑄁 𑄉𑄌𑄴𑄍𑄂𑄟𑄨

 Latin 

uddeso. ekāyano ayaṃ, bhikkhave, maggo sattānaṃ visuddhiyā, sokaparidevānaṃ samatikkamāya, dukkhadomanassānaṃ atthaṅgamāya, ñāyassa adhigamāya, nibbānassa sacchikiriyāya, yadidaṃ cattāro satipaṭṭhānā. katame cattāro? idha, bhikkhave, bhikkhu kāye kāyānupassī viharati ātāpī sampajāno satimā, vineyya loke abhijjhādomanassaṃ; vedanāsu vedanānupassī viharati ātāpī sampajāno satimā, vineyya loke abhijjhādomanassaṃ; citte cittānupassī viharati ātāpī sampajāno satimā, vineyya loke abhijjhādomanassaṃ; dhammesu dhammānupassī viharati ātāpī sampajāno satimā, vineyya loke abhijjhādomanassaṃ. uddeso niṭṭhito.

 Devanāgarī 

उद्देसो॥ एकायनो अयं। भिक्खवे। मग्गो सत्तानं विसुद्धिया। सोकपरिदेवानं समतिक्कमाय। दुक्खदोमनस्सानं अत्थङ्गमाय। ञायस्स अधिगमाय। निब्बानस्स सच्छिकिरियाय। यदिदं चत्तारो सतिपट्ठाना॥ कतमे चत्तारो? इध। भिक्खवे। भिक्खु काये कायानुपस्सी विहरति आतापी सम्पजानो सतिमा। विनेय्य लोके अभिज्झादोमनस्सं; वेदनासु वेदनानुपस्सी विहरति आतापी सम्पजानो सतिमा। विनेय्य लोके अभिज्झादोमनस्सं; चित्ते चित्तानुपस्सी विहरति आतापी सम्पजानो सतिमा। विनेय्य लोके अभिज्झादोमनस्सं; धम्मेसु धम्मानुपस्सी विहरति आतापी सम्पजानो सतिमा। विनेय्य लोके अभिज्झादोमनस्सं॥ उद्देसो निट्ठितो॥

 Bengali 

উদ্দেসো. একাযনো অযং, ভিক্খৰে, মগ্গো সত্তানং ৰিসুদ্ধিযা, সোকপরিদেৰানং সমতিক্কমায, দুক্খদোমনস্সানং অত্থঙ্গমায, ঞাযস্স অধিগমায, নিব্বানস্স সচ্ছিকিরিযায, যদিদং চত্তারো সতিপট্ঠানা. কতমে চত্তারো? ইধ, ভিক্খৰে, ভিক্খু কাযে কাযানুপস্সী ৰিহরতি আতাপী সম্পজানো সতিমা, ৰিনেয্য লোকে অভিজ্ঝাদোমনস্সং; ৰেদনাসু ৰেদনানুপস্সী ৰিহরতি আতাপী সম্পজানো সতিমা, ৰিনেয্য লোকে অভিজ্ঝাদোমনস্সং; চিত্তে চিত্তানুপস্সী ৰিহরতি আতাপী সম্পজানো সতিমা, ৰিনেয্য লোকে অভিজ্ঝাদোমনস্সং; ধম্মেসু ধম্মানুপস্সী ৰিহরতি আতাপী সম্পজানো সতিমা, ৰিনেয্য লোকে অভিজ্ঝাদোমনস্সং. উদ্দেসো নিট্ঠিতো.

 Burmese 

ဥဒ္ဒေသော။ ဧကာယနော အယံ၊ ဘိက္ခဝေ၊ မဂ္ဂေါ သတ္တာနံ ဝိသုဒ္ဓိယာ၊ သောကပရိဒေဝါနံ သမတိက္ကမာယ၊ ဒုက္ခဒေါမနဿာနံ အတ္ထင်္ဂမာယ၊ ဉာယဿ အဓိဂမာယ၊ နိဗ္ဗာနဿ သစ္ဆိကိရိယာယ၊ ယဒိဒံ စတ္တာရော သတိပဋ္ဌာနာ။ ကတမေ စတ္တာရော? ဣဓ၊ ဘိက္ခဝေ၊ ဘိက္ခု ကာယေ ကာယာနုပဿီ ဝိဟရတိ အာတာပီ သမ္ပဇာနော သတိမာ၊ ဝိနေယျ လောကေ အဘိဇ္ဈာဒေါမနဿံ; ဝေဒနာသု ဝေဒနာနုပဿီ ဝိဟရတိ အာတာပီ သမ္ပဇာနော သတိမာ၊ ဝိနေယျ လောကေ အဘိဇ္ဈာဒေါမနဿံ; စိတ္တေ စိတ္တာနုပဿီ ဝိဟရတိ အာတာပီ သမ္ပဇာနော သတိမာ၊ ဝိနေယျ လောကေ အဘိဇ္ဈာဒေါမနဿံ; ဓမ္မေသု ဓမ္မာနုပဿီ ဝိဟရတိ အာတာပီ သမ္ပဇာနော သတိမာ၊ ဝိနေယျ လောကေ အဘိဇ္ဈာဒေါမနဿံ။ ဥဒ္ဒေသော နိဋ္ဌိတော။

 Mon variation 

ဥဒ္ဒေသော။ ဨကာယနော အယံ၊ ဘိက္ခဝေ၊ မဂ္ဂေါ သတ္တာနံ ဝိသုဒ္ဓိယာ၊ သောကပရိဒေဝါနံ သမတိက္ကမာယ၊ ဒုက္ခဒေါမနဿာနံ အတ္ထင်္ဂမာယ၊ ဉာယဿ အဓိဂမာယ၊ နိဗ္ဗာနဿ သစ္ဆိကိရိယာယ၊ ယဒိဒံ စတ္တာရော သတိပဋ္ဌာနာ။ ကတမေ စတ္တာရော? ဣဓ၊ ဘိက္ခဝေ၊ ဘိက္ခု ကာယေ ကာယာနုပဿဳ ဝိဟရတိ အာတာပဳ သမ္ပဇာနော သတိမာ၊ ဝိနေယျ လောကေ အဘိဇ္ၛာဒေါမနဿံ; ဝေဒနာသု ဝေဒနာနုပဿဳ ဝိဟရတိ အာတာပဳ သမ္ပဇာနော သတိမာ၊ ဝိနေယျ လောကေ အဘိဇ္ၛာဒေါမနဿံ; စိတ္တေ စိတ္တာနုပဿဳ ဝိဟရတိ အာတာပဳ သမ္ပဇာနော သတိမာ၊ ဝိနေယျ လောကေ အဘိဇ္ၛာဒေါမနဿံ; ဓမ္မေသု ဓမ္မာနုပဿဳ ဝိဟရတိ အာတာပဳ သမ္ပဇာနော သတိမာ၊ ဝိနေယျ လောကေ အဘိဇ္ၛာဒေါမနဿံ။ ဥဒ္ဒေသော နိဋ္ဌိတော။

 Old Shan variation 

ဢုၻ္ၻေသေႃ။ ဢေၵႃယၼေႃ ဢယံ၊ ꧤိၵ္ၶဝေ၊ မၷ္ၷေႃ သတ္တႃၼံ ဝိသုၻ္ꩪိယႃ၊ သေႃၵပရိၻေဝႃၼံ သမတိၵ္ၵမႃယ၊ ဒုက္ခဒေါမနဿာနံ ဢတ္ထင်္ၷမႃယ၊ ဉာယဿ ဢꩪိၷမႃယ၊ နိဗ္ဗာနဿ သၸ္ꧡိၵိရိယႃယ၊ ယၻိၻံ ၸတ္တႃရေႃ သတိပꩦ္ꩧႃၼႃ။ ၵတမေ ၸတ္တႃရေႃ? ဢိꩪ၊ ꧤိၵ္ၶဝေ၊ ꧤိၵ္ၶု ၵႃယေ ကာယာနုပဿီ ဝိႁရတိ ဢႃတႃပီ သမ္ပၹႃၼေႃ သတိမႃ၊ ဝိၼေယျ လေႃၵေ အဘိဇ္ဈာဒေါမနဿံ; ဝေၻၼႃသု ဝေဒနာနုပဿီ ဝိႁရတိ ဢႃတႃပီ သမ္ပၹႃၼေႃ သတိမႃ၊ ဝိၼေယျ လေႃၵေ အဘိဇ္ဈာဒေါမနဿံ; ၸိတ္တေ စိတ္တာနုပဿီ ဝိႁရတိ ဢႃတႃပီ သမ္ပၹႃၼေႃ သတိမႃ၊ ဝိၼေယျ လေႃၵေ အဘိဇ္ဈာဒေါမနဿံ; ꩪမ္မေသု ဓမ္မာနုပဿီ ဝိႁရတိ ဢႃတႃပီ သမ္ပၹႃၼေႃ သတိမႃ၊ ဝိၼေယျ လေႃၵေ အဘိဇ္ဈာဒေါမနဿံ။ ဢုၻ္ၻေသေႃ ၼိꩦ္ꩧိတေႃ။

 New Shan variation 

ဢုၻ်ၻေသေႃ။ ဢေၵႃယၼေႃ ဢယံ၊ ꧤိၵ်ၶဝေ၊ မၷ်ၷေႃ သတ်တႃၼံ ဝိသုၻ်ꩪိယႃ၊ သေႃၵပရိၻေဝႃၼံ သမတိၵ်ၵမႃယ၊ ၻုၵ်ၶၻေႃမၼသ်သႃၼံ ဢတ်ထင်ၷမႃယ၊ ၺႃယသ်သ ဢꩪိၷမႃယ၊ ၼိၿ်ၿႃၼသ်သ သၸ်ꧡိၵိရိယႃယ၊ ယၻိၻံ ၸတ်တႃရေႃ သတိပꩦ်ꩧႃၼႃ။ ၵတမေ ၸတ်တႃရေႃ? ဢိꩪ၊ ꧤိၵ်ၶဝေ၊ ꧤိၵ်ၶု ၵႃယေ ၵႃယႃၼုပသ်သီ ဝိႁရတိ ဢႃတႃပီ သမ်ပၹႃၼေႃ သတိမႃ၊ ဝိၼေယျ လေႃၵေ ဢꧤိၹ်ꧢႃၻေႃမၼသ်သံ; ဝေၻၼႃသု ဝေၻၼႃၼုပသ်သီ ဝိႁရတိ ဢႃတႃပီ သမ်ပၹႃၼေႃ သတိမႃ၊ ဝိၼေယျ လေႃၵေ ဢꧤိၹ်ꧢႃၻေႃမၼသ်သံ; ၸိတ်တေ ၸိတ်တႃၼုပသ်သီ ဝိႁရတိ ဢႃတႃပီ သမ်ပၹႃၼေႃ သတိမႃ၊ ဝိၼေယျ လေႃၵေ ဢꧤိၹ်ꧢႃၻေႃမၼသ်သံ; ꩪမ်မေသု ꩪမ်မႃၼုပသ်သီ ဝိႁရတိ ဢႃတႃပီ သမ်ပၹႃၼေႃ သတိမႃ၊ ဝိၼေယျ လေႃၵေ ဢꧤိၹ်ꧢႃၻေႃမၼသ်သံ။ ဢုၻ်ၻေသေႃ ၼိꩦ်ꩧိတေႃ။

 Brāhmī 

𑀉𑀤𑁆𑀤𑁂𑀲𑁄𑁈 𑀏𑀓𑀸𑀬𑀦𑁄 𑀅𑀬𑀁𑁇 𑀪𑀺𑀓𑁆𑀔𑀯𑁂𑁇 𑀫𑀕𑁆𑀕𑁄 𑀲𑀢𑁆𑀢𑀸𑀦𑀁 𑀯𑀺𑀲𑀼𑀤𑁆𑀥𑀺𑀬𑀸𑁇 𑀲𑁄𑀓𑀧𑀭𑀺𑀤𑁂𑀯𑀸𑀦𑀁 𑀲𑀫𑀢𑀺𑀓𑁆𑀓𑀫𑀸𑀬𑁇 𑀤𑀼𑀓𑁆𑀔𑀤𑁄𑀫𑀦𑀲𑁆𑀲𑀸𑀦𑀁 𑀅𑀢𑁆𑀣𑀗𑁆𑀕𑀫𑀸𑀬𑁇 𑀜𑀸𑀬𑀲𑁆𑀲 𑀅𑀥𑀺𑀕𑀫𑀸𑀬𑁇 𑀦𑀺𑀩𑁆𑀩𑀸𑀦𑀲𑁆𑀲 𑀲𑀘𑁆𑀙𑀺𑀓𑀺𑀭𑀺𑀬𑀸𑀬𑁇 𑀬𑀤𑀺𑀤𑀁 𑀘𑀢𑁆𑀢𑀸𑀭𑁄 𑀲𑀢𑀺𑀧𑀝𑁆𑀞𑀸𑀦𑀸𑁈 𑀓𑀢𑀫𑁂 𑀘𑀢𑁆𑀢𑀸𑀭𑁄? 𑀇𑀥𑁇 𑀪𑀺𑀓𑁆𑀔𑀯𑁂𑁇 𑀪𑀺𑀓𑁆𑀔𑀼 𑀓𑀸𑀬𑁂 𑀓𑀸𑀬𑀸𑀦𑀼𑀧𑀲𑁆𑀲𑀻 𑀯𑀺𑀳𑀭𑀢𑀺 𑀆𑀢𑀸𑀧𑀻 𑀲𑀫𑁆𑀧𑀚𑀸𑀦𑁄 𑀲𑀢𑀺𑀫𑀸𑁇 𑀯𑀺𑀦𑁂𑀬𑁆𑀬 𑀮𑁄𑀓𑁂 𑀅𑀪𑀺𑀚𑁆𑀛𑀸𑀤𑁄𑀫𑀦𑀲𑁆𑀲𑀁; 𑀯𑁂𑀤𑀦𑀸𑀲𑀼 𑀯𑁂𑀤𑀦𑀸𑀦𑀼𑀧𑀲𑁆𑀲𑀻 𑀯𑀺𑀳𑀭𑀢𑀺 𑀆𑀢𑀸𑀧𑀻 𑀲𑀫𑁆𑀧𑀚𑀸𑀦𑁄 𑀲𑀢𑀺𑀫𑀸𑁇 𑀯𑀺𑀦𑁂𑀬𑁆𑀬 𑀮𑁄𑀓𑁂 𑀅𑀪𑀺𑀚𑁆𑀛𑀸𑀤𑁄𑀫𑀦𑀲𑁆𑀲𑀁; 𑀘𑀺𑀢𑁆𑀢𑁂 𑀘𑀺𑀢𑁆𑀢𑀸𑀦𑀼𑀧𑀲𑁆𑀲𑀻 𑀯𑀺𑀳𑀭𑀢𑀺 𑀆𑀢𑀸𑀧𑀻 𑀲𑀫𑁆𑀧𑀚𑀸𑀦𑁄 𑀲𑀢𑀺𑀫𑀸𑁇 𑀯𑀺𑀦𑁂𑀬𑁆𑀬 𑀮𑁄𑀓𑁂 𑀅𑀪𑀺𑀚𑁆𑀛𑀸𑀤𑁄𑀫𑀦𑀲𑁆𑀲𑀁; 𑀥𑀫𑁆𑀫𑁂𑀲𑀼 𑀥𑀫𑁆𑀫𑀸𑀦𑀼𑀧𑀲𑁆𑀲𑀻 𑀯𑀺𑀳𑀭𑀢𑀺 𑀆𑀢𑀸𑀧𑀻 𑀲𑀫𑁆𑀧𑀚𑀸𑀦𑁄 𑀲𑀢𑀺𑀫𑀸𑁇 𑀯𑀺𑀦𑁂𑀬𑁆𑀬 𑀮𑁄𑀓𑁂 𑀅𑀪𑀺𑀚𑁆𑀛𑀸𑀤𑁄𑀫𑀦𑀲𑁆𑀲𑀁𑁈 𑀉𑀤𑁆𑀤𑁂𑀲𑁄 𑀦𑀺𑀝𑁆𑀞𑀺𑀢𑁄𑁈

 Khmer 

ឧទ្ទេសោ៕ ឯកាយនោ អយំ។ ភិក្ខវេ។ មគ្គោ សត្តានំ វិសុទ្ធិយា។ សោកបរិទេវានំ សមតិក្កមាយ។ ទុក្ខទោមនស្សានំ អត្ថង្គមាយ។ ញាយស្ស អធិគមាយ។ និព្ពានស្ស សច្ឆិកិរិយាយ។ យទិទំ ចត្តារោ សតិបដ្ឋានា៕ កតមេ ចត្តារោ? ឥធ។ ភិក្ខវេ។ ភិក្ខុ កាយេ កាយានុបស្សី វិហរតិ អាតាបី សម្បជានោ សតិមា។ វិនេយ្យ លោកេ អភិជ្ឈាទោមនស្សំ; វេទនាសុ វេទនានុបស្សី វិហរតិ អាតាបី សម្បជានោ សតិមា។ វិនេយ្យ លោកេ អភិជ្ឈាទោមនស្សំ; ចិត្តេ ចិត្តានុបស្សី វិហរតិ អាតាបី សម្បជានោ សតិមា។ វិនេយ្យ លោកេ អភិជ្ឈាទោមនស្សំ; ធម្មេសុ ធម្មានុបស្សី វិហរតិ អាតាបី សម្បជានោ សតិមា។ វិនេយ្យ លោកេ អភិជ្ឈាទោមនស្សំ៕ ឧទ្ទេសោ និដ្ឋិតោ៕

 Sinhalese 

උද‍්දෙසො. එකායනො අයං, භික‍්ඛවෙ, මග‍්ගො සත‍්තානං විසුද‍්ධියා, සොකපරිදෙවානං සමතික‍්කමාය, දුක‍්ඛදොමනස‍්සානං අත්‍ථඞ‍්ගමාය, ඤායස‍්ස අධිගමාය, නිබ‍්බානස‍්ස සච‍්ඡිකිරියාය, යදිදං චත‍්තාරො සතිපට‍්ඨානා. කතමෙ චත‍්තාරො? ඉධ, භික‍්ඛවෙ, භික‍්ඛු කායෙ කායානුපස‍්සී විහරති ආතාපී සම‍්පජානො සතිමා, විනෙය්‍ය ලොකෙ අභිජ‍්ඣාදොමනස‍්සං; වෙදනාසු වෙදනානුපස‍්සී විහරති ආතාපී සම‍්පජානො සතිමා, විනෙය්‍ය ලොකෙ අභිජ‍්ඣාදොමනස‍්සං; චිත‍්තෙ චිත‍්තානුපස‍්සී විහරති ආතාපී සම‍්පජානො සතිමා, විනෙය්‍ය ලොකෙ අභිජ‍්ඣාදොමනස‍්සං; ධම‍්මෙසු ධම‍්මානුපස‍්සී විහරති ආතාපී සම‍්පජානො සතිමා, විනෙය්‍ය ලොකෙ අභිජ‍්ඣාදොමනස‍්සං. උද‍්දෙසො නිට‍්ඨිතො.

 Thai 

อุทฺเทโส๚ เอกายโน อยํฯ ภิกฺขเวฯ มคฺโค สตฺตานํ วิสุทฺธิยาฯ โสกปริเทวานํ สมติกฺกมายฯ ทุกฺขโทมนสฺสานํ อตฺถงฺคมายฯ ญายสฺส อธิคมายฯ นิพฺพานสฺส สจฺฉิกิริยายฯ ยทิทํ จตฺตาโร สติปฏฺฐานา๚ กตเม จตฺตาโร? อิธฯ ภิกฺขเวฯ ภิกฺขุ กาเย กายานุปสฺสี วิหรติ อาตาปี สมฺปชาโน สติมาฯ วิเนยฺย โลเก อภิชฺฌาโทมนสฺสํ; เวทนาสุ เวทนานุปสฺสี วิหรติ อาตาปี สมฺปชาโน สติมาฯ วิเนยฺย โลเก อภิชฺฌาโทมนสฺสํ; จิตฺเต จิตฺตานุปสฺสี วิหรติ อาตาปี สมฺปชาโน สติมาฯ วิเนยฺย โลเก อภิชฺฌาโทมนสฺสํ; ธมฺเมสุ ธมฺมานุปสฺสี วิหรติ อาตาปี สมฺปชาโน สติมาฯ วิเนยฺย โลเก อภิชฺฌาโทมนสฺสํ๚ อุทฺเทโส นิฏฺฐิโต๚

 Tai Tham 

ᩏᨴ᩠ᨴᩮᩈᩮᩣ᪩ ᩑᨠᩣᨿᨶᩮᩣ ᩋᨿᩴ᪨ ᨽᩥᨠ᩠ᨡᩅᩮ᪨ ᨾᨣ᩠ᨣᩮᩤ ᩈᨲ᩠ᨲᩣᨶᩴ ᩅᩥᩈᩩᨴ᩠ᨵᩥᨿᩣ᪨ ᩈᩮᩣᨠᨷᩁᩥᨴᩮᩅᩤᨶᩴ ᩈᨾᨲᩥᨠ᩠ᨠᨾᩣᨿ᪨ ᨴᩩᨠ᩠ᨡᨴᩮᩤᨾᨶᩔᩣᨶᩴ ᩋᨲ᩠ᨳᩘᨣᨾᩣᨿ᪨ ᨬᩣᨿᩔ ᩋᨵᩥᨣᨾᩣᨿ᪨ ᨶᩥᨻᩛᩣᨶᩔ ᩈᨧ᩠ᨨᩥᨠᩥᩁᩥᨿᩣᨿ᪨ ᨿᨴᩥᨴᩴ ᨧᨲ᩠ᨲᩣᩁᩮᩣ ᩈᨲᩥᨷᨭᩛᩣᨶᩣ᪩ ᨠᨲᨾᩮ ᨧᨲ᩠ᨲᩣᩁᩮᩣ? ᩍᨵ᪨ ᨽᩥᨠ᩠ᨡᩅᩮ᪨ ᨽᩥᨠ᩠ᨡᩩ ᨠᩣᨿᩮ ᨠᩣᨿᩣᨶᩩᨷᩔᩦ ᩅᩥᩉᩁᨲᩥ ᩋᩣᨲᩣᨷᩦ ᩈᨾ᩠ᨷᨩᩣᨶᩮᩣ ᩈᨲᩥᨾᩣ᪨ ᩅᩥᨶᩮᨿ᩠ᨿ ᩃᩮᩣᨠᩮ ᩋᨽᩥᨩ᩠ᨫᩣᨴᩮᩤᨾᨶᩔᩴ; ᩅᩮᨴᨶᩣᩈᩩ ᩅᩮᨴᨶᩣᨶᩩᨷᩔᩦ ᩅᩥᩉᩁᨲᩥ ᩋᩣᨲᩣᨷᩦ ᩈᨾ᩠ᨷᨩᩣᨶᩮᩣ ᩈᨲᩥᨾᩣ᪨ ᩅᩥᨶᩮᨿ᩠ᨿ ᩃᩮᩣᨠᩮ ᩋᨽᩥᨩ᩠ᨫᩣᨴᩮᩤᨾᨶᩔᩴ; ᨧᩥᨲ᩠ᨲᩮ ᨧᩥᨲ᩠ᨲᩣᨶᩩᨷᩔᩦ ᩅᩥᩉᩁᨲᩥ ᩋᩣᨲᩣᨷᩦ ᩈᨾ᩠ᨷᨩᩣᨶᩮᩣ ᩈᨲᩥᨾᩣ᪨ ᩅᩥᨶᩮᨿ᩠ᨿ ᩃᩮᩣᨠᩮ ᩋᨽᩥᨩ᩠ᨫᩣᨴᩮᩤᨾᨶᩔᩴ; ᨵᨾ᩠ᨾᩮᩈᩩ ᨵᨾ᩠ᨾᩣᨶᩩᨷᩔᩦ ᩅᩥᩉᩁᨲᩥ ᩋᩣᨲᩣᨷᩦ ᩈᨾ᩠ᨷᨩᩣᨶᩮᩣ ᩈᨲᩥᨾᩣ᪨ ᩅᩥᨶᩮᨿ᩠ᨿ ᩃᩮᩣᨠᩮ ᩋᨽᩥᨩ᩠ᨫᩣᨴᩮᩤᨾᨶᩔᩴ᪩ ᩏᨴ᩠ᨴᩮᩈᩮᩣ ᨶᩥᨭᩛᩥᨲᩮᩣ᪩

 Lao 

ອຸທ຺ເທໂສຯຯ ເອກາຍໂນ ອຍໍຯ ຠິກ຺ຂເວຯ ມຄ຺ໂຄ ສຕ຺ຕານໍ ວິສຸທ຺ຘິຍາຯ ໂສກປຣິເທວານໍ ສມຕິກ຺ກມາຍຯ ທຸກ຺ຂໂທມນສ຺ສານໍ ອຕ຺ຖງ຺ຄມາຍຯ ຎາຍສ຺ສ ອຘິຄມາຍຯ ນິພ຺ພານສ຺ສ ສຈ຺ຉິກິຣິຍາຍຯ ຍທິທໍ ຈຕ຺ຕາໂຣ ສຕິປຏ຺ຐານາຯຯ ກຕເມ ຈຕ຺ຕາໂຣ? ອິຘຯ ຠິກ຺ຂເວຯ ຠິກ຺ຂຸ ກາເຍ ກາຍານຸປສ຺ສີ ວິຫຣຕິ ອາຕາປີ ສມ຺ປຊາໂນ ສຕິມາຯ ວິເນຍ຺ຍ ໂລເກ ອຠິຊ຺ຌາໂທມນສ຺ສໍ; ເວທນາສຸ ເວທນານຸປສ຺ສີ ວິຫຣຕິ ອາຕາປີ ສມ຺ປຊາໂນ ສຕິມາຯ ວິເນຍ຺ຍ ໂລເກ ອຠິຊ຺ຌາໂທມນສ຺ສໍ; ຈິຕ຺ເຕ ຈິຕ຺ຕານຸປສ຺ສີ ວິຫຣຕິ ອາຕາປີ ສມ຺ປຊາໂນ ສຕິມາຯ ວິເນຍ຺ຍ ໂລເກ ອຠິຊ຺ຌາໂທມນສ຺ສໍ; ຘມ຺ເມສຸ ຘມ຺ມານຸປສ຺ສີ ວິຫຣຕິ ອາຕາປີ ສມ຺ປຊາໂນ ສຕິມາຯ ວິເນຍ຺ຍ ໂລເກ ອຠິຊ຺ຌາໂທມນສ຺ສໍຯຯ ອຸທ຺ເທໂສ ນິຏ຺ຐິໂຕຯຯ

 Chakma 

𑄃𑄪𑄘𑄴𑄘𑄬𑄥𑄮𑅁 𑄃𑄬𑄇𑄂𑄠𑄚𑄮 𑄃𑄠𑄁, 𑄞𑄨𑄇𑄴𑄈𑅇𑄬, 𑄟𑄉𑄴𑄉𑄮 𑄥𑄖𑄴𑄖𑄂𑄚𑄁 𑅇𑄨𑄥𑄪𑄘𑄴𑄙𑄨𑄠𑄂, 𑄥𑄮𑄇𑄛𑄢𑄨𑄘𑄬𑅇𑄂𑄚𑄁 𑄥𑄟𑄖𑄨𑄇𑄴𑄇𑄟𑄂𑄠, 𑄘𑄪𑄇𑄴𑄈𑄘𑄮𑄟𑄚𑄥𑄴𑄥𑄂𑄚𑄁 𑄃𑄖𑄴𑄗𑄋𑄴𑄉𑄟𑄂𑄠, 𑄐𑄂𑄠𑄥𑄴𑄥 𑄃𑄙𑄨𑄉𑄟𑄂𑄠, 𑄚𑄨𑄝𑄴𑄝𑄂𑄚𑄥𑄴𑄥 𑄥𑄌𑄴𑄍𑄨𑄇𑄨𑄢𑄨𑄠𑄂𑄠, 𑄠𑄘𑄨𑄘𑄁 𑄌𑄖𑄴𑄖𑄂𑄢𑄮 𑄥𑄖𑄨𑄛𑄑𑄴𑄒𑄂𑄚𑄂𑅁 𑄇𑄖𑄟𑄬 𑄌𑄖𑄴𑄖𑄂𑄢𑄮? 𑄃𑄨𑄙, 𑄞𑄨𑄇𑄴𑄈𑅇𑄬, 𑄞𑄨𑄇𑄴𑄈𑄪 𑄇𑄂𑄠𑄬 𑄇𑄂𑄠𑄂𑄚𑄪𑄛𑄥𑄴𑄥𑄩 𑅇𑄨𑄦𑄢𑄖𑄨 𑄃𑄂𑄖𑄂𑄛𑄩 𑄥𑄟𑄴𑄛𑄎𑄂𑄚𑄮 𑄥𑄖𑄨𑄟𑄂, 𑅇𑄨𑄚𑄬𑄠𑄳𑄠 𑄣𑄮𑄇𑄬 𑄃𑄞𑄨𑄎𑄴𑄏𑄂𑄘𑄮𑄟𑄚𑄥𑄴𑄥𑄁; 𑅇𑄬𑄘𑄚𑄂𑄥𑄪 𑅇𑄬𑄘𑄚𑄂𑄚𑄪𑄛𑄥𑄴𑄥𑄩 𑅇𑄨𑄦𑄢𑄖𑄨 𑄃𑄂𑄖𑄂𑄛𑄩 𑄥𑄟𑄴𑄛𑄎𑄂𑄚𑄮 𑄥𑄖𑄨𑄟𑄂, 𑅇𑄨𑄚𑄬𑄠𑄳𑄠 𑄣𑄮𑄇𑄬 𑄃𑄞𑄨𑄎𑄴𑄏𑄂𑄘𑄮𑄟𑄚𑄥𑄴𑄥𑄁; 𑄌𑄨𑄖𑄴𑄖𑄬 𑄌𑄨𑄖𑄴𑄖𑄂𑄚𑄪𑄛𑄥𑄴𑄥𑄩 𑅇𑄨𑄦𑄢𑄖𑄨 𑄃𑄂𑄖𑄂𑄛𑄩 𑄥𑄟𑄴𑄛𑄎𑄂𑄚𑄮 𑄥𑄖𑄨𑄟𑄂, 𑅇𑄨𑄚𑄬𑄠𑄳𑄠 𑄣𑄮𑄇𑄬 𑄃𑄞𑄨𑄎𑄴𑄏𑄂𑄘𑄮𑄟𑄚𑄥𑄴𑄥𑄁; 𑄙𑄟𑄴𑄟𑄬𑄥𑄪 𑄙𑄟𑄴𑄟𑄂𑄚𑄪𑄛𑄥𑄴𑄥𑄩 𑅇𑄨𑄦𑄢𑄖𑄨 𑄃𑄂𑄖𑄂𑄛𑄩 𑄥𑄟𑄴𑄛𑄎𑄂𑄚𑄮 𑄥𑄖𑄨𑄟𑄂, 𑅇𑄨𑄚𑄬𑄠𑄳𑄠 𑄣𑄮𑄇𑄬 𑄃𑄞𑄨𑄎𑄴𑄏𑄂𑄘𑄮𑄟𑄚𑄥𑄴𑄥𑄁𑅁 𑄃𑄪𑄘𑄴𑄘𑄬𑄥𑄮 𑄚𑄨𑄑𑄴𑄒𑄨𑄖𑄮𑅁


-- For Lao script, see https://www.unicode.org/charts/PDF/U0E80.pdf (Unicode 12.0+)
local export = {}

local m_str_utils = require("Module:string utilities")

local gmatch = m_str_utils.gmatch
local gsub = m_str_utils.gsub
local lower = m_str_utils.lower
local match = m_str_utils.match
local sub = m_str_utils.sub
local u = m_str_utils.char

local c = {
	["Deva"] = {
		["k"] = "क", ["kh"] = "ख", ["g"] = "ग", ["gh"] = "घ", ["ṅ"] = "ङ", 
		["c"] = "च", ["ch"] = "छ", ["j"] = "ज", ["jh"] = "झ", ["ñ"] = "ञ", 
		["ṭ"] = "ट", ["ṭh"] = "ठ", ["ḍ"] = "ड", ["ḍh"] = "ढ", ["ṇ"] = "ण", 
		["t"] = "त", ["th"] = "थ", ["d"] = "द", ["dh"] = "ध", ["n"] = "न", 
		["p"] = "प", ["ph"] = "फ", ["b"] = "ब", ["bh"] = "भ", ["m"] = "म", 
		["y"] = "य", ["r"] = "र", ["l"] = "ल", ["v"] = "व", ["s"] = "स", 
		["h"] = "ह", ["ḷ"] = "ळ", 
	
		["a"] = "अ", ["ā"] = "आ",
		["i"] = "इ", ["ī"] = "ई",
		["u"] = "उ", ["ū"] = "ऊ",
		["e"] = "ए",
		["o"] = "ओ",
	
		["ṃ"] = "ं",
		[""] = "",
	},
	
	["Beng"] = {
		["k"] = "ক", ["kh"] = "খ", ["g"] = "গ", ["gh"] = "ঘ", ["ṅ"] = "ঙ", 
		["c"] = "চ", ["ch"] = "ছ", ["j"] = "জ", ["jh"] = "ঝ", ["ñ"] = "ঞ", 
		["ṭ"] = "ট", ["ṭh"] = "ঠ", ["ḍ"] = "ড", ["ḍh"] = "ঢ", ["ṇ"] = "ণ", 
		["t"] = "ত", ["th"] = "থ", ["d"] = "দ", ["dh"] = "ধ", ["n"] = "ন", 
		["p"] = "প", ["ph"] = "ফ", ["b"] = "ব", ["bh"] = "ভ", ["m"] = "ম", 
		["y"] = "য", ["r"] = "র", ["l"] = "ল", ["v"] = "ৰ", ["s"] = "স", 
		["h"] = "হ", ["ḷ"] = "ল়", 
	
		["a"] = "অ", ["ā"] = "আ",
		["i"] = "ই", ["ī"] = "ঈ",
		["u"] = "উ", ["ū"] = "ঊ",
		["e"] = "এ",
		["o"] = "ও",
	
		["ṃ"] = "ং",
		[""] = "",
	},

	["Brah"] = {
		["k"] = "𑀓", ["kh"] = "𑀔", ["g"] = "𑀕", ["gh"] = "𑀖", ["ṅ"] = "𑀗", 
		["c"] = "𑀘", ["ch"] = "𑀙", ["j"] = "𑀚", ["jh"] = "𑀛", ["ñ"] = "𑀜", 
		["ṭ"] = "𑀝", ["ṭh"] = "𑀞", ["ḍ"] = "𑀟", ["ḍh"] = "𑀠", ["ṇ"] = "𑀡", 
		["t"] = "𑀢", ["th"] = "𑀣", ["d"] = "𑀤", ["dh"] = "𑀥", ["n"] = "𑀦", 
		["p"] = "𑀧", ["ph"] = "𑀨", ["b"] = "𑀩", ["bh"] = "𑀪", ["m"] = "𑀫", 
		["y"] = "𑀬", ["r"] = "𑀭", ["l"] = "𑀮", ["v"] = "𑀯", ["s"] = "𑀲", 
		["h"] = "𑀳", ["ḷ"] = "𑀴", 
	
		["a"] = "𑀅", ["ā"] = "𑀆",
		["i"] = "𑀇", ["ī"] = "𑀈",
		["u"] = "𑀉", ["ū"] = "𑀊",
		["e"] = "𑀏",
		["o"] = "𑀑",
	
		["ṃ"] = "𑀁",
		[""] = "",
	},
	
	["Khmr"] = {
		["k"] = "ក", ["kh"] = "ខ", ["g"] = "គ", ["gh"] = "ឃ", ["ṅ"] = "ង", 
		["c"] = "ច", ["ch"] = "ឆ", ["j"] = "ជ", ["jh"] = "ឈ", ["ñ"] = "ញ", 
		["ṭ"] = "ដ", ["ṭh"] = "ឋ", ["ḍ"] = "ឌ", ["ḍh"] = "ឍ", ["ṇ"] = "ណ", 
		["t"] = "ត", ["th"] = "ថ", ["d"] = "ទ", ["dh"] = "ធ", ["n"] = "ន", 
		["p"] = "ប", ["ph"] = "ផ", ["b"] = "ព", ["bh"] = "ភ", ["m"] = "ម", 
		["y"] = "យ", ["r"] = "រ", ["l"] = "ល", ["v"] = "វ", ["s"] = "ស", 
		["h"] = "ហ", ["ḷ"] = "ឡ", 
	
		["a"] = "អ", ["ā"] = "អា",
		["i"] = "ឥ", ["ī"] = "ឦ",
		["u"] = "ឧ", ["ū"] = "ឨ",
		["e"] = "ឯ",
		["o"] = "ឲ",
	
		["ṃ"] = "ំ",
		[""] = "",
	},
	
	["Mymr"] = {
		["k"] = "က", ["kh"] = "ခ", ["g"] = "ဂ", ["gh"] = "ဃ", ["ṅ"] = "င", 
		["c"] = "စ", ["ch"] = "ဆ", ["j"] = "ဇ", ["jh"] = "ဈ", ["ñ"] = "ဉ", 
		["ṭ"] = "ဋ", ["ṭh"] = "ဌ", ["ḍ"] = "ဍ", ["ḍh"] = "ဎ", ["ṇ"] = "ဏ", 
		["t"] = "တ", ["th"] = "ထ", ["d"] = "ဒ", ["dh"] = "ဓ", ["n"] = "န", 
		["p"] = "ပ", ["ph"] = "ဖ", ["b"] = "ဗ", ["bh"] = "ဘ", ["m"] = "မ", 
		["y"] = "ယ", ["r"] = "ရ", ["l"] = "လ", ["v"] = "ဝ", ["s"] = "သ", 
		["h"] = "ဟ", ["ḷ"] = "ဠ", 
	
		["a"] = "အ", ["ā"] = "အာ",
		["i"] = "ဣ", ["ī"] = "ဤ",
		["u"] = "ဥ", ["ū"] = "ဦ",
		["e"] = "ဧ",
		["o"] = "ဩ",
	
		["ṃ"] = "ံ",
		[""] = "",
	},

	["Sinh"] = {
		["k"] = "ක", ["kh"] = "ඛ", ["g"] = "ග", ["gh"] = "ඝ", ["ṅ"] = "ඞ", 
		["c"] = "ච", ["ch"] = "ඡ", ["j"] = "ජ", ["jh"] = "ඣ", ["ñ"] = "ඤ", 
		["ṭ"] = "ට", ["ṭh"] = "ඨ", ["ḍ"] = "ඩ", ["ḍh"] = "ඪ", ["ṇ"] = "ණ", 
		["t"] = "ත", ["th"] = "ථ", ["d"] = "ද", ["dh"] = "ධ", ["n"] = "න", 
		["p"] = "ප", ["ph"] = "ඵ", ["b"] = "බ", ["bh"] = "භ", ["m"] = "ම", 
		["y"] = "ය", ["r"] = "ර", ["l"] = "ල", ["v"] = "ව", ["s"] = "ස", 
		["h"] = "හ", ["ḷ"] = "ළ", 
	
		["a"] = "අ", ["ā"] = "ආ",
		["i"] = "ඉ", ["ī"] = "ඊ",
		["u"] = "උ", ["ū"] = "ඌ",
		["e"] = "එ",
		["o"] = "ඔ",
	
		["ṃ"] = "ං",
		[""] = "",
	},

	["Thai"] = {
		["k"] = "ก", ["kh"] = "ข", ["g"] = "ค", ["gh"] = "ฆ", ["ṅ"] = "ง", 
		["c"] = "จ", ["ch"] = "ฉ", ["j"] = "ช", ["jh"] = "ฌ", ["ñ"] = "ญ", 
		["ṭ"] = "ฏ", ["ṭh"] = "ฐ", ["ḍ"] = "ฑ", ["ḍh"] = "ฒ", ["ṇ"] = "ณ", 
		["t"] = "ต", ["th"] = "ถ", ["d"] = "ท", ["dh"] = "ธ", ["n"] = "น", 
		["p"] = "ป", ["ph"] = "ผ", ["b"] = "พ", ["bh"] = "ภ", ["m"] = "ม", 
		["y"] = "ย", ["r"] = "ร", ["l"] = "ล", ["v"] = "ว", ["s"] = "ส", 
		["h"] = "ห", ["ḷ"] = "ฬ", 
	
		["a"] = "อ", ["ā"] = "อา",
		["i"] = "อิ", ["ī"] = "อี",
		["u"] = "อุ", ["ū"] = "อู",
		["e"] = "อเ", --to be swapped later
		["o"] = "อโ", --to be swapped later
	
		["ṃ"] = "ํ",
		[""] = "",
	},
	
	["Lana"] = {
		["k"] = "ᨠ", ["kh"] = "ᨡ", ["g"] = "ᨣ", ["gh"] = "ᨥ", ["ṅ"] = "ᨦ", 
		["c"] = "ᨧ", ["ch"] = "ᨨ", ["j"] = "ᨩ", ["jh"] = "ᨫ", ["ñ"] = "ᨬ", 
		["ṭ"] = "ᨭ", ["ṭh"] = "ᨮ", ["ḍ"] = "ᨯ", ["ḍh"] = "ᨰ", ["ṇ"] = "ᨱ", 
		["t"] = "ᨲ", ["th"] = "ᨳ", ["d"] = "ᨴ", ["dh"] = "ᨵ", ["n"] = "ᨶ", 
		["p"] = "ᨷ", ["ph"] = "ᨹ", ["b"] = "ᨻ", ["bh"] = "ᨽ", ["m"] = "ᨾ", 
		["y"] = "ᨿ", ["r"] = "ᩁ", ["l"] = "ᩃ", ["v"] = "ᩅ", ["s"] = "ᩈ", 
		["h"] = "ᩉ", ["ḷ"] = "ᩊ", 
	
		["a"] = "ᩋ", ["ā"] = "ᩋᩣ",
		["i"] = "ᩍ", ["ī"] = "ᩎ",
		["u"] = "ᩏ", ["ū"] = "ᩐ",
		["e"] = "ᩑ",
		["o"] = "ᩋᩰ",
	
		["ṃ"] = "ᩴ",
		[""] = "",
	},
	
	["Laoo"] = {
		["k"] = "ກ", ["kh"] = "ຂ", ["g"] = "ຄ", ["gh"] = "ຆ", ["ṅ"] = "ງ",
		["c"] = "ຈ", ["ch"] = "ຉ", ["j"] = "ຊ", ["jh"] = "ຌ", ["ñ"] = "ຎ",
		["ṭ"] = "ຏ", ["ṭh"] = "ຐ", ["ḍ"] = "ຑ", ["ḍh"] = "ຒ", ["ṇ"] = "ຓ",
		["t"] = "ຕ", ["th"] = "ຖ", ["d"] = "ທ", ["dh"] = "ຘ", ["n"] = "ນ",
		["p"] = "ປ", ["ph"] = "ຜ", ["b"] = "ພ", ["bh"] = "ຠ", ["m"] = "ມ",
		["y"] = "ຍ", ["r"] = "ຣ", ["l"] = "ລ", ["v"] = "ວ", ["s"] = "ສ",
		["h"] = "ຫ", ["ḷ"] = "ຬ",

		["a"] = "ອ", ["ā"] = "ອາ",
		["i"] = "ອິ", ["ī"] = "ອີ",
		["u"] = "ອຸ", ["ū"] = "ອູ",
		["e"] = "ອເ", --to be swapped later
		["o"] = "ອໂ", --to be swapped later

		["ṃ"] = "ໍ",
		[""] = "",
	},

	["Cakm"] = {
		["k"] = "𑄇", ["kh"] = "𑄈", ["g"] = "𑄉", ["gh"] = "𑄊", ["ṅ"] = "𑄋", 
		["c"] = "𑄌", ["ch"] = "𑄍", ["j"] = "𑄎", ["jh"] = "𑄏", ["ñ"] = "𑄐", 
		["ṭ"] = "𑄑", ["ṭh"] = "𑄒", ["ḍ"] = "𑄓", ["ḍh"] = "𑄔", ["ṇ"] = "𑄕", 
		["t"] = "𑄖", ["th"] = "𑄗", ["d"] = "𑄘", ["dh"] = "𑄙", ["n"] = "𑄚", 
		["p"] = "𑄛", ["ph"] = "𑄜", ["b"] = "𑄝", ["bh"] = "𑄞", ["m"] = "𑄟", 
		["y"] = "𑄠", ["r"] = "𑄢", ["l"] = "𑄣", ["v"] = "𑅇", ["s"] = "𑄥", 
		["h"] = "𑄦", ["ḷ"] = "𑅄", 
	
		["a"] = "𑄃", ["ā"] = "𑄃𑄂",
		["i"] = "𑄃𑄨", ["ī"] = "𑄃𑄩",
		["u"] = "𑄃𑄪", ["ū"] = "𑄃𑄫",
		["e"] = "𑄃𑄬",
		["o"] = "𑄃𑄮",
	
		["ṃ"] = "𑄁",
		[""] = "",
	},

}

local v = {
	["Deva"] = {
		["a"] = "", ["ā"] = "ा", 
		["i"] = "ि", ["ī"] = "ी",
		["u"] = "ु", ["ū"] = "ू",
		["e"] = "े",
		["o"] = "ो",
		[""] = "",
	},

	["Beng"] = {
		["a"] = "", ["ā"] = "া", 
		["i"] = "ি", ["ī"] = "ী",
		["u"] = "ু", ["ū"] = "ূ",
		["e"] = "ে",
		["o"] = "ো",
		[""] = "",
	},

	["Brah"] = {
		["a"] = "", ["ā"] = "𑀸", 
		["i"] = "𑀺", ["ī"] = "𑀻",
		["u"] = "𑀼", ["ū"] = "𑀽",
		["e"] = "𑁂",
		["o"] = "𑁄",
		[""] = "",
	},

	["Khmr"] = {
		["a"] = "", ["ā"] = "ា", 
		["i"] = "ិ", ["ī"] = "ី",
		["u"] = "ុ", ["ū"] = "ូ",
		["e"] = "េ",
		["o"] = "ោ",
		[""] = "",
	},

	["Mymr"] = {
		["a"] = "", ["ā"] = "ာ", 
		["i"] = "ိ", ["ī"] = "ီ",
		["u"] = "ု", ["ū"] = "ူ",
		["e"] = "ေ",
		["o"] = "ော",
		[""] = "",
	},

	["Sinh"] = {
		["a"] = "", ["ā"] = "ා", 
		["i"] = "ි", ["ī"] = "ී",
		["u"] = "ු", ["ū"] = "ූ",
		["e"] = "ෙ",
		["o"] = "ො",
		[""] = "",
	},

	["Thai"] = {
		["a"] = "", ["ā"] = "า", 
		["i"] = "ิ", ["ī"] = "ี",
		["u"] = "ุ", ["ū"] = "ู",
		["e"] = "เ",
		["o"] = "โ",
		[""] = "",
	},

	["Lana"] = {
		["a"] = "", ["ā"] = "ᩣ", 
		["i"] = "ᩥ", ["ī"] = "ᩦ",
		["u"] = "ᩩ", ["ū"] = "ᩪ",
		["e"] = "ᩮ",
		["o"] = "ᩮᩣ",
		[""] = "",
	},
	
	["Laoo"] = {
		["a"] = "", ["ā"] = "າ", 
		["i"] = "ິ", ["ī"] = "ີ",
		["u"] = "ຸ", ["ū"] = "ູ",
		["e"] = "ເ",
		["o"] = "ໂ",
		[""] = "",
	},

	["Cakm"] = {
		["a"] = "", ["ā"] = "𑄂", 
		["i"] = "𑄨", ["ī"] = "𑄩",
		["u"] = "𑄪", ["ū"] = "𑄫",
		["e"] = "𑄬",
		["o"] = "𑄮",
		[""] = "",
	},
}

local s = {
	["Deva"] = {
		["0"] = "०", ["1"] = "१", ["2"] = "२", ["3"] = "३", ["4"] = "४",
		["5"] = "५", ["6"] = "६", ["7"] = "७", ["8"] = "८", ["9"] = "९", 
		["."] = "॥", [","] = "।", ["-"] = "-",
	},

	["Beng"] = {
		["0"] = "০", ["1"] = "১", ["2"] = "২", ["3"] = "৩", ["4"] = "৪",
		["5"] = "৫", ["6"] = "৬", ["7"] = "৭", ["8"] = "৮", ["9"] = "৯", 
		["."] = ".", [","] = ",", ["-"] = "-",
	},

	["Brah"] = {
		["0"] = "𑁦", ["1"] = "𑁧", ["2"] = "𑁨", ["3"] = "𑁩", ["4"] = "𑁪",
		["5"] = "𑁫", ["6"] = "𑁬", ["7"] = "𑁭", ["8"] = "𑁮", ["9"] = "𑁯", 
		["."] = "𑁈", [","] = "𑁇", ["-"] = "-",
	},

	["Khmr"] = {
		["0"] = "០", ["1"] = "១", ["2"] = "២", ["3"] = "៣", ["4"] = "៤", 
		["5"] = "៥", ["6"] = "៦", ["7"] = "៧", ["8"] = "៨", ["9"] = "៩", 
		["."] = "៕", [","] = "។", ["-"] = "-",
	},

	["Mymr"] = {
		["0"] = "၀", ["1"] = "၁", ["2"] = "၂", ["3"] = "၃", ["4"] = "၄", 
		["5"] = "၅", ["6"] = "၆", ["7"] = "၇", ["8"] = "၈", ["9"] = "၉", 
		["."] = "။", [","] = "၊", ["-"] = "-",
	},

	["Sinh"] = {
		["0"] = "0", ["1"] = "1", ["2"] = "2", ["3"] = "3", ["4"] = "4", 
		["5"] = "5", ["6"] = "6", ["7"] = "7", ["8"] = "8", ["9"] = "9", 
		["."] = ".", [","] = ",", ["-"] = "-",
	},

	["Thai"] = {
		["0"] = "๐", ["1"] = "๑", ["2"] = "๒", ["3"] = "๓", ["4"] = "๔", 
		["5"] = "๕", ["6"] = "๖", ["7"] = "๗", ["8"] = "๘", ["9"] = "๙", 
		["."] = "๚", [","] = "ฯ", ["-"] = "-",
	},

	["Lana"] = {
		["0"] = "᪐", ["1"] = "᪑", ["2"] = "᪒", ["3"] = "᪓", ["4"] = "᪔", 
		["5"] = "᪕", ["6"] = "᪖", ["7"] = "᪗", ["8"] = "᪘", ["9"] = "᪙", 
		["."] = "᪩", [","] = "᪨", ["-"] = "-",
	},

	["Laoo"] = {
		["0"] = "໐", ["1"] = "໑", ["2"] = "໒", ["3"] = "໓", ["4"] = "໔", 
		["5"] = "໕", ["6"] = "໖", ["7"] = "໗", ["8"] = "໘", ["9"] = "໙", 
		["."] = "ຯຯ", [","] = "ຯ", ["-"] = "-",
	},

	["Cakm"] = {
		["0"] = "𑄶", ["1"] = "𑄷", ["2"] = "𑄸", ["3"] = "𑄹", ["4"] = "𑄺", 
		["5"] = "𑄻", ["6"] = "𑄼", ["7"] = "𑄽", ["8"] = "𑄾", ["𑄿"] = "๙", 
		["."] = "𑅁", [","] = ",", ["-"] = "-",
	},

}

local join = {
	["Deva"] = "्",
	["Beng"] = "্",
	["Brah"] = "𑁆",
	["Khmr"] = "្",
	["Mymr"] = "္",
	["Sinh"] = u(0x200d, 0x0dca),
	["Thai"] = "ฺ",
	["Lana"] = "᩠",
	["Laoo"] = "຺",
	["Cakm"] = "𑄴",
}

local kill = {
	["Deva"] = "्",
	["Beng"] = "্",
	["Brah"] = "𑁆",
	["Khmr"] = "៑",
	["Mymr"] = "်",
	["Sinh"] = "්",
	["Thai"] = "ฺ",
	["Lana"] = "᩺",
	["Laoo"] = "຺",
	["Cakm"] = "𑄴",
}

local sinh_cjct = {
	["ක‍්ව"] = "ක්‍ව", ["ත‍්ථ"] = "ත්‍ථ", ["ත‍්ව"] = "ත්‍ව",
	["න‍්ථ"] = "න්‍ථ", ["න‍්ද"] = "න්‍ද",  ["න‍්ධ"] = "න්‍ධ", ["න‍්ව"] = "න්‍ව"
}

local nukta = u(0x09bc) -- Just list all those used here.

local variations = {
	["Mon"] = {
		["ဈ"] = "ၛ", ["ဤ"] = "ဣဳ", ["ဦ"] = "ဥု", ["ဧ"] = "ဨ", ["ီ"] = "ဳ", -- for IM fix below, if at all.
		--Unicode doesn't have "great nya" so just leave ည္ည as is. (It looks like ည with one extra curve.)
	},
	["OldShan"] = {
		["က"] = "ၵ", ["ခ"] = "ၶ", ["ဂ"] = "ၷ", ["ဃ"] = "ꧠ", ["စ"] = "ၸ",
		["ဆ"] = "ꧡ", ["ဇ"] = "ၹ", ["ဈ"] = "ꧢ", ["ဉ"] = "ၺ", ["ည"] = "ၺ္ၺ", ["ဋ"] = "ꩦ",
		["ဌ"] = "ꩧ", ["ဍ"] = "ꩨ", ["ဎ"] = "ꩩ", ["ဏ"] = "ꧣ", ["ဒ"] = "ၻ",
		["ဓ"] = "ꩪ", ["န"] = "ၼ", ["ဖ"] = "ၽ", ["ဗ"] = "ၿ", ["ဘ"] = "ꧤ",
		["ဟ"] = "ႁ", ["ဠ"] = "ꩮ", ["အ"] = "ဢ", ["ဣ"] = "ဢိ", ["ဤ"] = "ဢီ",
		["ဥ"] = "ဢု", ["ဦ"] = "ဢူ", ["ဧ"] = "ဢေ", ["ဩ"] = "ဢေႃ", ["ါ"] = "ႃ", ["ာ"] = "ႃ",
		--Unicode doesn't have "Shan great sa" so just leave ဿ as is.
	},
	["NewShan"] = {
		--includes all Old Shan and the followings
		["ဿ"] = "သ်သ", ["္"] = "်",
	},
}

-- Unnatural sequences of combining marks are frequently unreadable.  Therefore, they are displayed on
-- bearers so that the code can be understood and, if necessary, corrected.
local dc = function(text) return gsub(text, "[อອ]", "") end -- Discard bearer

local transform
function export.mono_form(text, script)

	local result = text

	if script == "Thai" then
		result = gsub(result, "ํ", "งฺ")
		result = gsub(result, "([ก-ฮ])ฺ", "ั%1ฺ")
		result = gsub(result, "([ก-ฮ])([^ะัาิีฺุู])", "%1ะ%2")
		result = gsub(result, "([ก-ฮ])([^ะัาิีฺุู])", "%1ะ%2") --twice
		result = gsub(result, "([ก-ฮ])$", "%1ะ")
--		result = gsub(result, "([ก-ฮ])([าิีุู])ั", "%1%2")
		result = gsub(result, dc("([ก-ฮ])([าอิอีอฺอุอู])อั"), "%1%2")
		result = gsub(result, "([เโ])([ก-ฮ])([ะั])", "%1%2")
		result = gsub(result, "^ั", "")
		result = gsub(result, "([%s%p])ั", "%1")
		result = gsub(result, "ฺ", "")
	elseif script == "Laoo" then
-- Calculating transform in argument list of gsub() fails!
		if not transform then
			transform = {
				{dc("ອໍ"), dc("ງອ຺")},
				{dc("([ກ-ຮ])ອ຺"), dc("ອັ%1ອ຺")},
				{dc("([ກ-ຮ])([^ະອັາອິອີອ຺ອຸອູ])"), "%1ະ%2"},
				{dc("([ກ-ຮ])([^ະອັາອິອີອ຺ອຸອູ])"), "%1ະ%2"}, -- twice!
				{"([ກ-ຮ])$", "%1ະ"},
				{dc("([ກ-ຮ])([າອິອີອ຺ອຸອູ])ອັ"), "%1%2"},
				{dc("([ເໂ])([ກ-ຮ])([ະອັ])"), "%1%2"},
				{dc("^ອັ"), ""},
				{dc("([%s%p])ອັ"), "%1"},
				{dc("ອ຺"), ""}
			}
		end
		for _, v in ipairs(transform) do
			result = gsub(result, v[1], v[2])
		end
	end
	
	return result
end

local function return_error(text)
	return error(("Unrecognised part: \"%s\""):format(text))
end

function export.tr(text, script, options)
	if type(text) == "table" then
		options = {}
		options.impl = text.args["impl"]
		options.variation = text.args["variation"] --ID of variation: [Mymr: 1=Mon, 2=Old Shan, 3=New Shan]
		text, script = text.args[1], text.args[2]
	end
	if script == "Latn" then
		return text
	end
	if not s[script] then
		return nil
	end
	local easy_syllable_pattern =
		"^([khgṅcjñṭḍṇtdnpbmyrlḷvs]*)([aāiīuūeo])(ṃ?)("..kill[script].."?)$"

	text = lower(text)
	text = gsub(text, "[0-9%.,%-]", s[script])
-- Compose patterns for processing onsets. 
	local letter = "[^"..join[script]..nukta.."]["..nukta.."]?"
	local letter_pair = "("..letter..")("..letter..")"
	
	for word in gmatch(text, "[aāiīuūeoṃkhgṅcjñṭḍṇtdnpbmyrlḷvs]+") do
		local word_conv, orig_word = {}, word
		word = gsub(word, "([aāiīuūeo]ṃ?)", "%1 ")
		word = gsub(word, " $", "")
		
		for syllable in mw.text.gsplit(word, " ") do
			if not match(syllable, "[aāiīuūeoṃ]$") then
				syllable = syllable .. "a" .. kill[script]
			end
			syllable = gsub(syllable, easy_syllable_pattern,
							function(onset, vowel, coda, optJoin)
				if onset == "" then
					onset = vowel
					vowel = ""
				end
				if not c[script][onset] then
					onset = gsub(onset, ".h", c[script])
					onset = gsub(onset, ".", c[script])
-- Join pairs of consonants
					onset = gsub(onset, letter_pair, "%1"..join[script].."%2")
-- Join adjacent consonants that were in different pairs.
					onset = gsub(onset, letter_pair, "%1"..join[script].."%2")
				else
					onset = c[script][onset]
				end
				
				return onset .. (v[script][vowel] or return_error(vowel)) .. c[script][coda] .. optJoin
			end)
				
			table.insert(word_conv, syllable)
		end
		word = table.concat(word_conv, "")
		if script == "Thai" then
			word = gsub(word, "(.)([เโ])", "%2%1")
		elseif script == "Mymr" then
			word = gsub(word, "င္", "င်္") -- Pali doesn't have -Vr mid-word like Sanskrit, so no need to include repha.
			word = gsub(word, "(င်္)([ခဂငဒပဝ])(ေ?)ာ", "%1%2%3ါ")
			word = gsub(word, "္[ယရ]", { ["္ယ"] = "ျ", ["္ရ"] = "ြ" }) --these not need tall aa
			word = gsub(word, "^([ခဂငဒပဝ])(ေ?)ာ", "%1%2ါ")
			word = gsub(word, "([^္])([ခဂငဒပဝ])(ေ?)ာ", "%1%2%3ါ")
			word = gsub(word, "([ခဂငဒပဝ])(္[က-အဿ])(ေ?)ာ", "%1%2%3ါ")
			word = gsub(word, "္[ဝဟ]", { ["္ဝ"] = "ွ", ["္ဟ"] = "ှ" })
			word = gsub(word, "ဉ္ဉ", "ည")
			word = gsub(word, "သ္သ", "ဿ")
			if not (options and options.variation) then
				-- Arg options should be optional, so nothing to do. 
			elseif options.variation == "1" then
				word = gsub(word, ".", variations.Mon)
--				word = gsub(word, "ိံ", "ီ") --fix IM, if evidence meeting CFI is added.
			elseif options.variation == "2" then
				if match(word, "ဿ") then
					-- Character is missing.  Do nothing.
				else
					word = gsub(word, ".", variations.OldShan)
				end
			elseif options.variation == "3" then
				word = gsub(word, ".", variations.OldShan)
				word = gsub(word, ".", variations.NewShan)
				word = gsub(word, "်".."်", "်") --fix nga
			end
		elseif script == "Lana" then
			word = gsub(word, "ᨦ᩠", "ᩘ")
			word = gsub(word, "^([ᨣᨴᨵᨷᩅ])(ᩮ?)ᩣ", "%1%2ᩤ")
			word = gsub(word, "([^᩠])([ᨣᨴᨵᨷᩅ])(ᩮ?)ᩣ", "%1%2%3ᩤ")
			word = gsub(word, "([ᨣᨴᨵᨷᩅ])(᩠[ᨠ-ᩌᩔ])(ᩮ?)ᩣ", "%1%2%3ᩤ")
			word = gsub(word, "᩠[ᩁᩃ]", { ["᩠ᩁ"] = "ᩕ", ["᩠ᩃ"] = "ᩖ" })
			word = gsub(word, "([ᨭ-ᨱ])᩠ᨮ", "%1ᩛ")
			word = gsub(word, "([ᨷ-ᨾ])᩠ᨻ", "%1ᩛ")
			word = gsub(word, "ᩈ᩠ᩈ", "ᩔ")
		elseif script == "Beng" then
			word = gsub(word, "ৰ্", "ৰ"..u(0x200d).."্") -- ৰ্(v-) needs ZWJ to display correctly
		elseif script == "Sinh" then
			local js = join["Sinh"]
			word = gsub(word, "("..js..")([යර])", u(0xdca, 0x200d).."%2")
			word = gsub(word,"[කතන]"..js.."[ථදධව]", sinh_cjct)
		elseif script == "Laoo" then
			word = gsub(word, "(.)([ເໂ])", "%2%1")
		elseif script == "Cakm" then
			word = gsub(word, "𑄴[𑄠𑄢𑄣𑅇]", -- 𑄠𑄣 are TBC: 𑄢𑅇 confirmed. 𑄚𑄴𑄚 seen.
				{ ["𑄴𑄠"]="𑄳𑄠", ["𑄴𑄢"]="𑄳𑄢", ["𑄴𑄣"]="𑄳𑄣", ["𑄴𑅇"]="𑄳𑄤", })
		end
		text = gsub(text, orig_word, word, 1)
	end
	local impl = options and options.impl or 'yes'
	if impl == 'no' then text = export.mono_form(text, script) end
	return text
end

return export