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.bugs Subject: bug#39799: 28.0.50; Most emoji sequences =?UTF-8?Q?don=E2=80=99t?= render correctly Date: Fri, 28 Feb 2020 15:14:01 +0100 Message-ID: References: <83lfongp4p.fsf@gnu.org> <835zfrglu5.fsf@gnu.org> <83wo86g8pg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="119192"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39799@debbugs.gnu.org, mfabian@redhat.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 28 15:15:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1j7gQ4-000UtO-4Q for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Feb 2020 15:15:12 +0100 Original-Received: from localhost ([::1]:47834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7gQ3-0000hv-5R for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Feb 2020 09:15:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34868) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7gPv-0000ho-IT for bug-gnu-emacs@gnu.org; Fri, 28 Feb 2020 09:15:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j7gPu-0001MJ-91 for bug-gnu-emacs@gnu.org; Fri, 28 Feb 2020 09:15:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54888) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j7gPu-0001M2-5J for bug-gnu-emacs@gnu.org; Fri, 28 Feb 2020 09:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j7gPu-0005Qg-1N for bug-gnu-emacs@gnu.org; Fri, 28 Feb 2020 09:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Feb 2020 14:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39799 X-GNU-PR-Package: emacs Original-Received: via spool by 39799-submit@debbugs.gnu.org id=B39799.158289925120782 (code B ref 39799); Fri, 28 Feb 2020 14:15:01 +0000 Original-Received: (at 39799) by debbugs.gnu.org; 28 Feb 2020 14:14:11 +0000 Original-Received: from localhost ([127.0.0.1]:60861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j7gP5-0005P7-4C for submit@debbugs.gnu.org; Fri, 28 Feb 2020 09:14:11 -0500 Original-Received: from mail-wr1-f42.google.com ([209.85.221.42]:36781) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j7gP3-0005Ok-6F for 39799@debbugs.gnu.org; Fri, 28 Feb 2020 09:14:09 -0500 Original-Received: by mail-wr1-f42.google.com with SMTP id j16so3136482wrt.3 for <39799@debbugs.gnu.org>; Fri, 28 Feb 2020 06:14:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=HZn3feZXVe9eYlZdT/hrfs/UcNDKL5iy9mRADxmz7d4=; b=Hkpf/aCKn7pvKHNSaMhyLtOPmDRbUM3FO6TOrpXBouqBYBX4quAx+SARNm4NumTuRs BvZCyVRNY0OI68kbe8smRSpcfluHesCcS3strlEksstVQoGyzHxWyvPv7Vt7oaQQJAaM 0KiinN2jsLE+3MuwXPT8IjHw/ngG21co3WxSv6xQ5Aeyr0woOz5hHWMM4LEP67tpRbkj NkaxiStEIJW70A2ejjr2wIPDPOJUQgQwaWSoK0iJ00p2fPPTrZJ/972eCJvxgTUK7WhP cK0ZqCr9iYSSSracRPoGo5EAr99NTUqM3LQ0bvIMjCZQaZsu/wqlwETIxJfkiJi+3a1h IpIA== 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:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=HZn3feZXVe9eYlZdT/hrfs/UcNDKL5iy9mRADxmz7d4=; b=kE7hdfpSntrbgX8V1Ks1cj504yz4xmL5HrVEoPcP8ykZvk5tniB3ljpYgTDX37FyQ8 fXd+MzZx/e8zqGr3F3Y16jTr2THPEU2vukZYQuhLZR8cEdFrJCsmBpBXwN0YwHWHcvce AJI2DVn3276npeFSx646pNTw6rm8QjY6E8CbVV0bZKygX/ywGmw8H94AnD7AiOGz/d4o 1SjXfN9dlskMJgfzEZk/UnV8JLHinYqUZFb4pqtS0GPkeSSmxPdLN6GST2XJMea1N2Rh JJLSh4nRjO+wkxa6hC0ze2uBGKheyBxAE6bovLATTK/shkbRjLS600Kw5O5BLZCCoc7D s/Ww== X-Gm-Message-State: APjAAAXqfAGV9kWfjr+l0LyJVY5lt3SMQ1D57aUD3HlCfI76mrGpBVT9 IuCfBmuYqeimQlO6JCcVTHw0dTpb X-Google-Smtp-Source: APXvYqwazPfPNFfD4CL4g8X/rBZDVxO3pyrdwqIoHWAPjMBbELFc4Kyli1HqI89jW8RNdTAl2YFsxw== X-Received: by 2002:adf:bbcf:: with SMTP id z15mr5148298wrg.266.1582899242909; Fri, 28 Feb 2020 06:14:02 -0800 (PST) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id t3sm12556923wrx.38.2020.02.28.06.14.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2020 06:14:02 -0800 (PST) In-Reply-To: <83wo86g8pg.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 28 Feb 2020 15:08:59 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:176579 Archived-At: >>>>> On Fri, 28 Feb 2020 15:08:59 +0200, Eli Zaretskii said: >> From: Robert Pluim >> Cc: Mike FABIAN , 39799@debbugs.gnu.org >> Date: Fri, 28 Feb 2020 13:21:59 +0100 >>=20 Eli> I'd prefer not to add Python as prerequisite for building Emacs. = We Eli> already use Awk, so using that'd be fine. >>=20 >> I suck at awk, but my attempt is attached. Eli> Thanks. I wonder if we could make the output more human-readable.= .. Eli> Glenn, any advice or comments? Why does it need to be human-readable? The other files generated from the unicode data are not particularly readable. >> It DTRT for me under Cairo if I change my fontset settings to use >> 'Noto Color Emoji' instead of Symbola for: Eli> Is that a free font (it's from Google, AFAIK, so it might not be)?= If Eli> it is free, we could modify fontset.el to use this font if availab= le. Eli> (Or maybe there are better free Emoji fonts out there?) Its license is Apache 2.0. It seems fairly popular. I have no opinion either way. >> (#x1F300 . #x1F5FF) ;; Misc Symbols and Pictographs >> (#x1F900 . #x1F9FF) ;; Supplemental Symbols and Pictographs >>=20 >> It matches forward off the first char, so the >> composition-function-table entries all have '0' as the number of cha= rs >> to match. Would it be better to match backwards? Eli> I don't think matching backwards is better in general. Did you ha= ve a Eli> reason for thinking it was? I thought I saw a comment in composite.c that says matching is done backward, but I see that it=CA=BCs done forwards as well. >> We=CA=BCd run into the 4-character maximum for that, since some of t= he >> sequences are 7 or more characters long. Eli> If the sequences are 7 character long, then the forward-matching Eli> pattern will hit the same limitation as well, no? C-h v composition-function-table says: PREV-CHARS is a non-negative integer (less than 4) specifying how many characters before C to check the matching with PATTERN. If it is 0, PATTERN must match C and the following characters. If it is 1, PATTERN must match a character before C and the following characters. which on careful re-reading says that the lookback can=CA=BCt be more than 3 characters, but that matching forward has no limit. Eli> The ones in http://www.unicode.org/Public/emoji/12.0/emoji-sequenc= es.txt, Eli> and specifically the flag sequences and the skin color sequences. = At Eli> least AFAIU the original report. As Mike clarified, you need to change the fontsets in order to get them to display in colour (uncomposed, of course). Robert