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.bugs Subject: bug#63731: [PATCH] Support Emoji Variation Sequence 16 (FE0F) where appropriate Date: Fri, 02 Jun 2023 15:58:37 +0200 Message-ID: <878rd29d9u.fsf@gmail.com> References: <87a5xrzsph.fsf@stebalien.com> <87edmzto0l.fsf@gmail.com> <83ilcbgrxo.fsf@gnu.org> <87zg5nb3m3.fsf@gmail.com> <83bki3gpai.fsf@gnu.org> <87sfbfazfp.fsf@gmail.com> <837csrgioe.fsf@gnu.org> <87jzwqb7r3.fsf@gmail.com> <83ttvuf29m.fsf@gnu.org> <87a5xmaqul.fsf@gmail.com> <83r0qxg4q0.fsf@gnu.org> <875y88bhvr.fsf@gmail.com> <83ilc8eapd.fsf@gnu.org> <83edmvcpzl.fsf@gnu.org> <87wn0n9uol.fsf@gmail.com> <83a5xjcgev.fsf@gnu.org> <87sfbb9m4y.fsf@gmail.com> <87o7ly9t6b.fsf@gmail.com> <83edmuax13.fsf@gnu.org> <87fs7a9hl3.fsf@gmail.com> <834jnqaun6.fsf@gnu.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="5183"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63731@debbugs.gnu.org, steven@stebalien.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 02 15:59:22 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1q55JJ-00018U-Qg for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Jun 2023 15:59:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q55J2-0006Z3-01; Fri, 02 Jun 2023 09:59:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q55J0-0006YK-8A for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2023 09:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q55Iz-0000c2-W9 for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2023 09:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q55Iz-0002HH-Rr for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2023 09:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Jun 2023 13:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63731 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch fixed Original-Received: via spool by 63731-submit@debbugs.gnu.org id=B63731.16857143298736 (code B ref 63731); Fri, 02 Jun 2023 13:59:01 +0000 Original-Received: (at 63731) by debbugs.gnu.org; 2 Jun 2023 13:58:49 +0000 Original-Received: from localhost ([127.0.0.1]:40517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q55In-0002Gq-6t for submit@debbugs.gnu.org; Fri, 02 Jun 2023 09:58:49 -0400 Original-Received: from mail-wr1-f42.google.com ([209.85.221.42]:61646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q55Ii-0002GX-Vl for 63731@debbugs.gnu.org; Fri, 02 Jun 2023 09:58:48 -0400 Original-Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-3090d3e9c92so2056613f8f.2 for <63731@debbugs.gnu.org>; Fri, 02 Jun 2023 06:58:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685714319; x=1688306319; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=ul4XY0CTGdctdtxAViYw1ryBMcE/sfG4zz16E3exkw0=; b=HxhaiOWRuj7ZKcd47aAIBl6JOK2wF1uXnUdtSfIKsTs0I+e6UCwF6+j/qSPtydiO0Z YVS8A+y2JKB9Ww/Z3A9YV0RsJEJgVZtXerb7wph38FH0BIRkwj4L6269WjEwnDDmLIH2 dQEk40M+CzhweUtUolIx719WixNF6HE5OnIMvoCv0OixWVd86lJXDMuc/o0DVbEoj+g0 hran4e0dLji4PPC9JAF3H28bCZwJiqkfeu+VdAK+ZC1MkPc0alg+y7aJvKtFP38Ozwtu ZiZ93T5CxcqG4bpB3Vc2JpB515JMdcRDKHwPnrp+gAAsbOtEuld0yh01jH0fXz4tenhf 6Z2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685714319; x=1688306319; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ul4XY0CTGdctdtxAViYw1ryBMcE/sfG4zz16E3exkw0=; b=iO4QG/kAKZb/QLk1yGq7NhQvc/CA/zpPcQ21koUjA8oAWFUtjsRW9G1iNCvziFK8ge Qc3QRnrrX+180tiNxiQxlgpMxMzOm3K2QOEwuJVzAppdjezom4dgGvK1eJXmaNK5VfWw kRqT2EVz31C/bpkVE2V8Wajofoh5eMffILu1HbXsCMmDQhv9byPZlwOEPQEBXV3m0B5H MpO6fTlosXcl2EqkOokNbPoOE+qVl9U8f4HkdsDbKSnSR7HEAivaVL5TNcQRSd4Vypbg XWS9OdEhiqHyIf7iQAkwJYB2szMS4Ntj7j7vibAGwcgjleNM3Jm+syhdNmiVOwJtjsGp Pkqg== X-Gm-Message-State: AC+VfDxs+1DKUdI4kLdwzMifa5rx2VOG3t3hHhWXln5M0Hs8L/Ne04Or tFqnzTtgqWHk3hZewZUh4f8= X-Google-Smtp-Source: ACHHUZ6sS3L/AtgorC0cyxscNObw5eMeMhdA1RcoKggDqMFDgROTuFJ8Bu0AYJ5V1WkjARHQcZh9Zw== X-Received: by 2002:a5d:65c2:0:b0:30a:e3d8:bd1f with SMTP id e2-20020a5d65c2000000b0030ae3d8bd1fmr61474wrw.28.1685714318794; Fri, 02 Jun 2023 06:58:38 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id y14-20020a5d470e000000b002fed865c55esm1769107wrq.56.2023.06.02.06.58.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jun 2023 06:58:38 -0700 (PDT) In-Reply-To: <834jnqaun6.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 02 Jun 2023 15:58:05 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262768 Archived-At: >>>>> On Fri, 02 Jun 2023 15:58:05 +0300, Eli Zaretskii said: >> CHAR+VS-15 and CHAR+VS-16 correctly choose text and emoji >> representation, but CHAR+VS-15 results in the text representation on= ly >> if CHAR is not an emoji. If it is an emoji, the font selected for it >> will always be the emoji font. Eli> And an Emoji font, when presented with CHAR+VS-15 sequence doesn't Eli> produce a textual-representation glyph for CHAR? I'd expect it to. No. Eli> If Emoji fonts don't produce textual-representation glyphs in this Eli> case, I wonder how can this work at all. Because if we select some Eli> non-Emoji font, it will probably not know about VS-15, so we will = be Eli> left with VS-15. Are we supposed to handle that ourselves, instea= d of Eli> relying on the font and the shaping engine? >> I=CA=BCve tried forcing font_range to use the font for the 'symbol' = script >> for EMOJI+VS-15, instead, but that resulted in composition >> failing. It=CA=BCs finding what appears to be the default system font, not what=CA= =BCs specified in the fontset for 'symbol', so that=CA=BCs one reason why composition fails. Even with 'use-default-font-for-symbols' nil. Eli> That's what I'd expect: non-Emoji fonts don't know about VS-15. Right Eli> What does HarfBuzz's hb-view do with such sequences, when using No= to Eli> Color Emoji font? Sequence Font Result 23e9 fe0e system black box 23e9 fe0e Symbola correct text representation 23e9 fe0e NotoEmoji correct text representation 23e9 fe0e NotoColorEmoji blank And on emacs-29, Symbola and NotoEmoji compose that sequence correctly. Now I just need to persuade emacs-30 to use one of them. Robert --=20