Module:zm-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
mNo edit summary
No edit summary
Line 25: Line 25:
local velar = "[ɡkx]"
local velar = "[ɡkx]"
local consonants = "[mnptkbdɡfvszxrljɲŋʋʎʨjʎʃʒʥʤʧʤʣʦ]"
local consonants = "[mnptkbdɡfvszxrljɲŋʋʎʨjʎʃʒʥʤʧʤʣʦ]"
local dialects = {
["s"] = s_rules,
["n"] = n_rules,
["c"] = c_rules,
}


local export = {}
local export = {}
Line 77: Line 83:
-- Dialects
-- Dialects
for _, dia_rule in ipairs(d == "c" and c_rules or d == "n" and n_rules or d == "s" and s_rules or nil) do
for _, dia_rule in ipairs(dialects[d]) do
term = gsub(term, dia_rule[1], dia_rule[2])
term = gsub(term, dia_rule[1], dia_rule[2])
end
end

Navigation menu