From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: pietru@caramail.com Newsgroups: gmane.emacs.devel Subject: prettify-symbols-mode to handle "\alpha-\beta" ... Date: Thu, 4 Feb 2021 02:24:42 +0100 Message-ID: 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="8506"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Feb 04 02:26:32 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 1l7TPk-000286-FK for ged-emacs-devel@m.gmane-mx.org; Thu, 04 Feb 2021 02:26:32 +0100 Original-Received: from localhost ([::1]:49862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7TPj-0007OA-Dj for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Feb 2021 20:26:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7TO4-0006pT-8e for emacs-devel@gnu.org; Wed, 03 Feb 2021 20:24:48 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:56291) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7TO2-00055H-Cf for emacs-devel@gnu.org; Wed, 03 Feb 2021 20:24:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1612401883; bh=6PxDhaFE3YYJc8DYGY9UjNSxdOD5fsYZ1QM8rGag3Qc=; h=X-UI-Sender-Class:From:To:Subject:Date; b=S837qMpls0tLGCBxxrhmQ+yJrUoT90G7Y9yd4yVBLhsgCiu1pAbXPclOJQwE47UYn q3QqsggLPBTx4t+q1T7hFqa6uMFdRT4Mggy1U6f2OPilpELAIsQ1m82saSjHD4pwyY 0NdunkUARhG7eGO9BXT6isxF407MV9k1vnrHuv7g= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs06.server.lan [172.19.170.174]) (via HTTP); Thu, 4 Feb 2021 02:24:42 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:tN6OcO4751GlZc8T2P73KBpWaQT/hajEP5fuaRM/rS31c7vRQAK5xSN+UMkujYbyCxzEm 7nfNDm3EN3yJZ6HU+bQhrPmkkiRv6M6SIhu81nkGQ2xpYIsq5sih44G2EvKBEApcO9Byiu3OAXue TAw+Egc2sL/J9Ymr2iZ1vNvzx2Lymj7lW5OpkOYi9CMPuOd7oLWytPY97S61ACcNv+/taW2DlUvv cR2ZakSBGzGFltNBF2lqTWGAEh4SPz2IB3SstTwWB89CCsfBiITTh6PP8N2Z44d0e9XHo8frsORm yU= X-UI-Out-Filterresults: notjunk:1;V03:K0:bs9OoRkOIt0=:gsZnSlbfD1uK2lqnNCiBqu DNXo0yRe1Qi62TezSnCo8ShFoJc2nejRn9JUI5j9tbpkFRmsigEGIF/VcAUlIJwhgOq1teQZy Eqrwo1WfcN+DEDPRZyKHNL+N7OD4nKQ7oKUhvPnn95bP0ox/jrVtrk5wHljgj5lSkdrTgw0EU 57LTJruHcuNx5/3/c4m1emZxEfMLtO9rJU+niLG4Q/re0pvsvpALDB590LoLPeALQKX3rACse v0eK8G2G356uFr82f5uZGxf3rcKi7J7amw8Jban6Fc2NQMgjRR7L+TPxVoDw/YW/F8bWeD0YJ kFCrGwRZdvG52AckeffAInTJIeq3k1LeLlz+KbJL+zI5lzGvKnp/cz0+ufXyRCDD1G2xj1M6G d0Yqjn/b8GORbJVjugS2JH64NGNAoX8Fpcw3MAnZhxfm60Vnl0AMwXkbj1M1XkmDMSroRmPt2 SxX1YaNK3i1XmuicEsykAJ5sNqoaQKbd/LLsVt2pbjsrIFByGSJ4PqlGSidmnJUANwRi7fOEE j+/wN+z9cqwjwfZSFOglshQZcainCgNjcxlLNhsTjOHGztN0vbVdtfi4DqeTE1wrTfPTdQYnJ U+n2qA7WA7tis= Received-SPF: pass client-ip=212.227.15.19; envelope-from=pietru@caramail.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.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:263829 Archived-At: I am using prettify-symbols-mode for displaying greek command using the corresponding greek glyph when using mathematical expressions in texinfo=2E Here is an example (push '("\\alpha" =2E ?=CE=B1) prettify-symbols-alist) (push '("\\beta" =2E ?=CE=B2) prettify-symbols-alist) This works well when using "\alpha\beta", "\alpha - \beta"=20 But the expression fails when using "\alpha-\beta" or "\alpha_i", "\alpha_{ij}", "\beta^i", "\beta+\alpha"=2E The expressions are all valid mathematical expressions when using tex=2E =20 Would you be so kind to update "prettify-symbols-mode" so the substitutions can become possible to handle=2E Does this require that SYMBOL in (SYMBOL =2E CHARACTER) be a regexp? Regards Pietru