From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Entering emojis Date: Tue, 26 Oct 2021 19:49:56 +0300 Message-ID: <83bl3bybm3.fsf@gnu.org> References: <87cznths5j.fsf@gnus.org> <83zgqxymd3.fsf@gnu.org> <878rygj4gt.fsf@gnus.org> <83wnm0zz0q.fsf@gnu.org> <874k94j3rn.fsf@gnus.org> <83v91kzydh.fsf@gnu.org> <87tuh4holf.fsf@gnus.org> <822aec9d01909cecfc6c@heytings.org> <87a6iwhltf.fsf@gnus.org> <83tuh4zfg5.fsf@gnu.org> <87y26gfobr.fsf@gnus.org> <87tuh4f1ie.fsf@gnus.org> <87lf2fg44h.fsf@gnus.org> <87h7d3g2uu.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29551"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, stefankangas@gmail.com, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 26 18:53:22 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mfPhR-0007Tu-Ig for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Oct 2021 18:53:21 +0200 Original-Received: from localhost ([::1]:45246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfPhQ-0001FT-Fb for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Oct 2021 12:53:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfPeC-0005wt-FL for emacs-devel@gnu.org; Tue, 26 Oct 2021 12:50:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34746) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfPeB-0006xN-WB; Tue, 26 Oct 2021 12:50:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=yiT9FBaly8shnLywO7lLK6jvXHScOsO7fdZvi50xisk=; b=WZqWfxXgN//YqZ3irfN7 wiCMrCRjqR5r7lRyYk+P2NTSb1QNXjxZT0TQ3zQj5QQ/4iwru+99kaQIAxY+o0qvAZ865zqIARiRc tMZXT9YeVu7F+QnYz/BvEg43YXeBeprviGG+mN9KSUrvKFwN59MJeUe51aRx2H1xgn0hpa622gY4p j230In4Yiptdf7FGz4nEEzH7vQzvwGViODLWKGEawm4bSPS5hVD2E95f0xlfUOraTKqD2ll3Vxj9O dQWt4lxk9Tkm8TEPYNDsiYJW55kBaNFmNcdAN2PPFrg028hktUzSSPMYu7O2ADxT4bMbm9ocfLOKn RK92Z0q4Xo/2Pw==; Original-Received: from [87.69.77.57] (port=3607 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfPeB-0005WZ-Fi; Tue, 26 Oct 2021 12:49:59 -0400 In-Reply-To: <87h7d3g2uu.fsf@gnus.org> (message from Lars Ingebrigtsen on Tue, 26 Oct 2021 18:36:25 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:277897 Archived-At: > From: Lars Ingebrigtsen > Cc: Eli Zaretskii , Gregory Heytings , > Emacs developers > 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 > > man police officer: light skin tone > man police officer: medium-light skin tone > man police officer: medium skin tone > > 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. > :-/ I don't think I understand the problem. The first 2 codepoints are in admin/unidata/emoji-sequences.txt, and the gender thingy is what determines if its "man" or "woman". VS-16 is a no-op, and I'm not even sure you should produce it in these sequences. It is only needed when the original character is not an emoji.