aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate-emoji-variation-sequences.py (follow)
Commit message (Collapse)AuthorAgeLines
* scripts: generate-emoji-variation-sequences: compact the C structDaniel Eklöf2024-06-26-3/+3
| | | | | | | | | | 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.
* scripts: generate-emoji-variation-sequences: don't assume input is sortedDaniel Eklöf2024-06-25-15/+16
|
* vt: only apply VS-15/16 to valid sequencesDaniel Eklöf2024-06-25-0/+95
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