Module:zm-pron: Difference between revisions

Undo revision 270455 by Sware (talk)
(Undo revision 270456 by Sware (talk))
Tag: Undo
(Undo revision 270455 by Sware (talk))
Tag: Undo
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 84: Line 78:
-- Dialects
-- Dialects
for _, dia_rule in ipairs(dialects[d]) do
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
term = gsub(term, dia_rule[1], dia_rule[2])
term = gsub(term, dia_rule[1], dia_rule[2])
end
end
455

edits