grapheme cluster
English
Noun
grapheme cluster (plural grapheme clusters)
- (Unicode) A sequence of one or more Unicode code points treated as a single unit in text segmentation, typically corresponding to a user-perceived character.
- A text editor should not split a grapheme cluster when moving the cursor through an accented letter.
- 2007, Yannis Haralambous, Fonts & Encodings, O'Reilly, →ISBN, page 117:
- First, a bit of jargon: a grapheme cluster is a generalization of the notion of combining characters.
- [2017, Moritz Lenz, Perl 6 Fundamentals: A Primer with Examples, Projects, and Case Studies, Apress, →ISBN, page 115:
- Unicode calls such sequences of one base character and potentially several combining characters as a grapheme cluster.]
Usage notes
- A grapheme cluster may consist of one code point or several, such as a base letter with a combining accent or an emoji sequence joined by a zero-width joiner.
- Unicode distinguishes legacy from extended grapheme clusters. Extended grapheme clusters are used by the default text-segmentation rules.
- A grapheme cluster is a unit of text segmentation, not necessarily a single rendered glyph or a single terminal display cell.