Module:rad-IPA: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 804: Line 804:
mw.log("No cluster found.")
mw.log("No cluster found.")
end
end
end
-- tv and kv
if p_current == "v" and p_prev == "t" or p_prev == "k" then
p_Resolve("f")
mw.log("[" .. p_prev .. "][v] → [" .. p_prev .. "][f] in position " .. i .. ".")
end
end
Line 826: Line 832:
-- Cv --
-- Cv --
if p_current == "v" and obstruent[p_prev] then
if p_current == "v" and obstruent[p_prev] then
p_Resolve("ʋ")
p_Resolve("ʋ")
mw.log("[" .. p_prev .. "][ʋ] → [" .. p_prev .. "][ʋ] in position " .. i .. ".")
mw.log("[" .. p_prev .. "][ʋ] → [" .. p_prev .. "][ʋ] in position " .. i .. ".")
Line 989: Line 995:
elseif Cr[p_current] and p_next == "r" then -- C | *C*r …
elseif Cr[p_current] and p_next == "r" then -- C | *C*r …
JV(true) -- C | *C*r(J)V
JV(true) -- C | *C*r(J)V
elseif Cv[p_current] and (p_next == "v"  or p_next == "ʋ") then -- C | *C*v …
elseif Cv[p_current] and (p_next == "v"  or p_next == "ʋ" or p_next == "f") then -- C | *C*v …
JV(true) -- C | *C*v(J)V
JV(true) -- C | *C*v(J)V
elseif CN[p_current] and nasal[p_next] then -- C | *C*N …
elseif CN[p_current] and nasal[p_next] then -- C | *C*N …
Line 1,319: Line 1,325:
elseif p_last == "l" and Cl[p_last2] and p_last3 then -- C|Cl
elseif p_last == "l" and Cl[p_last2] and p_last3 then -- C|Cl
split(2)
split(2)
elseif glide[p_last] and (p_last2 == "v" or p_last2 == "ʋ") and Cv[p_last3] and p_last4 then -- C|CvJ
elseif glide[p_last] and (p_last2 == "v" or p_last2 == "ʋ" or p_next == "f") and Cv[p_last3] and p_last4 then -- C|CvJ
split(3)
split(3)
elseif (p_last == "v" or p_last == "ʋ") and Cv[p_last2] and p_last3 then -- C|Cv
elseif (p_last == "v" or p_last == "ʋ" or p_next == "f") and Cv[p_last2] and p_last3 then -- C|Cv
split(2)
split(2)
elseif glide[p_last] and p_last2 then -- C|CJ
elseif glide[p_last] and p_last2 then -- C|CJ