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 18:27:31 +0300 Message-ID: <83h7ef1d3w.fsf@gnu.org> References: <834kd2cypw.fsf@gnu.org> <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> <83y27r1sku.fsf@gnu.org> <87czp3jt5z.fsf@gmail.com> <83lf3r1j8h.fsf@gnu.org> <83k0jb1iqg.fsf@gnu.org> <8735pzjqyu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29471"; 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 17:44:36 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 1mSLT9-0007S3-Vq for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Sep 2021 17:44:35 +0200 Original-Received: from localhost ([::1]:54942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSLT8-0006F4-9R for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Sep 2021 11:44:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSLCn-00077E-Ge for emacs-devel@gnu.org; Mon, 20 Sep 2021 11:27:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34740) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSLCn-0006xf-8c; Mon, 20 Sep 2021 11:27:41 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4850 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 1mSLCm-0007SU-QB; Mon, 20 Sep 2021 11:27:41 -0400 In-Reply-To: <8735pzjqyu.fsf@gmail.com> (message from Robert Pluim on Mon, 20 Sep 2021 15:50:49 +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:275148 Archived-At: > From: Robert Pluim > Cc: kevin.legouguec@gmail.com, emacs-devel@gnu.org > Date: Mon, 20 Sep 2021 15:50:49 +0200 > > Eli> Btw, we could perhaps tweak the composition code to produce emoji > Eli> representation for the likes of U+231A followed by VS-16, even though > Eli> U+231A etc. aren't in the emoji script. Remind me about this after > Eli> the basic emoji composition code is installed, and let's see if it > Eli> could be improved for those sequences. > > ? U+231A has Emoji_Presentation=Yes. Well, bad example. U+21AA is better. > In any case, donʼt you need at least one codepoint to be using the > emoji font to do that? (Noto Color Emoji doesnʼt have a glyph for > VS-16, so that canʼt be used) My idea is to trick the font_range function, which verifies that the sequence can be composed using a single font, to use an Emoji font when it sees something followed by a variation selector, instead of the font for the first character in the sequence. For that, the rules for Emoji sequences in composition-function-table should be anchored on the VS-n codepoints (which I think is a good idea regardless). > As another aside: lisp/language/japanese.el sets up some > composition-function-table entries for the Variation Selectors > already, so eg > > U+231A U+FE0F > > already gets composed. Yeah, that's the old kludge, we may wish to revisit it at some point.