Module:mg-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 91: Line 91:
{"(" .. consonants .. ")(·ˈ?)([βðɣ])", function(foo, bar, baz) return foo .. bar .. desoften[baz] end},
{"(" .. consonants .. ")(·ˈ?)([βðɣ])", function(foo, bar, baz) return foo .. bar .. desoften[baz] end},
{"ʧ", "(t)ʃ"}, {"a([^" .. RET .. "])", "a" .. CEN .. "%1"},
{"ʧ", "(t)ʃ"}, {"·ˈ", "ˈ"}, {"·", "."},
{"([ɑa][" .. CEN .. RET .. ADV .. "])(ː?)" .. NASAL, "%1" .. NASAL .. "%2"}, {"a" .. CEN .. NASAL, "a" .. RET .. NASAL},
{"·ˈ", "ˈ"}, {"·", "."},  
--{"a([^" .. RET .. "])", "a" .. CEN .. "%1"},
--{"([ɑa][" .. CEN .. RET .. ADV .. "])(ː?)" .. NASAL, "%1" .. NASAL .. "%2"}, {"a" .. CEN .. NASAL, "a" .. RET .. NASAL},
}
}


Line 114: Line 115:
term = gsub(term, "a" .. CEN .. "(" .. velar .. ")", "ɑ" .. ADV .. "%1")
term = gsub(term, "a" .. CEN .. "(" .. velar .. ")", "ɑ" .. ADV .. "%1")
term = gsub(term, "(ˈ..?[aɑ].?)", "%1ː")
term = gsub(term, "(ˈ..?[aɑ].?)", "%1ː")
term = gsub(term, "ːⁿ", "ⁿː")
return term
return term