Module:siwa-pron: Difference between revisions

No edit summary
No edit summary
Line 82: Line 82:
local parent_args = frame:getParent().args
local parent_args = frame:getParent().args
local params = {
local params = {
[1] = { default=mw.title.getCurrentTitle().text },
[1] = { default = mw.title.getCurrentTitle().text },
}
}


Line 88: Line 88:
local word = args[1]
local word = args[1]
if gmatch(word,"·") then
--[[if gmatch(word,"·") then
morpheme = split(word,"·")
morpheme = split(word,"·")
end
end
--[[ local pattern = "^(" .. consonant .. "*" .. vowel .. "*" .. consonant .. "*)"
local pattern = "^(" .. consonant .. "*" .. vowel .. "*" .. consonant .. "*)"
for i, m in ipairs(morpheme) do
for i, m in ipairs(morpheme) do
Line 102: Line 102:
end]]
end]]
return table.concat(morpheme,",")
return table.concat(split(word,"·"),",")
end
end