Module:siwa-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 24: Line 24:
local unstpattern = "(·?ˈ?[mnɲŋpbtdcɟkɡʔvðsɕxɣhʨʥrlɬłʣjwʦ⁽ʰ⁾ʔː]*"..UNRELEASED.."?[iɪyeøɛœæauɔɑʊ]*)([mnɲŋpbtdcɟkɡʔvðsɕxɣhʨʥrlɬłʣjwʦʔįː]*"..UNRELEASED.."?)"
local unstpattern = "(·?ˈ?[mnɲŋpbtdcɟkɡʔvðsɕxɣhʨʥrlɬłʣjwʦ⁽ʰ⁾ʔː]*"..UNRELEASED.."?[iɪyeøɛœæauɔɑʊ]*)([mnɲŋpbtdcɟkɡʔvðsɕxɣhʨʥrlɬłʣjwʦʔįː]*"..UNRELEASED.."?)"


local srules = {["hh"] = "hː", ["ɡį"] = "jː", ["h"] = "ʔ",}
local srules = {
{["hh"] = "hː", ["ɡį"] = "jː", ["h"] = "ʔ",}
}


local function open_to_closed(v)
local function open_to_closed(v)
Line 82: Line 84:
},
},
{
{
[stpattern] = function(s1, s2) return s1 .. string.gsub(s2,s2,srules[s2]) end,
[stpattern] = function(s1, s2)
for r, repl in pairs(srules) do x=gsub(s2,r,repl) return s1..x end end,
},
},
{
{