summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-02-13 23:47:10 +0000
committerKarl Berry <karl@freefriends.org>2024-02-13 23:47:10 +0000
commitf315b3cce58880005aa69b24b7d864f74c5560a1 (patch)
tree44c577c9b7be348c4efeba89398b502edc9a1965
parent59218ee5f155d061cbbbbbbc97504fcbd27b53a6 (diff)
emotion (14feb24)
git-svn-id: svn://tug.org/texlive/trunk@69834 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/emotion/emotion-doc.pdfbin26890 -> 30553 bytes
-rw-r--r--Master/texmf-dist/doc/latex/emotion/emotion-doc.tex3
-rw-r--r--Master/texmf-dist/tex/latex/emotion/emotion.def2
-rw-r--r--Master/texmf-dist/tex/latex/emotion/emotion.lua21
-rw-r--r--Master/texmf-dist/tex/latex/emotion/emotion.sty11
5 files changed, 7 insertions, 30 deletions
diff --git a/Master/texmf-dist/doc/latex/emotion/emotion-doc.pdf b/Master/texmf-dist/doc/latex/emotion/emotion-doc.pdf
index ba22192aff1..96ffcc5fdd5 100644
--- a/Master/texmf-dist/doc/latex/emotion/emotion-doc.pdf
+++ b/Master/texmf-dist/doc/latex/emotion/emotion-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/emotion/emotion-doc.tex b/Master/texmf-dist/doc/latex/emotion/emotion-doc.tex
index 6c4fae83c59..97801c76b04 100644
--- a/Master/texmf-dist/doc/latex/emotion/emotion-doc.tex
+++ b/Master/texmf-dist/doc/latex/emotion/emotion-doc.tex
@@ -10,7 +10,8 @@
xcolor,
listings
}
-\setmainfont{KpMath Light}
+
+\setmainfont{KpMath}
\geometry{
a4paper,
diff --git a/Master/texmf-dist/tex/latex/emotion/emotion.def b/Master/texmf-dist/tex/latex/emotion/emotion.def
index 4e6387e6274..715c0ad63c7 100644
--- a/Master/texmf-dist/tex/latex/emotion/emotion.def
+++ b/Master/texmf-dist/tex/latex/emotion/emotion.def
@@ -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}
diff --git a/Master/texmf-dist/tex/latex/emotion/emotion.lua b/Master/texmf-dist/tex/latex/emotion/emotion.lua
deleted file mode 100644
index bde272c2b58..00000000000
--- a/Master/texmf-dist/tex/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
diff --git a/Master/texmf-dist/tex/latex/emotion/emotion.sty b/Master/texmf-dist/tex/latex/emotion/emotion.sty
index 34b02f82edb..7e4070dd399 100644
--- a/Master/texmf-dist/tex/latex/emotion/emotion.sty
+++ b/Master/texmf-dist/tex/latex/emotion/emotion.sty
@@ -1,12 +1,12 @@
\RequirePackage{expl3}
-\ProvidesExplPackage{emotion}{2024/02/06}{0.1}{LaTeX emoji}
+\ProvidesExplPackage{emotion}{2024/02/13}{0.2}{LaTeX emoji}
\RequirePackage { fontspec }
\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