Module:lfv-IPA: Difference between revisions

Jump to navigation Jump to search
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 173: Line 173:
end
end
end
end
local i = 1
local i = 1
Line 181: Line 180:
if working_IPA[i] == "ˌ" then
if working_IPA[i] == "ˌ" then
table.insert(secondary_stress, i)
table.insert(secondary_stress, i)
table.remove(working_IPA, i)
i = i - 1
elseif working_IPA[i] == " " and boundary[working_IPA[i-1]] then
table.remove(working_IPA, i)
table.remove(working_IPA, i)
i = i - 1
i = i - 1
Line 271: Line 273:
if devoice[p_current] and (boundary[p_next] or p_next == nil) then
if devoice[p_current] and (boundary[p_next] or p_next == nil) then
if p_next ~= " " and not vowel[working_IPA[i+2]] then
if not (p_next == " " and vowel[working_IPA[i+2]]) then
p_resolve(devoice[p_current])
p_resolve(devoice[p_current])
end
end
Line 355: Line 357:
end
end
working_IPA = mw.ustring.gsub(working_IPA, "%|", " | ")
return working_IPA
return working_IPA

Navigation menu