%% %% This is file `emo.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% emo.dtx (with options: `package') %% %% emo•ji for all (LaTeX engines) %% (C) Copyright 2023 by Robert Grimm %% Released under LPPL v1.3c or later %% %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{emo} [2023/04/01 v0.2 emo•ji for all (LaTeX engines)] \newif\ifemo@extra\emo@extrafalse \DeclareOption{extra}{\emo@extratrue} \newif\ifemo@indexing\emo@indexingfalse \DeclareOption{index}{\emo@indexingtrue} \ProcessOptions\relax \RequirePackage[utf8]{inputenc} \newif\ifemo@usefont\emo@usefontfalse \RequirePackage{iftex} \ifluatex\emo@usefonttrue\fi \ifemo@usefont \RequirePackage{fontspec} \else \RequirePackage{graphicx} \fi \RequirePackage{xcolor} \ifemo@extra \RequirePackage{xspace} \fi \ifemo@indexing \RequirePackage{index} \fi \input{emo.def} \definecolor{emo@error@fg}{rgb}{1,1,1} \definecolor{emo@error@bg}{rgb}{.6824,.0863,.0863} \def\emo@error#1{% \colorbox{emo@error@bg}{% \textcolor{emo@error@fg}{% \textsf{Bad} \texttt{\textbackslash emo\{#1\}}% }% }% } \def\emo@ifdef#1#2{% \ifcsname emo@emoji@#1\endcsname#2\else% \PackageWarning{emo}{Unknown emoji name in `\string\emo{#1}'}% \emo@error{#1}% \fi% } \ifemo@indexing \newindex{emo}{edx}{end}{Emoji Index} \def\emo@index#1{\index[emo]{#1}} \else \def\emo@index#1{} \fi \ifemo@usefont \newfontface\emo@font[Renderer=Harfbuzz]{NotoColorEmoji.ttf} \newcommand\emo[1]{% \emo@ifdef{#1}{% \emo@index{#1}% {\emo@font\csname emo@emoji@#1\endcsname}% }% } \else \newcommand\emo[1]{% \emo@ifdef{#1}{% \emo@index{#1}% \raisebox{-0.2ex}{% \includegraphics[height=1em]{emo-graphics/emo-#1}}% }% } \fi \ifemo@extra \ifemo@usefont \newfontface\emo@chinese{emo-lingchi.ttf} \newfontface\emo@hebrew{LinLibertine_R.otf} \newcommand\lingchi{% \emo@index{lingchi}% \begingroup\emo@chinese \char"51CC\char"9072\endgroup% \xspace} \newcommand\YHWH{% \emo@index{YHWH}% \begingroup% \textdir TRT% \emo@hebrew \char"5D9\char"5D4\char"5D5\char"5D4% \endgroup% \xspace} \else \newcommand\lingchi{% \emo@index{lingchi}% \raisebox{-0.2ex}{% \includegraphics[height=1em]{emo-graphics/emo-lingchi}}% \xspace} \newcommand\YHWH{% \emo@index{YHWH}% \raisebox{-0.2ex}{% \includegraphics[height=1em]{emo-graphics/emo-YHWH}}% \xspace} \fi \fi \endinput %% %% End of file `emo.sty'.