10,794
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 564: | Line 564: | ||
local p_next2 = working_phones[i + 2] | local p_next2 = working_phones[i + 2] | ||
local p_next3 = working_phones[i + 3] | local p_next3 = working_phones[i + 3] | ||
if p_current == nil then break end | if p_current == nil then break end | ||
Line 591: | Line 590: | ||
-- Resolution of [u], [ù] and [ū] -- | -- Resolution of [u], [ù] and [ū] -- | ||
if p_current == "u" then | if p_current == "u" then | ||
-- mw.log("[u] found in position " .. i .. ". Testing for resolution.") | |||
if consonant[p_next] then | if consonant[p_next] then | ||
if glide[p_next2] then | if glide[p_next2] then | ||
if not vowel[p_next3] then | if not vowel[p_next3] then | ||
-- mw.log("ɤCj!V environment identified.") | |||
p_Resolve("ɤ") | p_Resolve("ɤ") | ||
else | else | ||
-- mw.log("No resolution needed.") | |||
end | end | ||
elseif not vowel[p_next2] and not glide[p_next2] then | elseif not vowel[p_next2] and not glide[p_next2] then | ||
-- mw.log("ɤC!V environment identified.") | |||
p_Resolve("ɤ") | p_Resolve("ɤ") | ||
else | else | ||
-- mw.log("No resolution needed.") | |||
end | end | ||
else | else | ||
-- mw.log("No resolution needed.") | |||
end | end | ||
elseif p_current == "ù" or p_current == "ū" then | elseif p_current == "ù" or p_current == "ū" then | ||
-- mw.log("Fixed [u] found in position " .. i .. ".") | |||
working_phones[i] = "u" | working_phones[i] = "u" | ||
end | end | ||
Line 674: | Line 668: | ||
end | end | ||
end | |||
-- Removes placeholder phones from data -- | |||
for _, temp in ipairs(vowel_temp) do | |||
valid_phone[temp] = nil | |||
vowel[temp] = nil | |||
end | end | ||
Line 693: | Line 694: | ||
local p_next2 = working_phones[i + 2] | local p_next2 = working_phones[i + 2] | ||
local p_next3 = working_phones[i + 3] | local p_next3 = working_phones[i + 3] | ||
if p_current == nil then break end | if p_current == nil then break end | ||
Line 891: | Line 891: | ||
-- Removes placeholder phones from data -- | -- Removes placeholder phones from data -- | ||
for _, temp in ipairs(consonant_temp) do | for _, temp in ipairs(consonant_temp) do |