Module:script utilities: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 66: Line 66:
-- language needing such processing.
-- language needing such processing.
-- 20220221: Also convert 漢字(한자) to ruby, instead of needing [[Template:Ruby]].
-- 20220221: Also convert 漢字(한자) to ruby, instead of needing [[Template:Ruby]].
if getCode(sc) == "Kore" and (text:find("%-") or text:find("[()]")) then
if sc:getCode() == "Kore" and (text:find("%-") or text:find("[()]")) then
text = require("Module:munge_text")(text, function(txt)
text = require("Module:munge_text")(text, function(txt)
-- Hani/Hang regex is a reasonable subset of Hani/Hang from [[Module:scripts/data]],
-- Hani/Hang regex is a reasonable subset of Hani/Hang from [[Module:scripts/data]],
Line 76: Line 76:
end
end
if getCode(sc) == "Imag" then
if sc:getCode() == "Imag" then
face = nil
face = nil
end
end

Navigation menu