3 ms·
I wonder how this will play with Unicode's highly complex combination rules.. (e.g. frowning face + brown texture = brown frowning face). I bet using ROT on th
by GekkePrutser 5y ago
I wonder how this will play with Unicode's highly complex combination rules.. (e.g. frowning face + brown texture = brown frowning face).
I bet using ROT on this will lead to unintended consequences because the original characters won't combine but the replaced ones will.
But anyway ROT is a dumb thing to do anyway so it doesn't have any real-world use.
- kapp_in_life 5y agoI don't think it would matter right? The output might have less characters but inverting it would still show the original text. Like hypothetically ab => frowning face + brown texture = brown frowning face => ab
- contravariant 5y agoIf this always happens one way sure, but what if you also happened to include the symbol that gets translated to "brown frowning face"?
- GekkePrutser 5y agoTrue, but some apps don't have the ability to show all these variations and may leave them out (simplify to just a face icon) when copying/pasting. Unicode interpretation is a really complex bundle of quirks these days so I'm pretty sure things will start going wrong.
- kasitmp 5y agoReal world use case: geocaching.com uses it to hide hints, so you don't read and spoil yourself by accident. It's pretty much accepted and adopted by the users. I also would ban words like "dumb" or, for another example "easy" in IT and CS contexts.
- kyle-rb 5y agoIn this case, it would be very unlikely to actually happen, for a few reasons. Almost all combining rules (including skin tone modifiers) require a zero-width joiner character between the person emoji and the modifier emoji. So really it's frowning face + ZWJ + brown texture = brown frowning face. (Although technically I don't think frowning face can be modified.) Also, there are relatively few ZWJ combinations. Technically, there are some older combination emojis that predate ZWJ, mainly the flags, which are composed of two single-letter emojis, e.g. regional-indicator-U + regional-indicator-S = United States flag. So I guess it might be possible to get a couple of those. And in any case, I think this page assumes that you're staying within the bounds of the basic multilingual plane (it mentions a self-inverting transform would be ROT32768), which doesn't include emojis or skin tone modifiers. [1] https://emojipedia.org/emoji-zwj-sequence/ https://emojipedia.org/emoji-zwj-sequence/
- jfk13 5y ago> Almost all combining rules (including skin tone modifiers) require a zero-width joiner character No, the skin tone modifiers apply directly to eligible person emojis; no ZWJ is involved. (Unless other modifiers that require ZWJ are also present, such as the gender signs.) https://unicode.org/emoji/charts/full-emoji-modifiers.html https://unicode.org/emoji/charts/full-emoji-modifiers.html