Module:mg-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 81: Line 81:
end
end


function line_format(pronunciation)
function line_format(pronunciation, register)
local full_pronunciations = {}
local full_pronunciations = {}
local IPA_args = {{pron = '[' .. pronunciation .. ']'}}
local IPA_args = {{pron = '[' .. pronunciation .. ']'}}
table.insert(full_pronunciations, format_IPA(IPA_args))
table.insert(full_pronunciations, format_IPA(IPA_args))
return table.concat(full_pronunciations)
return "(''" .. table.concat(register, ", ") .. "'')" .. ' ' .. table.concat(full_pronunciations, ' or ')
end
end


Line 108: Line 108:
local ipa = "* "
local ipa = "* "
ipa = ipa .. line_format(separate_word(term, pos))
ipa = ipa .. line_format(separate_word(term, pos), {'Calá'})
return ipa
return ipa