Module:Lang: Difference between revisions

Content deleted Content added
whitelist some non-Latn-script transliteration characters;
No edit summary
Line 1,055:
local function is_latin (text, script, transl)
-- if mw.ustring.find (text, 'θ', 1, true) then -- does <text> contain 'θ'?
local whitelist = '[ʻʼʾʿΔαβγδθφχϑьᾱῑ῾ʻʼʾʿΔαβγδθσφχϑьᾱῑ῾上入去平]'
if mw.ustring.find (text, whitelist) then -- does <text> contain characters from the whitelist?
-- text = text:gsub ('θ', ''); -- remove theta from <text>