Hacker GitHub

← All repos

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

Mentions per year 3 mentions · busiest year 2021 (1)
20082026
  1. …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)
  2. …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
  3. …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