Anonymous user
Module:Unicode data: Difference between revisions
Jump to navigation
Jump to search
Split noncharacter per request
m (1 revision imported) |
(Split noncharacter per request) |
||
Line 126:
--]]
-- https://www.unicode.org/versions/Unicode11.0.0/ch04.pdf, section 4.8▼
▲function p.lookup_name(codepoint)
-- U+FDD0-U+FDEF and all code points ending in FFFE or FFFF are Unassigned
-- (Cn) and specifically noncharacters:
-- https://www.unicode.org/faq/private_use.html#nonchar4
or floor(codepoint % 0x10000) >= 0xFFFE)
end
▲-- https://www.unicode.org/versions/Unicode11.0.0/ch04.pdf, section 4.8
function p.lookup_name(codepoint)
if p.is_noncharacter(codepoint) then
return ("<noncharacter-%04X>"):format(codepoint)
end
|