Module:zm-pron: Difference between revisions

no edit summary
No 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 60: Line 66:


local n_rules = {
local n_rules = {
{"[ae]", "ə"}, {"ɪ", "ɨ"}, {"y", "ɪ"}, {"i", "y"}, {"o", "ɔ"}, {"u", "ʊ"},  
{"[ae]", "ə"}, {"ɪ", "ɨ"}, {"i", "ɪ"}, {"o", "ɔ"}, {"u", "ʊ"},  
}
}


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) do
for _, dia_rule in ipairs(d == "n" and n_rules or d == "c" and c_rules or s_rules) do
term = gsub(term, dia_rule[1], dia_rule[2])
term = gsub(term, dia_rule[1], dia_rule[2])
end
end
455

edits