Module:Wikt-lang: Difference between revisions

Content deleted Content added
the German replacements should probably not be used...
changing the "script" key to "scripts" and the associated value to an array, and for now, decide italicization based on the first script in that array
Line 7:
["name"] = "Arabic",
["article"] = "Arabic language",
["scriptscripts"] = { "Arab" },
--[[ Dagger ālif is replaced by full-size ālif;
fatḥatan, ḍammatan, kasratan, fatḥa, ḍamma, kasra, madda, and sukūn are removed. ]]
Line 27:
["name"] = "Bengali",
["article"] = "Bengali language",
["scriptscripts"] = { "Beng" },
},
["de"] = {
["name"] = "German",
["article"] = "German language",
["scriptscripts"] = { "Latn" },
--[[
["replacements"] = {
Line 47:
["name"] = "English",
["article"] = "English language",
["scriptscripts"] = { "Latn" },
},
["es"] = {
["name"] = "Spanish",
["article"] = "Spanish language",
["scriptscripts"] = { "Latn" },
},
["fr"] = {
["name"] = "French",
["article"] = "French language",
["scriptscripts"] = { "Latn" },
},
["grc"] = {
["name"] = "Ancient Greek",
["article"] = "Ancient Greek",
["scriptscripts"] = { "Grek" },
["replacements"] = {
-- Vowels with macrons or breves are replaced with plain letters.
Line 78:
["name"] = "Hindi",
["article"] = "Hindi",
["scriptscripts"] = { "Deva" },
},
["ja"] = {
["name"] = "Japanese",
["article"] = "Japanese language",
["scriptscripts"] = { "Jpan" },
},
["la"] = {
["name"] = "Latin",
["article"] = "Latin",
["scriptscripts"] = { "Latn" },
["replacements"] = {
-- Vowels with macrons, breves, or diaereses are replaced with plain letters.
Line 108:
["name"] = "Portuguese",
["article"] = "Portuguese language",
["scriptscripts"] = { "Latn" },
},
["pa"] = {
["name"] = "Punjabi",
["article"] = "Punjabi language",
["scriptscripts"] = { "Guru", -- also "Arab", but multiple scripts have to be allowed}
},
["ru"] = {
["name"] = "Russian",
["article"] = "Russian language",
["scriptscripts"] = { "Cyrl" },
-- Combining acute accent is removed.
["replacements"] = { [U(0x0301)] = "", }
Line 125:
["name"] = "Urdu",
["article"] = "Urdu",
["scriptscripts"] = { "Arab" },
},
["zh"] = {
["name"] = "Chinese",
["article"] = "Chinese language",
["scriptscripts"] = { "Hani" },
},
}
Line 197:
languageData = data[languageCode]
if languageData then
languageScript = languageData["scriptscripts"][1]
end
if languageScript == "Latn" then