Module:rad-IPA: Difference between revisions

Jump to navigation Jump to search
Added Vj resolution
mNo edit summary
(Added Vj resolution)
Line 585: Line 585:
end
end
local function p_RemoveNext()
table.remove(working_phones, i + 1)
p_next = working_phones[i + 1]
p_next2 = working_phones[i + 2]
p_next3 = working_phones[i + 3]
end
-- Resolution of [aù] --
-- Resolution of [aù] --
if p_prev == "a" and p_current == "ù" then
if p_prev == "a" and p_current == "ù" then
Line 600: Line 607:
if not vowel[p_next3] then
if not vowel[p_next3] then
-- mw.log("ɤCj!V environment identified.")
-- mw.log("ɤCj!V environment identified.")
p_Resolve("ɤ")
p_Convert("ɤ")
else
else
-- mw.log("No resolution needed.")
-- mw.log("No resolution needed.")
Line 606: Line 613:
elseif not vowel[p_next2] then
elseif not vowel[p_next2] then
-- mw.log("ɤC!V environment identified.")
-- mw.log("ɤC!V environment identified.")
p_Resolve("ɤ")
p_Convert("ɤ")
else
else
-- mw.log("No resolution needed.")
-- mw.log("No resolution needed.")
Line 615: Line 622:
elseif p_current == "ù" or p_current == "ū" then
elseif p_current == "ù" or p_current == "ū" then
-- mw.log("Fixed [u] found in position " .. i .. ".")
-- mw.log("Fixed [u] found in position " .. i .. ".")
p_Resolve("u")
p_Convert("u")
end
-- Resolution of <Vj> to diphthongs
if p_next == "j" and not vowel[p_next2] then
if p_current == "a" then
p_Resolve("ai")
p_RemoveNext()
elseif p_current == "ɤ" then
p_Resolve("ɤi")
p_RemoveNext()
elseif p_current == "ɛ" then
p_Resolve("ei")
p_RemoveNext()
elseif p_current == "ɔː" then
p_Resolve("ɔi")
p_RemoveNext()
end
end
end

Navigation menu