Skip to content

Why doesn't max/min Graphemes have an associated Locale? #3079

Discussion options

You must be logged in to vote

The source line you link is just an early-exit optimisation, full grapheme counting happens later, using the Graphemer package https://www.npmjs.com/package/graphemer

Graphemer claims "it is an implementation on the Default Grapheme Cluster Boundary of UAX #29." You're right that locale-specific rule variations can be used, but the default seems well-defined. (and the atproto docs should probably say something about that)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nklisch
Comment options

@nklisch
Comment options

Answer selected by nklisch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants