local export = {}
local gsub = mw.ustring.gsub
local symbols = {
= "0", = "1", = "2", = "3", = "4",
= "5", = "6", = "7", = "8", = "9",
= "|", = "||"
}
function export.tr(text, lang, sc, debug_mode)
local m_pron = require("Modül:my-söyleniş").get_romanisation
text = gsub(text, ".", symbols)
for word in mw.ustring.gmatch(text, "+") do
success, translit = pcall(m_pron, word, nil, { 2, = "orthographic", = "MLCTS" }, 2, "translit_module")
if success then
text = gsub(text, word, translit, 1)
else
return nil
end
end
if mw.ustring.match(text, "") and not debug_mode then
return nil
end
return text
end
return export