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 12:45:44 +0200 Message-ID: <87o81prq93.fsf@gmail.com> References: <87bkxu8k7t.fsf.ref@yahoo.com> <87bkxu8k7t.fsf@yahoo.com> <83wngiba3j.fsf@gnu.org> <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> 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="8522"; 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 12:54:31 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 1nZ9Uc-00026a-G6 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Mar 2022 12:54:30 +0200 Original-Received: from localhost ([::1]:35524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZ9Ub-0004Jq-Az for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Mar 2022 06:54:29 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZ9MQ-0004bs-Hq for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2022 06:46:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37861) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZ9MQ-0002k3-82 for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2022 06:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nZ9MP-0001Ik-V3 for bug-gnu-emacs@gnu.org; Tue, 29 Mar 2022 06:46: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 10:46: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.16485507544985 (code B ref 54562); Tue, 29 Mar 2022 10:46:01 +0000 Original-Received: (at 54562) by debbugs.gnu.org; 29 Mar 2022 10:45:54 +0000 Original-Received: from localhost ([127.0.0.1]:59991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZ9MI-0001IL-7H for submit@debbugs.gnu.org; Tue, 29 Mar 2022 06:45:54 -0400 Original-Received: from mail-wr1-f41.google.com ([209.85.221.41]:47047) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZ9MG-0001I6-JX for 54562@debbugs.gnu.org; Tue, 29 Mar 2022 06:45:52 -0400 Original-Received: by mail-wr1-f41.google.com with SMTP id h4so24141622wrc.13 for <54562@debbugs.gnu.org>; Tue, 29 Mar 2022 03:45:52 -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=EA44BikHl4mLIrFNSgrpiMIzuxf+JRPt/GY0TCM0Fnc=; b=KYak+Qt5tEfNS38qNWKsvY5C+t62Ii7Dn1RjzBNEpWd4jNniSUfB7qNYmvT8vaQEAd 0tycINvpuDW/MWJy1HxV6NYNTHXEZ0k4ZJyXtLf/gD6hPp0vgD8E36PKrP813SKenwDD mzVlRkDtgdjlL14jWi9f05PGUHOw2LpLZ3WxogbRMzZ42ND2zioM758Tefe2utUQE22g ydsWRfKNYXP/vUDpKBghMBOazj8ywnQHq6igLeQCWkfFVJgWHUZ7faYTCSa+rBNbOaiU Z0FyYE/eCMgKN+S/d1X2wtRcNhtPlvj5u0OQz+DUdX+Dln/zqkqu4nSKRmLrcbKSAYB5 9J8g== 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=EA44BikHl4mLIrFNSgrpiMIzuxf+JRPt/GY0TCM0Fnc=; b=y1LksV0TYVx7TmMNwM7Lc+YomTG1gg9g1a/1u+4225La5XCbVYRUfq9Ptgj8gVkTB9 Gb9gOmL0jy0HC4sK5O+EhCsW5O2G0WOC9lLhGIZYkV0YD+6OEYr1PeaeISTUOsQXtbou kcfl3DLn+S7ozXbQD/N5Zd6BaYumbnDWOFR+3ID98YEnlHoWtXFnBXV2lcrlUT4Wpe71 bQIwfT16mP5rYx6nHBAKWeF3UcCHysrTNL+Rd13YKE5NCrC/N95yL9CIHJ8vE4/2jpyZ c3NtD1AIRpKZ3BKu/jg3vpATVmuHJd5swKwhroyRrXHlGuAdIFy8NWxkBPdKOwk0YNXw 1lKg== X-Gm-Message-State: AOAM531X3HslEGGr+92DMftAPAywZsNn6vZI1ekxUDA79sdGuP5iiZc1 N4tBIx5Eri2GEmRz9hTXElSZ6H+9U9w= X-Google-Smtp-Source: ABdhPJyBD39RW47Ih+j9rrtHsMwlwAFdW/Hqn8ALk/+orMp7ZG9BVwOvyRC7PEetJ5/ZmlXnZ10cQQ== X-Received: by 2002:a5d:6e54:0:b0:204:635:42ba with SMTP id j20-20020a5d6e54000000b00204063542bamr30299720wrz.214.1648550746305; Tue, 29 Mar 2022 03:45:46 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:b14b:e442:62ce:bf40]) by smtp.gmail.com with ESMTPSA id e14-20020a5d65ce000000b00205c0cb33e0sm5647976wrw.35.2022.03.29.03.45.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Mar 2022 03:45:45 -0700 (PDT) In-Reply-To: <834k3i9i1y.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 28 Mar 2022 19:07:53 +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:229043 Archived-At: >>>>> On Mon, 28 Mar 2022 19:07:53 +0300, Eli Zaretskii said: >> From: Robert Pluim >> Cc: luangruo@yahoo.com, larsi@gnus.org, 54562@debbugs.gnu.org >> Date: Mon, 28 Mar 2022 16:59:16 +0200 >>=20 >> >> +static bool >> >> +codepoint_is_combining_lookup_eligible (int ch) >> >> +{ >> >> + if ((0x20D0 <=3D ch && ch <=3D 0x20FF) || ch =3D=3D 0x308) >> >> + return true; >> >> + return false; >> >> +} >>=20 Eli> Any reason not to use the Unicode category here? Or do we want to Eli> support only specific characters (in which case U+0308 is still not Eli> the only one)? >>=20 >> You'd want to apply this to everything in Mn? That=CA=BCs a lot of >> codepoints. Or did you mean Me? Or anything in Mn that=CA=BCs latin?= The >> possibilities are endless :-) 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... OK. Would Me be ok for you, or would you specifically want only the codepoints from the "Combining Diacritical Marks for Symbols" block? I guess you'd want options like: 'all =3D> combining-class + enclosing 'enclosing 'combining-class (did we want to cover the 'number followed U+20E3 =3D> emoji' case with an option too?) Eli> Btw, for sequences that include a base character and 2 or more Eli> diacritics, selecting a font that supports the first diacritic (the Eli> one which triggers the composition) might not be enough, since the Eli> rest of the diacritics could be absent from that font. Instead, w= e'd Eli> need something like "find the font for each one of them and then u= se Eli> the one which supports the largest subset of them". font_range currently only has access to the first diacritic, so that would be a bigger change. And that subset had better have the same size as the number of unique diacritics, otherwise it=CA=BCs unlikely to work. Robert --=20