From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Ligature support Date: Fri, 05 Nov 2021 14:42:39 +0100 Message-ID: <87zgqik9bk.fsf@gnus.org> References: <87cznths5j.fsf@gnus.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> <83wnlwqocq.fsf@gnu.org> <87wnlwyox9.fsf@gnus.org> <83lf2cq7n5.fsf@gnu.org> <87wnlnkxbo.fsf@gnus.org> <83cznfdohr.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="15137"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: mattiase@acm.org, raman@google.com, gregory@heytings.org, schwab@linux-m68k.org, stefankangas@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 05 14:49:44 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 1mizbE-0003kD-BB for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Nov 2021 14:49:44 +0100 Original-Received: from localhost ([::1]:41780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mizbC-0004PG-6V for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Nov 2021 09:49:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mizUc-0003nx-Rb for emacs-devel@gnu.org; Fri, 05 Nov 2021 09:42:55 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:57482) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mizUa-0001db-O6; Fri, 05 Nov 2021 09:42:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=b9xuQiurI0ltd34H/+dfMpjigCOdaXdgIxL+vigVdNM=; b=dM2PH52IZkKZf4uSPLP2Zvk0lt +Me+X5Q/WBweuQGzCPiBjDc/Kg5B/82VGzV4LQZJAozClULJQ8HVGDKi1lbdIzITKjcbzyLigJ+61 7QBzkSB5ls/i/iGCU/cXcBkMNlD69kc9dvQqBSwFEhcP21gVCMV9ZLNcViVJ9aTLuXW4=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mizUO-0005CI-0U; Fri, 05 Nov 2021 14:42:42 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAALVBMVEU8QEs3OkMoKCsb Gh0fICRUWGGcn6izucX09PbO0todHSFqcYEgHiEgHR/////UU9brAAAAAWJLR0QOb70wTwAAAAd0 SU1FB+ULBQ0WC0nBHr4AAAFvSURBVDjL7dExS8NAFAfwVKxIJxU/QD2vKOKUgwoFQY4DoXRpS4t1 FA3VyU3dXDTNWtDSTdLocHTyI2gmSaduxXwX3+XuEoTL5uh/SOB+9+69S6wCMsdC//DnsGXlQLmQ B0s5sJbTg6ybAXc3zHDs5Yx7+2gboeq5JSPsjlyHmuBkMLg8owYo9j3HXU4BI6x2lVdGd961n1Vg VVFxnNF4fJoBQzQxfON0eoN7qoBiRsEge73nSrPvZj2YiNhXdVvvBw80myoR8e5dfby0dQVFWJcs 7QxR0U6bM6Zgu3vR1DOKHinsrw5t1KpoYDoIvZ4j2nprS8AsE2iH/aMnP4MoVO1BcYcmIFYjCSy5 KwrkUawRJQnBKKOb+n/ASbD6pWvsEpafx2IhVHDOp1HYAPOxHAJZ4pTveLEAgaJ6PVBTAMzieEEI 5wBqXUJ8OCeQGsgUjtR3tWYxkalx0YoHGj4JSYVP4BEomJNfqU3ApzDeD3Ut/PmjBFl0AAAAJXRF WHRkYXRlOmNyZWF0ZQAyMDIxLTExLTA1VDEzOjIyOjExKzAwOjAwxemLVAAAACV0RVh0ZGF0ZTpt b2RpZnkAMjAyMS0xMS0wNVQxMzoyMjoxMSswMDowMLS0M+gAAAAASUVORK5CYII= X-Now-Playing: Anna B Savage's _A Common Turn_: "Chelsea Hotel #3" In-Reply-To: <83cznfdohr.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 05 Nov 2021 09:56:48 +0200") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:278764 Archived-At: Eli Zaretskii writes: > We have font-shape-gstring. If the font being used doesn't have a > ligature for the character sequence we pass to it, that function > returns nil, and we then display those characters "normally". Isn't > that enough? That's what I thought the design here was originally -- but that's not what's happening in general in Emacs. If I instrument font-shape-gstring and start "emacs -Q", that function is never called. It's not until I insert something that we've set up something in... composition-function-table?... that the function is called and harfbuzz is consulted. (You can confirm by setting a breakpoint on hbfont_shape.) I thought we'd just send all the text through hb_shape_full, and it would handle all this stuff. But we don't -- we only send a very small subset of the strings through that function, as far as I can tell. >> So... we need... to parse them more to get all the ligature data out >> of them and then... put it in a ... char table range? How all this >> connects is very vague to me. =F0=9F=98=80 > > As I say above, I'm not sure I understand the goal of this, given what > we have already. The goal is to send all text that represents ligatures (in the current font) through font-shape-gstring. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no