From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#54562: 28.0.91; Emoji sequence not composed Date: Mon, 28 Mar 2022 19:07:53 +0300 Message-ID: <834k3i9i1y.fsf@gnu.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13321"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, larsi@gnus.org, 54562@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 28 18:08:12 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 1nYrud-0003Ez-Lc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Mar 2022 18:08:11 +0200 Original-Received: from localhost ([::1]:51136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nYruc-0008VA-6l for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Mar 2022 12:08:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYruU-0008Uk-2A for bug-gnu-emacs@gnu.org; Mon, 28 Mar 2022 12:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36898) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nYruT-0008CO-Pi for bug-gnu-emacs@gnu.org; Mon, 28 Mar 2022 12:08:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nYruT-0005wh-KS for bug-gnu-emacs@gnu.org; Mon, 28 Mar 2022 12:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Mar 2022 16:08: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.164848368122849 (code B ref 54562); Mon, 28 Mar 2022 16:08:01 +0000 Original-Received: (at 54562) by debbugs.gnu.org; 28 Mar 2022 16:08:01 +0000 Original-Received: from localhost ([127.0.0.1]:59028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYruS-0005wT-Oe for submit@debbugs.gnu.org; Mon, 28 Mar 2022 12:08:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYruR-0005wG-HR for 54562@debbugs.gnu.org; Mon, 28 Mar 2022 12:08:00 -0400 Original-Received: from [2001:470:142:3::e] (port=38608 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYruM-0008Bc-0m; Mon, 28 Mar 2022 12:07:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=9EgJ1wf/FDGoCMSy0qil30Oc0UDuPltP2OasKkcEkQc=; b=dZWR+c7TzYRON1KTZlQG Uia5ijp0PuIxgX0syoFkbUmB7KVqJ/NlXk8d0PH3DGm6a8oEa5GuiHtd1p7sItwDl06rHoUbmI0m9 eOcVCmZbl9/H7UluepYwnFHki/Xxj8jwF2gjV+grKsfkKYkCRWg0awEU9C3DSdc12nENiMRW7CQNM O7voYSEuFTxfEWuL5fmjY0yX9z4FqSZAPgn8T9JuQ8gPQaF9N7O0jyNSXAZmQe3e90MvZTzwfpx93 2z0GC9Nm9ReD/MfkxUhLpH16HXgxg2IKLsmDgThHaVyIscR7CcuVI9Z0F2im+VxC4nZkn9MwNj0CL JF058fSwjhuVLA==; Original-Received: from [87.69.77.57] (port=1085 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYruJ-0004ic-M4; Mon, 28 Mar 2022 12:07:53 -0400 In-Reply-To: <871qymt96j.fsf@gmail.com> (message from Robert Pluim on Mon, 28 Mar 2022 16:59:16 +0200) 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:229023 Archived-At: > From: Robert Pluim > Cc: luangruo@yahoo.com, larsi@gnus.org, 54562@debbugs.gnu.org > Date: Mon, 28 Mar 2022 16:59:16 +0200 > > >> +static bool > >> +codepoint_is_combining_lookup_eligible (int ch) > >> +{ > >> + if ((0x20D0 <= ch && ch <= 0x20FF) || ch == 0x308) > >> + return true; > >> + return false; > >> +} > > 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)? > > You'd want to apply this to everything in Mn? Thatʼs a lot of > codepoints. Or did you mean Me? Or anything in Mn thatʼs latin? The > possibilities are endless :-) I thought about any Mn character whose canonical-combining-class property is 200 and above. The COMBINING ENCLOSING stuff will need to be added to that, of course. And we could have that option have multiple possible values, not just on/off... Btw, for sequences that include a base character and 2 or more diacritics, selecting a font that supports the first diacritic (the one which triggers the composition) might not be enough, since the rest of the diacritics could be absent from that font. Instead, we'd need something like "find the font for each one of them and then use the one which supports the largest subset of them".