Module:Brah-translit/testcases
- The following documentation is located at Module:Brah-translit/testcases/documentation. [edit] Categories were auto-generated by Module:module categorization. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
This tests transliteration from the Brahmi script to the Roman script. Sanskrit and potentially non-standard Pali use a different scheme to the other languages. The test cases below are for Prakit by default. Other languages are indicated in the results by prefixing the language code, colon and a space to the input Brahmi script string. All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
![]() | 𑀧𑀁𑀟𑀺𑀅 | paṃḍia | paṃḍia |
![]() | 𑀕𑀅 | gaa | gaa |
![]() | 𑀢𑀑 | tao | tao |
![]() | sa: 𑀯𑀁𑀰 | vaṃśa | vaṃśa |
![]() | 𑀯𑀺𑀱𑁆𑀡𑀼 | viṣṇu | viṣṇu |
![]() | sa: 𑀕𑁅𑀂 | gauḥ | gauḥ |
![]() | 𑀚𑁃𑀦 | jaina | jaina |
![]() | sa: 𑀋𑀱𑁀𑀫𑀿𑀡𑀻 | ṛṣḷmṝṇī | ṛṣḷmṝṇī |
![]() | 𑀋𑀱𑁀𑀫𑀿𑀡𑀻 | ṛṣl̥mṝṇī | ṛṣl̥mṝṇī |
![]() | sa: 𑀌𑀓𑁆𑀱𑀽𑀧𑁁𑀢 | ṝkṣūpḹta | ṝkṣūpḹta |
![]() | 𑀌𑀓𑁆𑀱𑀽𑀧𑁁𑀢 | ṝkṣūpl̥̄ta | ṝkṣūpl̥̄ta |
![]() | 𑀍𑀧𑀾 | l̥pṛ | l̥pṛ |
![]() | sa: 𑀍𑀧𑀾 | ḷpṛ | ḷpṛ |
![]() | pi: 𑀍𑀧𑀾 | ḷpṛ | ḷpṛ |
![]() | sa: 𑀎𑀦𑀸 | ḹnā | ḹnā |
![]() | 𑀎𑀦𑀸 | l̥̄nā | l̥̄nā |
![]() | pi: 𑀐𑀰𑁆𑀯𑀭𑁆𑀬 | aiśvarya | aiśvarya |
![]() | 𑀒𑀱𑀥 | auṣadha | auṣadha |
![]() | 𑀓𑀼𑀔𑀻𑀕𑀗𑁆𑀖𑀸 | kukhīgaṅghā | kukhīgaṅghā |
![]() | 𑀝𑀝𑁆𑀞𑁄𑀟𑁆𑀠𑀡𑁆𑀟𑀻𑀠𑀦𑁆𑀢𑁆 | ṭaṭṭhŏḍḍhaṇḍīḍhant | ṭaṭṭhŏḍḍhaṇḍīḍhant |
![]() | 𑀚𑀘𑁆𑀙𑀼𑀁𑀲𑀚𑁆𑀛𑁂𑀚𑁆𑀜 | jacchuṃsajjhĕjña | jacchuṃsajjhĕjña |
![]() | 𑀇𑀧𑀡𑁆𑀞𑀫𑁆𑀩𑀺𑀨𑀪𑁄 | ipaṇṭhambiphabho | ipaṇṭhambiphabho |
![]() | 𑀯𑁆𑀬𑀩𑁆𑀩𑁄𑀭𑀴𑁆𑀳𑀴𑀺𑀦𑀸 | vyabboraḷhaḷinā | vyabboraḷhaḷinā |
![]() | 𑀧𑀼𑀁𑀮𑀺𑀗𑁆𑀕 | puṃliṅga | puṃliṅga |
![]() | 𑀆𑀲𑁆𑀦𑁄𑀓𑁆𑀮𑀢𑁆𑀯𑀸𑀬𑁆𑀳𑀮𑁄 | āsnŏklatvāyhalo | āsnŏklatvāyhalo |
![]() | sa: 𑀆𑀲𑁆𑀦𑁄𑀓𑁆𑀮𑀢𑁆𑀯𑀸𑀬𑁆𑀳𑀮𑁄 | āsnoklatvāyhalo | āsnoklatvāyhalo |
![]() | pi: 𑀉𑀕𑀬𑁆𑀳𑁄 | ugayho | ugayho |
![]() | sa: 𑀦𑀺𑀕𑁆𑀭𑁄𑀥 | nigrodha | nigrodha |
![]() | pi: 𑀧𑀘𑀯𑁆𑀳𑁄 | pacavho | pacavho |
![]() | pi: 𑀅𑀕𑀁𑀙𑀺𑀁 | agaṃchiṃ | agaṃchiṃ |
![]() | sa: 𑀧𑀸𑀧𑁄 | pāpo | pāpo |
![]() | sa: 𑀦𑀺𑀩𑁆𑀩𑀸𑀦 | nibbāna | nibbāna |
![]() | pi: 𑀊𑀓𑀢𑀩𑁆𑀩𑁄 | ūkatabbo | ūkatabbo |
![]() | pi: 𑀑𑀓𑀸𑀲𑀫𑁆𑀳𑀺 | okāsamhi | okāsamhi |
![]() | sa: 𑀏𑀳𑀺 | ehi | ehi |
![]() | pi: 𑀈𑀢𑁆𑀭𑁂𑀤𑁆𑀥𑁄𑀣𑀽𑀦𑀺𑀫𑁆 | ītreddhothūnim | ītreddhothūnim |
![]() | pi: 𑀴𑁆𑀳𑀸𑀲𑀸𑀴𑀽𑀁 | ḷhāsāḷūṃ | ḷhāsāḷūṃ |
![]() | 𑀲𑁂𑀝𑁆𑀞𑀺 | sĕṭṭhi | sĕṭṭhi |
![]() | 𑀏𑀓𑁆𑀓 | ĕkka | ĕkka |
![]() | 𑀩𑁄𑀮𑁆𑀮𑀇 | bŏllaï | bŏllaï |
![]() | 𑀑𑀓𑁆𑀓𑀺𑀅 | ŏkkia | ŏkkia |
![]() | 𑀢𑁂𑀮 | tela | tela |
![]() | 𑀏𑀲𑀚𑁆𑀚 | esajja | esajja |
![]() | 𑀢𑁄𑀲 | tosa | tosa |
![]() | 𑀑𑀳𑀺 | ohi | ohi |
![]() | 𑀅𑀉𑀅 | aüa | aüa |
![]() | 𑀧𑀸𑀲𑀇 | pāsaï | pāsaï |
![]() | oty: 𑀫𑀻𑀷𑁆 | mīṉ | mīṉ |
![]() | oty: 𑀫𑀻𑀷𑁰 | mīṉ | mīṉ |
![]() | oty: 𑀆𑀶𑀼 | āṟu | āṟu |
![]() | oty: 𑀢𑀫𑀺𑀵𑁰 | tamiḻ | tamiḻ |
![]() | oty: 𑀧𑁂𑁆𑀬𑀭𑁆 | peyar | peyar |
![]() | oty: 𑀧𑁳𑀬𑀭𑁰 | peyar | peyar |
![]() | oty: 𑀉𑀭𑁄𑀫𑀫𑁆 | urōmam | urōmam |
![]() | oty: 𑀉𑀭𑁄𑀫𑀫𑁰 | urōmam | urōmam |
![]() | oty: 𑀘𑁂𑀷𑁃 | cēṉai | cēṉai |
![]() | oty: 𑀘𑁄𑁆𑀮𑁆 | col | col |
![]() | oty: 𑀘𑁴𑀮𑁰 | col | col |
local scdef, langdef = 'Brah', 'inc-pra'
local canonical_def
local ti = table.insert
return require("Module:transliteration module testcases"){
module = "Brah-translit",
examples = {
{ "𑀧𑀁𑀟𑀺𑀅", "paṃḍia" },
{ "𑀕𑀅", "gaa" },
{ "𑀢𑀑", "tao" },
{ "𑀯𑀁𑀰", "vaṃśa", "Brah", "sa" },
{ "𑀯𑀺𑀱𑁆𑀡𑀼", "viṣṇu", "Brah", "inc-pra" },
{ "𑀕𑁅𑀂", "gauḥ", "Brah", "sa" },
{ "𑀚𑁃𑀦", "jaina", "Brah", "inc-pra" },
{ "𑀋𑀱𑁀𑀫𑀿𑀡𑀻", "ṛṣḷmṝṇī", "Brah", "sa" },
{ "𑀋𑀱𑁀𑀫𑀿𑀡𑀻", "ṛṣl̥mṝṇī", "Brah", "inc-pra" },
{ "𑀌𑀓𑁆𑀱𑀽𑀧𑁁𑀢", "ṝkṣūpḹta", "Brah", "sa" },
{ "𑀌𑀓𑁆𑀱𑀽𑀧𑁁𑀢", "ṝkṣūpl̥̄ta" },
{ "𑀍𑀧𑀾", "l̥pṛ" },
{ "𑀍𑀧𑀾", "ḷpṛ", "Brah", "sa"},
{ "𑀍𑀧𑀾", "ḷpṛ", "Brah", "pi"}, -- Unlikely, but conceivable as a leakage in from Sanskrit
{ "𑀎𑀦𑀸", "ḹnā", "Brah", "sa"},
{ "𑀎𑀦𑀸", "l̥̄nā", "Brah", "inc-pra"},
{ "𑀐𑀰𑁆𑀯𑀭𑁆𑀬", "aiśvarya", "Brah", "pi"},
{ "𑀒𑀱𑀥", "auṣadha"},
{ "𑀓𑀼𑀔𑀻𑀕𑀗𑁆𑀖𑀸", "kukhīgaṅghā" },
{ "𑀝𑀝𑁆𑀞𑁄𑀟𑁆𑀠𑀡𑁆𑀟𑀻𑀠𑀦𑁆𑀢𑁆", "ṭaṭṭhŏḍḍhaṇḍīḍhant" },
{ "𑀚𑀘𑁆𑀙𑀼𑀁𑀲𑀚𑁆𑀛𑁂𑀚𑁆𑀜", "jacchuṃsajjhĕjña" },
{ "𑀇𑀧𑀡𑁆𑀞𑀫𑁆𑀩𑀺𑀨𑀪𑁄", "ipaṇṭhambiphabho" },
{ "𑀯𑁆𑀬𑀩𑁆𑀩𑁄𑀭𑀴𑁆𑀳𑀴𑀺𑀦𑀸", "vyabboraḷhaḷinā" },
{ "𑀧𑀼𑀁𑀮𑀺𑀗𑁆𑀕", "puṃliṅga"},
{ "𑀆𑀲𑁆𑀦𑁄𑀓𑁆𑀮𑀢𑁆𑀯𑀸𑀬𑁆𑀳𑀮𑁄", "āsnŏklatvāyhalo" },
{ "𑀆𑀲𑁆𑀦𑁄𑀓𑁆𑀮𑀢𑁆𑀯𑀸𑀬𑁆𑀳𑀮𑁄", "āsnoklatvāyhalo", "Brah", "sa" },
-- { "𑀆𑀲𑁆𑀦𑁄𑀓𑁆𑀮𑀢𑁆𑀯𑀸𑀬𑁆𑀳𑀮𑁄", "āsnoklatvāyhalo", "Brah", "inc-pmh" },
{ "𑀉𑀕𑀬𑁆𑀳𑁄", "ugayho", "Brah", "pi" },
{ "𑀦𑀺𑀕𑁆𑀭𑁄𑀥", "nigrodha", "Brah", "sa"},
{ "𑀧𑀘𑀯𑁆𑀳𑁄", "pacavho", "Brah", "pi" },
{ "𑀅𑀕𑀁𑀙𑀺𑀁", "agaṃchiṃ", "Brah", "pi" },
{ "𑀧𑀸𑀧𑁄", "pāpo", "Brah", "sa" },
{ "𑀦𑀺𑀩𑁆𑀩𑀸𑀦", "nibbāna", "Brah", "sa" },
{ "𑀊𑀓𑀢𑀩𑁆𑀩𑁄", "ūkatabbo", "Brah", "pi" },
{ "𑀑𑀓𑀸𑀲𑀫𑁆𑀳𑀺", "okāsamhi", "Brah", "pi" },
{ "𑀏𑀳𑀺", "ehi", "Brah", "sa" },
{ "𑀈𑀢𑁆𑀭𑁂𑀤𑁆𑀥𑁄𑀣𑀽𑀦𑀺𑀫𑁆", "ītreddhothūnim", "Brah", "pi" },
{ "𑀴𑁆𑀳𑀸𑀲𑀸𑀴𑀽𑀁", "ḷhāsāḷūṃ", "Brah", "pi" },
{ "𑀲𑁂𑀝𑁆𑀞𑀺", "sĕṭṭhi", "Brah", "inc-pra"},
{ "𑀏𑀓𑁆𑀓", "ĕkka", "Brah", "inc-pra"},
{ "𑀩𑁄𑀮𑁆𑀮𑀇", "bŏllaï", "Brah", "inc-pra"},
{ "𑀑𑀓𑁆𑀓𑀺𑀅", "ŏkkia", "Brah", "inc-pra"},
{ "𑀢𑁂𑀮", "tela", "Brah", "inc-pra"},
{ "𑀏𑀲𑀚𑁆𑀚", "esajja", "Brah", "inc-pra"},
{ "𑀢𑁄𑀲", "tosa", "Brah", "inc-pra"},
{ "𑀑𑀳𑀺", "ohi", "Brah", "inc-pra"},
{ "𑀅𑀉𑀅", "aüa", "Brah", "inc-pra"},
{ "𑀧𑀸𑀲𑀇", "pāsaï", "Brah", "inc-pra"};
{ "𑀫𑀻𑀷𑁆", "mīṉ", "Brah", "oty" }, -- 13.0
{ "𑀫𑀻𑀷𑁰", "mīṉ", "Brah", "oty" }, -- 14.0
{ "𑀆𑀶𑀼", "āṟu", "Brah", "oty" },
{ "𑀢𑀫𑀺𑀵𑁰", "tamiḻ", "Brah", "oty" },
{ "𑀧𑁂𑁆𑀬𑀭𑁆", "peyar", "Brah", "oty" }, -- 13.0
{ "𑀧𑁳𑀬𑀭𑁰", "peyar", "Brah", "oty" }, -- 14.0
{ "𑀉𑀭𑁄𑀫𑀫𑁆", "urōmam", "Brah", "oty"}, -- 13.0
{ "𑀉𑀭𑁄𑀫𑀫𑁰", "urōmam", "Brah", "oty"}, -- 14.0
{ "𑀘𑁂𑀷𑁃", "cēṉai", "Brah", "oty" },
{ "𑀘𑁄𑁆𑀮𑁆", "col", "Brah", "oty" }, -- 13.0
{ "𑀘𑁴𑀮𑁰", "col", "Brah", "oty" }, -- 14.0
--[[
{ "", "", "", "" },
--]]
},
sc = scdef, lang = langdef,
func_with_link = function(text, should, sc, lang)
local canonical_name
if not canonical_def then
local lang_object = require('Module:languages').getByCode(langdef)
or error('The language code ' .. langdef .. ' is not valid.')
canonical_def = lang_object:getCanonicalName()
end
local label = {}
if lang and lang ~= langdef then
local lang_object = require('Module:languages').getByCode(lang)
or error('The language code ' .. lang .. ' is not valid.')
canonical_name = lang_object:getCanonicalName()
ti(label, lang);
ti(label, ': ')
else
canonical_name = canonical_def
end
ti(label, '<span class="');
ti(label, sc or scdef);
ti(label, '" lang="');
ti(label, lang or langdef);
ti(label, '">[[');
ti(label, text)
ti(label, '#')
ti(label, canonical_name)
ti(label, '|')
ti(label, text)
ti(label, ']]</span>')
return table.concat(label)
end
}