Up to [cvs.NetBSD.org] / pkgsrc / devel / py-wcwidth
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-wcwidth: fix PLIST for setuptools 84.2 and depend on it Bump PKGREVISION.
py-wcwidth: updated to 0.9.1 0.9.1 *2026-09-23* * **Bugfix** a regression in 0.9.0 Python and libwcwidth_ `width()`_ mis-measured CSI sequences over 64 bytes * **Performance** improvement of ~15% for 11 many Python API functions when using default ``ambiguous_width`` and ``term_program`` arguments. 0.9.0 *2026-09-23* * **New** Optional CPython extension using libwcwidth_, improving performance 10-58x * **Drop Support** for Python 3.8
py-wcwidth: updated to 0.8.4
0.8.4 *2026-09-17*
* **Bugfix** `clip()`_ hangs with OSC 8 hyperlinks in some conditions
* **Bugfix** width of ITU T.416 colon-format SGR color parameters
* **Bugfix** width of OSC 66 text sizing sequences without a text field
* **Bugfix** `width()`_, `ljust()`_, `rjust()`_, `center()`_, `clip()`_ and `strip_sequences()`_
treated ``ESC ( LF`` as text instead of a character set designation (rare)
* **Bugfix** `clip()`_ painter's algorithm and "tab expansion" should be spaces
* **Changed** `iter_graphemes()`_ clustering rule GB9c for Unicode 18.0
* **Changed** ``ambiguous_width`` arguments are now clamped to allowed range (1, 2)
* **Changed** `wrap()`_ now raises ``ValueError`` for a width of zero or less, matching stdlib
``textwrap``. Previously ``wrap('女', 0)`` returned ``['女']``
* **Changed** `clip()`_ arguments ``start=0`` and ``end=-1`` become optional
* **Updated** tables for Unicode version 18.0
* **Updated** ``ucs-detect`` data files used in some automatic tests are no longer
distributed,
py-wcwidth: update to 0.8.3.
0.8.3 2026-08-28
Bugfix Do not hang on wrap() calls of width 1 with text containing OSC8 hyperlinks and wide characters, PR #231.
Bugfix clip() with propagate_sgr=True, should match behavior of propagate_sgr(), PR #235.
py-wcwidth: updated to 0.8.1 0.8.1 Improved corrections tables
py-wcwidth: updated to 0.8.0 0.8.0 New support for Variation Selector 15 Emojis as narrow, New argument, term_program for wcstwidth(), width(), clip(), wrap(), ljust(), rjust(), and center(). False disables corrections; True auto-detects by TERM_PROGRAM or TERM; string values accept canonical names matching list_term_programs(). wcstwidth()_ defaults to True; all other functions default to False. Improved performance on Python 3.15 using standard library iter_graphemes() Improved memory usage and import time for Python 3.15 using lazy imports Bugfix Invisible_Stacker viramas now form conjuncts (Burmese, Khmer, etc.) and change some Virama width calculations to match jacobsandlund/uucode_ (ghostty) Updated graphemes width maximum now 2, matching Ghostty, foot, and Windows Terminal
py-wcwidth: update to 0.7.0.
New support for kitty text sizing protocol (OSC 66) in width() and clip().
New clip() parameter control_codes='parse', 'ignore', and 'strict'. clip()
is now able to clip OSC 8 hyperlinks and OSC 66 text sizing sequences.
Improved clip() and width() to support horizontal cursor sequences (cub, cuf,
hpa). Cursor-left (cub) or backspace (\b) now overwrites text. column_address
(hpa) and carriage return (\r) are now parsed, and more values conditionally raise
ValueError when control_codes='strict'.
PR's
Remove docs, add utils by @jquast in #209
Bump requests from 2.32.5 to 2.33.0 in /docs by @dependabot[bot] in #210
Bump pygments from 2.19.2 to 2.20.0 in /docs by @dependabot[bot] in #212
dependabot nonsense by @jquast in #215
Expand terminal escape sequence for three more ECMA-48 "families" by @jquast in #214
Improve clip() and width() with hyperlinks and overtyping by @jquast in #216
Improve width() and clip() with kitty Text Sizing Protocol by @jquast in #213
py-wcwidth: update to 0.5.3.
0.5.3
Add Virama conjunct for the Brahmic scripts by @jquast in #204
0.5.2
Do not distribute any data files by @jquast in #199
Update specs and zero-width tables regarding Mc by @jquast in #200
Standalone emoji support by @jquast in #202
0.5.1
Updated generated zero and wide code tables to length of 1 to complete the previously announced removal of historical wide and zero tables. #196
0.5.0
Drop Support of many historical versions of wide and zero unicode tables. Only the latest Unicode version (17.0.0) is now shipped. The related unicode_version='auto' keyword of the wcwidth()-family of functions are ignored. list_versions() always returns a tuple of only a single element of the only unicode version supported. #195
Performance improvement of most common call without version or ambiguous_width specified by 20%. #195
New Function propagate_sgr() for applying SGR state propagation to a list of lines. #194
Improved wrap() and clip() with propagate_sgr=True. #194
Bugfix clip() zero-width characters at clipping boundaries. #194
Bugfix OSC Hyperlinks when broken mid-text by wrap(). #193
0.4.0
Bugfix: OSC Hyperlinks should not be broken by wrap() by @jquast in #191
New functions: iter_graphemes_reverse(), grapheme_boundary_before() by @jquast in #192
py-wcwidth: update to 0.3.5.
0.3.5
Re-stamp package version correctly, 0.3.4 packaged a failing test
0.3.4
bugfix our center() padding algorithm by @jquast in #188
docfix: accidental double-escapes \t -> \t by @jquast in #187
0.3.3
Add fast path for ASCII printables to width() by @hugovk in #185
Add py.typed file and Typing :: Typed classifier by @hugovk in #184
0.3.2
type hinting for full mympy --strict compliance, by @penguinolog #183
0.3.1
Add benchmarking using codspeed.io by @jquast in #180
improve width() performance by @jquast in #181
0.3.0
Major changes since 0.2.14, in order
Migrate from setup.py + setuptools to pyproject.toml + hatchling by @hugovk in #156
Small improvements to update-tables.py and wcwidth-browser.py by @jquast in #160
New: iter_graphemes() by @jquast in #165
New: width() terminal-aware string measurement by @jquast in #166
New: ljust(), rjust(), center() justify text by @jquast in #168
New: wrap() by @jquast in #169
improve wcswidth() performance ~30% by @jquast in #171
New ambigous_width=1 argument by @jquast in #172
New strip_sequences() and cut() functions by @jquast in #173
Width 0 for Default_Ignorable_Code_Point characters by @jquast in #174
Bugfix for Prepended_Concatenation_Mark characters by @jquast in #176
Fix PLIST after py-setuptools update; bump depends and revision
py-wcwidth: switch to wheel.mk
py-wcwidth: updated to 0.2.10 0.2.10 2023-11-13 Bugfix accounting of some kinds of emoji sequences using U+FE0F Variation Selector 16. Updated Specification.
py-wcwidth: updated to 0.2.5 0.2.5: Do not depend on pkg_resources module for list_versions() function.
py-wcwidth: updated to 0.2.2 0.2.2: Support *ALL* Unicode Versions (0.4.1 through 13.0.0)
Import wcwidth-0.1.7 as py-wcwidth This Library is mainly for those implementing a Terminal Emulator, or programs that carefully produce output to be interpreted by one Originally packaged in pkgsrc-wip by: - K.I.A.Derouiche