Module:rad-pronunciation: Difference between revisions

Jump to navigation Jump to search
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
(Fixed)
mNo edit summary
Line 106: Line 106:
syllables_no_auto = true
syllables_no_auto = true
elseif args[i] == "" then
elseif args[i] == "" then
if mw.ustring.gmatch(working_syllables, "(%|)") then
if mw.ustring.find(working_syllables, "(%|)") then
table.insert(syllables, working_syllables)
table.insert(syllables, working_syllables)
mw.log("Syllables: " .. working_syllables .. " registered.")
mw.log("Syllables: " .. working_syllables .. " registered.")
Line 113: Line 113:
elseif args[i+1] == nil then
elseif args[i+1] == nil then
working_syllables = working_syllables .. "|" .. args[i]
working_syllables = working_syllables .. "|" .. args[i]
if mw.ustring.gmatch(working_syllables, "(%|)") then
if mw.ustring.find(working_syllables, "(%|)") then
table.insert(syllables, working_syllables)
table.insert(syllables, working_syllables)
mw.log("Syllables: " .. working_syllables .. " registered.")
mw.log("Syllables: " .. working_syllables .. " registered.")
Line 145: Line 145:
end
end
if syllables_no_auto == false and mw.ustring.gmatch(auto_syllables, "(%|)") then
if syllables_no_auto == false and mw.ustring.find(auto_syllables, "(%|)") then
table.insert(syllables, 1, auto_syllables)
table.insert(syllables, 1, auto_syllables)
end
end

Navigation menu