Module:xpr-translit

local export = {}

function export.tr(text, lang, sc)
	if not sc then
		sc = require("Module:scripts").findBestScript(text, require("Module:languages").getByCode(lang)):getCode()
	end
	if sc == "Mani" then	-- transliterate Manichaean
		return require("Module:Mani-translit").tr(text, lang, sc)
	else					-- perhaps add more scripts?
		return nil
	end
end

return export