Module:script utilities: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
(6 intermediate revisions by the same user not shown)
Line 14: Line 14:
function export.is_Latin_script(sc)
function export.is_Latin_script(sc)
-- Latn, Latf, Latinx, pjt-Latn
-- Latn, Latf, Latinx, pjt-Latn
return find(sc:getCode(), "Lat") and true or false
return mw.ustring.find(require("Module:scripts").getByCode(sc)["_code"], "Lat") and true or false
end
end


Line 94: Line 94:
return (txt:gsub("%-", ""))
return (txt:gsub("%-", ""))
end)
end)
end
if sc:getCode() == "Imag" then
face = nil
end
end


Navigation menu