Skip to content

Commit f113ee7

Browse files
committed
woops wrote the same message twice
1 parent 2997b05 commit f113ee7

4 files changed

Lines changed: 8 additions & 14 deletions

File tree

bin/update-tables.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -800,11 +800,7 @@ def parse_indic_syllabic_category(fname: str) -> dict[str, TableDef]:
800800
"""
801801
Parse IndicSyllabicCategory.txt for Consonant property.
802802
803-
Virama is not generated here — it is a small, stable set maintained as a hardcoded frozenset
804-
(_ISC_VIRAMA_SET) in wcwidth.py for O(1) lookup.
805-
806-
See
807-
https://www.unicode.org/reports/tr44/#Indic_Syllabic_Category
803+
See https://www.unicode.org/reports/tr44/#Indic_Syllabic_Category
808804
"""
809805
print(f'parsing {fname} for ISC: ', end='', flush=True)
810806
values_by_isc: dict[str, set[int]] = {val: set() for val in ISC_VALUES}

docs/intro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ languages.
455455
History
456456
=======
457457

458-
0.5.3 *2026-01-29*
458+
0.5.3 *2026-01-30*
459459
* **Bugfix** Brahmic using Virama conjunct formation. `Issue #155`_, `PR #204`_.
460460

461461
0.5.2 *2026-01-29*

docs/specs.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Specification
66

77
This document defines how this Python wcwidth library measures the printable width of characters of
88
a string. This is not meant to an official standard, but as a terse description of the lowest level
9-
API functions, currently this is just :func:`wcwidth.wcwidth` and :func:`wcwidth.wcswidth`.
9+
API functions :func:`wcwidth.wcwidth` and :func:`wcwidth.wcswidth`.
1010

1111
The :func:`wcwidth.iter_graphemes` function is mainly specified by `Unicode Standard Annex #29`_.
1212

@@ -117,7 +117,7 @@ formation: the font engine merges the consonants into a single ligature glyph.
117117
- ZWJ (`U+200D`_) after a virama is consumed without breaking conjunct state,
118118
supporting explicit half-form requests (virama + ZWJ + consonant).
119119

120-
See also: `L2/2023/23107`_ Proper Complex Script Support in Text Terminals.
120+
See also: `L2/2023/23107`_ "Proper Complex Script Support in Text Terminals".
121121

122122
.. _`U+0000`: https://codepoints.net/U+0000
123123
.. _`U+0001`: https://codepoints.net/U+0001

wcwidth/wcwidth.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,11 @@ def wcswidth(
244244
245245
:param pwcs: Measure width of given unicode string.
246246
:param n: When ``n`` is None (default), return the length of the entire
247-
string, otherwise only the first ``n`` characters are measured. This
248-
argument exists only for compatibility with the C POSIX function
249-
signature.
247+
string, otherwise only the first ``n`` characters are measured.
250248
251-
Suggested to always use python's string slicing capability, ``wcswidth(pwcs[:n])`` This
252-
argument is a holdover from the POSIX function for matching signatures. Be careful that
253-
``n`` is at grapheme boundaries.
249+
Better to use string slicing capability, ``wcswidth(pwcs[:n])``, instead,
250+
for performance. This argument is a holdover from the POSIX function for
251+
matching signatures. Be careful that ``n`` is at grapheme boundaries.
254252
255253
:param unicode_version: Ignored. Retained for backwards compatibility.
256254

0 commit comments

Comments
 (0)