Skip to content

Releases: german-one/wtswidth---Windows-Terminal-string-width

wtswidth v1.2

06 Dec 17:23
Compare
Choose a tag to compare

Changes:

  • makes all gc=Cf, GCB=CN codepoints zero-width, but also
    treats them as Extender codepoints
  • updates the tables to Unicode 16.0

Related Windows Terminal PR:
microsoft/terminal#18285

wtswidth v1.1

01 Sep 09:23
Compare
Choose a tag to compare

Changes:

  • The tool now accepts several string arguments at once.
  • (breaking) The string widths are written as list of numbers of character cells. Previously the return code has been used.
    Reasons:
    • not more than one value can be returned at a time
    • the return value on platforms other than Windows might be limited to 0..255, where the original value is narrowed to its 8 low order bits
  • Incorporates the fix for spacing marks in Windows Terminal. (see Give spacing marks space)

wtswidth v1.0

18 Aug 10:45
b56c505
Compare
Choose a tag to compare

These are builds from the initially committed code.
Pass a string to the utility. The return value is the width of the string as number of columns in the Windows Terminal window. Test scripts are included.