Module:qay-pron: Difference between revisions

No edit summary
No edit summary
Line 14: Line 14:
local export = {}
local export = {}


local palatal = "ɲʎɟj"
local velar = "kɡxɣ"
local uvular = "q"
local consonants = "[mpbvwθntdszlrɾŋɴhɥṛ" .. palatal .. velar .. uvular .. "]"
local consonants = "[mpbvwθntdszlrɾŋɴhɥṛ" .. palatal .. velar .. uvular .. "]"
local NONSYLLABIC = u(0x032F) -- non-syllabic, combining inverted breve below
local NONSYLLABIC = u(0x032F) -- non-syllabic, combining inverted breve below
local DIPHTHONG = u(0x035C) -- double articulation, combining double breve below
local DIPHTHONG = u(0x035C) -- double articulation, combining double breve below
local vowels = "[aeiouyáéíóúýàèìòùỳː" .. NONSYLLABIC .. DIPHTHONG .. "]"
local front = "ie"
local back = "ou"
local vowels = "[a" .. front .. back .. "]"
-- ʤʧ
-- ʤʧ
local phonemic_rules = {
local phonemic_rules = {
{"([tkdg])y", "%1ʲ"},
{"g", "ɡ"}, {"([tkdɡ])y", "%1ʲ"},
}
}


local phonetic_rules = {
local phonetic_rules = {
{"[tk]y", "t͡ʃ"}, {"[dg]y", "d͡ʒ"}
{"g", "ɡ"}, {"[tk]y", "ʧ"}, {"[]y", "ʤ"}, {"r", "ɾ"}, {"h([" .. front .. "])", "ç%1"}, {"h([" .. back .. "])", "x%1"},
}
}