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.devel Subject: Re: Entering emojis Date: Fri, 29 Oct 2021 10:31:01 +0300 Message-ID: <83wnlwqocq.fsf@gnu.org> References: <87cznths5j.fsf@gnus.org> <83fssmuxui.fsf@gnu.org> <83bl3aux6y.fsf@gnu.org> <835ytiuvm9.fsf@gnu.org> <834k91vgie.fsf@gnu.org> <8ff3b131c5fa370d9eaf@heytings.org> <83mtmttsxz.fsf@gnu.org> <8ff3b131c56b7b2d1d6f@heytings.org> <83bl39tqnl.fsf@gnu.org> <8ff3b131c531f5254799@heytings.org> <83a6ittp5r.fsf@gnu.org> <8ff3b131c53b9df49236@heytings.org> <834k91th5c.fsf@gnu.org> <8ff3b131c5fe09753ca0@heytings.org> <83mtmtru6l.fsf@gnu.org> <8ff3b131c57f741d04e5@heytings.org> <83lf2drqx6.fsf@gnu.org> <87lf2c3k0z.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30773"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mattiase@acm.org, raman@google.com, gregory@heytings.org, schwab@linux-m68k.org, stefankangas@gmail.com, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 29 09:33:10 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mgMNy-0007qV-0y for ged-emacs-devel@m.gmane-mx.org; Fri, 29 Oct 2021 09:33:10 +0200 Original-Received: from localhost ([::1]:37518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgMNv-00041o-J0 for ged-emacs-devel@m.gmane-mx.org; Fri, 29 Oct 2021 03:33:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgMMB-0001Wc-UP for emacs-devel@gnu.org; Fri, 29 Oct 2021 03:31:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57696) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgMM9-0004pq-PH; Fri, 29 Oct 2021 03:31:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xO+UlCe2Bjh3Z6uLWt5kMaInhaIgRxIQ0t6MyS3fsEI=; b=EJWHVFg5j+Xx 5Vh+HeomGutUhoftxpVtk27QmZy2+AK0sZx/VDCiQP0o6RMVn4cjATuZ04Gxor347zFmS0pfl+cdJ DhiyW2sGt8uChJ2zOXlyJo06q2hfEIUSS5EBUcqAqFgyaHMPFvmJBViEX1gvweZxL+mtKuu6QrbK4 akpvW61S28Q6d3dwmnEKdI7EhBsmycjVRfMzI4J8ilO0xejaqJKby5+3GsYD7GxnW8oPplDXr/V6S WffVZzXdmTvgAFjjLwI6WH4uxTrmYqonEIPpPYrNLYJMClDXSHNQ11TuWY+IYIUp77TGmsPcwtG7d s1MZ/Z1CmPNUiwGL6lca6A==; Original-Received: from [87.69.77.57] (port=4602 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 1mgMM9-0003qS-9A; Fri, 29 Oct 2021 03:31:17 -0400 In-Reply-To: <87lf2c3k0z.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu, 28 Oct 2021 23:40:44 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:278171 Archived-At: > From: Lars Ingebrigtsen > Cc: Gregory Heytings , mattiase@acm.org, > emacs-devel@gnu.org, schwab@linux-m68k.org, stefankangas@gmail.com, > raman@google.com > Date: Thu, 28 Oct 2021 23:40:44 +0200 > > Eli Zaretskii writes: > > > Yes, I know. But ligatures are not the only way of handling this. > > When a font produces a ligature, i.e. a precomposed glyph that should > > be displayed instead of several characters, it produces a single font > > glyph. The other way is to produce several font glyphs, each one with > > offsets relative to the base-line. Emacs supports both ways. > > Oh, I didn't know that Emacs had support for ligatures now -- last time > I looked at it, it didn't seem to work. Or am I misreading? We have the infrastructure that supports ligatures in builds with HarfBuzz since Emacs 27. There's a TODO item which describes what is left to do before we can claim a decent support for ligatures, not just the potential for it. Right now, to have ligatures, you need to manually define character-composition rules for them, something that is too low-level to advertise as a feature ready to be used. And the definitions of those rules should be specific to the font you are using, because different fonts support different ligatures. (Some 3rd-party packages use this infrastructure, but I have yet to see a package that does it in a satisfactory manner, per the description in TODO.)