Skip to content

Small improvements to update-tables.py and wcwidth-browser.py - #160

Merged
jquast merged 16 commits into
masterfrom
jq/improvements
Jan 14, 2026
Merged

jquast merged 16 commits into
masterfrom
jq/improvements

Conversation

@jquast

@jquast jquast commented Jan 10, 2026 •

Copy link
Copy Markdown
Owner

Nothing very important, does not impact released code or require a release.

update-tables.py

  • be less ambiguous about "VS", change to "VS-16"
  • add option for downloading emoji files of all versions (not used in code generation).
  • use argparse for that, and existing --no-check-last-modified argument

wcwidth-browser.py

  • support viewing of VS15 and 16 sequences, and unsequenced.
  • migrate away from and remove "docopt", replacing with std argparse

jquast added 13 commits October 20, 2025 19:26
I did a few spot checks of VS-15 when implementing VS-16, and
erroneously believed that all emojis in VS-15 sequences were already
listed as an EAW width of 1. But that's not true. There are several
emojis that are "wide" that are changed to "narrow" with VS-15.
Add any additional U+FE0F/U+FE0E check in sequence of wcswidth() to
ensure 100% code coverage
The previous table was generated with inverted logic (keeping narrow
characters instead of wide characters), a kind of experiment that
I may study outside of this project. Regenerated/reverted vs-15 table
@jquast jquast changed the title jq/improvements Small improvements to update-tables.py and wcwidth-browser.py Jan 10, 2026
@jquast
jquast marked this pull request as ready for review January 10, 2026 23:48
@jquast
jquast merged commit 83f2814 into master Jan 14, 2026
@jquast
jquast deleted the jq/improvements branch January 14, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant