3 ms·
I would say, it should instead reverse extended grapheme clusters. The advent of emojis and emoji ZWJ sequences make those kind of "characters" especially commo
by kccqzy 10y ago
I would say, it should instead reverse extended grapheme clusters. The advent of emojis and emoji ZWJ sequences make those kind of "characters" especially common. For example the family emoji is thought of as a single "character" from the user's perspective but it actually has seven code points.
EDIT: HN ate my emoji so there's a link to its emojipedia page: http://emojipedia.org/family-man-woman-girl-boy/ http://emojipedia.org/family-man-woman-girl-boy/
- Animats 10y agoI had no idea that had been accepted. Here's Unicode TR51, with the whole set.[1] You can now specify skin tone, but cannot yet mix skin tone within a family group. Someone is probably already demanding that feature. http://www.unicode.org/reports/tr51/tr51-2.html http://www.unicode.org/reports/tr51/tr51-2.html
- legulere 10y ago> The advent of emojis and emoji ZWJ sequences make those kind of "characters" especially common. They're already common through MacOS filesystems. MacOS by standard decomposes characters (ä into ¨+a)
- masklinn 10y ago> ä into ¨+a You've reversed the encoding (the combining character follows, so U+00E4 decomposes to U+0061 U+0308), and that's a simpler case as combining characters are combining, they have very specific properties which mark them as combining characters and as continuation of a grapheme. AFAIK that's not the case for ZWJ sequences. There's also a case to be made for reverse(WOMAN ZWJ HEAVY BLACK HEART ZWJ MAN) to be MAN ZWJ HEAVY BLACK HEART ZWJ WOMAN (sadly the latter does not seem to be handled correctly, at least by Apple's rendering system, it fails to combine into a single "couple" glyph)