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 163: Line 151:
{"(" .. vowel .. "*)(" .. consonant .. consonant .. ")", function(s1, s2) return open_to_closed(s1) .. s2 end},
{"(" .. vowel .. "*)(" .. consonant .. consonant .. ")", function(s1, s2) return open_to_closed(s1) .. s2 end},
{"(" .. vowel .. "*)(" .. consonant .. ")$", function(s1, s2) return open_to_closed(s1) .. s2 end},
{"(" .. vowel .. "*)(" .. consonant .. ")$", function(s1, s2) return open_to_closed(s1) .. s2 end},
{"(" .. vowel .. "*ː?)(" .. consonant .. "ɨ)", function(s1, s2) return open_to_closed(s1) .. s2 end},
{"ɑ$", "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