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: Ligature support Date: Fri, 05 Nov 2021 21:14:32 +0200 Message-ID: <83ee7uct47.fsf@gnu.org> References: <83cznfdohr.fsf@gnu.org> <87zgqik9bk.fsf@gnus.org> <83v916d64z.fsf@gnu.org> <878ry2k6qz.fsf@gnus.org> <83tugqd488.fsf@gnu.org> <87zgqiiq8c.fsf@gnus.org> <83r1bud3or.fsf@gnu.org> <87r1buipf5.fsf@gnus.org> <83o86yd0ig.fsf@gnu.org> <87a6iiimay.fsf@gnus.org> <20211105171356.GB24570@tuxteam.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24630"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 05 20:16:30 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 1mj4hR-0006Cw-To for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Nov 2021 20:16:30 +0100 Original-Received: from localhost ([::1]:42500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mj4hO-0006N2-5p for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Nov 2021 15:16:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mj4fp-0004Gv-CY for emacs-devel@gnu.org; Fri, 05 Nov 2021 15:14:49 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37164) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mj4fp-0006Jn-1E; Fri, 05 Nov 2021 15:14:49 -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=VRed4GvH2P6w4BiEB0nKE3iXSAkgjNLyc3tpip3LQn4=; b=MEM/407qDCoo /E1RJVreiSriCnTOFwCPvmpJAbanARiAFhUmVgbhtyM2I9Cks7+D2zw6sObRFMxnQwkD/BIHI3ZoJ 4/sTkATNZ8mYu6EHITTcE63cWJx863yOisckfKy2SrzFekP61iX303CYVLdWbHXE9z2X/ydYUI2/n n3DIOSmDkzCr8muaURQXrcYgR2tVQblLJ/DxrTx0RlOYZkmh9BV1cdxHTOnX3u8KEqoLt/88rJTPi q9SaGPej7gTS+577b8ZC02UYXRvpubuMUj1P4bEGJkWEnEbuBKyOazNn6easQbw5+TsYVraQlSwsr QjTzNqBtHg6z/P2DZEcPuA==; Original-Received: from [87.69.77.57] (port=3100 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 1mj4fo-0000Mb-JF; Fri, 05 Nov 2021 15:14:48 -0400 In-Reply-To: <20211105171356.GB24570@tuxteam.de> (tomas@tuxteam.de) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:278800 Archived-At: > Date: Fri, 5 Nov 2021 18:13:56 +0100 > From: > > Thing is you sometimes want the ligature and sometimes you don't. > In languages which tend to slap words together, making a ligature > across the word junction (morpheme boundary) actually hinders > legibility. English has those too: the 'fl' in chiefly, the 'ff' > in shelfful, you get the idea. > > I wonder whether the HarfBuzz engine takes that into consideration; > it would have to know (or guess?) the language it is treating. We do pass the language to HarfBuzz when we think we know it, but the problem is Emacs itself has no good notion of the "current language". Such a notion is problematic in a multilingual editor such as Emacs. It is something we still need to figure out, and after that implement the necessary infrastructure. What we have now is rudimentary and very insufficient.