Module:qay-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 21: Line 21:
local function laxen(v)
local function laxen(v)
local otc = {}
local otc = {}
local switch = {["e"] = "ɛ", ["i"] = "ɪ", ["o"] = "ɔ", ["u"] = "ʊ", ["(.)"] = "%1"}
local switch = {["e"] = "ɛ", ["i"] = "ɪ", ["o"] = "ɔ", ["u"] = "ʊ"}
 
 
for vc in gmatch(v, ".") do
for vc in gmatch(v, ".") do
vc = gsub(vc, vc, switch[vc])
if switch.v then vc = gsub(vc, vc, switch[vc]) end
table.insert(otc, vc)
table.insert(otc, vc)
end
end