emacs-devel
[Top][All Lists]
Advanced

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

Re: Entering emojis


From: Lars Ingebrigtsen
Subject: Re: Entering emojis
Date: Tue, 26 Oct 2021 18:36:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

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.
:-/

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




reply via email to

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