Module:evn-translit: Difference between revisions

Created page with "local u = mw.ustring.char local MACRON = u(0x0304) local DOTABOVE = u(0x0307) local DOTBELOW = u(0x0323) local str_gsub, ugsub = string.gsub, mw.ustring.gsub local UTF8char = '[\1-\127\194-\244][\128-\191]*' local export = {} local tab = { ["А"]='A', ["а"]='a', ["В"]='W', ["в"]='w', ["Е"]='E', ["е"]='e', ["Ё"]='Jo', ["ё"]='jo', ["Г"]='G', ["г"]='g', ["Д"]='D', ["д"]='d', ["И"]='I', ["и"]='i', ["Ӣ"]='Ī', ["ӣ"]='ī', ["Й"]='J', ["й"]='j', [..."
 
m (bot) slight optimization to 5.2 compat: prefer unpack to table.unpack
Line 1: Line 1:
local u = mw.ustring.char
local u = require("Module:string/char")


local MACRON    = u(0x0304)
local MACRON    = u(0x0304)
Line 6: Line 6:


local str_gsub, ugsub = string.gsub, mw.ustring.gsub
local str_gsub, ugsub = string.gsub, mw.ustring.gsub
local unpack = unpack or table.unpack -- Lua 5.2 compatibility
local UTF8char = '[\1-\127\194-\244][\128-\191]*'
local UTF8char = '[\1-\127\194-\244][\128-\191]*'