3 ms·
No, Unicode's closest equivalent to 'single graphical character' is extended grapheme clusters, and they are explicitly defined as what should disappear when yo
by pie_flavor 3y ago
No, Unicode's closest equivalent to 'single graphical character' is extended grapheme clusters, and they are explicitly defined as what should disappear when you press backspace once.
Neither code points nor graphemes are equivalent to keystrokes in CJK languages; each character, precomposed or not, is written as a combination of other characters.
I appreciate the desire to round off a few edge cases, but remember that this is the majority of the world's population here (not counting English/commonly-used-in-English words like jalapeño - hope that ñ is precomposed!).
The only thing you can iterate ASCII-style is English minus all the diacritics in loanwords, same as ASCII itself.