<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/scripts/generate-emoji-variation-sequences.py, branch 1.22.1</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.22.1</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.22.1'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2024-06-26T16:33:23Z</updated>
<entry>
<title>scripts: generate-emoji-variation-sequences: don't assume single codepoint sequences</title>
<updated>2024-06-26T16:33:23Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-06-26T16:30:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=085c60a33423bf46f64f225e438f62ad12fff8c9'/>
<id>urn:sha1:085c60a33423bf46f64f225e438f62ad12fff8c9</id>
<content type='text'>
Right now (Unicode 15.1), all valid variation sequences consist of a
single Unicode codepoint (followed by either VS-15 or VS-16).

Don't assume this is the case.

We don't actually handle longer sequences. But now we at least catch
such escapes, and error out.
</content>
</entry>
<entry>
<title>scripts: generate-emoji-variation-sequences: compact the C struct</title>
<updated>2024-06-26T16:32:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-06-25T14:22:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=aed9c392ebdf1b030f819ad3e55d21d80dbee2cf'/>
<id>urn:sha1:aed9c392ebdf1b030f819ad3e55d21d80dbee2cf</id>
<content type='text'>
Lookups in this table is not performance critical at all.

Thus, let's compact it to bring down the binary size of foot.

This brings the size of each entry down from 9 bytes to 6, bringing
the size of the whole thing down from 1647 bytes to 1098 bytes, saving
us 549 bytes.
</content>
</entry>
<entry>
<title>scripts: generate-emoji-variation-sequences: don't assume input is sorted</title>
<updated>2024-06-25T06:23:27Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-06-25T06:23:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ecb1ca61afe3c3b3ff676bfc815996b5b2ffd26d'/>
<id>urn:sha1:ecb1ca61afe3c3b3ff676bfc815996b5b2ffd26d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vt: only apply VS-15/16 to valid sequences</title>
<updated>2024-06-25T06:20:21Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-06-24T19:18:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=96656614454f96034d9cc0f0e14c76493b5b7c6b'/>
<id>urn:sha1:96656614454f96034d9cc0f0e14c76493b5b7c6b</id>
<content type='text'>
At compile time, build a lookup table from the Unicode data file
'emoji-variation-sequences.txt'.

At run-time, when we detect a VS-15/16 sequence, do a lookup in this
table, and enforce the variation selector iff the sequence is valid.

Closes #1742
</content>
</entry>
</feed>
