From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= Newsgroups: gmane.emacs.devel Subject: Re: Better emoji support Date: Mon, 20 Sep 2021 08:20:54 +0200 Message-ID: <87ee9jhint.fsf@gmail.com> References: <834kd2cypw.fsf@gnu.org> <87zguuttbm.fsf@gmail.com> <8335smcxx6.fsf@gnu.org> <87v95itsc4.fsf@gmail.com> <831r86cxdy.fsf@gnu.org> <83a6kgejp0.fsf@gnu.org> <87wnnkpjj9.fsf@gmail.com> <3E0155F6-D681-4443-A1D9-472D1836168D@traduction-libre.org> <87bl4rnyoe.fsf@gmail.com> <877dffnwf5.fsf@gmail.com> <875yuzciaf.fsf@gmail.com> <87tuijm9uy.fsf@gmail.com> <87lf3v2dz4.fsf@gmail.com> <87ilywl8tx.fsf@gmail.com> <877dfcz6zu.fsf@gmail.com> <83mto73mem.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="7841"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: rpluim@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 20 08:22:37 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 1mSChJ-0001q8-4C for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Sep 2021 08:22:37 +0200 Original-Received: from localhost ([::1]:34166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSChI-0003Do-0X for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Sep 2021 02:22:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSCfp-0001iQ-6K for emacs-devel@gnu.org; Mon, 20 Sep 2021 02:21:06 -0400 Original-Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:45719) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSCfi-0004Gm-Kv; Mon, 20 Sep 2021 02:21:03 -0400 Original-Received: by mail-wm1-x331.google.com with SMTP id c190-20020a1c9ac7000000b0030b459ea869so5758467wme.4; Sun, 19 Sep 2021 23:20:57 -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 :user-agent:mime-version:content-transfer-encoding; bh=Hx/WcZMYJotLBNyNeHDPWkBFPTWWSjt6FHpma760jvU=; b=c/rTbW/vzbNgIO/rHqpg13i9FpZorJ+QQgjhF0ZJ+4iYMvqBb46NlSDLHAy7k3ZHXk S/Y8Vu91upjCCF4+D417tDxvIsdW9lR+LvUWw1nbkz+paOTKsHKE8eXaw2lmriAHj5DR BdK+yOrIRybFEqTIbv2wMpV1ULpYaZIhlwuWAxxIMmiHMomqepg3it+kJEvI8K0qRmtC GHYbY2lfV6vonSa5TGSTSCnr5DWT7uqE4ZVjyul7h2ZGJkHnyo738BrWSjEvKPaWBL7u Rdh/Zj28RZrBWLEuiglEP34uYMsBgCHwo61/6eIw7YRDJCzmk+awoqkvm+BwJWSwOpWv KArA== 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:user-agent:mime-version:content-transfer-encoding; bh=Hx/WcZMYJotLBNyNeHDPWkBFPTWWSjt6FHpma760jvU=; b=HqyKfD+0Y917fV6C/KxDNBHWCxy6UVrMfYX1QNaWaWVaqTmfihc9y5HZc3aV10dbrm 2xMKAwqMQp6pQ5amLgLtsibFiaLSsCCSz9wF2JfIIOwbOVa3lCKcimFmDE6HwPxyK44M JdIB/fTk7mI5xZdqYutKVam1JDQtVvAfT1duU4Hwa7RNtLOv5G6XiwB4orW+A7RK+URd My2fzFKgeO7XsRC9cN8QU9LuMMTA46gRQ7qxnn4cI10g0FWrdEYs0mcUikhisClksxfN uz2HBBDYdLZsgVsk74M3YeWyLWGX3RikasgC7wDHHYRAbJM/4ejWlZq2+vzmNSpmgsbn fXWQ== X-Gm-Message-State: AOAM53195gb6freeA/TuYej+Bk5O3wdjB6Ef3R/z+qZH3trFiSsuLmwn rFYrQ6yjxX+ABALRPfswYVmZG8hGB5A= X-Google-Smtp-Source: ABdhPJz81vMpzwnoBzBre/n42a4pHvfEyw07zD7Gpx+1dSMp/+6YsfyxFXPntknF0qbh2h5ytfhbqA== X-Received: by 2002:a1c:ed13:: with SMTP id l19mr27805073wmh.48.1632118855809; Sun, 19 Sep 2021 23:20:55 -0700 (PDT) Original-Received: from amdahl30 ([2a01:e0a:20e:d340:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id d5sm15331594wra.38.2021.09.19.23.20.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Sep 2021 23:20:55 -0700 (PDT) In-Reply-To: <83mto73mem.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 20 Sep 2021 07:23:45 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=kevin.legouguec@gmail.com; helo=mail-wm1-x331.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:275105 Archived-At: Eli Zaretskii writes: >> From: K=C3=A9vin Le Gouguec >> Date: Sun, 19 Sep 2021 21:43:17 +0200 >> Cc: emacs-devel@gnu.org >>=20 >> > (set-fontset-font t 'emoji "Noto Color Emoji" nil 'prepend) >>=20 >> After evaluating that, it's down to: >>=20 >> > #*0=C2=A9=C2=AE=F0=9F=9B=9D=F0=9F=9F=B0=F0=9F=A5=B9=F0=9F=A7=8C=F0=9F= =A9=BB=F0=9F=AA=A9=F0=9F=AA=B7=F0=9F=AB=83=F0=9F=AB=97=F0=9F=AB=A0=F0=9F=AB= =B0 >>=20 >> So there's still something that overrides Noto Color Emoji for those >> four codepoints, IIUC. > > If you mean these four: > > =E2=86=94=E2=99=A0=E2=99=A3=E2=99=A5 > > then why do you expect them to be displayed using Noto Color Emoji? *In the long run*, when Emacs adheres fully to UTS #51, I don't expect those to be displayed with a color font by default, since their Emoji_Presentation property is "No". (IIUC, ideally we'd want Emacs to display them with a color font only if (1) users enforce it with set-fontset-font or (2) the characters are followed by U+FE0F VARIATION SELECTOR-16) *Right now* (as of commit 995a623594), I'd expect them to be displayed with Noto Color Emoji, since (1) (char-table-range char-script-table ?=E2=86=94) yields "emoji", (2) fontset.el indiscriminately slaps "Noto Color Emoji" on the whole "emoji" script. IOW my expectation comes from trying to understand what the code currently does, not necessarily from thinking it's The Right Thing. Sorry for being unclear. IIUC Robert's tentative patch[1] gets us closer to The Right Thing, by making sure (char-table-range char-script-table C) is "emoji" iff C's Emoji_Presentation property is "Yes". [1] <87a6k8l6pp.fsf@gmail.com> https://lists.gnu.org/archive/html/emacs-devel/2021-09/msg01449.html