Module:qlu-pron: Difference between revisions
No edit summary |
No edit summary |
||
| Line 290: | Line 290: | ||
function separate_word(term) | function separate_word(term) | ||
local final_ret = | local final_ret = nil | ||
for word in gsplit(term, " ") do | for word in gsplit(term, " ") do | ||
local pron = export.crux(word) | local pron = export.crux(word) | ||
if | if final_ret == nil then | ||
final_ret = pron | final_ret = pron | ||
else | else | ||
| Line 322: | Line 322: | ||
end | end | ||
return "* " .. m_IPA.format_IPA_full({ lang = lang, items = IPA_args }) | return ret and "* " .. table.concat(ret) or "oops" --m_IPA.format_IPA_full({ lang = lang, items = IPA_args }) | ||
end | end | ||
return export | return export | ||