texlive[69834] Master/texmf-dist: emotion (14feb24)

commits+karl at tug.org commits+karl at tug.org
Wed Feb 14 00:47:10 CET 2024


Revision: 69834
          https://tug.org/svn/texlive?view=revision&revision=69834
Author:   karl
Date:     2024-02-14 00:47:10 +0100 (Wed, 14 Feb 2024)
Log Message:
-----------
emotion (14feb24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/emotion/emotion-doc.pdf
    trunk/Master/texmf-dist/doc/latex/emotion/emotion-doc.tex
    trunk/Master/texmf-dist/tex/latex/emotion/emotion.def
    trunk/Master/texmf-dist/tex/latex/emotion/emotion.sty

Removed Paths:
-------------
    trunk/Master/texmf-dist/tex/latex/emotion/emotion.lua

Modified: trunk/Master/texmf-dist/doc/latex/emotion/emotion-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/emotion/emotion-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/emotion/emotion-doc.tex	2024-02-13 23:46:54 UTC (rev 69833)
+++ trunk/Master/texmf-dist/doc/latex/emotion/emotion-doc.tex	2024-02-13 23:47:10 UTC (rev 69834)
@@ -10,8 +10,9 @@
     xcolor,
     listings
 }
-\setmainfont{KpMath Light}
 
+\setmainfont{KpMath}
+
 \geometry{
   a4paper,
   top=25.4mm, bottom=25.4mm,

Modified: trunk/Master/texmf-dist/tex/latex/emotion/emotion.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/emotion/emotion.def	2024-02-13 23:46:54 UTC (rev 69833)
+++ trunk/Master/texmf-dist/tex/latex/emotion/emotion.def	2024-02-13 23:47:10 UTC (rev 69834)
@@ -1,5 +1,5 @@
 \ProvidesExplFile{emotion.def}
-    {2024/02/06}{0.1}{LaTeX emoji}
+    {2024/02/13}{0.2}{LaTeX emoji}
 
 \tl_const:cn{l__emotion_ 🇦}{^^^^^^01f1e6}
 \tl_const:cn{l__emotion_ 🇧}{^^^^^^01f1e7}

Deleted: trunk/Master/texmf-dist/tex/latex/emotion/emotion.lua
===================================================================
--- trunk/Master/texmf-dist/tex/latex/emotion/emotion.lua	2024-02-13 23:46:54 UTC (rev 69833)
+++ trunk/Master/texmf-dist/tex/latex/emotion/emotion.lua	2024-02-13 23:47:10 UTC (rev 69834)
@@ -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

Modified: trunk/Master/texmf-dist/tex/latex/emotion/emotion.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/emotion/emotion.sty	2024-02-13 23:46:54 UTC (rev 69833)
+++ trunk/Master/texmf-dist/tex/latex/emotion/emotion.sty	2024-02-13 23:47:10 UTC (rev 69834)
@@ -1,5 +1,5 @@
 \RequirePackage{expl3}
-\ProvidesExplPackage{emotion}{2024/02/06}{0.1}{LaTeX emoji}
+\ProvidesExplPackage{emotion}{2024/02/13}{0.2}{LaTeX emoji}
 
 \RequirePackage { fontspec }
 
@@ -6,7 +6,7 @@
 \ExplSyntaxOn
 
 % add emotion command
-\newfontface \emotionfont: { Apple~Color~Emoji } [ Renderer = Harfbuzz ]
+\newfontface \emotionfont: { Twemoji~Mozilla } [ Renderer = Harfbuzz ]
 
 % enable update emoji font
 \newcommand{\emotionsetup}[1]{
@@ -23,17 +23,14 @@
 % import pre-defined emotion
 \file_input:n { emotion.def }
 
-\tl_set:Nn \l__emotion_tmp_tl {❓}
+\tl_set:Nn \l__emotion_nodef_tl {❓}
 
 \newcommand{\emotion}[1]{
-\group_begin:
-\tl_set:Nn \l__emotion_tmp_tl {#1}
 \ifcsname l__emotion_#1\endcsname
     {\emotionfont:{\tl_use:c {l__emotion_ #1}}}
 \else
-    {\emotionfont:{\tl_use:N \l__emotion_tmp_tl}}
+    {\emotionfont:#1}
 \fi
-\group_end:
 }
 
 \ExplSyntaxOff



More information about the tex-live-commits mailing list.