Lurker News

Comments (96) 22 threads

Earlier comments
lainga1 reply#
OP, does this mess up ZWJ emoji (like any of the skin-tone-modified emoji)?
chpmrc3 replies#
Sorry I'm afraid I don't understand the question.
lainga1 reply#
It's a pretty obscure edge case. You could retain ZWJs when they were between two Unicode points with the Symbol or Emoji Symbol classes, but on further reflection, it would probably be more honest to just strip the ZWJs everywhere and decompose the emojis.

EDIT: also what jedanbik said

ascorbic#
Hardly obscure. ZWJ emoji sequences are really common now.
ubernostrum#
It's how a lot of newer emoji work.

Suppose, for example, that you want the emoji "Man Facepalming Medium Skin Tone". There is no single Unicode code point for that. Instead, it uses five code points:

    U+1F926 FACE PALM
    U+1F3FD EMOJI MODIFIER FITZPATRICK TYPE-4
    U+200D ZERO WIDTH JOINER
    U+2642 MALE SIGN
    U+FE0F VARIATION SELECTOR-16
The first two compose to make the "facepalm" with desired skin tone. The last two make "man". The zero-width joiner composes the first two and last two together, so that the whole sequence renders as a single emoji.

Here's a list of emoji which use the ZWJ this way:
https://emojipedia.org/emoji-zwj-sequences/

username2231 reply#
Does anyone remember how many years of pain were caused by different line endings -- "\n" vs. "\r" vs. "\r\n"? Unicode is 10x that, and the pain is just beginning.
yuchi1 reply#
Did you mean ^10?
username223#
Probably, since it's an omnishambles on a scale I won't pretend to understand. Eight-fingered and two-thumbed humans can't type it, but they've managed to make it a joke (see zalgo text), and it only gets more ridiculous with time (see how flags are done, or emoji skin-tone modifiers). It's only a matter of time before Metafont will be easier to read and write than the hieroglyphics we're supposed to call "text."
sam1902#
I made two python script to encode and decode string into and from zero width characters: Encoder: https://pastebin.com/DGansW69 Decoder: https://pastebin.com/ZVdvjnZc

I know it's pretty basic stuff but it does the job. The encoder outputs both in stdout and into a file so you can copy/past it more easily (from Sublime Text for example)

IloveHN842 replies#
What about Firefox?
inetknght1 reply#
I, too, disprefer Chrome.
overcast1 reply#
You made that word up!
patrickaljord1 reply#
All words are made up so that's ok.

Continue this thread — 1 reply

ric2b#
Thank you!

Load more comments