익명 사용자
편집 요약 없음
편집 요약 없음 |
편집 요약 없음 |
||
| 263번째 줄: | 263번째 줄: | ||
{'100000','10FFFF','Supplementary Private Use Area-B'} | {'100000','10FFFF','Supplementary Private Use Area-B'} | ||
} | } | ||
local char = '한' | local char = '한' | ||
local code = tonumber(char, '16') | local code = tonumber(char, '16') | ||
local endN = #uniBlock | local endN = #uniBlock | ||
for n= 1, endN do | |||
local p = {} | |||
function p.main(data) | |||
if type(data) == 'table' then | |||
local char = data.args[1] | |||
local codepoint = mw.ustring.codepoint(char) | |||
codepoint = tonumber(codepoint, '16') | |||
for n= 1, endN do | |||
local start_ = tonumber(uniBlock[n][1], 16) | |||
local end_ = tonumber(uniBlock[n][2], 16) | |||
if start_ <= codepoint or codepoint <= end_ then | |||
return uniBlock[n][3] | |||
end | |||
end | |||
else mw.log(tostring(ref[data])) | |||
end | end | ||
end | end | ||
return p | |||