Module:siwa-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 46: Line 46:
["ṡ"] = "ɕ", ["tṡ"] = "ʨ", ["dį"] = "ʥ",
["ṡ"] = "ɕ", ["tṡ"] = "ʨ", ["dį"] = "ʥ",
["ḍ"] = "ð", ["dl"] = "ł", ["kį"] = "c",
["ḍ"] = "ð", ["dl"] = "ł", ["kį"] = "c",
["nį"] = "ɲ", ["ġ"] = "x", ["ts"] = "ʦ",
["nį"] = "ɲ", ["ġ"] = "x", ["ts"] = "ʦ", ["g"] = "ɡ"
},
},
{ --all vowels as open (open-closed distinctions are computed later)
{ --all vowels as open (open-closed distinctions are computed later)
Line 63: Line 63:
["^(ˈ[ptkc])"] = "%1ʰ", --voiceless stops word-initially become aspirated
["^(ˈ[ptkc])"] = "%1ʰ", --voiceless stops word-initially become aspirated
["^(.*·ˈ[ptkc])"] = "%1⁽ʰ⁾",
["^(.*·ˈ[ptkc])"] = "%1⁽ʰ⁾",
["^(ˈ)([" .. front_vowel .. "])"] = "%1ʣ%2", --<gį> word-initially and before front vowels is pronounced [d͡z]
["^(ˈ)ɡį([" .. front_vowel .. "])"] = "%1ʣ%2", --<gį> word-initially and before front vowels is pronounced [d͡z]
["^(ˈ)g([" .. front_vowel .. "])"] = "%1ɟ%2",
["^(ˈ)ɡį([" .. back_vowel .. "])"] = "%1ɟ%2",
["^(ˈ)ɡ([" .. front_vowel .. "])"] = "%1ɟ%2",
},
},
{
{
Line 88: Line 89:
local stressed_rules = {
local stressed_rules = {
{
{
["h"] = "ʔ", ["gi"] = "jː", ["hh"] = "hː"
["h"] = "ʔ", ["ɡį"] = "jː", ["hh"] = "hː"
},
},
}
}
Line 123: Line 124:
end
end
--[[for _, srule in ipairs(stressed_rules) do
for ss in gmatch(term, stpattern) do
for regex, replacement in pairs(srule) do
for _, srule in ipairs(stressed_rules) do
term = gsub(term, stpattern, "%1")
t = gsub(term, stpattern "%1")
term = gsub(term, regex, replacement)
for regex, replacement in pairs(srule) do
t = gsub(t, regex, replacement)
end
end
end
end]]
end
table.insert(IPA, term)
table.insert(IPA, term)