./textproc/ruby-unicode-display_width, Monospace Unicode character width in Ruby

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.1.2, Package name: ruby32-unicode-display_width-3.1.2, Maintainer: pkgsrc-users

Determines the monospace display width of a string in Ruby.
Implementation based on EastAsianWidth.txt and other data, 100% in
Ruby. Other than wcwidth(), which fulfills a similar purpose, it
does not rely on the OS vendor to provide an up-to-date method for
measuring string width.


Required to run:
[lang/ruby31-base]

Master sites:

Filesize: 17.5 KB

Version history: (Expand)


CVS history: (Expand)


   2024-12-11 15:04:58 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
textproc/ruby-unicode-display_width: update to 3.1.2

3.0.0 (2024-11-13)

Rework Emoji support:

* Emoji widths are now enabled by default
* Only reduce Emoji width to 2 when RGI Emoji detected (configurable)
* VS16 turns Emoji characters of width 1 into full-width
* Please note that Emoji parsing has a notable impact on performance. You
  can use the emoji: false option to disable Emoji adjustments
* Tries to detect terminal's Emoji support level automatically (from ENV
  vars)

Index fixes and updates:

* Private-use characters are considered ambiguous (were given width 1
  before)
* Fix that a few zero-width ignorable codepoints from recent Unicode were
  missing
* Consider the following separators to be zero-width:
   o U+2028 - LINE SEPARATOR - Zl
   o U+2029 - PARAGRAPH SEPARATOR - Zp

Other:

* Add keyword arguments to Unicode::DisplayWidth.of. If you are using a hash
  with overwrite values as third parameter, be sure to put it in curly
  braces.
* Using third parameter or explicit hash as fourth parameter is deprecated,
  please migrate to the keyword arguments API
* Gem raises ArgumentError for ambiguous values other than 1 or 2
* Performance optimizations
* Require Ruby 2.5

3.0.1 (2024-11-13)

* Add WezTerm and foot as good Emoji terminals

3.1.0 (2024-11-18)

Improve Emoji support:

* Emoji modes: Differentiate between well-formed Emoji (:possible) and any
  ZWJ/modifier sequence (:all). The latter is more common and more efficient
  to implement.
* Unify :rgi_{fqe,mqe,uqe} options to just :rgi to keep things simpler
  (corresponds to the former :rgi_uqe option). Most terminals that want to
  support the RGI set will probably want to catch Emoji sequences with
  missing VS16s.
* Add new :all_no_vs16 and :rgi_at modes to be able to support some
  terminals that needs these quirks
* Add alias emoji: :auto for emoji: true and emoji: :none for emoji: false
* :auto mode: Only consider terminal cells when recommending Emoji support
  level (Emoji themselves might display differently)
* :auto mode: Set default Emoji mode for unknown/unsupported terminals to
  :none
* Rename :basic mode to :vs16

3.1.1 (2024-11-19)

* Performance improvements

3.1.2 (2024-11-20)

* Performance improvements
   2024-09-22 09:37:32 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
textproc/ruby-unicode-display_width: update to 2.6.0

2.6.0 (2024-09-13)

* Unicode 16
   2023-12-17 16:59:35 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
textproc/ruby-unicode-display_width: update to 2.5.0

2.5.0 (2023-10-01)

* Unicode 15.1
   2023-01-15 16:51:24 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
textproc/ruby-unicode-display_width: update to 2.4.2

2.4.0 (2023-01-03)

* Improve performance for ASCII-only strings, by @fatkodima
* Require Ruby 2.4

2.4.1 (2023-01-03)

* Improve general performance!
* Further improve performance for ASCII strings

You should really upgrade - it's much faster now!

2.4.2 (2023-01-04)

More performance improvements:

* Optimize lookup of first 4096 codepoints
* Avoid overwrite lookup if no overwrites are set
   2022-09-14 15:34:28 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
textproc/ruby-unicode-display_width: update to 2.3.0

2.3.0 (2022-09-13)

* Unicode 15.0
   2022-08-30 17:45:42 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
textproc/ruby-unicode-display_width: update to 2.2.0

2.2.0 (2022-06-24)

* Add Hangul Jamo Extended-B block to zero-width chars, thanks @ninjalj #22
   2021-12-11 15:39:28 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
textproc/ruby-unicode-display_width: update to 2.1.0

2.1.0 (2021-09-15)

* Unicode 14.0
   2021-10-26 13:23:42 by Nia Alarie | Files touched by this commit (1161)
Log message:
textproc: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Unfetchable distfiles (fetched conditionally?):
./textproc/convertlit/distinfo clit18src.zip