Debian Codegraph @

texmf-dist/doc/latex/emo/README.md

raw
1 # emoโ€ขji for all (LaTeX engines)
2
3 This package defines the `\emo{<emoji-name>}` macro for including color emoji in
4 a document no matter the LaTeX engine. It uses the Noto color emoji font if the
5 engine supports doing so and falls back onto PDF graphics otherwise. In either
6 case, `\emo{desert-island}` results in ๐Ÿ and `\emo{parrot}` results in ๐Ÿฆœ. Emo
7 may come in particularly handy when dealing with academic publishers that
8 provide only minimal support for non-Latin scripts (cough,
9 [ACM](https://www.acm.org), cough).
10
11 Emo's source repository is <https://github.com/apparebit/emo>. It also is
12 available [through CTAN](https://ctan.org/pkg/emo). Emo supports conversion to
13 HTML with [LaTeXML](https://github.com/brucemiller/LaTeXML) or
14 [TeX4ht](https://tug.org/tex4ht/). When using the latter tool, please be sure to
15 use |make4ht -l| as invocation.
16
17 ## Package Options
18
19 When emo is used with the `extra` option, this package also defines the
20 `\lingchi` and `\YHWH` macros for ๅ‡Œ้ฒ and ื™ื”ื•ื”, respectively. Both macros
21 preserve a subsequent space as space, no backslash needed.
22
23 When used with the `index` option, this package also emits a raw index entry for
24 each use of an emoji into an emo index or `.edx` file.
25
26 ## Installation
27
28 To **extract files** embedded in [emo.dtx](emo.dtx), run `pdftex emo.dtx`. Note
29 that plain old `tex` won't do, since it mangles this README. `pdflatex` works,
30 but also generates the package documentation. The embedded files are `build.sh`,
31 `emo.ins`, `emo.sty`, `emo.sty.ltxml`, `canary.tex`, and `README.md`.
32
33 To **build the documentation** embedded in `emo.dtx`, run `source build.sh`. The
34 shell script invokes `pdflatex emo.dtx` thrice and `makeindex` once each for the
35 change and the symbol indices, resulting in [emo.pdf](emo.pdf).
36
37 To **configure the emoji**, run `python3 config/emo.py` with appropriate
38 arguments. The [package documentation](emo.pdf) explains the configuration tool
39 in detail, but you may find the `-h` for help option sufficient to get started.
40
41 To **install this package**, place `emo.def`, `emo.sty`, `emo.sty.ltxml`,
42 `emo-lingchi.ttf`, and the `emo-graphics` directory with the fallback PDF files
43 somewhere where LaTeX can find them. In a pinch, your project directory will do.
44
45 ## Supported Emoji
46
47 By default, emo supports only a few emoji, ordered by Unicode codepoints:
48
49 1๏ธโƒฃ โ˜ฃ๏ธ โš–๏ธ โœ… โœ”๏ธ โŒ โž• ๐Ÿ‡ช๐Ÿ‡บ ๐Ÿ‰ ๐ŸŒ ๐ŸŒ ๐ŸŽ‰ ๐Ÿ›๏ธ ๐Ÿ๏ธ ๐ŸŸ๏ธ ๐Ÿณ๏ธโ€๐ŸŒˆ ๐Ÿท๏ธ ๐Ÿค ๐Ÿ‘๏ธ ๐Ÿ‘ฅ ๐Ÿ’ฅ ๐Ÿ’ฑ ๐Ÿ’พ ๐Ÿ“ˆ ๐Ÿ“ ๐Ÿ“Ÿ ๐Ÿ”
50 ๐Ÿ•ต๏ธ ๐Ÿ—‘๏ธ ๐Ÿ˜ก ๐Ÿ›‘ ๐Ÿค– ๐Ÿค ๐Ÿคฆ ๐Ÿคช ๐Ÿคฏ ๐Ÿฅบ ๐Ÿฆœ ๐Ÿง‘โ€โš–๏ธ ๐Ÿงป ๐Ÿงพ
51
52 Their names are keycap-one, biohazard, balance-scale, check-mark-button,
53 check-mark, cross-mark, plus, eu, japanese-bargain-button, foggy,
54 globe-africa-europe, party-popper, classical-building, desert-island, stadium,
55 rainbow-flag, label, baby-chick, eye, busts, collision, currency-exchange,
56 floppy-disk, chart-increasing, triangular-ruler, pager, loupe-left, detective,
57 wastebasket, enraged-face, stop-sign, robot, handshake, person-facepalming,
58 zany-face, exploding-head, pleading-face, parrot, judge, roll-of-paper, and
59 receipt.
60
61 The [package's documentation](emo.pdf) explains the underlying naming scheme and
62 also how to reconfigure which emoji are supported. The [emo.py](config/emo.py)
63 script takes care of the heavy lifting during reconfiguration, converting SVG
64 into PDF files and generating an updated `emo.def` file.
65
66 ## Copyright and Licensing
67
68 This package combines code written in LaTeX, Python, and Perl with Unicode data
69 about emoji as well as graphics and fonts derived from Google's Noto fonts. As a
70 result, a number of different licenses apply, all of which are [OSI
71 approved](https://opensource.org/licenses/) and non-copyleft:
72
73 * This package's [LaTeX code](emo.dtx) is ยฉ Copyright 2023 by Robert Grimm and
74 has been released under the [LPPL
75 v1.3c](https://www.latex-project.org/lppl/lppl-1-3c/) or later.
76 * The [emo.py](config/emo.py) configuration script also is ยฉ Copyright 2023 by
77 Robert Grimm but has been released under the [Apache 2.0
78 license](https://www.apache.org/licenses/LICENSE-2.0).
79 * The [emoji-test.txt](config/emoji-test.txt) configuration file is a data
80 file from [Unicode TR-51](https://unicode.org/reports/tr51/) and hence
81 subject to the [Unicode License](https://www.unicode.org/license.txt).
82 * The `emo-lingchi.ttf` font is a two-glyph subset of the serif traditional
83 Chinese version of Google's [Noto
84 fonts](https://github.com/notofonts/noto-cjk) and hence subject to the [SIL
85 Open Font License v1.1](https://scripts.sil.org/ofl).
86 * The PDF graphics in the `emo-graphics` directory are derived from the
87 sources for [Noto's color emoji](https://github.com/googlefonts/noto-emoji)
88 and hence subject to the Apache 2.0 license.
89