Module:Unicode data/blocks

This is an old revision of this page, as edited by Dušan Kreheľ (talk | contribs) at 16:10, 26 July 2025 (Data are direct from commons.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

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

return get_result()