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: Thu, 05 Mar 2020 21:04:58 +0200 Message-ID: <83blpavd0l.fsf@gnu.org> References: <20200229173124.11831.98476@vcs0.savannah.gnu.org> <83eeuay0ch.fsf@gnu.org> <83d09txw29.fsf@gnu.org> <83lfogw1gn.fsf@gnu.org> <83eeu8vy0e.fsf@gnu.org> <83v9njutez.fsf@gnu.org> <83tv33uop0.fsf@gnu.org> <83o8tbunzh.fsf@gnu.org> <83lfoevod9.fsf@gnu.org> <83k13yvn8u.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="48133"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Robert Pluim , YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 05 20:05:59 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 1j9vol-000CNz-71 for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Mar 2020 20:05:59 +0100 Original-Received: from localhost ([::1]:55004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9vok-0008HS-9r for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Mar 2020 14:05:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58749) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9vo7-0007hj-9Q for emacs-devel@gnu.org; Thu, 05 Mar 2020 14:05:20 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j9vo5-0008K2-Uy; Thu, 05 Mar 2020 14:05:18 -0500 Original-Received: from [176.228.60.248] (port=3915 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j9vo4-0004pV-Ov; Thu, 05 Mar 2020 14:05:17 -0500 In-Reply-To: (message from Robert Pluim on Thu, 05 Mar 2020 17:08:12 +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:245274 Archived-At: > From: Robert Pluim > Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org > Date: Thu, 05 Mar 2020 17:08:12 +0100 > > >>>>> On Thu, 05 Mar 2020 17:24:01 +0200, Eli Zaretskii said: > > Eli> I don't think it has little to do with the Unicode idea, it just > Eli> doesn't use the database. The blocks I was talking about are all > Eli> Emoji blocks, and Unicode is generally careful to put related > Eli> characters into the same blocks. > > If you look at the list of Emoji codepoints I sent earlier, I think > you'll agree that they're all over the place. But at least this makes > the patch smaller :-) Yes. And I think the Emoji that are outside of those 4 blocks are of the kind that by default display in their text presentation, isn't that right? > Note that with this, and Symbola disabled, this does not display a > glyph for U+1F300 on macOS unless I prepend 'Apple Color Emoji' to the > frame's fontset. Is that expected on macOS? I'm not familiar with how Emacs on macOS looks for fonts, sorry. On Windows, we will need the help of w32-find-non-USB-fonts to find the built-in fonts for Emoji (because there are no Unicode sub-range bits for Emoji), if Noto Color Emoji is not installed, so maybe something similar is needed on macOS. Maybe Yamamoto-san (CC'ed) can chime in and help us here. > - else if (name ~ /punctuation|mathematical|arrows|currency|superscript|small form variants|geometric|dingbats|enclosed|alchemical|pictograph|emoticon|transport/) return "symbol" > + else if (name ~ /transport|supplemental symbols/) return "emoji" > + else if (name ~ /punctuation|mathematical|arrows|currency|superscript|small form variants|geometric|dingbats|enclosed|alchemical|pictograph/) return "symbol" I think we should also convert "variation selectors" to "emoji". We must have the same font selected for variation selectors and for the emoticons, otherwise character composition will not work. > + (emoji #x1F300))) I think we should add at least #x1F600 and #xFE0F as representative characters for 'emoji'. > + (set-fontset-font "fontset-default" 'emoji > + "Noto Color Emoji" nil 'prepend) I think it's better to use '("Noto Color Emoji" . "iso10646-1") instead of just the family name, for consistency if nothing else. Thanks.