Module:siwa-pron: Difference between revisions
No edit summary |
No edit summary |
||
| Line 26: | Line 26: | ||
} | } | ||
local tab={} | for vowel in gmatch(v, ".") do | ||
for regex, replacement in ipairs(switch) do | |||
gsub(vowel, regex, replacement) | |||
end | |||
end | |||
--[[local tab={} | |||
for regex, replacement in ipairs(switch) do | for regex, replacement in ipairs(switch) do | ||
--for i=1,#v do | --for i=1,#v do | ||
| Line 33: | Line 37: | ||
--end | --end | ||
end | end | ||
return table.concat(tab)]] | |||
return table.concat(tab) | |||
end | end | ||
| Line 84: | Line 87: | ||
}, | }, | ||
{ | { | ||
["( | ["([ieuɔ][ɑeuɔ][eiu])(" .. consonant .. consonant .. ")"] = open_to_closed("%1") .. "%2", | ||
}, | }, | ||
{ | { | ||