Module:Sandbox/Erutuon: Difference between revisions

Content deleted Content added
documentation
attempt to find Greek character
Line 78:
return expand_range(char1, char2)
end)
:gsub('^%s*', '') -- Remove initial '\n ' to avoid creating unwanted pre element.
mw.log( -- Find Grek character and log it.
table.concat(
fun.filter(
function (char)
return Unicode_data.lookup_script(get_codepoint(char)) == "Grek"
end,
expanded_pattern))
:gsub(
"[%z\1-\127\194-\244][\128-\191]*",
function (char)
return ("U+%04X"):format(get_codepoint(char))
end))
return ('* <div style="overflow-wrap: break-word;">%s</div><br>%s')
:format(expanded_pattern, show_scripts(expanded_pattern))
:gsub('^%s*', ''), -- Remove initial '\n ' to avoid creating unwanted pre element.
show_scripts(expanded_pattern))
end