Module:siwa-pron: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 111: | Line 111: | ||
function export.morphemes(word) | function export.morphemes(word) | ||
local pss = {} | local pss = {} | ||
local | local i = 1 | ||
if gmatch(word,"·") then | if gmatch(word,"·") then | ||
Line 118: | Line 118: | ||
repeat | repeat | ||
for j=1,#m_sm.prefix do | |||
if m_sm.prefix[i]==pss[i] then | |||
pss[i] = "ˌ" .. pss[i] | |||
elseif m_sm.suffix[m] then | |||
else | |||
pss[i] = "ˈ" .. pss[i] | |||
end | |||
end | |||
i=i+1 | |||
until gmatch(table.concat(pss),"ˈ") and gmatch(table.concat(pss),"ˌ") | until gmatch(table.concat(pss),"ˈ") and gmatch(table.concat(pss),"ˌ") | ||