aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate-emoji-variation-sequences.py (unfollow)
Commit message (Collapse)AuthorLines
2026-07-26scripts: various ruff fixesDaniel Eklöf-0/+0
* ruff 0.16.0 * python 3.14.6
2025-12-26mypy: no need to declare None as return type for __init__Daniel Eklöf-1/+1
2025-12-26scripts: mypy fixesDaniel Eklöf-4/+3
2024-06-26scripts: generate-emoji-variation-sequences: don't assume single codepoint sequencesDaniel Eklöf-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.
2024-06-26scripts: generate-emoji-variation-sequences: compact the C structDaniel Eklöf-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.
2024-06-25scripts: generate-emoji-variation-sequences: don't assume input is sortedDaniel Eklöf-15/+16
2024-06-25vt: only apply VS-15/16 to valid sequencesDaniel Eklöf-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
2020-10-10selection: use appropriate check for PRIMARY pasteSergey Nazaryev-102/+0
Assume it could be a copy-paste typo. We should check PRIMARY, not CLIPBOARD. Without this fix, we can't use PRIMARY until we copy anything to CLIPBOARD.