Module:xchc-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 157: Line 157:
local IPA_args = {}
local IPA_args = {}
local phonetic = separate_word(term)
local phonetic = separate_word(term)
table.insert(IPA_args, {pron = '[' .. phonetic .. ']'})
local western = phonetic
local western = phonetic
Line 163: Line 162:
western = gsub(western, rule[1], rule[2])
western = gsub(western, rule[1], rule[2])
end
end
local ipa1 = (western ~= phonetic) and "\n** " .. m_IPA.format_IPA_multiple(lang, {{pron='[' .. western .. ']', q="Western"}}) or ""
local ipa1 = (western ~= phonetic) and "\n** " .. m_IPA.format_IPA_multiple({lang=lang, items={pron='[' .. western .. ']', q="Western"}}) or ""
local surgut = phonetic
local surgut = phonetic
Line 169: Line 168:
surgut = gsub(surgut, rule[1], rule[2])
surgut = gsub(surgut, rule[1], rule[2])
end
end
local ipa2 = (surgut ~= phonetic) and "\n** " .. m_IPA.format_IPA_multiple(lang, {{pron='[' .. surgut .. ']', q="Surgut"}}) or ""
local ipa2 = (surgut ~= phonetic) and "\n** " .. m_IPA.format_IPA_multiple({lang=lang,items={pron='[' .. surgut .. ']', q="Surgut"}}) or ""


return "* " .. m_IPA.format_IPA_full(lang, IPA_args) .. ipa1 .. ipa2
return "* " .. m_IPA.format_IPA_full({lang=lang,items={pron='[' .. phonetic .. ']'}}) .. ipa1 .. ipa2
end
end


return export
return export

Navigation menu