Module:mg-pron: Difference between revisions
No edit summary |
No edit summary |
||
| Line 24: | Line 24: | ||
return foo == bar and true or false | return foo == bar and true or false | ||
end | end | ||
local desoften = {["β"] = "b", ["ð"] = "d", ["ɣ"] = "ɡ"} | |||
local export = {} | local export = {} | ||
local prelims = { | local prelims = { | ||
{"r", "ɾ"}, {"ch", "ʧ"}, {"qu", "k"}, {"il", "ʎ"}, {"ñ", "ɲ"}, {" | {"r", "ɾ"}, {"ch", "ʧ"}, {"qu", "k"}, {"il", "ʎ"}, {"ñ", "ɲ"}, {"c", "k"}, | ||
{"[bv]", "β"}, {"g", "ɣ"}, {"d", "ð"}, | |||
{"z", "θ"}, {"x", "ʃ"}, {"(" .. vowels .. ")i(" .. vowels .. ")", "%1j%2"}, {"(" .. vowels .. ")u", "%1w"}, | {"z", "θ"}, {"x", "ʃ"}, {"(" .. vowels .. ")i(" .. vowels .. ")", "%1j%2"}, {"(" .. vowels .. ")u", "%1w"}, | ||
} | } | ||
| Line 65: | Line 68: | ||
{"e(" .. consonants .. ")?·(" .. consonants .. ")a", "ɛ%1·%2a"}, {"o(" .. consonants .. ")?·(" .. consonants .. ")a", "ɔ%1·%2a"}, | {"e(" .. consonants .. ")?·(" .. consonants .. ")a", "ɛ%1·%2a"}, {"o(" .. consonants .. ")?·(" .. consonants .. ")a", "ɔ%1·%2a"}, | ||
{"(" .. vowels .. "i)", "%1" .. NONSYLL}, {"w", "u" .. NONSYLL}, | {"(" .. vowels .. "i)", "%1" .. NONSYLL}, {"w", "u" .. NONSYLL}, | ||
{"^([βðɣ])", function(foo) return desoften[foo] end}, | |||
{"([βðɣ])(·" .. consonants .. ")", function(foo, bar) return desoften[foo] .. bar end}, | |||
{"(" .. consonants .. "·)([βðɣ])", function(bar, foo) return desoften[foo] .. bar end}, | |||
{"ʧ", "(t)ʃ"}, {"a([^" .. RET .. "])", "a" .. CEN .. "%1"}, {"·ˈ", "ˈ"}, {"·", "."}, | {"ʧ", "(t)ʃ"}, {"a([^" .. RET .. "])", "a" .. CEN .. "%1"}, {"·ˈ", "ˈ"}, {"·", "."}, | ||
| Line 82: | Line 89: | ||
end | end | ||
term = gsub(term, " | term = gsub(term, "([ɡɣ])", g and "%1" or "h") | ||
return term | return term | ||
| Line 129: | Line 136: | ||
local ipa = "* " | local ipa = "* " | ||
ipa = ipa .. line_format(separate_word(term, pos), {'Calá'}) | ipa = ipa .. line_format(separate_word(term, pos), {'Standard Calá'}) | ||
if is_g then | if is_g then | ||