From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: emacs-27 60c84ad: ; * etc/TODO: Fix last change. Date: Thu, 05 Mar 2020 17:08:12 +0100 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="4054"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Mar 05 17:08:51 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 1j9t3K-0000vp-F0 for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Mar 2020 17:08:50 +0100 Original-Received: from localhost ([::1]:51842 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9t3J-0000bC-HJ for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Mar 2020 11:08:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55386) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9t2n-00005S-QL for emacs-devel@gnu.org; Thu, 05 Mar 2020 11:08:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9t2m-00019c-Ih for emacs-devel@gnu.org; Thu, 05 Mar 2020 11:08:17 -0500 Original-Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:53465) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j9t2m-00017U-8B; Thu, 05 Mar 2020 11:08:16 -0500 Original-Received: by mail-wm1-x335.google.com with SMTP id g134so6953081wme.3; Thu, 05 Mar 2020 08:08:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:gmane-reply-to-list:date:in-reply-to :message-id:mime-version; bh=3Et9Yjal3Mi3tKg+opekDVLlkREUqsSnWaLAjS7ME2g=; b=aQgkVvHnRS9KnsCKoFCIufYUtX6lvOFrv7kMJgLCb7yGWDhkborlS29qsLHetK9CwO Fw86B0wp1oOaDZoZd8jnWdAPdLAt8+IqrnYF9qexHYv932aqHj/gC3UwCldaimPt/Xq0 d8UsdmIkTbBJTV52iPRhTlt+OOBP3gl/uik0BWEMge2y+BJTDYgUcurv1wdQFsgtyQTU L7zf2Ll064hX1iogDm18zz9FzIBZ5/n4IZbJRXMUHEbxpydAsK+q9NxX1yrCtsvWat+L jqFd47xqMi97CXeBzUg6RMMzAqvMRqTeHcvrwQnsQyWC/W/TTur4HkabMEQYtF86/53U MdYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=3Et9Yjal3Mi3tKg+opekDVLlkREUqsSnWaLAjS7ME2g=; b=mfSRYXkUtffn08hRVNjJKgFnsDHsXvFS4kQMIS5FZTdC09FYFe207+7GUGw0iqq2xr xwQc5qLMD54wSClvJU0x23CI1EkD4gWtXcuu9czVOoe5w0vEwQDn9ufz1h/kqh0GENJS PADBogw32P8NldE4WdEFZpKHF+IwljNiyNTNQXBuxt6+LizHYKLGatjtOcSORjVer8kZ fqbVTdjB4PSnjK76ANo+D8pkxRiPWhpinCU5VnFlmMMdypQI4Tpt/BTfUoLDUI/ccvhP CABcTx2qTT4Zjwe9GbFZhVOI6oanTi8+04qT8TnFQ4HN77qsV2fv4ma2zmGovbzcm2HR V9Vg== X-Gm-Message-State: ANhLgQ16BqAFsqYD4v26ZqtMWOK76HePgDKC+0JBEbju99zASeiF3pcC on6kWtdq55ThQYuINwnylgbF7wPp X-Google-Smtp-Source: ADFU+vvtVDe+jGWKu49qGhsQCZoqQL+2u9OdrF4uQABepjd0GYMeLLIGcczCyuCsQa8SEAb0ZFDRsg== X-Received: by 2002:a7b:cc95:: with SMTP id p21mr9761127wma.184.1583424494344; Thu, 05 Mar 2020 08:08:14 -0800 (PST) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id v11sm33310349wrs.54.2020.03.05.08.08.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 08:08:13 -0800 (PST) Gmane-Reply-To-List: yes In-Reply-To: <83k13yvn8u.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 05 Mar 2020 17:24:01 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::335 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:245273 Archived-At: >>>>> 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 :-) 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? Robert diff --git c/admin/unidata/blocks.awk i/admin/unidata/blocks.awk index 03acf1e4be..a6844871c5 100755 --- c/admin/unidata/blocks.awk +++ i/admin/unidata/blocks.awk @@ -54,7 +54,8 @@ BEGIN { alias["enclosed alphanumerics"] = "symbol" alias["box drawing"] = "symbol" alias["block elements"] = "symbol" - alias["miscellaneous symbols"] = "symbol" + alias["miscellaneous symbols and pictographs"] = "emoji" + alias["emoticons"] = "emoji" alias["cjk strokes"] = "cjk-misc" alias["cjk symbols and punctuation"] = "cjk-misc" alias["halfwidth and fullwidth forms"] = "cjk-misc" @@ -99,7 +100,8 @@ function name2alias(name , w, w2) { else if (name ~ /cuneiform number/) return "cuneiform-numbers-and-punctuation" else if (name ~ /cuneiform/) return "cuneiform" else if (name ~ /mathematical alphanumeric symbol/) return "mathematical" - 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" else if (name ~ /canadian aboriginal/) return "canadian-aboriginal" else if (name ~ /katakana|hiragana/) return "kana" else if (name ~ /myanmar/) return "burmese" diff --git c/lisp/international/fontset.el i/lisp/international/fontset.el index 529c7bb88b..e4a34d5f1c 100644 --- c/lisp/international/fontset.el +++ i/lisp/international/fontset.el @@ -267,7 +267,8 @@ font-encoding-charset-alist (indic-siyaq-number #x1ec71) (ottoman-siyaq-number #x1ed01) (mahjong-tile #x1F000) - (domino-tile #x1F030))) + (domino-tile #x1F030) + (emoji #x1F300))) (defvar otf-script-alist) @@ -866,6 +867,9 @@ setup-default-fontset (#x1FA00 . #x1FA6F))) ;; Chess Symbols (set-fontset-font "fontset-default" symbol-subgroup '("Symbola" . "iso10646-1") nil 'prepend)) + ;; This sets up the Emoji codepoints to use prettier fonts. + (set-fontset-font "fontset-default" 'emoji + "Noto Color Emoji" nil 'prepend) ;; Box Drawing and Block Elements (set-fontset-font "fontset-default" '(#x2500 . #x259F) '("FreeMono" . "iso10646-1") nil 'prepend)