Tags: commit-0/wcwidth
Tags
Bugfix accounting for Variation Selector 16 (jquast#97) Closes jquast#96 - Add new table, `VS16_NARROW_TO_WIDE`. It has only one version, "9.0.0". This defines a set of characters that are otherwise Narrow, like '0', that become wide when combined with `U+FE0F`, "VARIATION SELECTOR 16". - change `wcwidth.wcswidth()` function, now tracks "last measured character", and, on U+FE0F, checks that character in table VS16_NARROW_TO_WIDE, and, if matching, adds 1 to the measured width. - add `verify-table-integrity.py`, this is an unrelated file from previous work in jquast#91 that should have been included there. - new tests: The latest list of 'emoji-zwj-sequences.txt' and 'emoji-variation-sequences.txt' are fetched by update-tables.py and placed in 'tests/' folder, and now used by automatic tests in test_emoji_zwj.py, this is helpful to ensure 100% compatibility with all latest known emoji sequences - fix issue with codecov.io token Note: A single "9.0.0" version is used because of ambiguity in legacy releases of the emoji variation sequences files. So ambiguous, that very few terminals get it right! See https://ucs-detect.readthedocs.io/results.html for testing results. I believe that U+FE0F is something of a "fixup" for early emojis. I don't expect any new U+FE0F sequences to be published.
Use jinja2 templating to update library to unicode 15.0, jquast#61 - update `tox.ini`, `requirements*` files - use `pip-compile` with "requirements.in" files to generate "requirements.txt" files - use older testing tools for older python versions - ensure for python 3.10 and 3.11 - bin/update-tables.py changes, - use jinja2 (`.j2`) templating to generate code and documentation, - easier to support code generation of other languages - use https and perform retries - build cache uses HEAD to compare last-modified for refresh - `for wcwidth/table*.py` files - uses new template system to generate new table data files for unicode version 14 and 15 - when a description of unicode is single codepoint, describe only as 'A' instead of 'A..A'
Do not call _get_package_version() on import Hopefully, helps out an xonsh issue on fedora? xonsh/xonsh#3607
PreviousNext