Module:qay-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 68: Line 68:
local function syllabify(term)
local function syllabify(term)
local words = mw.text.split(term,"%s")
local words = mw.text.split(term,"%s")
local final = {}
for _, word in ipairs(words) do
for _, word in ipairs(words) do
Line 100: Line 101:
ret = table.concat(syllables, "·")
ret = table.concat(syllables, "·")
end
end
end
end
table.insert(final, table.concat(syllables, "·"))
end
end
return table.concat(final, " ")
return table.concat(syllables, "·")
end
end


Navigation menu