Module:Sandbox/Erutuon/charinsert names: Difference between revisions

Content deleted Content added
mNo edit summary
all codepoints, shorter lines
Line 4:
local codepoint_set = {}
for codepoint in mw.ustring.gcodepoint(str) do
if codepoint_set[codepoint] > 0x7F= thentrue
codepoint_set[codepoint] = true
end
end
return require "Module:table".keysToList(codepoint_set)
Line 20 ⟶ 18:
for i, codepoint in ipairs(codepoint_list) do
local key_and_value = '"' .. codepoint .. '":"' .. Unicode.lookup_name(codepoint) .. '"'
if len + #key_and_value > 8079 then
key_and_value = '\n' .. key_and_value
len = 0