From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.devel Subject: Re: Ligatures (was: Unify the Platforms: Cairo+FreeType+Harfbuzz Everywhere (except TTY)) Date: Thu, 21 May 2020 21:16:44 +0000 Message-ID: References: <20200517165953.000044d2@web.de> <83lflqblp0.fsf@gnu.org> <83ftbybio3.fsf@gnu.org> <83zha69xs2.fsf@gnu.org> <83367x9qeq.fsf@gnu.org> <0ccae2a4-533b-d15c-2884-c2f00b067776@gmail.com> <83wo5987mk.fsf@gnu.org> <99d4beed-88ae-b5cd-3ecb-a44325c8a1dc@gmail.com> <20200518215908.GA57594@breton.holly.idiocy.org> <83mu6481v3.fsf@gnu.org> <75a90563-51b4-d3b8-4832-fc0e2542af0d@gmail.com> <83blmi7hys.fsf@gnu.org> <837dx55qff.fsf@gnu.org> <834ks95cmz.fsf@gnu.org> <4faa291f-f2df-36d1-73d5-332b93a9b6d8@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="109613"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , alan@idiocy.org, emacs-devel@gnu.org To: =?UTF-8?Q?Cl=C3=A9ment_Pit=2DClaudel?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 21 23:17:57 2020 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 1jbsZh-000SQQ-Mk for ged-emacs-devel@m.gmane-mx.org; Thu, 21 May 2020 23:17:57 +0200 Original-Received: from localhost ([::1]:41334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbsZg-0000ry-Or for ged-emacs-devel@m.gmane-mx.org; Thu, 21 May 2020 17:17:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbsZ9-0008ID-FY for emacs-devel@gnu.org; Thu, 21 May 2020 17:17:23 -0400 Original-Received: from mail-oi1-x236.google.com ([2607:f8b0:4864:20::236]:46517) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jbsZ8-0006oz-Lq; Thu, 21 May 2020 17:17:23 -0400 Original-Received: by mail-oi1-x236.google.com with SMTP id b3so7433687oib.13; Thu, 21 May 2020 14:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=c6nsfoATc2hTORkO1Ym2uIQixRei5PPTWJ+5bufbepo=; b=etO+KPx3uwjPoce/LejlR43oFHC+SEPj5C5H2+hPt8L30kMytzvZnVY4CcRJL7IiZr t9O63muViH9oxcmXp/e4OUz0Mpw7Jf/1/LKP9Px1gFIZVdejTNgjNC0M1AM1Y4DAj22w ObvOK8CRXp3ojSqnHevZ8zPb2Urz0CM1EjmIaZTiVS8xsYf91ImKxO9k59OGWfp1X5u6 rXpI8G+V6kU+demKVIMEJE8FGv69kA3/tRTYtgZ/j1o0o4Jt6vqeVSPLR+Y91lOpA8cf m/Y6/5fcx39kjmY/CIUMsfpotitC2Qjh7IiAC3SwRvotGcAJhIumnBwWFFMCkoyTbnHQ 3i5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=c6nsfoATc2hTORkO1Ym2uIQixRei5PPTWJ+5bufbepo=; b=jtEt2+KRKOGI09HtXwwyqZRSQ/+pG2ZpWIOn1Vdbxho/zA/PbjCOFcmL2nrC74tIOi SA0RcE6o2U8douy9oe/HbKNYUSAb7PndB+vHp7PzkX8rv9uFmOkuNumsWpJktu/sApVp jfOGQxpoGdHTY79GyMDRzQMh23V8Yp8OLYuI4b9SM+Ye2iW9u4DHaeh9cUi21uUYLK/6 390e/0Nr44w94O36/L9tNp47/PGkGR+qHmNVyw+EToHY7TyioIMcautUU3UQpslnHVyl ZDwisAJO/mo1JzKmliM/d8bDQ3BSW/3Jp3yYxaHG5RALlRNuseAaWByPhh1e0kMAgMMF pFpQ== X-Gm-Message-State: AOAM5300f+8P7TqwbtaWBe6IVOHXb3irWxGySg/XYJz7MUkz84G5B2BY ON64yKG+jmMhasnlM/Mk3K1sqaAefPH6X+30aLI= X-Google-Smtp-Source: ABdhPJw4R8Etixiiw6oHwjFvu9kBwl1ZIphILYr8mzqURNYxvKQLBpxzMjj9Me2sPCjb0xqPKFMlSWhG1l2Did8pVGM= X-Received: by 2002:aca:c6d3:: with SMTP id w202mr457504oif.44.1590095840946; Thu, 21 May 2020 14:17:20 -0700 (PDT) In-Reply-To: <4faa291f-f2df-36d1-73d5-332b93a9b6d8@gmail.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::236; envelope-from=pipcet@gmail.com; helo=mail-oi1-x236.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:251186 Archived-At: On Thu, May 21, 2020 at 8:51 PM Cl=C3=A9ment Pit-Claudel wrote: > On 21/05/2020 15.08, Eli Zaretskii wrote: > > That would prevent Emacs from controlling what is and what isn't > > composed, leaving the shaper in charge. We currently allow Lisp to > > control that via composition-function-table, which provides a regexp > > that text around a character must match in order for the matching > > substring to be passed to the shaper. We never call the shaper unless > > composition-function-table tells us to do so. > > Does this mean that for each font we need to re-encode the font's logic f= or deciding whether to use a ligature? I think (set-char-table-range composition-function-table t '([".+" 0 font-shape-gstring])) should work, but it has weird side effects that I'm pretty sure aren't intended (paren highlighting is broken, for example). Is that supposed to happen?