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: Better emoji support Date: Mon, 20 Sep 2021 12:53:21 +0300 Message-ID: <83y27r1sku.fsf@gnu.org> 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> <87ee9jhint.fsf@gmail.com> <838rzr3fhm.fsf@gnu.org> <87h7efk5c3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5849"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, kevin.legouguec@gmail.com To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 20 11:54:02 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 1mSFzu-0001JJ-52 for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Sep 2021 11:54:02 +0200 Original-Received: from localhost ([::1]:53872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSFzs-0007wz-9O for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Sep 2021 05:54:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSFzM-0007Ib-Kt for emacs-devel@gnu.org; Mon, 20 Sep 2021 05:53:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54654) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSFzM-0007SM-Ay; Mon, 20 Sep 2021 05:53:28 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4272 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 1mSFzL-0000DV-Ti; Mon, 20 Sep 2021 05:53:28 -0400 In-Reply-To: <87h7efk5c3.fsf@gmail.com> (message from Robert Pluim on Mon, 20 Sep 2021 10:40:28 +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:275120 Archived-At: > From: Robert Pluim > Cc: Kévin Le Gouguec , > emacs-devel@gnu.org > Date: Mon, 20 Sep 2021 10:40:28 +0200 > > >>>>> On Mon, 20 Sep 2021 09:53:09 +0300, Eli Zaretskii said: > >> 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". > > Eli> IMO, that's what we want; the emoji sequences should be handled via > Eli> composition-function-table, not via the fontset. > > The emoji sequences can be handled by composition, since the relevant > codepoints will be from the 'emoji' script. But codepoints with > Emoji_Presentation=No will still be 'symbol' or similar, so how can > composition-function-table affect their font-selection? AFAIU, currently this could only be handled if the user has a font that can display both those Emoji_Presentation=No characters and those Emoji_Presentation=Yes. In the future, we could perhaps improve that by modifying the logic in fontset.c. I think the presentation of the Emoji appearance for non-Emoji characters followed by VS-16 is less important than being able to display sequences of Emoji characters, so we will be doing OK, IMO, if Emacs 28 only supported the latter.