Module:Unicode data: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
imported>Lingam "local p = {} local floor = math.floor local function errorf(level, ...) if type(level) == "number" then return error(string.format(...), level + 1) else -- level is actually the format string. return error(string.format(level, ...), 2) end end local function binary_range_search(codepoint, ranges) local low, mid, high low, high = 1, ranges.length or req..."-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது |
imported>Dušan Kreheľ fix |
||
வரிசை 45:
local loader = setmetatable({}, {
__index = function (self, key)
local dataset_type=mw.text.split(key, "/")[1]
if dataset_type then
if
dataset_type == "emoji images" or
dataset_type == "images" or
dataset_type == "name"
then
local data = require("Module:Unicode_data/datasets").dataset("Unicode data/"..key..".tab")
self[key] = data
return data
end
end
local success, data = pcall(mw.loadData, "Module:Unicode data/" .. key)
if not success then
வரி 161 ⟶ 174:
end
function p.lookup_image(codepoint)
local data = loader[('images/%03X'):format(codepoint / 0x1000)]
வரி 170 ⟶ 181:
end
end
local planes = {
| |||