News for hackers. Stuff that matters.
Re:ROT8000 by GekkePrutser on Wednesday September 22, 2021 @11:21AM (#28617368)
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.

Re:ROT8000 by kasitmp on Wednesday September 22, 2021 @12:52PM (#28618642)
Real 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.
Re:ROT8000 by kyle-rb on Wednesday September 22, 2021 @01:30PM (#28619187)
In 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/

Re:ROT8000 by jfk13 on Wednesday September 22, 2021 @04:53PM (#28621654)
> 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

Re:ROT8000 by kapp_in_life on Wednesday September 22, 2021 @12:10PM (#28618080)
I 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

Re:ROT8000 by GekkePrutser on Wednesday September 22, 2021 @01:44PM (#28619367)
True, 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.
Re:ROT8000 by contravariant on Wednesday September 22, 2021 @12:41PM (#28618502)
If this always happens one way sure, but what if you also happened to include the symbol that gets translated to "brown frowning face"?