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