45,322
edits
No edit summary |
No edit summary |
||
(5 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 | return mw.ustring.find(require("Module:scripts").getByCode(sc)["_code"], "Lat") and true or false | ||
end | end | ||
Line 84: | Line 84: | ||
if not sc then | if not sc then | ||
sc = require("Module:scripts").findBestScript(text, lang) | sc = require("Module:scripts").findBestScript(text, lang) | ||
end | end | ||