From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Better emoji support Date: Fri, 17 Sep 2021 15:50:22 +0200 Message-ID: <877dffnwf5.fsf@gmail.com> References: <834kd2cypw.fsf@gnu.org> <87zguuttbm.fsf@gmail.com> <8335smcxx6.fsf@gnu.org> <87v95itsc4.fsf@gmail.com> <831r86cxdy.fsf@gnu.org> <83a6kgejp0.fsf@gnu.org> <87wnnkpjj9.fsf@gmail.com> <3E0155F6-D681-4443-A1D9-472D1836168D@traduction-libre.org> <87bl4rnyoe.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28501"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , emacs-devel@gnu.org To: Jean-Christophe Helary Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 17 15:51:08 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 1mREGh-0007A3-Ng for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Sep 2021 15:51:07 +0200 Original-Received: from localhost ([::1]:45152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mREGf-0004PJ-Nd for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Sep 2021 09:51:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mREG3-0003is-NT for emacs-devel@gnu.org; Fri, 17 Sep 2021 09:50:27 -0400 Original-Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:42720) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mREG1-000563-Ou; Fri, 17 Sep 2021 09:50:27 -0400 Original-Received: by mail-wr1-x436.google.com with SMTP id q11so15299121wrr.9; Fri, 17 Sep 2021 06:50:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=BJos0mLlGbejSS+ftCu7ru1rSt+cBVDPkRLfaN/2xtE=; b=VFaMVgVv15fD1298zppd3onX9GK3e9KFukfbMesYWRnx4ImuHJWA1WZvTKBhMpPnzM 2Ue42oGwOh2skdwoIKNfudTAWrZQueHw/MTgWFLwN1FImfJ6RNiiNM+209F5a+TgUtMW 2Oh/qgpEl+qxU4VtIpoFqxxYj7GorQeZRpqeej7+AchpOmj6dmp0eheNPMJda/OsZVzv pAWoaWuRMRPQiRG/gNPwN5+ehRhatUxtv3nc5ufSWPx3nu6X8dnTJRztjBvzWnaWYcin RgfarsumJZLbqNUrIe1H4nKK6KkEjiMZ9Mk28hSKXs9roWDQ9aqCYxMByavlZ8xvoC23 rG/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=BJos0mLlGbejSS+ftCu7ru1rSt+cBVDPkRLfaN/2xtE=; b=wp9u2LNWMp2TeTL2P/w/gHegeXtOMUZSQnjSfjhKSLu2dgx+AQnlkeIsBpAJKEx1Ai tqqjrIeq9S5qYGqAkKCX35LpXfB5Jt9wchldY1tRy0dNIHb52gy4X40iw3O+v3pY6Ie8 ramXCgkGx7ismtdb4C4h/9QKBO9avIdhoIW57J3OKMARS6s5mCUHj4d/5gl9DNDwoCOj wUAbSVDEyeWELNyC8r0p6IN9bf/Ph+sV0VhIB5boXMovQvW1e+uU5ZM9IBFeKUY0qGvS lvursyfN7dclm+WJbd3IuMObzj88mz4jW+Sal6EV1vzi8CVSdGvzjk0U2gDatdSqJBzP yj/g== X-Gm-Message-State: AOAM53221hFEhurtVibR7iyGcDTRJoNnzfwIfSaAvygYXIfV+3PWt8yX m++CV4i1nCEZFLMB6NrFrql09nxdwO4= X-Google-Smtp-Source: ABdhPJxcGghCRCF08Mo/mU11hlgCVAblY+Wg/sSGm7ep24w+4zRVwD9+u2oCfzGNG8aOIovNSetsRg== X-Received: by 2002:a05:6000:1865:: with SMTP id d5mr2586515wri.248.1631886623608; Fri, 17 Sep 2021 06:50:23 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id 198sm281509wma.16.2021.09.17.06.50.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 06:50:23 -0700 (PDT) In-Reply-To: (Jean-Christophe Helary's message of "Fri, 17 Sep 2021 22:42:46 +0900") Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=rpluim@gmail.com; helo=mail-wr1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:274877 Archived-At: >>>>> On Fri, 17 Sep 2021 22:42:46 +0900, Jean-Christophe Helary said: Jean-Christophe> Robert, Jean-Christophe> Would you mind specifying what to test and how to test= it ? It should all Just Work=E2=84=A2 :-) >From admin/notes/unicode: Visit "emoji-data.txt" with the rebuilt Emacs, and check that an appropriate font is being used for the emoji (by default Emacs uses "Noto Color Emoji"). Running the following command in that buffer will give you an idea of which codepoints are not supported by whichever font Emacs is using. (defun check-emoji-coverage (font-name-regexp) "Display a buffer containing emoji codepoints for which FONT-NAME is no= t used. This must be run from a buffer in the format of emoji-data.txt. FONT-NAME-REGEXP is checked using `string-match'." (interactive "MFont Name: ") (save-excursion (goto-char (point-min)) (let (res char name ifont) (while (re-search-forward "; Emoji [^(]+(\\(.\\)[).\uFE0F]" nil t) (setq char (aref (match-string 1) 0)) (setq ifont (car (internal-char-font nil char))) (when ifont (setq name (font-xlfd-name ifont))) (if (or (not ifont) (not (string-match font-name-regexp name))) (setq res (concat (string char) res)))) (when res (with-output-to-temp-buffer "*Check-Emoji-Coverage*" (princ (format "Font not matching '%s' was used for the following= characters:\n%s" font-name-regexp (reverse res)))))))) Robert --=20