{"repo":"janlelis/unicode-display_width","free":true,"listed":false,"github":"https://github.com/janlelis/unicode-display_width","clone":"git clone https://github.com/janlelis/unicode-display_width.git","description":"Monospace Unicode and Emoji character width in Ruby","language":"Ruby","stars":139,"topics":["ruby","unicode","unicode-data","monospace-font","terminal","cli","emoji","wcwidth"],"license":"MIT","category":"cli-tools","readme_excerpt":"Unicode::DisplayWidth [![[version]](https://badge.fury.io/rb/unicode-display width.svg)](https://badge.fury.io/rb/unicode-display width) Determines the monospace display width of a string in Ruby, which is useful for all kinds of terminal-based applications. The implementation is based on EastAsianWidth.txt, the Emoji specfication and other data, 100% in Ruby. It does not rely on the OS vendor (wcwidth) to provide an up-to-date method for measuring string width in terminals. Unicode version: 17.0.0 (September 2025) Gem Version 3 — Improved Emoji Support Emoji support is now enabled by default. See below for description and configuration possibilities. Unicode::DisplayWidth.of now takes keyword arguments: { ambiguous:, emoji:, overwrite: } See CHANGELOG for details. Gem Version 2.4.2 — Performance Updates If you use this gem, you should really upgrade to 2.4.2 or newer. It's often 100x faster, sometimes even 1000x and more! This is possible because the gem now detects if you use very basic (and common) characters, like ASCII characters. Furthermore, the character width lookup code has been optimized, so even when the string involves full-width or ambiguous characters, the gem is much faster now. Introduction to Character Widths Guessing the correct space a character will consume on terminals is not easy. There is no single standard. Most implementations combine data from East Asian Width, some General Categories, and hand-picked adjustments. How this Library Handles Widths Fur","default_branch":null,"files":null,"tree":[],"storefront":"/r/janlelis","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/janlelis/unicode-display_width/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}