Module:siwa-pron: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 47: Line 47:
end
end
return table.concat(otc)
return table.concat(otc)
end
local function closed_to_open(v)
local cot = {}
local switch = {["a"] = "ɑ", ["ɛ"] = "e", ["ɪ"] = "i", ["ɔ"] = "ɔ", ["ʊ"] = "u", ["œ"] = "y",
["ü"] = "ø",} -- dialectal variation, will be changed later
for vc in gmatch(v, ".") do
vc = gsub(vc, vc, switch[vc])
table.insert(cot, vc)
end
return table.concat(cot)
end
end


Line 153: Line 165:
{"ɑ$", "a"},
{"ɑ$", "a"},
{"(" .. vowel .. ")đ$", "%1ʔ%1"}, -- -Vt becomes -VʔV (or -Vht, not considered)
{"(" .. vowel .. ")đ$", "%1ʔ%1"}, -- -Vt becomes -VʔV (or -Vht, not considered)
{"(" .. vowel .. "*)(" .. consonant .. "ɨ)$", function(s1, s2) return closed_to_open(s1) .. s2 end},
--undo ligatures
--undo ligatures