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 21:54:57 +0300 Message-ID: <838rzr13i6.fsf@gnu.org> References: <834kd2cypw.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> <83h7ef1d3w.fsf@gnu.org> <87tuifi254.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="40555"; 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 20:57: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 1mSOTv-000AOj-TA for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Sep 2021 20:57:35 +0200 Original-Received: from localhost ([::1]:44716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSOTu-0007af-OV for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Sep 2021 14:57:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSOS5-0005S6-8k for emacs-devel@gnu.org; Mon, 20 Sep 2021 14:55:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42376) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSOS5-0004v7-19; Mon, 20 Sep 2021 14:55:41 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1575 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 1mSORU-0007Fz-5M; Mon, 20 Sep 2021 14:55:07 -0400 In-Reply-To: <87tuifi254.fsf@gmail.com> (message from Robert Pluim on Mon, 20 Sep 2021 19:32:23 +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:275163 Archived-At: > From: Robert Pluim > Cc: kevin.legouguec@gmail.com, emacs-devel@gnu.org > Date: Mon, 20 Sep 2021 19:32:23 +0200 > > Eli> My idea is to trick the font_range function, which verifies that the > Eli> sequence can be composed using a single font, to use an Emoji font > Eli> when it sees something followed by a variation selector, instead of > Eli> the font for the first character in the sequence. For that, the rules > Eli> for Emoji sequences in composition-function-table should be anchored > Eli> on the VS-n codepoints (which I think is a good idea regardless). > > Weʼd have to raise the lookback limit for composition-function-table > rules higher than 3 (maybe only to 4). Examples? Not that it's a catastrophe. > I guess it reduces the number of entries in > composition-function-table, but then you end up with a lot of rules > for eg VS-16. Why do you think we need to have a lot of such rules? What kind of rules did you think about? > emoji-zwj-sequences.txt would result in about 840 rules, > with a lot of redundancy, which could be reduced, but I think that can > wait until after the zwj sequence stuff goes in. I guess I'm missing something because I don't see a problem there.