Module:siwa-pron: Difference between revisions

No edit summary
No edit summary
Line 81: Line 81:
local morpheme = {}
local morpheme = {}
local syll = {}
local syll = {}
table.insert(morpheme, syll)


if gmatch(word,"·") then
if gmatch(word,"·") then
Line 95: Line 94:
morpheme[i] = "ˈ" .. morpheme[i]
morpheme[i] = "ˈ" .. morpheme[i]
end
end
syll[i] = split(morpheme[i], pattern)
end
end
table.concat(syll,"-")
for i, m in ipairs(morpheme) do
syll = split(morpheme[i], pattern)
table.insert(morpheme, syll)
end
table.concat(syll, "-")
return table.concat(morpheme,"·")
return table.concat(morpheme,"·")
end
end