go-runewidth icon indicating copy to clipboard operation
go-runewidth copied to clipboard

wcwidth for golang

Results 19 go-runewidth issues
Sort by recently updated
recently updated
newest added

The [`rivo/uniseg`](https://github.com/rivo/uniseg) package has received a major update which also includes methods for grapheme cluster parsing that are much faster than the previously used `Graphemes` class. I've upgraded your package...

I stumbled over a character that, when output to the console directly, takes up two characters. But `StringWidth()` gives me `1`. This is because the first rune of this character...

`ZeroWidthJoiner` was removed after `v0.0.9`: https://github.com/mattn/go-runewidth/blob/v0.0.9/runewidth.go#L14 The next version was `v0.0.10`, but this introduced a breaking API change. While being `v0` means you can introduce breaking API changes, would it...

If LANG="zh_CN.UTF8",the Tabs(0x2500-0x257F) will return 2,but should return 1

`runewidth.StringWidth(🇩🇰)` returns 2. I haven't looked into this at all, and I have no idea what I should expect, but a width of 1 seems reasonable.

`RuneWidth` is an extremely hot codepath for some software. This PR introduces a fast path optimization that avoids table lookups for code points below 0x0300. It exploits the fact that...

I stumbled over this while working on #47. It seems that RuneWidth is not always equal to the StringWidth of a single rune. This is quite unexpected, TBH. Please see...

Added power support for the travis.yml file with ppc64le. This is part of the Ubuntu distribution for ppc64le. This helps us simplify testing later when distributions are re-building and re-releasing....

This is a question about how you are defining "width"? I'm mostly looking for a solution that gives me character width in monospaced fonts. So example in #39 and #36,...