go-runewidth
                                
                                
                                
                                    go-runewidth copied to clipboard
                            
                            
                            
                        wcwidth for golang
It appears that StringWidth reports the length of certain runes incorrectly. The problem seems to be centered around languages used primarily in India (Tamil, Telugu, and Hindi are examples). Sample...
Variation Selectors 1-256 (Unicode range `0xFE00`-`0xFE0F` and `0xE0100`-`0xE01EF` report as width = 1. These are nonprintable characters and should report width 0. I think it would make sense to add...
I am trying to install go fiber 2.40.0 using gov1.15. I encountered an error saying something like: github.com/mattn/[email protected]/runewidth.go:7:2: found packages uniseg(doc.go) and main (gen_breaktest.go) in ... Has anyone else ever...
``` # go build /go/pkg/mod/github.com/mattn/[email protected]/runewidth.go:7:2: //go:build comment without // +build comment ```
- Supersedes #56 Update the rune tables to match Unicode 15.0.0 I suspect this kind of task will have to be done every time a new version of Unicode is...
```go dot := '\uF111' // a dot println(runewidth.RuneWidth(dot)) /* Linux(wsl):1 (correct) Windows 11:2 (incorrect) */ ``` go version: 1.20.4
I was try to parse terminal input command in java, but ANSI code parse is difficult, so I want to use this project. However, this project is written in Go....
Hello. I have added a new `TruncatePrefix` in addition to the `Truncate` and `TruncateLeft` method. For example, when displaying a file pathname in the terminal, the string on the right...
Not sure why this was missing. It has a significant impact on my bubbletea application. ``` goos: darwin goarch: arm64 pkg: github.com/mattn/go-runewidth │ a │ b │ │ sec/op │...