This module contains definitions and metadata for all script codes on Wiktionary. See વિક્શનરી:લિપિઓ for more information.

This module must not be imported using require. Instead, it is imported like this:

local m_scripts = mw.loadData("Module:લિપિઓ")

This ensures that the data is only loaded once per page, rather than once for every module invocation like normal.

To access this data from templates, use Module:લિપિના ઉપયોગીતા.

Every entry in the table must contain the following properties:

names
A list of all the names that this script is known by. The first name listed is always the "canonical" name, which is used in Wiktionary entries and category names.
characters
A Lua character class that matches on any character that belongs to this script. The character classes are the same as those in Lua search/replace patterns, but without the surrounding [ ] (these are implicitly added). They also resemble those found in regular expressions.
In its simplest form, the character class can just be a list of all the characters in the script (Example: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"). But it's easier to describe using character ranges, especially when the script contains many dozens or even hundreds of different characters. Character ranges are given with only the first and last character, and separated by a hyphen -. The set then implicitly includes all characters whose Unicode codepoints are in between the two given characters (Example: "A-Za-z").

-- When adding new scripts to this file, please don't forget to add
-- style definitons for the script in [[MediaWiki:Common.css]].

local m = {}

m["Afak"] = {
    names = { "Afaka" },
}

m["Aghb"] = {
    names = { "Caucasian Albanian" },
}

m["અરબી"] = {
    names = { "અરબી" },
    characters = "؀-ۿݐ-ݿﭐ-﷽ﹰ-ﻼ",
}

m["ફાર-અરબી"] = {
    names = { "અરબી" },
}

m["kk-Arab"] = {
    names = { "Arabic" },
}

m["ks-Arab"] = {
    names = { "Arabic" },
}

m["ku-Arab"] = {
    names = { "Arabic" },
}

m["mzn-Arab"] = {
    names = { "Arabic" },
}

m["ઉસ્મા-અરબી"] = {
    names = { "અરબી" },
}

m["પંજા-અરબી"] = {
    names = { "અરબી", "શાહમુખી" },
}

m["પઠા-અરબી"] = {
    names = { "અરબી" },
}

m["સિંધી-અરબી"] = {
    names = { "અરબી" },
}

m["tt-Arab"] = {
    names = { "Arabic" },
}

m["ug-Arab"] = {
    names = { "Arabic" },
}

m["ઉર્દુ-અરબી"] = {
    names = { "અરબી" },
}

m["અરામી"] = {
    names = { "શાહી અરામી" },
    characters = "𐡀-𐡟",
}

m["અર્મ"] = {
    names = { "અર્મનિસ્તાની" },
    characters = "Ա-֏ﬓ-ﬗ",
}

m["પહલ"] = {
    names = { "પહલવી" },
    characters = "𐬀-𐬿",
}

m["બાલી"] = {
    names = { "બાલીદ્વીપી" },
    characters = "ᬀ-᭼",
}

m["Bamu"] = {
    names = { "Bamum" },
    characters = "ꚠ-꛷𖠀-𖨸",
}

m["Bass"] = {
    names = { "Bassa", "Bassa Vah", "Vah" },
}

m["Batk"] = {
    names = { "Batak" },
    characters = "ᯀ-᯿",
}

m["બંગા"] = {
    names = { "બંગાળી" },
    characters = "ঁ-৺",
}

m["બોપો"] = {
    names = { "ઝુયિન", "ઝુયિન ફૂહાઓ", "બોપોમોફો" },
    characters = "ㄅ-ㄭㆠ-ㆺ",
}

m["બ્રાહ્મી"] = {
    names = { "બ્રાહ્મી" },
    characters = "𑀀-𑁯",
}

m["બ્રેઇ"] = {
    names = { "બ્રેઇલ" },
    characters = "⠀-⣿",
}

m["Bugi"] = {
    names = { "Buginese" },
    characters = "ᨀ-᨟",
}

m["Buhd"] = {
    names = { "Buhid" },
}

m["Cakm"] = {
    names = { "Chakma" },
}

m["Cans"] = {
    names = { "Canadian syllabics" },
    characters = "᐀-ᙿ",
}

m["Cari"] = {
    names = { "Carian" },
}

m["Cham"] = {
    names = { "Cham" },
    characters = "ꨀ-꩟"
}

m["ચેરો"] = {
    names = { "ચેરોકી" },
    characters = "Ꭰ-Ᏼ",
}

m["Copt"] = {
    names = { "Coptic" },
    characters = "Ⲁ-⳿", -- This is the separate "Coptic" block, not the unified "Greek and Coptic"
}

m["Cprt"] = {
    names = { "Cypriot" },
}

m["સિરિ"] = {
    names = { "સિરિલી" },
    characters = "Ѐ-џҊ-ԧꚀ-ꚗ",
}

m["Cyrs"] = {
    names = { "Old Cyrillic" },
    characters = "Ѐ-ԧꙀ-ꚗ",
}

m["દેવ"] = {
    names = { "દેવનાગરી" },
    characters = "ऀ-ॿ꣠-ꣻ",
}

m["Dsrt"] = {
    names = { "Deseret" },
    characters = "𐐀-𐑏",
}

m["Dupl"] = {
    names = { "Duployan" },
}

m["Egyd"] = {
    names = { "Demotic" },
}

m["Egyp"] = {
    names = { "Egyptian hieroglyphic" },
    characters = "𓀀-𓐮",
}

m["Elba"] = {
    names = { "Elbasan" },
}

m["Ethi"] = {
    names = { "Ethiopic", "Ge'ez" },
    characters = "ሀ-᎙ⶀ-ⷞꬁ-ꬮ",
}

m["Geok"] = {
    names = { "Nuskhuri", "Khutsuri", "Asomtavruli" },
    characters = "Ⴀ-Ⴭⴀ-ⴭ", -- Ⴀ-Ⴭ is Asomtavruli, ⴀ-ⴭ is Nuskhuri
}

m["Geor"] = {
    names = { "Georgian", "Mkhedruli" },
    characters = "Ⴀ-ჼ", -- technically only the range [ა-ჿ] is Mkhedruli
}

m["Glag"] = {
    names = { "Glagolitic" },
    characters = "Ⰰ-ⱞ",
}

m["Goth"] = {
    names = { "Gothic" },
    characters = "𐌰-𐍊",
}

m["ગ્રંથ"] = {
    names = { "ગ્રંથ" },
}

m["યૂના"] = {
    names = { "યૂનાની" },
    characters = "ʹ-Ͽ",
}

m["polytonic"] = {
    names = { "Greek" },
    characters = "ἀ-῾" .. m["યૂના"].characters,
}

m["ગુજ"] = {
    names = { "ગુજરાતી" },
    characters = "ઁ-૱",
}

m["ગુરુ"] = {
    names = { "ગુરુમુખી" },
    characters = "ਁ-ੵ",
}

m["હંગુ"] = {
    names = { "હંગુલ" },
    characters = "가-힣",
}

m["Hani"] = {
    names = { "Han" },
    characters = "一-鿌㐀-䶵 -〿𠀀-𫠝!-○",
}

m["Hans"] = {
    names = { "Simplified Han" },
}

m["Hant"] = {
    names = { "Traditional Han" },
}

m["હીરા"] = {
    names = { "હીરાગાના" },
    characters = "ぁ-ゟ",
}

m["કાટા"] = {
    names = { "કાટાકાના" },
    characters = "゠-ヿㇰ-ㇿ",
}

-- These should be defined after the scripts they are composed of

m["જાપા"] = {
    names = { "જાપાની" },
    characters = m["હીરા"].characters .. m["કાટા"].characters .. m["Hani"].characters, 
}

m["કોરિ"] = {
    names = { "કોરિયાઈ" },
    characters = m["હંગુ"].characters .. m["Hani"].characters .. "!-○", 
}

m["CGK"] = {
    names = { "કોરિ" },
}

m["Hano"] = {
    names = { "Hanunoo" },
}

m["યહૂ"] = {
    names = { "યહૂદી" },
    characters = "א-ת",
}

m["Hmng"] = {
    names = { "Hmong", "Pahawh Hmong" },
}

m["Ibrn"] = {
    names = { "Iberian" },
}

m["સરસ્વ"] = {
    names = { "સરસ્વતી", "સરસ્વતી લિપિ", "હડપ્પા લિપિ", "હડપ્પા", "સિંધુ લિપિ" },
}

m["IPAchar"] = {
    names = { "International Phonetic Alphabet" },
}

m["Ital"] = {
    names = { "Old Italic" },
    characters = "𐌀-𐌣",
}

m["યવ"] = {
    names = { "યવદ્વિપી", "જાવાઈ" },
    characters = "ꦀ-꧟",
}

m["Jurc"] = {
    names = { "Jurchen" },
}

m["Kali"] = {
    names = { "Kayah Li" },
    characters = "꤀-꤯",
}

m["ખરો"] = {
    names = { "ખરોષ્ઠી" },
    characters = "𐨀-𐩘",
}

m["ખ્મેર"] = {
    names = { "ખ્મેર", "કંબુજી" },
    characters = "ក-៹",
}

m["કન્ન"] = {
    names = { "કાનડી", "કન્નડ" },
    characters = "ಂ-ೲ",
}

m["કૈથી"] = {
    names = { "કૈથી" },
    characters = "𑂀-𑃁",
}

m["Lana"] = {
    names = { "Lanna" },
}

m["લાઓ"] = {
    names = { "લાઓ", "લાવ" },
    characters = "ກ-ໝ",
}

m["Latf"] = {
    names = { "Fraktur", "Blackletter" },
}

m["લાટિ"] = {
    names = { "લાટિન" },
    characters = "0-z¡-ɏḀ-ỿ",
}

m["Latinx"] = {
	names = {"Latin"},
}

m["nv-Latn"] = {
    names = { "Latin" },
}

m["pjt-Latn"] = {
    names = { "Latin" },
}

m["Lepc"] = {
    names = { "Lepcha" },
}

m["Limb"] = {
    names = { "Limbu" },
}

m["Lina"] = {
    names = { "Linear A" },
}

m["Linb"] = {
    names = { "Linear B" },
    characters = "𐀀-𐃺",
}

m["Lisu"] = {
    names = { "Lisu", "Fraser" },
    characters = "ꓐ-꓿",
}

m["Lyci"] = {
    names = { "Lycian" },
}

m["Lydi"] = {
    names = { "Lydian" },
}

m["Mand"] = {
    names = { "Mandaic" },
}

m["Mani"] = {
    names = { "Manichaean" },
    characters = m["લાટિ"].characters, -- Not in Unicode
}

m["Maya"] = {
    names = { "Maya", "Maya hieroglyphic", "Mayan", "Mayan hieroglyphic" },
}

m["Mend"] = {
    names = { "Mende", "Mende Kikakui" },
}

m["Merc"] = {
    names = { "Meroitic cursive" },
    characters = "𐦠-𐦿",
}

m["Mero"] = {
    names = { "Meroitic hieroglyphic" },
    characters = "𐦀-𐦟",
}

m["મલય"] = {
    names = { "મલયાલમ" },
    characters = "ം-ൿ",
}

m["Mong"] = {
    names = { "Mongolian" },
    characters = "᠀-ᢪ",
}

m["Mtei"] = {
    names = { "Meitei Mayek" },
    characters = "ꯀ-꯿ꫠ-꫿",
}

m["musical"] = {
    names = { "musical notation" },
	characters = "𝄀-𝇝",
}

m["મ્યાન"] = {
    names = { "બ્રહ્મદેશી", "મ્યાનમાર" },
    characters = "က-ၙ",
}

m["Nkoo"] = {
    names = { "N'Ko" },
}

m["કંઈ નહિ"] = {
    names = { "No script specified" },
    -- This should not have any characters listed
}

m["ઓઘામ"] = {
    names = { "ઓઘામ" },
    characters = " -᚜",
}

m["Olck"] = {
    names = { "Ol Chiki" },
}

m["Orkh"] = {
    names = { "Orkhon runes" },
    characters = "𐰀-𐱈",
}

m["ઉડિ"] = {
    names = { "ઉડિયા" },
    characters = "ଁ-୷",
}

m["Osma"] = {
    names = { "Osmanya" },
}

m["Phag"] = {
    names = { "Phags-pa" },
    characters = "ꡀ-꡷",
}

m["Phli"] = {
    names = { "Inscriptional Pahlavi" },
    characters = "𐭠-𐭿",
}

m["Phlp"] = {
    names = { "Psalter Pahlavi" },
    characters = m["લાટિ"].characters, -- Not in Unicode
}

m["Phlv"] = {
    names = { "Book Pahlavi" },
    characters = m["લાટિ"].characters, -- Not in Unicode
}

m["Phnx"] = {
    names = { "Phoenician" },
    characters = "𐤀-𐤟",
}

m["Plrd"] = {
    names = { "Pollard" },
    characters = "𖼀-𖾟",
}

m["Prti"] = {
    names = { "Parthian" },
    characters = "𐭀-𐭟",
}

m["Rjng"] = {
    names = { "Rejang" },
    characters = "ꤰ-꥟",
}

m["Ruminumerals"] = {
    names = { "Rumi numerals" },
    characters = "𐹠-𐹾",
}

m["Runr"] = {
    names = { "Runic" },
    characters = "ᚠ-ᛰ",
}

m["Samr"] = {
    names = { "Samaritan" },
}

m["Sarb"] = {
    names = { "Old South Arabian" },
}

m["સૌરા"] = {
    names = { "સૌરાષ્ટ્ર" },
    characters = "ꢀ-꣙",
}

m["Sgnw"] = {
    names = { "SignWriting" },
}

m["Shaw"] = {
    names = { "Shavian" },
    characters = "𐑐-𐑿",
}

m["Shrd"] = {
    names = { "Sharada" },
    characters = "𑆀-𑇙",
}

m["Sinh"] = {
    names = { "Sinhalese" },
    characters = "ං-෴",
}

m["Sora"] = {
    names = { "Sorang Sompeng", "Sora Sompeng" },
}

m["Sund"] = {
    names = { "Sundanese" },
    characters = "ᮀ-ᮿ",
}

m["Sylo"] = {
    names = { "Syloti Nagri", "Sylheti Nagari" },
}

m["Syrc"] = {
    names = { "Syriac" },
    characters = "܀-ݏ",
}

m["Tagb"] = {
    names = { "Tagbanwa" },
}

m["Tale"] = {
    names = { "Tai Le" },
}

m["Talu"] = {
    names = { "New Tai Lue" },
}

m["Taml"] = {
    names = { "Tamil" },
    characters = "ஂ-௺",
}

m["Tang"] = {
    names = { "Tangut" },
}

m["Tavt"] = {
    names = { "Tai Viet" },
}

m["Telu"] = {
    names = { "Telugu" },
    characters = "ఁ-౿",
}

m["Teng"] = {
    names = { "Tengwar" },
}

m["Tfng"] = {
    names = { "Tifinagh" },
    characters = "ⴰ-⵿",
}

m["Tglg"] = {
    names = { "Tagalog" },
    characters = "ᜀ-᜔",
}

m["Thaa"] = {
    names = { "Thaana" },
    characters = "ހ-ޱ",
}

m["Thai"] = {
    names = { "Thai" },
    characters = "ก-ฺ",
}

m["Tibt"] = {
    names = { "Tibetan" },
    characters = "ༀ-࿚",
}

m["xzh-Tibt"] = {
    names = { "Zhang-Zhung" },
}

m["Ugar"] = {
    names = { "Ugaritic" },
}

m["unicode"] = {
    names = { "Latin" },
}

m["Vaii"] = {
    names = { "Vai" },
}

m["Xpeo"] = {
    names = { "Old Persian" },
    characters = "𐎠-𐏕",
}

m["Xsux"] = {
    names = { "Cuneiform", "Sumero-Akkadian Cuneiform" },
    characters = "𒀀-𒍮𒐀-𒑳",
}

m["Yiii"] = {
    names = { "Yi" },
    characters = "ꀀ-꓆",
}

m["Zmth"] = {
    names = { "mathematical notation" },
    characters = "ℵ∀-⋿⟀-⟯⦀-⧿⨀-⫿𝐀-𝟿",
}

m["Zsym"] = {
    names = { "symbol" },
	characters = "─-➿←⇿⌀-⏳",
}

m["Zyyy"] = {
    names = { "undetermined" },
    -- This should not have any characters listed, probably
}

m["Zzzz"] = {
    names = { "uncoded" },
    -- This should not have any characters listed
}

return m