Another use case is finding a sequence that fits in a buffer of fixed size. While truncation at arbitrary byte is self evidently wrong, truncation at a code point can be problematic too. This is related to text selection, but with the additional difficulty of not having a person in the decision loop. <br><br><div class="gmail_quote"><div dir="ltr">On Wed, Jun 20, 2018, 06:05 Martinho Fernandes &lt;<a href="mailto:rmf@rmf.io">rmf@rmf.io</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 19.06.18 22:34, Sergey Zubkov wrote:<br>
&gt;&gt; if you truly want to work with text, you usually need to work on the<br>
&gt; layer above code points - grapheme clusters.<br>
&gt; <br>
&gt; What makes interactive selection (which uses GCs) more &quot;true&quot; than<br>
&gt; rendering or  collation (to give two examples of work with text that use<br>
&gt; other kinds of code point sequences)?<br>
&gt; Perhaps we could use a list of uses.<br>
<br>
This was off-topic in the other thread, but I want to mention that<br>
Unicode 11 finally added a paragraph to UAX#29 describing what grapheme<br>
clusters are for. I find that extremely important because IMO people are<br>
constantly mistaken about the usefulness of grapheme clusters. That<br>
paragraph reads:<br>
<br>
&quot;Grapheme clusters can be treated as units, by default, for processes<br>
such as the formatting of drop caps, as well as the implementation of<br>
text selection, arrow key movement or backspacing through text, and so<br>
forth. For example, when a grapheme cluster is represented internally by<br>
a character sequence consisting of base character + accents, then using<br>
the right arrow key would skip from the start of the base character to<br>
the end of the last accent.&quot;<br>
<br>
This is important to keep in mind because the evolution of grapheme<br>
cluster rules is driven primarily by these use cases; other properties<br>
the current rules may have are accidental and should not be relied upon.<br>
<br>
-- <br>
Martinho<br>
_______________________________________________<br>
SG16 Unicode mailing list<br>
<a href="mailto:Unicode@isocpp.open-std.org" target="_blank">Unicode@isocpp.open-std.org</a><br>
<a href="http://www.open-std.org/mailman/listinfo/unicode" rel="noreferrer" target="_blank">http://www.open-std.org/mailman/listinfo/unicode</a><br>
</blockquote></div>