Module:rad-IPA: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 625: Line 625:
-- Resolution of prevocalic <iej>, <uoj> and <yej> --  
-- Resolution of prevocalic <iej>, <uoj> and <yej> --  
if p_current == "iej" or p_current == "yej" or p_current == "íj" or p_current == "ýj" or p_current == "ij" or p_current == "yj" or p_current == "uoj" then
if p_current == "iej" or p_current == "yej" or p_current == "uoj" then
mw.log("Pre-vocalic <" .. p_current .. "> found in position " .. i .. ".")
mw.log("Pre-vocalic <" .. p_current .. "> found in position " .. i .. ".")
if p_current == "uoj" then
if p_current == "uoj" then
Line 631: Line 631:
table.insert(working_phones, i + 1, "j")
table.insert(working_phones, i + 1, "j")
mw.log("[j] inserted to position " .. i + 1 .. ".")
mw.log("[j] inserted to position " .. i + 1 .. ".")
elseif p_current == "ij" or p_current == "yj" then
p_Resolve("i")
else
else
p_Resolve("iː")
p_Resolve("iː")
Line 644: Line 642:
elseif p_current == "uo" then
elseif p_current == "uo" then
p_Resolve("uː")
p_Resolve("uː")
end
-- Resolution of [j] after [i]
if p_current == "j" and (p_prev == "i" or p_prev == "iː" or p_prev == "iːː")  then
table.remove(working_phones, i)
end
end