emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Entering emojis


From: Robert Pluim
Subject: Re: Entering emojis
Date: Tue, 26 Oct 2021 19:09:03 +0200

>>>>> On Tue, 26 Oct 2021 19:49:56 +0300, Eli Zaretskii <eliz@gnu.org> said:

    >> From: Lars Ingebrigtsen <larsi@gnus.org>
    >> Cc: Eli Zaretskii <eliz@gnu.org>,  Gregory Heytings 
<gregory@heytings.org>,
    >> Emacs developers <emacs-devel@gnu.org>
    >> Date: Tue, 26 Oct 2021 18:36:25 +0200
    >> 
    >> So I'm trying to figure out how this all maps up.
    >> 
    >> In the labels file, we have (for instance) 👮‍♂️ (a male police officer).
    >> I can find that glyph in emoji-zwj-sequences:
    >> 
    >> 1F46E 200D 2642 FE0F                          ; man police officer       
                                      # E4.0   [1] (👮‍♂️)
    >> 1F46E 1F3FB 200D 2640 FE0F                    ; woman police officer: 
light skin tone                          # E4.0   [1] (👮🏻‍♀️)
    >> 1F46E 1F3FB 200D 2642 FE0F                    ; man police officer: 
light skin tone                            # E4.0   [1] (👮🏻‍♂️)
    >> 1F46E 1F3FC 200D 2640 FE0F                    ; woman police officer: 
medium-light skin tone                   # E4.0   [1] (👮🏼‍♀️)
    >> 1F46E 1F3FC 200D 2642 FE0F                    ; man police officer: 
medium-light skin tone                     # E4.0   [1] (👮🏼‍♂️)
    >> 1F46E 1F3FD 200D 2640 FE0F                    ; woman police officer: 
medium skin tone                         # E4.0   [1] (👮🏽‍♀️)
    >> 
    >> etc.  But there's no mapping from that glyph to these other ones except
    >> by ... being in the vicinity...  and the "woman" forms aren't variants.
    >> Hm...
    >> 
    >> Aha!  common/annotationsDerived/en.xml has
    >> 
    >> <annotation cp="👮🏻‍♂" type="tts">man police officer: light skin 
tone</annotation>
    >> <annotation cp="👮🏼‍♂" type="tts">man police officer: medium-light skin 
tone</annotation>
    >> <annotation cp="👮🏽‍♂" type="tts">man police officer: medium skin 
tone</annotation>
    >> 
    >> So I can find "man police officer" in the sequences file, and then get
    >> the derivations from that XML file?  Geez.  Well, that sounds doable,
    >> and I hope that those names for the glyphs are the same in both files.
    >> :-/

    Eli> I don't think I understand the problem.  The first 2 codepoints are in
    Eli> admin/unidata/emoji-sequences.txt, and the gender thingy is what
    Eli> determines if its "man" or "woman".  VS-16 is a no-op, and I'm not
    Eli> even sure you should produce it in these sequences.  It is only needed
    Eli> when the original character is not an emoji.

Itʼs not a no-op: it modifies U+2640 or U+2642

Iʼm not sure I understand the issue either: the base codepoint is
U+1F46E, and emoji-zwj-sequences tells you what the sequences
are. What else is needed?

Robert
-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]