Module:siwa-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 276: Line 276:
end]]
end]]


local function make_row(phoneticizations, dials)
function make_row(phoneticizations, dials)
local full_pronuns = {}
local full_pronuns = {}
for _, phoneticization in ipairs(phoneticizations) do
for _, phoneticization in ipairs(phoneticizations) do
local phonemic = phoneticization[1]
local phonetic = phoneticization[1]
local phonetic = phoneticization[2]
local IPA_args = {{pron = '[' .. phonemic .. ']'}}
local IPA_args = {{pron = '/' .. phonemic .. '/'}}
if phonemic ~= phonetic then
table.insert(IPA_args, {pron = '[' .. phonetic .. ']'})
end
table.insert(full_pronuns, m_IPA.format_IPA_full(lang, IPA_args))
table.insert(full_pronuns, m_IPA.format_IPA_full(lang, IPA_args))
end
end
return m_a.show(dials) .. ' ' .. table.concat(full_pronuns, ' or ')
return "(''"..dials.."'')" .. ' ' .. table.concat(full_pronuns, ' or ')
end
end


Navigation menu