Module:scripts/code to canonical name

return {
	["Adlm"] = "Adlam",
	["Afak"] = "Afaka",
	["Aghb"] = "Caucasian Albanian",
	["Ahom"] = "Ahom",
	["Arab"] = "Arabic",
	["Armi"] = "Imperial Aramaic",
	["Armn"] = "Armenian",
	["Avst"] = "Avestan",
	["Bali"] = "Balinese",
	["Bamu"] = "Bamum",
	["Bass"] = "Bassa",
	["Batk"] = "Batak",
	["Beng"] = "Bengali",
	["Bhks"] = "Bhaiksuki",
	["Bopo"] = "Zhuyin",
	["Brah"] = "Brahmi",
	["Brai"] = "Braille",
	["Bugi"] = "Buginese",
	["Buhd"] = "Buhid",
	["Cakm"] = "Chakma",
	["Cans"] = "Canadian syllabics",
	["Cari"] = "Carian",
	["Cham"] = "Cham",
	["Cher"] = "Cherokee",
	["Copt"] = "Coptic",
	["Cprt"] = "Cypriot",
	["Cyrl"] = "Cyrillic",
	["Cyrs"] = "Old Cyrillic",
	["Deva"] = "Devanagari",
	["Dsrt"] = "Deseret",
	["Dupl"] = "Duployan",
	["Egyd"] = "Demotic",
	["Egyp"] = "Egyptian hieroglyphic",
	["Elba"] = "Elbasan",
	["Ethi"] = "Ethiopic",
	["Geok"] = "Khutsuri",
	["Geor"] = "Georgian",
	["Glag"] = "Glagolitic",
	["Gonm"] = "Masaram Gondi",
	["Goth"] = "Gothic",
	["Gran"] = "Grantha",
	["Grek"] = "Greek",
	["Gujr"] = "Gujarati",
	["Guru"] = "Gurmukhi",
	["Hang"] = "Hangul",
	["Hani"] = "Han",
	["Hano"] = "Hanunoo",
	["Hans"] = "Simplified Han",
	["Hant"] = "Traditional Han",
	["Hatr"] = "Hatran",
	["Hebr"] = "Hebrew",
	["Hira"] = "Hiragana",
	["Hluw"] = "Anatolian Hieroglyphs",
	["Hmng"] = "Hmong",
	["Hung"] = "Old Hungarian",
	["IPAchar"] = "International Phonetic Alphabet",
	["Ibrn"] = "Iberian",
	["Imag"] = "Image-rendered",
	["Inds"] = "Indus",
	["Ital"] = "Old Italic",
	["Java"] = "Javanese",
	["Jpan"] = "Japanese",
	["Jurc"] = "Jurchen",
	["Kali"] = "Kayah Li",
	["Kana"] = "Katakana",
	["Khar"] = "Kharoshthi",
	["Khmr"] = "Khmer",
	["Khoj"] = "Khojki",
	["Kitl"] = "Khitan Large",
	["Kits"] = "Khitan Small",
	["Knda"] = "Kannada",
	["Kore"] = "Korean",
	["Kthi"] = "Kaithi",
	["Lana"] = "Tai Tham",
	["Laoo"] = "Lao",
	["Latf"] = "Fraktur",
	["Latn"] = "Latin",
	["Leke"] = "Leke",
	["Lepc"] = "Lepcha",
	["Limb"] = "Limbu",
	["Lina"] = "Linear A",
	["Linb"] = "Linear B",
	["Lisu"] = "Lisu",
	["Lyci"] = "Lycian",
	["Lydi"] = "Lydian",
	["Mahj"] = "Mahajani",
	["Mand"] = "Mandaic",
	["Mani"] = "Manichaean",
	["Marc"] = "Marchen",
	["Maya"] = "Maya",
	["Mend"] = "Mende",
	["Merc"] = "Meroitic cursive",
	["Mero"] = "Meroitic hieroglyphic",
	["Mlym"] = "Malayalam",
	["Modi"] = "Modi",
	["Mong"] = "Mongolian",
	["Mroo"] = "Mro",
	["Mtei"] = "Meitei Mayek",
	["Mult"] = "Multani",
	["Mymr"] = "Burmese",
	["Narb"] = "Old North Arabian",
	["Nbat"] = "Nabataean",
	["Newa"] = "Newa",
	["Nkoo"] = "N'Ko",
	["None"] = "Unspecified",
	["Nshu"] = "Nushu",
	["Ogam"] = "Ogham",
	["Olck"] = "Ol Chiki",
	["Orkh"] = "Orkhon runes",
	["Orya"] = "Oriya",
	["Osge"] = "Osage",
	["Osma"] = "Osmanya",
	["Palm"] = "Palmyrene",
	["Pauc"] = "Pau Cin Hau",
	["Perm"] = "Old Permic",
	["Phag"] = "Phags-pa",
	["Phli"] = "Inscriptional Pahlavi",
	["Phlp"] = "Psalter Pahlavi",
	["Phlv"] = "Book Pahlavi",
	["Phnx"] = "Phoenician",
	["Plrd"] = "Pollard",
	["Prti"] = "Parthian",
	["Rjng"] = "Rejang",
	["Runr"] = "Runic",
	["Samr"] = "Samaritan",
	["Sarb"] = "Old South Arabian",
	["Saur"] = "Saurashtra",
	["Sgnw"] = "SignWriting",
	["Shaw"] = "Shavian",
	["Shrd"] = "Sharada",
	["Sidd"] = "Siddham",
	["Sind"] = "Khudawadi",
	["Sinh"] = "Sinhalese",
	["Sora"] = "Sorang Sompeng",
	["Soyo"] = "Soyombo",
	["Sund"] = "Sundanese",
	["Sylo"] = "Syloti Nagri",
	["Syrc"] = "Syriac",
	["Tagb"] = "Tagbanwa",
	["Takr"] = "Takri",
	["Tale"] = "Tai Nüa",
	["Talu"] = "New Tai Lue",
	["Taml"] = "Tamil",
	["Tang"] = "Tangut",
	["Tavt"] = "Tai Viet",
	["Telu"] = "Telugu",
	["Teng"] = "Tengwar",
	["Tfng"] = "Tifinagh",
	["Tglg"] = "Baybayin",
	["Thaa"] = "Thaana",
	["Thai"] = "Thai",
	["Tibt"] = "Tibetan",
	["Tirh"] = "Tirhuta",
	["Ugar"] = "Ugaritic",
	["Vaii"] = "Vai",
	["Wara"] = "Varang Kshiti",
	["Xpeo"] = "Old Persian",
	["Xsux"] = "Cuneiform",
	["Yiii"] = "Yi",
	["Zanb"] = "Zanabazar Square",
	["Zmth"] = "mathematical notation",
	["Zsym"] = "symbol",
	["Zyyy"] = "undetermined",
	["Zzzz"] = "uncoded",
}

--[=[
-- This module and [[Module:scripts/by name]] were generated from
-- [[Module:scripts/data]] with the following code.
-- They will need to be regenerated when new scripts are added.

local data = mw.loadData'Module:scripts/data'
local dump = require'Module:debug'.highlight_dump

function export.show(frame)
	local by_name = {}
	local by_code = {}
	
	for code, data in pairs(data) do
		if #code == 4 or code == 'IPAchar' then
			local name = data.canonicalName
			by_name[name] = code
			by_code[code] = name
		end
	end
	
	return dump{ by_code = by_code, by_name = by_name }
end
--]=]