Module:IPA: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 419: Line 419:
for k, v in pairs(m_symbols.invalid) do
for k, v in pairs(m_symbols.invalid) do
if find(result, k, 1, true) then
if find(result, k, 1, true) then
insert(suggestions, k .. " with " .. v)
result = result:gsub(k, v)
end
end
if suggestions[1] then
suggestions = listToText(suggestions)
if is_content_page then
error("Invalid IPA: replace " .. suggestions)
else
insert(err, "replace " .. suggestions)
end
end
end
end
result = ugsub(result, "⁽[".. m_symbols.superscripts .. "]+⁾", "")
result = ugsub(result, "⁽[".. m_symbols.superscripts .. "]+⁾", "")
local per_lang_valid
local per_lang_valid

Navigation menu