Jump to content

Module:Unicode data/aliases

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Dušan Kreheľ (talk | contribs) at 15:12, 26 July 2025 (Data are direct from commons.). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

-- [[:commons:Data:Unicode/data/aliases.tab]]

local function get_result()
	local data=mw.ext.data.get("Unicode/data/aliases.tab")
	local result = {}
	
	for index, cols in ipairs(data.data) do
		if cols[1] and cols[2] and cols[3] and cols[4] then
			code_point=tonumber("0x"..cols[1])
			
			if cols[2] == 1 then
				result[code_point]={}
			end
			result[code_point][cols[2]]={cols[4], cols[3]}
		end
	end
	
	return result
end

return get_result()