Module:lfv-IPA: Difference between revisions

Accounted for CCi/uV and non-initial i/uV
mNo edit summary
(Accounted for CCi/uV and non-initial i/uV)
Line 221: Line 221:
if vowel[p_prev] and intervocalic_voicing[p_current] ~= nil and vowel[p_next] then
if vowel[p_prev] and intervocalic_voicing[p_current] ~= nil and vowel[p_next] then
p_resolve(intervocalic_voicing[p_current])
p_resolve(intervocalic_voicing[p_current])
end
-- account for <CCu/iV> spelling --
if consonant[p_prev] and working_IPA[i-2] == p_prev and vowel[p_next] then
if p_current == "u" then
p_resolve("w")
elseif p_current == "i" then
p_resolve("j")
end
end
end
Line 322: Line 331:
elseif vowel[p_prev] and p_current == "u" then
elseif vowel[p_prev] and p_current == "u" then
p_resolve("u̯")
p_resolve("u̯")
end
-- {i u} V --
if vowel[p_next] and (p_current == "i" or p_current == "u") then
local desyllabify = false
for checker = 1, i-1 do
if vowel[working_IPA[i - checker]] then
desyllabify = true
elseif boundary[working_IPA[i - checker]] or working_IPA[i - checker] == nil then
break
end
end
if desyllabify then
if p_current == "u" then
p_resolve("u̯")
elseif p_current == "i" then
p_resolve("i̯")
end
end
end
end