Olay kan paragamit:ShimimUfesoj/artikulo
local U = mw.ustring.char
-- Diacritics, from the Combining Diacritical Marks block. local grave = U(0x300) local acute = U(0x301) local circumflex = U(0x302) local tilde = U(0x303) local macron = U(0x304) local breve = U(0x306) local dot = U(0x307) local diaeresis = U(0x308) local double_acute = U(0x30B) local caron = U(0x30C) local double_grave = U(0x30F) local invbreve = U(0x311) local dot_below = U(0x323) local undertie = U(0x35C)
--[[
This is a table of Wiktionary language codes with data belonging to them. Name is the "canonical name" used on Wiktionary. Article is the Wikipedia article. Script is the ISO 15924 code. ]] local data = { ["languages"] = { ["ab"] = { ["name"] = "Abkhaz", }, ["ang"] = { ["name"] = "Gurang na Ingles", ["article"] = {"Gurang na Ingles"}, -- Remove macrons, acutes, and overdots ["replacements"] = { decompose = true, from = { "[" .. macron .. acute .. dot .. "]" }, }, }, ["ar"] = { ["name"] = "Arabiko", ["article"] = "Tataramon na Arabiko", ["direction"] = "rtl", -- Should be in the script data module. ["replacements"] = { -- ālif with wasla is replaced by ālif; [U(0x0671)] = U(0x0627), -- taṭwīl, fatḥatan, ḍammatan, kasratan, -- fatḥa, ḍamma, kasra, -- shadda, sukūn, and superscript (dagger) ālif are removed. ["["..U(0x0640)..U(0x064B)..U(0x064C)..U(0x064D) ..U(0x064E)..U(0x064F)..U(0x0650) ..U(0x0651)..U(0x0652)..U(0x0670).."]"] = "", }, }, ["ara"] = { ["name"] = "Arabiko", ["article"] = "Tataramon na Arabiko", ["direction"] = "rtl", -- Should be in the script data module. ["replacements"] = { -- ālif with wasla is replaced by ālif; [U(0x0671)] = U(0x0627), -- taṭwīl, fatḥatan, ḍammatan, kasratan, -- fatḥa, ḍamma, kasra, -- shadda, sukūn, and superscript (dagger) ālif are removed. ["["..U(0x0640)..U(0x064B)..U(0x064C)..U(0x064D) ..U(0x064E)..U(0x064F)..U(0x0650) ..U(0x0651)..U(0x0652)..U(0x0670).."]"] = "", }, }, ["arb"] = { ["name"] = "Modernong Estandarteng Arabiko", ["article"] = "Modernong Estandarteng Arabiko", ["direction"] = "rtl", -- Should be in the script data module. ["replacements"] = { -- ālif with wasla is replaced by ālif; [U(0x0671)] = U(0x0627), -- taṭwīl, fatḥatan, ḍammatan, kasratan, -- fatḥa, ḍamma, kasra, -- shadda, sukūn, and superscript (dagger) ālif are removed. ["["..U(0x0640)..U(0x064B)..U(0x064C)..U(0x064D) ..U(0x064E)..U(0x064F)..U(0x0650) ..U(0x0651)..U(0x0652)..U(0x0670).."]"] = "", }, }, ["apc"] = { ["name"] = "Amihanan na Lebantinong Arabiko", ["article"] = "Amihanan na Lebantinong Arabiko", ["direction"] = "rtl", -- Should be in the script data module. ["replacements"] = { -- ālif with wasla is replaced by ālif; [U(0x0671)] = U(0x0627), -- taṭwīl, fatḥatan, ḍammatan, kasratan, -- fatḥa, ḍamma, kasra, -- shadda, sukūn, and superscript (dagger) ālif are removed. ["["..U(0x0640)..U(0x064B)..U(0x064C)..U(0x064D) ..U(0x064E)..U(0x064F)..U(0x0650) ..U(0x0651)..U(0x0652)..U(0x0670).."]"] = "", }, }, ["ajp"] = { ["name"] = "Habagatan na Lebantinong Arabiko", ["article"] = "Habagatan na Lebantinong Arabiko", ["direction"] = "rtl", -- Should be in the script data module. ["replacements"] = { -- ālif with wasla is replaced by ālif; [U(0x0671)] = U(0x0627), -- taṭwīl, fatḥatan, ḍammatan, kasratan, -- fatḥa, ḍamma, kasra, -- shadda, sukūn, and superscript (dagger) ālif are removed. ["["..U(0x0640)..U(0x064B)..U(0x064C)..U(0x064D) ..U(0x064E)..U(0x064F)..U(0x0650) ..U(0x0651)..U(0x0652)..U(0x0670).."]"] = "", }, }, ["av"] = { ["name"] = "Avar" }, ["be"] = { ["article"] = "Tataramon na Belarus", ["replacements"] = { [acute] = "", }, }, ["bn"] = { ["name"] = "Bengali", ["article"] = "Tataramon na Bengali", }, ["bua"] = { ["name"] = "Buryat", }, ["cel-pro"] = { -- Incorrect tag ["name"] = "Proto-Seltiko", ["Wikipedia_code"] = "cel-x-proto", }, ["cel-x-proto"] = { ["name"] = "Proto-Seltiko", }, ["cel-bry-pro"] = { -- Incorrect tag ["name"] = "Proto-Britoniko", ["article"] = "Ordinaryong Britoniko", ["type"] = "reconstructed",
["cu"] = { ["name"] = " Old Church Slavonic", ["article"] = "Old Church Slavonic", }, ["de"] = { ["name"] = "Aleman", ["article"] = "Tataramon na Aleman", }, ["en"] = { ["name"] = "Ingles", ["article"] = "Tataramon na Ingles", }, ["es"] = { ["name"] = "Espanyol", ["article"] = "Tataramon na Espanyol", }, ["egy"] = { ["name"] = "Ehipsyano", }, ["fr"] = { ["name"] = "Pranses", ["article"] = "Tataramon na Pranses", }, ["frm"] = { ["name"] = "Katahawan na Pranses", ["article"] = "Katahawan na Pranses", }, ["frp"] = { ["name"] = "Franco-Provençal", }, ["ff"] = { ["name"] = "Fula", }, ["gem-pro"] = { -- Incorrect tag ["name"] = "Proto-Alemaniko", ["article"] = "Tataramon na Proto-Alemaniko", ["type"] = "reconstructed", ["replacements"] = {}, ["Wikipedia_code"] = "gem-x-proto", }, ["gem-x-proto"] = { ["name"] = "Proto-Alemaniko", ["article"] = "Tataramon na Proto-Alemaniko", ["type"] = "reconstructed", ["replacements"] = {}, }, ["gml"] = { ["name"] = "Katahawan na Hababang Aleman", }, ["gmw-ecg"] = { ["name"] = "Subangan na Sentral Aleman", }, ["gmw-x-proto"] = { ["name"] = "Proto-Sulnopan na Alemaniko", ["article"] = "Tataramon na Proto-Sulnopan na Alemaniko", ["type"] = "reconstructed", ["replacements"] = {}, }, ["gmq-x-gut"] = { ["name"] = "Gutnish", ["article"] = "Gutnish", }, ["goh"] = { ["replacements"] = { decompose = true, from = { "[" .. macron .. circumflex .. diaeresis .. "]", }, }, }, ["got"] = { ["name"] = "Gotiko", ["article"] = "Tataramon na Gotiko", ["replacements"] = { -- Latin to Gothic since people will not want to have to copy -- and paste Gothic letters in ["[AÁaáĀā]"] = "𐌰", ["[Bb]"] = "𐌱", ["[Gg]"] = "𐌲", ["[Dd]"] = "𐌳", ["[EeĒē]"] = "𐌴", ["[Qq]"] = "𐌵", ["[Zz]"] = "𐌶", ["[Hh]"] = "𐌷", ["[Þþ]"] = "𐌸", ["[IiÍí]"] = "𐌹", ["[Kk]"] = "𐌺", ["[Ll]"] = "𐌻", ["[Mm]"] = "𐌼", ["[Nn]"] = "𐌽", ["[Jj]"] = "𐌾", ["[UuÚúŪū]"] = "𐌿", ["[Pp]"] = "𐍀", ["[Rr]"] = "𐍂", ["[Ss]"] = "𐍃", ["[Tt]"] = "𐍄", ["[WwYy]"] = "𐍅", ["[Ff]"] = "𐍆", ["[Xx]"] = "𐍇", ["[Ƕƕ]"] = "𐍈", -- Not sure if "hw" and "hv" can safely be converted ["[OoŌō]"] = "𐍉", }, }, ["gsw"] = { ["name"] = "Alemanikong Aleman", }, ["grc"] = { ["name"] = "Suanoy na Griyego", ["article"] = "Suanoy na Griyego", ["replacements"] = { decompose = true, from = { -- Replace variant letterforms with standard ones. "ϐ", "ϵ", "ϑ", "ϰ", "ϱ", "ϲ", "ϕ", -- Remove macrons and breves. "[" .. macron .. breve .. undertie .. "]" }, to = { "β", "ε", "θ", "κ", "ρ", "σ", "φ", } }, }, ["grk-pro"] = { -- Incorrect tag ["name"] = "Proto-Helleniko", ["Wikipedia_name"] = "Proto-Griyego", ["article"] = "Tataramon na Proto-Griyego", ["type"] = "reconstructed", ["replacements"] = {}, ["Wikipedia_code"] = "gem-x-proto", }, ["grk-x-proto"] = { ["name"] = "Proto-Helleniko", ["Wikipedia_name"] = "Proto-Griyego", ["article"] = "Tataramon na Proto-Griyego", ["type"] = "reconstructed", ["replacements"] = {}, }, ["grt"] = { ["name"] = "Garo", }, ["ha"] = { ["name"] = "Hausa", -- remove tilde, grave, acute, macron, circumflex ["replacements"] = { decompose = true, from = { "[" .. grave .. circumflex .. macron .. acute .. tilde .. "]" }, }, }, ["hi"] = { ["name"] = "Hindi", ["article"] = "Hindi", }, ["ine-bsl-pro"] = { ["name"] = "Proto-Balto-Eslabiko", ["article"] = "Proto-Balto-Eslabiko language", ["type"] = "reconstructed", }, ["ine-pro"] = { -- Incorrect tag ["name"] = "Proto-Indo-Europyano", ["article"] = "tataramon na Proto-Indo-Europyano", ["type"] = "reconstructed", ["replacements"] = {}, ["Wikipedia_code"] = "ine-x-proto", }, ["ine-x-proto"] = { ["name"] = "Proto-Indo-Europyano", ["article"] = "Tataramon na Proto-Indo-Europyano", ["type"] = "reconstructed", ["replacements"] = {}, }, ["ja"] = { ["name"] = "Hapon", ["article"] = "Tataramon na Hapon", }, ["jbo"] = { -- Lojban ["type"] = "appendix", }, ["la"] = { ["name"] = "Latin", ["article"] = "Latin", ["replacements"] = { decompose = true, from = { "[" .. macron .. breve .. diaeresis .. "]" }, }, }, ["lt"] = { ["name"] = "Lituanyano", -- remove acute, tilde, grave ["replacements"] = { decompose = true, from = { "[" .. acute .. tilde .. grave .. "]" }, }, }, ["moe"] = { ["name"] = "Cree", }, ["mul"] = { ["name"] = "Translingual", ["article"] = "", }, ["nci"] = { ["name"] = "Klasikal na Nahuatl", ["article"] = ",Klasikal Nahuatl", -- Remove macrons, acutes, circumflexes and graves ["replacements"] = { decompose = true, -- Remove macrons, acutes, circumflexes, graves, and saltillo; -- see Saltillo (linguistics). from = { "[" .. grave .. acute .. macron .. circumflex .. "Ꞌꞌʻʼ'ʔ]" }, }, }, ["nds-de"] = { ["name"] = "Aleman Hababang Aleman", }, ["oge"] = { ["name"] = "Gurang na Georgyano", }, ["oj"] = { ["name"] = "Ojibwe", }, ["orv"] = { ["name"] = "Gurang na Subangan na Eslabiko", ["article"] = "Gurang na Subangan na Eslabiko", ["replacements"] = { [U(0x484)] = "", }, }, ["osx"] = { ["name"] = "Gurang na Sakson", }, ["pt"] = { ["name"] = "Portuges", ["article"] = "Tataramon na Portuges", -- ["scripts"] = { "Latn" }, }, ["pa"] = { ["name"] = "Punjabi", ["article"] = "Tataramon na Punjabi", }, ["pis"] = { ["name"] = "Pijin", ["article"] = "Tataramon na Pijin", ["name"] = "Proto-Nukleyar Polinesyano", ["article"] = "Proto-Polinesyano", ["type"] = "reconstructed", }, ["rap"] = { ["name"] = "Rapa Nui", ["article"] = "Tataramon na Rapa Nui", }, ["ru"] = { ["name"] = "Ruso", ["article"] = "Tataramon na Ruso", ["replacements"] = { [acute] = "", }, }, ["rw"] = { ["name"] = "Rwanda-Rundi", }, ["se"] = { ["replacements"] = { ["([đflmnŋrsšŧv])'%1"] = "%1%1", }, }, ["sem-pro"] = { ["name"] = "Proto-Semitiko", ["article"] = "Proto-Semitiko", ["type"] = "reconstructed", }, ["sh"] = { ["article"] = "Tataramon na bSerbo-Kroasyano", ["replacements"] = { decompose = true, from = { "([AaEeIiOoUuRrАаЕеИиОоУуРр])[" .. double_grave .. grave .. invbreve .. acute .. macron .. tilde .. "]" }, to = { "%1" }, }, }, ["sl"] = { ["name"] = "Slovene", ["replacements"] = { decompose = true, -- remove tonal orthography from = {"ł", "[" .. grave .. acute .. macron .. double_grave .. invbreve .. circumflex .. dot_below .. "]"}, to = {"l"}, }, }, ["sla-pro"] = { ["name"] = "Proto-Eslabiko", -- also Common Slavic ["type"] = "reconstructed", ["replacements"] = { ["[ÀÁÃĀȀȂ]"] = "A", ["[àáãāȁȃ]"] = "a", ["[ÈÉẼĒȄȆ]"] = "E", ["[èéẽēȅȇ]"] = "e", ["[ÌÍĨĪȈȊ]"] = "I", ["[ìíĩīȉȋ]"] = "i", ["[ÒÓÕŌȌȎŐ]"] = "O", ["[òóõōȍȏő]"] = "o", ["[ÙÚŨŪȔȖŰ]"] = "U", ["[ùúũūȕȗű]"] = "u", ["[ỲÝỸȲ]"] = "Y", ["[ỳýỹȳ]"] = "y", ["Ǭ"] = "Ǫ", ["ǭ"] = "ǫ", ["[" .. grave .. acute .. double_acute .. tilde .. macron .. double_grave .. invbreve .. "]"] = "", ["ĭ"] = "ь", ["ŭ"] = "ъ", }, }, ["uk"] = { ["article"] = "Tataramon na Ukrainyano", ["replacements"] = { [acute] = "", } }, ["ur"] = { ["name"] = "Urdu", ["article"] = "Urdu", }, ["zh"] = { ["name"] = "Intsik", ["article"] = "Tataramon na Intsik", -- ["scripts"] = { "Hani" }, }, ["xcl"] = { ["name"] = "Gurang na Armenyano", ["article"] = "Klasikal Armenyano", ["replacements"] = { ["[՞՜՛՟]"] = "", ["և"] = "եւ", }, }, ["xgf"] = { ["name"] = "Tongva", -- not ISO name "Gabrielino-Fernandeño" ["article"] = "Tataramon na Tongva", ["replacements"] = { ["['`ʔ]"] = "ʼ", }, }, ["xxt"] = { ["name"] = "Tambora", ["article"] = "Tataramon na Tambora", }, ["xvn"] = { ["name"] = "Bandaliko", ["article"] = "Tataramon na Bandaliko", }, ["yua"] = { ["name"] = "Yucatec Maya", ["article"] = "Tataramon na Yucatec Maya", }, },
-- Here, keys (for example, "gem") are Wikipedia language codes used in -- [undefined] error: {{lang}}: no text (help), and values (for example, "gem-pro") are the equivalent Wiktionary -- code. -- -- Subtags are not currently supported. ["redirects"] = { ["aae"] = "sq", ["aiq"] = "fa", ["aln"] = "sq", ["als"] = "sq", ["azb"] = "az", ["azj"] = "az", ["bgn"] = "bal", ["bs"] = "sh", ["bxr"] = "bua", ["ciw"] = "oj", ["cnr"] = "sh", ["fil"] = "tl", ["fuf"] = "ff", ["gem"] = "gem-pro", -- Not correct, but is commonly used. ["hak"] = "zh", ["hbo"] = "he", ["hr"] = "sh", [""] = "ine-pro", -- Not correct, but might be commonly used. ["kjv"] = "sh", ["nan"] = "zh", ["prs"] = "fa", ["rn"] = "rw", ["sli"] = "gmw-ecg", ["sr"] = "sh", ["src"] = "sc", ["sro"] = "sc", ["tw"] = "ak", ["wae"] = "gsw", ["wep"] = "nds-de",
["yue"] = "zh",
["xno"] = "fro", }, }
return data
Start a discussion about Paragamit:ShimimUfesoj/artikulo
Talk pages are where people discuss how to make content on Wikipedia the best that it can be. You can use this page to start a discussion with others about how to improve Paragamit:ShimimUfesoj/artikulo.