Module:Unicode data/blocks: Difference between revisions

Content deleted Content added
Data are direct from commons.
Tag: Replaced
Fix and function call
 
Line 4:
local data=mw.ext.data.get("Unicode/data/blocks.tab")
local result={}
local indexwrite_index=1
 
for index, cols in ipairs(data.data) do
if cols[1] and cols[2] and cols[3] then
result[indexwrite_index]={tonumber("0x"..cols[1], 16), tonumber("0x"..cols[2], 16), cols[3]}
indexwrite_index=indexwrite_index+1
end
end
result.length = #result
 
return result
end