3 ms·
I'm trying to imagine a use case for grapheme-wise truncate that wouldn't be better served by counting bytes, code points, pixels, or some sort of localized let
by bcoates 13y ago
I'm trying to imagine a use case for grapheme-wise truncate that wouldn't be better served by counting bytes, code points, pixels, or some sort of localized letter-counting convention.
- millstone 13y agoHow about implementing backspace in a text editor?
- gliese1337 13y agoThat only requires being able to identify the boundaries of the last grapheme. It does not require counting them all.
- millstone 13y agoSo you acknowledge that determining grapheme ranges is important - you just don't see the need to count the ranges? If so, sure, I agree. The counting example is contrived. Truncation, navigation, text selection, etc. are more interesting and practical applications.
- Daniel_Newby 13y agoMost editors identify a grapheme by (row,column) coordinate.