Sware
Created page with "local export = {} local gsub = mw.ustring.gsub local match = mw.ustring.match function export.tr(text, lang, sc) if (not text) or text == "" then return text end local HaniChars = require("Module:scripts").getByCode("Hani"):getCharacters() text = gsub(text, "%<%/?r[pt]%>", "") text = gsub(text, "%<%/?ruby%>", "") -- remove hanja from (ex.) 사전(辭典) and 辭典(사전) text = gsub(text, "%([" .. HaniChars .. "]+%)", "") text = gsub(text, "%([" .. HaniChars..."