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#54562: 28.0.91; Emoji sequence not composed Date: Tue, 29 Mar 2022 16:50:10 +0200 Message-ID: <87k0ccsti5.fsf@gmail.com> References: <87bkxu8k7t.fsf.ref@yahoo.com> <874k3m8grb.fsf@yahoo.com> <87pmmauwtp.fsf@gmail.com> <87y20y6ypi.fsf@yahoo.com> <83pmmab53s.fsf@gnu.org> <87sfr66sb7.fsf@yahoo.com> <87a6deunjj.fsf@gmail.com> <87k0ch5x8k.fsf@yahoo.com> <83h77lb6km.fsf@gnu.org> <871qyod5d5.fsf@gnus.org> <87zglc2q14.fsf@yahoo.com> <87y20vtor6.fsf@gmail.com> <87a6db2ajo.fsf@yahoo.com> <87mthatt5h.fsf@gmail.com> <838rsu9twq.fsf@gnu.org> <875ynytfce.fsf@gmail.com> <837d8e9q6x.fsf@gnu.org> <871qymt96j.fsf@gmail.com> <834k3i9i1y.fsf@gnu.org> <87o81prq93.fsf@gmail.com> <83sfr17zkg.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="22785"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, larsi@gnus.org, 54562@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 29 16:51:22 2022 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 1nZDBq-0005lr-4f for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Mar 2022 16:51:22 +0200 Original-Received: from localhost ([::1]:37594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZDBo-000233-Ux for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Mar 2022 10:51:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44668) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZDBW-0001bi-9g for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2022 10:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39430) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZDBW-0001yW-0d for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2022 10:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nZDBV-0001na-Ta for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2022 10:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Mar 2022 14:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54562 X-GNU-PR-Package: emacs Original-Received: via spool by 54562-submit@debbugs.gnu.org id=B54562.16485654206864 (code B ref 54562); Tue, 29 Mar 2022 14:51:01 +0000 Original-Received: (at 54562) by debbugs.gnu.org; 29 Mar 2022 14:50:20 +0000 Original-Received: from localhost ([127.0.0.1]:33327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZDAp-0001me-Mm for submit@debbugs.gnu.org; Tue, 29 Mar 2022 10:50:19 -0400 Original-Received: from mail-wr1-f49.google.com ([209.85.221.49]:38483) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZDAn-0001mK-HI for 54562@debbugs.gnu.org; Tue, 29 Mar 2022 10:50:17 -0400 Original-Received: by mail-wr1-f49.google.com with SMTP id i4so6368372wrb.5 for <54562@debbugs.gnu.org>; Tue, 29 Mar 2022 07:50:17 -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=lIguDyQ9kC2QH+XBcy05H9VxTXzC4S7EawXMJZjX3LA=; b=SOFByVni4fVuiabGBoDV15c4i/2pA83Q5ZVhJwND8qjzdC2P1K6d9jHESekXORZZDp C4paTWhv1kLTQ0b+OicJx8xVw8N7FyqxW8ZFumr0D5bPBZh3eoUJrGCsmuubQ2f+Otfq jsVxJm9J9pTTDvPbNgKK4lVmtf5nJqDlLT4+BsHiHa3dI8iK8FZfhDB5RBh2EWXoGODa GMd7w2eq9wXQFXm4ic8bfDLSLCFOjKgdNV2zht6S2ifTVXlwimJSm4GW81NroAiIhXEb QvuQ5TZTdGyZLp7ZbHVKukzbfo3wgiP8Bxaxj/oMvv9I5prkG834EmLZQzW0EEJqB51p yWAA== 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=lIguDyQ9kC2QH+XBcy05H9VxTXzC4S7EawXMJZjX3LA=; b=Ll5XmGKcyaVdaT5HaMmLYmgiQFMVU9koSMLOdVcOgg/tlPP8MT9wiSyppXc/G9N2RR myR3oc3280ZIqaXE70kXKgk9yk83mSIAySmkpSmpdf0CB5V0yK5kFkUp/A9NtceR5p9h a2RHOKO0vjL5+FHKIDz3mEYliL0MmxyPEOL7i3Yurk4RM/HhtN5YSb3s7qlHLIes81dO GfhyC0Od/YKarXbGMWdHGldajYsyoo2AQ4xcnLCqfk1uiAHRo+A2dIpFv9ZC5rFhqCMS zEKRWV3K2bAn10IYDnkhiS9OFX7wZuWTQ/2jw2KeibH18j9MQDyaHXyA6Epsrk7LAjEu X8ug== X-Gm-Message-State: AOAM5319N7CKlH/uPJ3K/pbH0oMI7cRGDIgP/TtpMhzz+ljS0Ul5lKDb VGmiHkyndL9Ueuz9nmKpvAIMr8x0jaw= X-Google-Smtp-Source: ABdhPJwDaavRrOGo1Lym8VxamEDQhoQPSnhz+hod2ulggNOnmW5Ai0muQ0LCcUEcWewB6k04qG8ybQ== X-Received: by 2002:a05:6000:1acc:b0:204:332b:e967 with SMTP id i12-20020a0560001acc00b00204332be967mr30987687wry.279.1648565411276; Tue, 29 Mar 2022 07:50:11 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:33bd:4493:f280:6818]) by smtp.gmail.com with ESMTPSA id q6-20020adffec6000000b00205b60faeeesm8524301wrs.24.2022.03.29.07.50.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Mar 2022 07:50:10 -0700 (PDT) In-Reply-To: <83sfr17zkg.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 29 Mar 2022 14:44:47 +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" Xref: news.gmane.io gmane.emacs.bugs:229060 Archived-At: >>>>> On Tue, 29 Mar 2022 14:44:47 +0300, Eli Zaretskii said: >> From: Robert Pluim >> Cc: luangruo@yahoo.com, larsi@gnus.org, 54562@debbugs.gnu.org >> Date: Tue, 29 Mar 2022 12:45:44 +0200 >>=20 Eli> I thought about any Mn character whose canonical-combining-class Eli> property is 200 and above. The COMBINING ENCLOSING st= uff Eli> will need to be added to that, of course. And we could have that Eli> option have multiple possible values, not just on/off... >>=20 >> OK. Would Me be ok for you, or would you specifically want only the >> codepoints from the "Combining Diacritical Marks for Symbols" block? Eli> Using Me is fine with me. OK. There are probably subtleties surrounding things like U+20D2 that I need to read up on (or we say "overlays are deprecated, let=CA=BCs ignore them"). >> I guess you'd want options like: >>=20 >> 'all =3D> combining-class + enclosing >> 'enclosing >> 'combining-class >>=20 >> (did we want to cover the 'number followed U+20E3 =3D> emoji' case w= ith >> an option too?) Eli> That's a separate issue, IMO, and it can be handled via Eli> auto-composition-emoji-eligible-codepoints, I think? We could even Eli> tell users to do that by themselves. We could, although my purist side doesn=CA=BCt want to do it, since the standard exists for a reason, dammit. Eli> We could perhaps avoid the complexity by rewriting the composition Eli> rule for diacritics. Instead of "\\c.\\c^+" with 1-character Eli> look-back, we could have several rules: Eli> "\\c.\\c^\\c^\\c^\\c^" with 4-character look-back Eli> "\\c.\\c^\\c^\\c^+" with 3-character look-back Eli> "\\c.\\c^\\c^+" with 2-character look-back Eli> "\\c.\\c^+" with 1-character look-back Eli> (in that order). I didn't test this, but if it works, maybe it co= uld Eli> solve the problem without any deep changes on the C level. That might work. What would the fallback look like? Suppose we have 4 diacritics, 3 of which are covered by the same font, and one by a different one. Would you prefer to attempt to use the font of 3 of them, or would you prefer to fall back to the font of the base character? (I=CA=BCm not sure which would give better results in practice, they might both fail) Robert --=20