From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: emacs-27 60c84ad: ; * etc/TODO: Fix last change. Date: Wed, 04 Mar 2020 17:51:44 +0200 Message-ID: <83mu8ww227.fsf@gnu.org> References: <20200229173124.11831.98476@vcs0.savannah.gnu.org> <20200229173125.E2D3A21167@vcs0.savannah.gnu.org> <83zhczxa2t.fsf@gnu.org> <83eeuay0ch.fsf@gnu.org> <83d09txw29.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="26445"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 04 16:52:39 2020 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 1j9WK7-0006mH-JD for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Mar 2020 16:52:39 +0100 Original-Received: from localhost ([::1]:36058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9WK6-00055j-KF for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Mar 2020 10:52:38 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50346) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9WJZ-0004dj-Mb for emacs-devel@gnu.org; Wed, 04 Mar 2020 10:52:06 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53481) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j9WJZ-00026k-60; Wed, 04 Mar 2020 10:52:05 -0500 Original-Received: from [176.228.60.248] (port=2322 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j9WJY-0004uI-HH; Wed, 04 Mar 2020 10:52:05 -0500 In-Reply-To: (message from Robert Pluim on Wed, 04 Mar 2020 08:23:33 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:245220 Archived-At: > From: Robert Pluim > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > Date: Wed, 04 Mar 2020 08:23:33 +0100 > > >>>>> On Tue, 03 Mar 2020 18:06:06 +0200, Eli Zaretskii said: > >> What should be done here? Create another char table analagous to > >> char-script-table, add all the emojis from emoji-data.txt to it, and > >> check whether the char is in that table in fontset.c:face_for_char? > > Eli> I think it would be simpler and cleaner to define a new script, > Eli> 'emoji', and update admin/unidata/blocks.awk to produce it for the > Eli> relevant blocks (including Variation Selectors, btw). Then no change > Eli> is needed in face_for_char, since that is only in effect for the > Eli> 'symbol' script. As a nice bonus, this will also allow a much easier > Eli> customization of the fontsets, so that fonts for symbols can be > Eli> different from fonts for emoji. > > Hmm, but a character can only have one script, no? Yes, but why would we need the Emoji to belong to more than one script? > That would put Emacs at odds with Blocks.txt, I guess thatʼs why > Unicode implemented this using character properties. Having said > that, we already donʼt exactly follow Blocks.txt anyway. Exactly. We only follow Blocks.txt when a block corresponds to some script, because scripts have a meaning for font selection. But 'symbol' is not a script in Unicode, it's entirely our own invention, and we lump there many blocks. I see no problem with moving Emoji out of there into their own script. > Ancillary question: what fonts should we use in the default fontsets > for emoji? So far I have: > > X => Noto Color Emoji (+EmojiOne?) > NS => Apple Color Emoji > Windows => ? Windows has Segoe UI Emoji as its font for Emoji. However, we only put free fonts in our fontsets, so I think only Noto Color Emoji qualifies. Users of macOS and MS-Windows can either install that font or rely on the OS built-in capabilities to find the required font.