Jump to content

Module:Cakm-translit/testcases

From Wiktionary, the free dictionary

This tests transliteration from the Chakma script to the Roman script. Pali and Chakma use a different schemes. The test cases below are for Chakma by default. Other languages are indicated in the results by prefixing the language code, colon and a space to the input Brahmi script string. 7 of 77 tests failed. (refresh)

TextExpectedActual
testcases for tr function in Module:Cakm-translit:
Passed𑄃𑄘𑄢ādārāādārā
Passed𑄇𑄋𑄢kāṅārākāṅārā
Passed𑄇𑄧kaka
Passed𑄇𑄧𑄙𑄖𑄢kadhātārākadhātārā
Passed𑄇𑄧𑄙𑄗𑄪𑄛𑄴kadhāthupkadhāthup
Passed𑄇𑄨𑄠𑄮𑄁kiẏoṅkiẏoṅ
Failed𑄈𑄧𑄢𑄴𑄉𑄧𑄌𑄴hôrgôckhargac
Passed𑄉
Passed𑄉𑄧𑄋gaṅāgaṅā
Passed𑄉𑄧𑄖𑄴gatgat
Passed𑄉𑄧𑄙gadhāgadhā
Passed𑄉𑄧𑄢𑄴𑄝garbāgarbā
Passed𑄊𑄧𑄢𑄴gharghar
Passed𑄌𑄘𑄨cādicādi
Passed𑄌𑄚𑄴cāncān
Passed𑄌𑄟𑄴cāmcām
Passed𑄌𑄧𑄉𑄧𑄘cagadācagadā
Passed𑄌𑄧𑄉𑄧𑄣cagalācagalā
Failed𑄍𑄮𑄣𑄉𑄧𑄢𑄴solagôrcholāgar
Passed𑄎𑄧𑄘jadājadā
Passed𑄏𑄧𑄢𑄴jharjhar
Passed𑄒𑄉𑄪𑄢𑄴ṭhāgurṭhāgur
Failed𑄒𑄙𑄢𑄴ṭādhārṭhādhār
Passed𑄖𑄣tālātālā
Passed𑄗𑄉thāgāthāgā
Passed𑄗𑄣𑄴thālthāl
Passed𑄗𑄧𑄟𑄴thamtham
Passed𑄗𑄧𑄢𑄴tharthar
Passed𑄘𑄧𑄉𑄚𑄴dagāndagān
Passed𑄛𑄚𑄨pānipāni
Passed𑄛𑄪𑄚𑄨punipuni
Passed𑄛𑄬𑄇𑄴pekpek
Passed𑄝𑄬𑄋𑄴beṅbeṅ
Passed𑄞𑄌𑄴bhācbhāc
Failed𑄞𑄌𑄴𑄟𑄖𑄴bhāc-mātbhācmāt
Passed𑄞𑄖𑄴bhātbhāt
Passed𑄞𑄪𑄖𑄴bhutbhut
Passed𑄟𑄌𑄴mācmāc
Passed𑄟𑄪𑄎𑄴𑄏𑄬𑄁mujjheṅmujjheṅ
Passed𑄢𑄖𑄴rātrāt
Passed𑄢𑄧rara
Passed𑄢𑄧𑄖𑄴ratrat
Failed𑄣𑄋𑄧𑄚𑄨lāṅonilāṅani
Failed𑄣𑄋𑄳𑄡𑄴lāṅyālāṅy
Passed𑄣𑄋𑄴lāṅlāṅ
Passed𑄣𑄪𑄢𑄨luriluri
Passed𑄤𑄇𑄴wākwāk
Passed𑄥𑄟𑄪𑄇𑄴sāmuksāmuk
Passed𑄥𑄧𑄁𑄥𑄧𑄞saṃsabhāsaṃsabhā
Passed𑄥𑄧𑄚sanāsanā
Passed𑄥𑄪𑄟𑄪𑄣𑄁sumulāṅsumulāṅ
Passed𑄦𑄌𑄴hāchāc
Passed𑄦𑄖𑄴hāthāt
Passed𑄦𑄝hābāhābā
Passed𑄦𑄢𑄉hārāgāhārāgā
Passed𑄦𑄧𑄙hadhāhadhā
Failed𑄦𑄨𑄠𑄧𑄁hiẏoṅhiẏaṅ
Passed𑄦𑄨𑄢𑄴𑄝𑄬hirbehirbe
Passed𑄦𑄮𑄢𑄮𑄋horoṅāhoroṅā
Passedpi: 𑄇𑄪𑄈𑄩𑄉𑄋𑄴𑄊𑄂kukhīgaṅghākukhīgaṅghā
Passedpi: 𑄑𑄑𑄴𑄒𑄮𑄓𑄴𑄔𑄕𑄴𑄓𑄩𑄔𑄚𑄴𑄖𑄴ṭaṭṭhoḍḍhaṇḍīḍhantṭaṭṭhoḍḍhaṇḍīḍhant
Passedpi: 𑄎𑄌𑄴𑄍𑄪𑄁𑄥𑄎𑄴𑄏𑄬𑄎𑄳𑄐jacchuṃsajjhejñajacchuṃsajjhejña
Passedpi: 𑄃𑄨𑄛𑄕𑄴𑄒𑄟𑄴𑄝𑄨𑄜𑄞𑄮ipaṇṭhambiphabhoipaṇṭhambiphabho
Passedpi: 𑅇𑄳𑄠𑄝𑄴𑄝𑄮𑄢𑅄𑄳𑄦𑅄𑄨𑄚𑄂vyabboraḷhaḷināvyabboraḷhaḷinā
Passedpi: 𑄛𑄪𑄁𑄣𑄨𑄋𑄴𑄉puṃliṅgapuṃliṅga
Passedpi: 𑄃𑄂𑄥𑄳𑄚𑄮𑄇𑄳𑄣𑄖𑄳𑄤𑄂𑄠𑄴𑄦𑄣𑄮āsnoklatvāyhaloāsnoklatvāyhalo
Passedpi: 𑄅𑄉𑄠𑄴𑄦𑄮ugayhougayho
Passedpi: 𑄚𑄨𑄉𑄳𑄢𑄮𑄙nigrodhanigrodha
Passedpi: 𑄛𑄌𑅇𑄴𑄦𑄮pacavhopacavho
Passedpi: 𑄃𑄉𑄁𑄍𑄨𑄁agaṃchiṃagaṃchiṃ
Passedpi: 𑄛𑄂𑄛𑄮pāpopāpo
Passedpi: 𑄚𑄨𑄝𑄴𑄝𑄂𑄚nibbānanibbāna
Passedpi: 𑄃𑄫𑄇𑄖𑄝𑄴𑄝𑄮ūkatabboūkatabbo
Passedpi: 𑄃𑄮𑄇𑄂𑄥𑄟𑄳𑄦𑄨okāsamhiokāsamhi
Passedpi: 𑄆𑄦𑄨ehiehi
Passedpi: 𑄃𑄩𑄖𑄳𑄢𑄬𑄘𑄴𑄙𑄮𑄗𑄫𑄚𑄨𑄟𑄴ītreddhothūnimītreddhothūnim
Passedpi: 𑅄𑄴𑄦𑄂𑄥𑄂𑅄𑄫𑄁ḷhāsāḷūṃḷhāsāḷūṃ

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, '<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
}