From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#36914: Font Ligatures Date: Sun, 04 Aug 2019 18:32:52 +0300 Message-ID: <834l2xdjyz.fsf@gnu.org> References: <835zndejih.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="200831"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36914@debbugs.gnu.org To: Charles Jackson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 04 17:34:08 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1huIWO-000q5v-IB for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Aug 2019 17:34:08 +0200 Original-Received: from localhost ([::1]:48350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huIWM-0003En-UC for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Aug 2019 11:34:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53799) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huIWI-0003E1-N7 for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 11:34:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1huIWH-0007zV-R9 for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 11:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53544) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1huIWH-0007zP-O9 for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 11:34:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1huIWH-0006AT-Kh for bug-gnu-emacs@gnu.org; Sun, 04 Aug 2019 11:34: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: Sun, 04 Aug 2019 15:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36914 X-GNU-PR-Package: emacs Original-Received: via spool by 36914-submit@debbugs.gnu.org id=B36914.156493279823643 (code B ref 36914); Sun, 04 Aug 2019 15:34:01 +0000 Original-Received: (at 36914) by debbugs.gnu.org; 4 Aug 2019 15:33:18 +0000 Original-Received: from localhost ([127.0.0.1]:34128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huIVa-00069H-4j for submit@debbugs.gnu.org; Sun, 04 Aug 2019 11:33:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41334) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1huIVZ-000695-5f for 36914@debbugs.gnu.org; Sun, 04 Aug 2019 11:33:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1huIVT-0007iF-Pk; Sun, 04 Aug 2019 11:33:11 -0400 Original-Received: from [176.228.60.248] (port=4563 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1huIVQ-0006kK-4W; Sun, 04 Aug 2019 11:33:11 -0400 In-reply-to: (message from Charles Jackson on Sun, 04 Aug 2019 03:05:28 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:164576 Archived-At: > Date: Sun, 04 Aug 2019 03:05:28 +0000 > From: Charles Jackson > > I would think that it should be able to be turned on and off. as well as each ligature should be able to be turned on and off. If someone likes "fi" but not "ffi" then they should be able to turn "ffi" off. I would also think that it should be mode specific: "fi" should be enabled for text-mode but not for any prog-mode. On the other hand a ligature for != (becoming a not equals sign) should be enabled for C like language modes but /= should form the same ligature for Haskell and Lisp. > > Another important thing about ligatures that is different than pretty symbols mode is that the ligature should take up the same amount of space as the original characters. For example: the not equals ligature should not simply be the "≠" Unicode character because that only takes up one space but the original characters != or /= take up two spaces. this will solve the spacing (indenting) issue. Similarly the ligature for === in Javascript (that many programming ligature font enable) should take up a full three character widths. > > What do you think? First, please keep the bug address on the CC list (use "Reply to All"), so that this discussion is recorded by our issue tracker. More to the point, I think this makes the job somewhat complicated, especially the "same amount of space" part, and hope that someone volunteers to do it. Thanks.