diff options
Diffstat (limited to 'macros/unicodetex/latex/emotion/emotion.lua')
-rw-r--r-- | macros/unicodetex/latex/emotion/emotion.lua | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/macros/unicodetex/latex/emotion/emotion.lua b/macros/unicodetex/latex/emotion/emotion.lua deleted file mode 100644 index bde272c2b5..0000000000 --- a/macros/unicodetex/latex/emotion/emotion.lua +++ /dev/null @@ -1,21 +0,0 @@ -function unicodes(chs) - local text = "" - for _, c in utf8.codes(chs) do - text = text .. unicode(c) - end - print(text) -end - -function unicode(codepoint) - local value = NULL - if codepoint > 0xFFFF then - value = string.format("^^^^^^%06x", codepoint) - elseif codepoint > 0xFF then - value = string.format("^^^^%04x", codepoint) - else - value = string.format("^^%02x", codepoint) - end - return value -end - -unicodes("🀁♀")
\ No newline at end of file |