From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Entering emojis Date: Tue, 26 Oct 2021 20:07:01 +0200 Message-ID: <87r1c7psmy.fsf@gmail.com> 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> <83bl3bybm3.fsf@gnu.org> <878ryfr9w0.fsf@gmail.com> <878ryfg07k.fsf@gnus.org> <874k93r869.fsf@gmail.com> <87r1c7ekhn.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15910"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , stefankangas@gmail.com, gregory@heytings.org, 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 20:24:59 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 1mfR86-0003sE-OD for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Oct 2021 20:24:58 +0200 Original-Received: from localhost ([::1]:59224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfR84-0005DH-RL for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Oct 2021 14:24:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53690) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfQqs-0007oa-I4 for emacs-devel@gnu.org; Tue, 26 Oct 2021 14:07:12 -0400 Original-Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:43866) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mfQqn-0006GW-Qt; Tue, 26 Oct 2021 14:07:10 -0400 Original-Received: by mail-wr1-x435.google.com with SMTP id p14so14808411wrd.10; Tue, 26 Oct 2021 11:07:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=xBuLDE0UL5ksP9wn/60hrflxD6gaYlhcSq+acVqkdLI=; b=Gp6mcCXKobJFY1fYR3QczOJRYK3LavbMe7NKWJkST8vnzonO/pF5ixl2EGg1rZbkge yDH3GiZktzfK5LIw5hmo7hozHjQ3gWPgpN5iZoLbqU9OP2DU/FI8qkzYhFvY3+j5tyxg d0yLYBDm1C+z7CAD3QhhKzwrLms6wLLCJe4cwoKZMyKyE5ccWCBglHr7hWwI4cgorsa1 bz8HxDgMIHXzW8l23qTFXI5fCFYfiTPk46bA5ELIGLKFTlWFr+QzyYYWpReATKahOjGv rh040tCyeDLHE1R8ZHPc6gCZ2CL1Nv6323FIuQMY+FXO+muixJ4RfTe6o1zXmFs7MCDB j/gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=xBuLDE0UL5ksP9wn/60hrflxD6gaYlhcSq+acVqkdLI=; b=W7et4HscBCnM00BLgF/2BOs6/DerAyi6au0InsBFfAuJmob7ghuMXstAU4EQDRlUpE 3gfGzLiC2/AXB2KCNYjfrFHdwXZ477l3fbG2Z1QPL/dk/xwpG+35HrE23mpax/zS/wxY tTlF+h6JFIjzpvInJ+l70FkcdnCkkJkQWGJ/foL9Qo8kM5a177+BTRZ470jzII2Qjple oN+A1KObKvtjHyun1ZiGvh/hIDVf21BbNGlRlilXbYA9wzyyj4zK3ay4qXD3YM7IvXE9 JDLhTu813XusWKpa32x+APh7Ws1CaurV8mH0bizCet6hTppvJ2J3aooUtbHSkBbhLues XbzQ== X-Gm-Message-State: AOAM532lTy2sLuZSQpBZU8wALASjj1EtQ0iAf2rK0TEK3wVszZZto0cC 7aZzxCHDgDJxCHbrShxjA1s= X-Google-Smtp-Source: ABdhPJyESppnRco42cFBoUhiBDmRJVYHQPDFCsfqnvLNv76kGzkVzqDIkvp4+Cvhf8q3Qq2fGTexOQ== X-Received: by 2002:a05:6000:15c6:: with SMTP id y6mr33496842wry.382.1635271622803; Tue, 26 Oct 2021 11:07:02 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id v2sm1216976wml.24.2021.10.26.11.07.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Oct 2021 11:07:02 -0700 (PDT) In-Reply-To: <87r1c7ekhn.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 26 Oct 2021 19:58:28 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=rpluim@gmail.com; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:277917 Archived-At: >>>>> On Tue, 26 Oct 2021 19:58:28 +0200, Lars Ingebrigtsen said: Lars> Right... So in emoji-sequences, we have Lars> 1F46E..1F4AC ; Basic_Emoji ; police officer = # E0.6 [63] (=F0=9F=91=AE..= =F0=9F=92=AC) Lars> and then Lars> 1F46E 1F3FB ; RGI_Emoji_Modifier_Sequence ; police officer: li= ght skin tone # E1.0 [1] (=F0=9F=91=AE=F0= =9F=8F=BB) Lars> 1F46E 1F3FC ; RGI_Emoji_Modifier_Sequence ; police officer: me= dium-light skin tone # E1.0 [1] (=F0=9F=91=AE=F0= =9F=8F=BC) Lars> 1F46E 1F3FD ; RGI_Emoji_Modifier_Sequence ; police officer: me= dium skin tone # E1.0 [1] (=F0=9F=91=AE=F0= =9F=8F=BD) Lars> and then in the zwj file we have Lars> 1F46E 200D 2640 FE0F ; RGI_Emoji_ZWJ_Sequence ; woman police offi= cer # Lars> E4.0 [1] (=F0=9F=91=AE=E2=80=8D=E2=99=80=EF=B8=8F) Lars> 1F46E 200D 2642 FE0F ; RGI_Emoji_ZWJ_Sequence ; man police office= r # Lars> E4.0 [1] (=F0=9F=91=AE=E2=80=8D=E2=99=82=EF=B8=8F) Lars> 1F46E 1F3FB 200D 2640 FE0F ; RGI_Emoji_ZWJ_Sequence ; woman police Lars> officer: light skin tone # E4.0 [1] (=F0=9F=91=AE=F0=9F=8F=BB=E2= =80=8D=E2=99=80=EF=B8=8F) Lars> 1F46E 1F3FB 200D 2642 FE0F ; RGI_Emoji_ZWJ_Sequence ; man police Lars> officer: light skin tone # E4.0 [1] (=F0=9F=91=AE=F0=9F=8F=BB=E2= =80=8D=E2=99=82=EF=B8=8F) Lars> So that all matches up, and I can go from 1F46E and get all the Lars> variants. Seems very promising; I'll give it a go. Lars> But... I can't go from "woman police officer" to "woman police o= fficer: Lars> light skin tone" by looking at the first code point. Er... what= 's the Lars> rule here, then? Lars> 1F46E plus 2640 as the next-to-last code point? You could look at the second code point, which would be one of the Emoji_Component ones (they=CA=BCre in emoji-data.txt). Robert --=20