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.bugs Subject: bug#63731: [PATCH] Support Emoji Variation Sequence 16 (FE0F) where appropriate Date: Mon, 29 May 2023 18:13:14 +0200 Message-ID: <87sfbfazfp.fsf@gmail.com> References: <87a5xrzsph.fsf@stebalien.com> <83pm6nlhll.fsf@gnu.org> <87v8gfmqyt.fsf@gmail.com> <83ilcflbua.fsf@gnu.org> <87mt1rmjjg.fsf@gmail.com> <83v8gfjnzj.fsf@gnu.org> <87edn3mbr3.fsf@gmail.com> <83mt1rjg69.fsf@gnu.org> <875y8fm7x7.fsf@gmail.com> <83lehbjdjd.fsf@gnu.org> <87wn0vkqn1.fsf@gmail.com> <83jzwvj94x.fsf@gnu.org> <87h6rw8y82.fsf@gmail.com> <83353gipww.fsf@gnu.org> <87edmzto0l.fsf@gmail.com> <83ilcbgrxo.fsf@gnu.org> <87zg5nb3m3.fsf@gmail.com> <83bki3gpai.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="blaine.gmane.org:116.202.254.214"; logging-data="27816"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63731@debbugs.gnu.org, steven@stebalien.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 29 18:14:23 2023 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 1q3fVn-0006zy-47 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 May 2023 18:14:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3fVU-0007kf-Jj; Mon, 29 May 2023 12:14:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3fVT-0007k7-38 for bug-gnu-emacs@gnu.org; Mon, 29 May 2023 12:14:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q3fVS-00027h-9w for bug-gnu-emacs@gnu.org; Mon, 29 May 2023 12:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q3fVS-0006KZ-53 for bug-gnu-emacs@gnu.org; Mon, 29 May 2023 12:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 May 2023 16:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63731 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 63731-submit@debbugs.gnu.org id=B63731.168537680424260 (code B ref 63731); Mon, 29 May 2023 16:14:02 +0000 Original-Received: (at 63731) by debbugs.gnu.org; 29 May 2023 16:13:24 +0000 Original-Received: from localhost ([127.0.0.1]:58948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3fUq-0006JE-1k for submit@debbugs.gnu.org; Mon, 29 May 2023 12:13:24 -0400 Original-Received: from mail-wr1-f46.google.com ([209.85.221.46]:57594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3fUn-0006Iw-ME for 63731@debbugs.gnu.org; Mon, 29 May 2023 12:13:22 -0400 Original-Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-30ad99fa586so3153911f8f.2 for <63731@debbugs.gnu.org>; Mon, 29 May 2023 09:13:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685376796; x=1687968796; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=rcLzAvzU74S7JSciuq6v4b/JfV2iBA3v4VkzOZW0HVg=; b=Zk3FOYMJlzf7nZEMFpgShrvLY337OTsXhkBdagI+4sSyLlswpT+0W8SjtT5lpRc325 Av9Fc1nBX9A62Z9T8kJPVawlJjfTIJI3Kot9f2d2RBuek1/vAYEFqp4cK9yHtdyli7KV GXx7fzxgBKpPJOJ5XqahC8Pkyi9xrId9ZXjQzsnkUELnZ336ulVzMdKt+w2bq4OGd+db 2e5JCePTz0V+m0PFA8vmOq5AEqefq6/AFBbO8SdUfJvpLdo8TliRQ39koltFl380q2yN t2DTC1OtOZyELuU7giNeDVnh9BiX2CJaSTDjmiX5tOh7R5N4bM3Ek/mbP+N72WHzjSYJ htZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685376796; x=1687968796; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rcLzAvzU74S7JSciuq6v4b/JfV2iBA3v4VkzOZW0HVg=; b=hfIKabgk8Go69a/elUw1rFF1dWNNhMKO+3vDZ9hY6qcdCC6UZHKdNo4z1kJxP9GH/E U5kD3LKW3SErl1DNX0FJGOrnz7gTgQYz8vXl7WFNqdpnrsnQvrHBTI6GUbqdTEm4JjzE 4C/maZlmQa+CKWW+7wrgaxfrQk5QGHpUUUBa77nro+8bvrGWwaLy1IhKeekZJi+toAde HFe/6vljs7xc0voErCAXdolA1KL0u/JQZLEqH6NCUJDMSrJVi1+CzrlS1uPTEKBi9mi2 G/rS6iVT2g8agnuPm19O8FbqqKr4a/XdHKi3b5P4BiEVol65N2wNcuhyLcvsAesFRkhT 1gyg== X-Gm-Message-State: AC+VfDyhOZ+jrqirQCxwdstjIMxvI0L0IAZ+m+Cg1Mm2AruZ3ZkvJOqi mRtSe8eN2okLIm7u56wWV+Gmk3SJrHs= X-Google-Smtp-Source: ACHHUZ6IkMcVXDmlOQFiXStH2iEUWLqgLzfGlOalECVHeUtHu4kMtYx0EAZwg40BRWkpObP0SFITjw== X-Received: by 2002:a5d:654a:0:b0:30a:d5e2:dc6f with SMTP id z10-20020a5d654a000000b0030ad5e2dc6fmr8792986wrv.21.1685376795629; Mon, 29 May 2023 09:13:15 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id t3-20020a1c7703000000b003f17eaae2c9sm14651341wmi.1.2023.05.29.09.13.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 May 2023 09:13:15 -0700 (PDT) In-Reply-To: <83bki3gpai.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 29 May 2023 17:55:49 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262596 Archived-At: >>>>> On Mon, 29 May 2023 17:55:49 +0300, Eli Zaretskii said: >> From: Robert Pluim >> Cc: 63731@debbugs.gnu.org, steven@stebalien.com >> Date: Mon, 29 May 2023 16:43:00 +0200 >>=20 >> >>>>> On Mon, 29 May 2023 16:58:43 +0300, Eli Zaretskii said: >>=20 >> >> display: composed to form "=F0=9F=91=8D=EF=B8=8F" (see below) >>=20 Eli> This is not what I see. I didn't use the above set-char-table-ran= ge Eli> expression literally, but instead started "emacs -Q", and then Eli> evaluated in *scratch*: >>=20 Eli> (set-char-table-range Eli> composition-function-table Eli> #xFE0F Eli> '(["\\c.\ufe0f" 1 compose-gstring-for-graphic])) >>=20 Eli> After that, the sequence U+1F44D U+FE0F displays as a single glyph, Eli> and there's no thin space after it. What am I missing? Is this Eli> somehow specific to ftcrhb font driver or something? >>=20 >> It=CA=BCs a single glyph, but that glyph contains a thin-space. I us= ed this >> to check, the second 'a' is slightly offset >>=20 >> =F0=9F=91=8D=EF=B8=8Fa >> =F0=9F=91=8Da Eli> That's because the first one shows two glyphs that are Eli> "pseudo-composed": not by the font, but by our hand-made "composit= ion" Eli> in compose-gstring-for-graphic. Try this instead: Eli> (set-char-table-range Eli> composition-function-table Eli> #xFE0F Eli> '(["\\c.\ufe0f" 1 font-shape-gstring])) Eli> so that we only see a composition if the font indeed agrees to Eli> compose. What do you see? It still displays a single glyph with a thin-space. If I customize `glyphless-char-display-control' to display hex codes for VS, then it display a hex box. So I guess that means we=CA=BCre not composing? Robert --=20