45,337
edits
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) | [stpattern] = function(s1, s2) | ||
for r, repl in pairs(srules) do x=gsub(s2,r,repl) return s1..x end end, | |||
}, | }, | ||
{ | { |