vt: only apply VS-15/16 to valid sequences

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
This commit is contained in:
Daniel Eklöf 2024-06-24 21:18:37 +02:00
parent 94583703e1
commit 9665661445
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 903 additions and 6 deletions

View file

@ -100,6 +100,8 @@
* Regression: alpha changes through OSC-11 sequences not taking effect
until window is resized.
* VS15 being ignored ([#1742][1742]).
* VS16 being ignored for a subset of the valid VS16 sequences
([#1742][1742]).
[1694]: https://codeberg.org/dnkl/foot/issues/1694
[1717]: https://codeberg.org/dnkl/foot/issues/1717