편집 요약 없음 |
잔글 판 71개를 가져왔습니다 태그: 모바일 편집 모바일 웹 편집 고급 모바일 편집 |
||
| (사용자 2명의 중간 판 20개는 보이지 않습니다) | |||
| 264번째 줄: | 264번째 줄: | ||
} | } | ||
local p = {} | local p = {} | ||
function p. | function p.unicodeBlock(data) | ||
local char | local char | ||
if type(data) == 'table' then | if data == nil then | ||
return ' ' | |||
elseif type(data) == 'table' then | |||
char = data.args[1] | char = data.args[1] | ||
else | else | ||
| 275번째 줄: | 276번째 줄: | ||
end | end | ||
local codepoint = mw.ustring.codepoint(char) | local codepoint = mw.ustring.codepoint(char) | ||
local endN = #uniBlock | |||
for n= 1, endN do | for n= 1, endN do | ||
local | --local end_ = tonumber(uniBlock[n][2], 16) | ||
local | if codepoint <= tonumber(uniBlock[n][2], 16) then | ||
--local start_ = tonumber(uniBlock[n][1], 16) | |||
--if start_ <= codepoint then | |||
return uniBlock[n][3] | |||
--end | |||
end | end | ||
end | end | ||
end | end | ||
-- 함수 호출 축약형 | |||
p._ = p.unicodeBlock | |||
return p | return p | ||