aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate-emoji-variation-sequences.py (follow)
Commit message (Collapse)AuthorAgeLines
* scripts: various ruff fixesDaniel Eklöf2026-07-26-0/+0
| | | | | * ruff 0.16.0 * python 3.14.6
* mypy: no need to declare None as return type for __init__Daniel Eklöf2025-12-26-1/+1
|
* scripts: mypy fixesDaniel Eklöf2025-12-26-4/+3
|
* scripts: generate-emoji-variation-sequences: don't assume single codepoint sequencesDaniel Eklöf2024-06-26-4/+11
| | | | | | | | | | 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.
* 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