rivo/uniseg
View on GitHub ↗ ★ 742 Go
Unicode Text Segmentation, Word Wrapping, and String Width Calculation in Go
3 mentions on Hacker News by 3 people: 0 stories, 3 comments · first 2021-03-23 · latest 2025-12-02
20082026
-
…https://developer.apple.com/documentation/swift/string#Accessing-String-Elements Go // https://pkg.go.dev/github.com/rivo/uniseg Normalize strings A character like é can be represented in different forms: either as one codepoint (U+00e9)…
comment by fainpul · 2025-12-02 · in Dark Corners of Unicode (2015) -
…that same flawed algorithm in your application to make it work in those terminals. [1] https://pkg.go.dev/github.com/rivo/uniseg#hdr-Monospace_Widt...
comment by rivo · 2023-08-08 · in Terminal Support for Emoji -
…with skin tone modifiers. Currently the best way I know to do this is to use the uniseg library. https://github.com/rivo/uniseg
comment by makeworld · 2021-03-23 · in Darker Corners of Go