From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: use-default-font-for-symbols vs. emojis (was: Wrestling with set-fontset-font) Date: Fri, 27 Dec 2019 22:20:57 +0200 Message-ID: <835zi1pljq.fsf@gnu.org> References: <878sn2hps2.fsf@gmail.com> <87mubd61oe.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="131439"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 27 21:25:18 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ikwAf-000Y1t-Mq for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Dec 2019 21:25:17 +0100 Original-Received: from localhost ([::1]:38506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ikwAe-00063w-4y for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Dec 2019 15:25:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47523) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ikw6V-0005BG-Ks for help-gnu-emacs@gnu.org; Fri, 27 Dec 2019 15:21:00 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ikw6V-0005SR-He for help-gnu-emacs@gnu.org; Fri, 27 Dec 2019 15:20:59 -0500 Original-Received: from [176.228.60.248] (port=1719 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ikw6U-0002Fu-Ut for help-gnu-emacs@gnu.org; Fri, 27 Dec 2019 15:20:59 -0500 In-reply-to: <87mubd61oe.fsf@gmail.com> (message from =?utf-8?Q?K=C3=A9vin?= Le Gouguec on Fri, 27 Dec 2019 19:52:49 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:122109 Archived-At: > From: KΓ©vin Le Gouguec > Date: Fri, 27 Dec 2019 19:52:49 +0100 > > > However, these considerations are unlikely to be relevant to > > punctuation and other symbols, since the latter generally > > aren't specific to any culture, and don't require > > sophisticated OTF features. */ > > Do emojis challenge this heuristic, since > > - they can typically use "sophisticated OTF features" such as color, > - combining sequences[1] are a thing? We don't yet support these features, so they are largely irrelevant for Emacs at this point. And (sadly) I don't see anyone around who knows enough and has enough motivation and energy to teach Emacs to support that. > If so, could/should there be a way to distinguish "emoji" characters > from the more general "symbol" script, using e.g. data from > ? If and when we need that, it will be almost trivial. What's non-trivial is to add support for color emoji. > [1] E.g. πŸ§Ÿβ€β™‚οΈ, πŸ§Ÿβ€β™€οΈ, πŸ•β€πŸ¦Ί, πŸ΄β€β˜ οΈ, from > , or > flag sequences from > ; none of > which work inside Emacs yet AFAICT. > > To be more precise: as of commit 9ee5af31, these examples appear > "decombined". I have no idea what controls this (Harfbuzz? Cairo?)… Could be a simple matter of defining more entries in composition-function table to support these sequences (assuming the font supports them).