Module:siwa-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 34: Line 34:
end
end


local function stressed(s1, s2)
local function stressed(s2)
local stressed_rules = {["h"] = "ʔ", ["ɡį"] = "jː", ["hh"] = "hː",}
local stressed_rules = {["h"] = "ʔ", ["ɡį"] = "jː", ["hh"] = "hː",}
local s2 = gsub(s2, s2, stressed_rules[s2])
local xx = gsub(s2, s2, stressed_rules[s2])
return s1 .. s2
return xx
end
end


Line 86: Line 86:
},
},
{
{
[stpattern] = stressed(s1, s2),
[stpattern] = function(s1, s2) return s1 .. stressed(s2) end,
},
},
}
}