Module:Cakm-translit/testcases

local scdef, langdef = 'Cakm', 'ccp' local canonical_def local ti = table.insert return require("Module:transliteration module testcases"){ module = "Cakm-translit", examples = { -- The 59 lemmas as at 19 October 2021: (the two mere letters are excluded, -- as is the one untransliterated lemmas 𑄌𑄖𑄴) { "𑄃𑄘𑄢", "ādārā"}, { "𑄇𑄋𑄢", "kāṅārā"}, { "𑄇𑄧",    "ka"}, { "𑄇𑄧𑄙𑄖𑄢", "kadhātārā"}, { "𑄇𑄧𑄙𑄗𑄪𑄛𑄴", "kadhāthup"}, { "𑄇𑄨𑄠𑄮𑄁", "kiẏoṅ"}, { "𑄈𑄧𑄢𑄴𑄉𑄧𑄌𑄴", "hôrgôc"}, { "𑄉", "gā"}, { "𑄉𑄧𑄋", "gaṅā"}, { "𑄉𑄧𑄖𑄴", "gat"}, { "𑄉𑄧𑄙", "gadhā"}, { "𑄉𑄧𑄢𑄴𑄝", "garbā"}, { "𑄊𑄧𑄢𑄴", "ghar"}, { "𑄌𑄘𑄨", "cādi"}, { "𑄌𑄚𑄴", "cān"}, { "𑄌𑄟𑄴", "cām"}, { "𑄌𑄧𑄉𑄧𑄘", "cagadā"}, { "𑄌𑄧𑄉𑄧𑄣", "cagalā"}, { "𑄍𑄮𑄣𑄉𑄧𑄢𑄴", "solagôr"}, { "𑄎𑄧𑄘", "jadā"}, { "𑄏𑄧𑄢𑄴", "jhar"}, { "𑄒𑄉𑄪𑄢𑄴", "ṭhāgur"}, { "𑄒𑄙𑄢𑄴", "ṭādhār"}, { "𑄖𑄣", "tālā"}, { "𑄗𑄉", "thāgā"}, { "𑄗𑄣𑄴", "thāl"}, { "𑄗𑄧𑄟𑄴", "tham"}, { "𑄗𑄧𑄢𑄴", "thar"}, { "𑄘𑄧𑄉𑄚𑄴", "dagān"}, { "𑄛𑄚𑄨", "pāni"}, { "𑄛𑄪𑄚𑄨", "puni"}, { "𑄛𑄬𑄇𑄴", "pek"}, { "𑄝𑄬𑄋𑄴", "beṅ"}, { "𑄞𑄌𑄴", "bhāc"}, { "𑄞𑄌𑄴𑄟𑄖𑄴", "bhāc-māt"}, { "𑄞𑄖𑄴", "bhāt"}, { "𑄞𑄪𑄖𑄴", "bhut"}, { "𑄟𑄌𑄴", "māc"}, { "𑄟𑄪𑄎𑄴𑄏𑄬𑄁", "mujjheṅ"}, { "𑄢𑄖𑄴", "rāt"}, { "𑄢𑄧", "ra"}, { "𑄢𑄧𑄖𑄴", "rat"}, { "𑄣𑄋𑄧𑄚𑄨", "lāṅoni"}, { "𑄣𑄋𑄳𑄡𑄴", "lāṅyā"}, { "𑄣𑄋𑄴", "lāṅ"}, { "𑄣𑄪𑄢𑄨", "luri"}, { "𑄤𑄇𑄴", "wāk"}, { "𑄥𑄟𑄪𑄇𑄴", "sāmuk"}, { "𑄥𑄧𑄁𑄥𑄧𑄞", "saṃsabhā"}, { "𑄥𑄧𑄚", "sanā"}, { "𑄥𑄪𑄟𑄪𑄣𑄁", "sumulāṅ"}, { "𑄦𑄌𑄴", "hāc"}, { "𑄦𑄖𑄴", "hāt"}, { "𑄦𑄝", "hābā"}, { "𑄦𑄢𑄉", "hārāgā"}, { "𑄦𑄧𑄙", "hadhā"}, { "𑄦𑄨𑄠𑄧𑄁", "hiẏoṅ"}, { "𑄦𑄨𑄢𑄴𑄝𑄬", "hirbe"}, { "𑄦𑄮𑄢𑄮𑄋", "horoṅā"}, -- Pali stuff { "𑄇𑄪𑄈𑄩𑄉𑄋𑄴𑄊𑄂", "kukhīgaṅghā", "Cakm", "pi"}, { "𑄑𑄑𑄴𑄒𑄮𑄓𑄴𑄔𑄕𑄴𑄓𑄩𑄔𑄚𑄴𑄖𑄴", "ṭaṭṭhoḍḍhaṇḍīḍhant", "Cakm", "pi" }, { "𑄎𑄌𑄴𑄍𑄪𑄁𑄥𑄎𑄴𑄏𑄬𑄎𑄳𑄐", "jacchuṃsajjhejña", "Cakm", "pi" }, { "𑄃𑄨𑄛𑄕𑄴𑄒𑄟𑄴𑄝𑄨𑄜𑄞𑄮", "ipaṇṭhambiphabho", "Cakm", "pi" }, { "𑅇𑄳𑄠𑄝𑄴𑄝𑄮𑄢𑅄𑄳𑄦𑅄𑄨𑄚𑄂", "vyabboraḷhaḷinā", "Cakm", "pi" }, { "𑄛𑄪𑄁𑄣𑄨𑄋𑄴𑄉", "puṃliṅga", "Cakm", "pi"}, { "𑄃𑄂𑄥𑄳𑄚𑄮𑄇𑄳𑄣𑄖𑄳𑄤𑄂𑄠𑄴𑄦𑄣𑄮", "āsnoklatvāyhalo", "Cakm", "pi" }, { "𑄅𑄉𑄠𑄴𑄦𑄮", "ugayho", "Cakm", "pi" }, { "𑄚𑄨𑄉𑄳𑄢𑄮𑄙", "nigrodha", "Cakm", "pi"}, { "𑄛𑄌𑅇𑄴𑄦𑄮", "pacavho", "Cakm", "pi" }, { "𑄃𑄉𑄁𑄍𑄨𑄁", "agaṃchiṃ", "Cakm", "pi" }, { "𑄛𑄂𑄛𑄮", "pāpo", "Cakm", "pi" }, { "𑄚𑄨𑄝𑄴𑄝𑄂𑄚", "nibbāna", "Cakm", "pi" }, { "𑄃𑄫𑄇𑄖𑄝𑄴𑄝𑄮", "ūkatabbo", "Cakm", "pi" }, { "𑄃𑄮𑄇𑄂𑄥𑄟𑄳𑄦𑄨", "okāsamhi", "Cakm", "pi" }, { "𑄆𑄦𑄨", "ehi", "Cakm", "pi" }, { "𑄃𑄩𑄖𑄳𑄢𑄬𑄘𑄴𑄙𑄮𑄗𑄫𑄚𑄨𑄟𑄴", "ītreddhothūnim", "Cakm", "pi" }, { "𑅄𑄴𑄦𑄂𑄥𑄂𑅄𑄫𑄁", "ḷhāsāḷūṃ", "Cakm", "pi" }, --   	{ "", "" },    	--    },    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, '')		ti(label, text)		ti(label, ' ') return table.concat(label) end }