မဝ်ဂျူ:languages/shareddata
Documentation for this module may be created at မဝ်ဂျူ:languages/shareddata/doc
-- This module contains data that is shared between all the data modules.
local u = mw.ustring.char
-- UTF-8 encoded strings for some commonly-used diacritics
local GRAVE = u(0x300)
local ACUTE = u(0x301)
local CIRC = u(0x302)
local MACRON = u(0x304)
local DIAER = u(0x308)
local RINGABOVE = u(0x30A)
local CARON = u(0x30C)
local COMMAABOVE = u(0x313)
local REVCOMMAABOVE = u(0x314)
local DIAERBELOW = u(0x324)
local CEDILLA = u(0x327)
local BREVEBELOW = u(0x32E)
local PERISPOMENI = u(0x342)
local YPOGEGRAMMENI = u(0x345)
local Hani = require("Module:scripts").getByCode("Hani"):getCharacters()
local m = {}
-- These values are placed here to make it possible to synchronise a group of languages without the need for a dedicated function module.
m["cau-Cyrl-displaytext"] = {
from = {"[IlІӀ]", "ᴴ"},
to = {"ӏ", "ᵸ"}
}
m["cau-Cyrl-entryname"] = {
remove_diacritics = GRAVE .. ACUTE .. MACRON,
from = m["cau-Cyrl-displaytext"].from,
to = m["cau-Cyrl-displaytext"].to
}
m["cau-Latn-entryname"] = {remove_diacritics = GRAVE .. ACUTE .. MACRON}
m["Grek-sortkey"] = {
remove_diacritics = GRAVE .. ACUTE .. DIAER .. CARON .. COMMAABOVE .. REVCOMMAABOVE .. DIAERBELOW .. BREVEBELOW .. PERISPOMENI .. YPOGEGRAMMENI,
from = {"ς"},
to = {"σ"}
}
m["Kore-entryname"] = {
from = {"([" .. Hani .. "])%(.-%)", "(.)%-(.)", "%([" .. Hani .. "]+%)", u(0x302E), u(0x302F)},
to = {"%1", "%1%2"}
}
m["Mong-displaytext"] = {
from = {"([ᠠᠡᠣᠤᠧ])(ᠢ[ᠠ-ᡂᡸ])", "([ᠨ-ᡂᡸ])ᠶ([ᠨ-ᡂᡸ])", "([ᠠ-ᡂᡸ])ᠸ([^ᠠ-ᠧ])", "([ᠠ-ᡂᡸ])ᠸ$"},
to = {"%1ᠶ%2", "%1ᠢ%2", "%1ᠧ%2", "%1ᠧ"}
}
m["Mong-entryname"] = m["Mong-displaytext"]
m["roa-oil-sortkey"] = {
remove_diacritics = GRAVE .. ACUTE .. CIRC .. DIAER .. RINGABOVE .. CEDILLA .. "'",
from = {"æ", "œ"},
to = {"ae", "oe"}
}
m["Tibt-displaytext"] = {
from = {"ༀ", "༌", "།།", "༚༚", "༚༝", "༝༚", "༝༝", "ཷ", "ཹ", "ེེ", "ོོ"},
to = {"ཨོཾ", "་", "༎", "༛", "༟", "࿎", "༞", "ྲཱྀ", "ླཱྀ", "ཻ", "ཽ"}
}
m["Tibt-entryname"] = m["Tibt-displaytext"]
-- Interwiki prefixes used by makeDisplayText.
m["interwikis"] = {
[""] = true,
w = true, wikipedia = true,
wikt = true, wiktionary = true,
b = true, wikibooks = true,
q = true, wikiquote = true,
voy = true, wikivoyage = true,
s = true, wikisource = true, oldwikisource = true,
c = true, commons = true,
species = true, wikispecies = true,
n = true, wikinews = true,
v = true, wikiversity = true,
d = true, wikidata = true, lexemes = true
}
return m