5 ms·
I think the term you are looking for is grapheme cluster. https://manishearth.github.io/blog/2017/01/14/stop-ascribing-meaning-to-unicode-code-points/ https://
by ademarre 5y ago
I think the term you are looking for is grapheme cluster.
https://manishearth.github.io/blog/2017/01/14/stop-ascribing-meaning-to-unicode-code-points/ https://manishearth.github.io/blog/2017/01/14/stop-ascribing...
- kibwen 5y agoWe're so lazy that we can't even be bothered to type "character" half the time, so "grapheme cluster" has no chance to catch on unless we can think of a "char"-style abbreviation. I'll start the bikeshed with "gracl", but ambitious folks may wish to argue for "clog" ("cluster of graphemes").
- pbiggar 5y agoIt's really an Extended Grapheme Cluster. In our codebase (Darklang) we abbreviate it to EGC.
- irrational 5y agoHow about graph? One character longer than char and probably not already in use in the area of computer science.
- lloeki 5y agoIs that what Go uses "rune" for? https://golangdocs.com/rune-in-golang https://golangdocs.com/rune-in-golang
- _nalply 5y agoNo, because a grapheme cluster is à where the letter is combined by a and ` which are two Unicode Scalar Values. A Go rune is more like one Unicode Scalar Value. However, be careful, terminology is subtle: what is a Code Point, what a Scalar Value, etc.
- tgsovlerkhgsel 5y agoNo. A "rune" is one codepoint, Golang just decided that they can't use the same name as everyone else (as is tradition in Go).
- zzt123 5y agocharacter…grapheme cluster… Charster!
- deleted 5y ago[deleted]
- homarp 5y agoclugr 'sounds' better than clog though (unless you want to evoke pipe somehow)... clugr evokes more Freddy to me
- contradistinct 5y agoElixir uses the term grapheme already: https://hexdocs.pm/elixir/1.12/String.html#graphemes/1 https://hexdocs.pm/elixir/1.12/String.html#graphemes/1
- wahern 5y agoUnicode uses the term grapheme cluster to emphasize the fact that it can be composed of a cluster of codepoints, and perhaps also to distinguish it from the linguistic term grapheme. But ultimately in the context of Unicode I think you could just get away with using grapheme. That's what Perl did when it invented Normalization Form Grapheme (NFG).