From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6HXJBSOUD1+rbgAA0tVLHw (envelope-from ) for ; Wed, 15 Jul 2020 23:41:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id KAOmASOUD18FKwAAbx9fmQ (envelope-from ) for ; Wed, 15 Jul 2020 23:41:23 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A26F39401CB for ; Wed, 15 Jul 2020 23:41:21 +0000 (UTC) Received: from localhost ([::1]:33592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jvr1a-00073h-4y for larch@yhetil.org; Wed, 15 Jul 2020 19:41:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jvr16-00073a-8w for emacs-orgmode@gnu.org; Wed, 15 Jul 2020 19:40:48 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:59525) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jvr13-0007LK-Mr for emacs-orgmode@gnu.org; Wed, 15 Jul 2020 19:40:48 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 1193D5C004B; Wed, 15 Jul 2020 19:40:43 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 15 Jul 2020 19:40:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type; s=fm3; bh=7hW2/JdhxhWg413hMW+6ri8u9M7 BeY0G0xA0EpAUL1Y=; b=R/ITOBs34hdRjf5IheuUAsIpimAKrVbyv5ziEXTK4T4 dfDBowp1/chWE1f6Lh5BHc3WomrqimEUzKNr/aFBvhTV1oVgycGmhJhnqy0HhVBc b3Cn7YW1l6cPrcCKKN1FiImN+RboMtSZxhlTU3GWPJwaIcElcyZyQyh1MSdo/fUW au6+jlNq14Kvu16wlvpnYRBx4gEr5zBMX1MC/G08e7GB6SLx40QMJHBuiQYjUiCV vJ7SWDSFPUD7zWHe+eO3GkAqT8b8dlaI7xQGLbj7zfMyO3SoTf/6f2Y71XL0HihW HfQ9xpVLh/tBsJ/aVGo55gHQP1dXcmrG4mZUbPjSykA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=7hW2/J dhxhWg413hMW+6ri8u9M7BeY0G0xA0EpAUL1Y=; b=W1kWk1A7Yh89hCc68nHjGt xbpLOn7HBwrnw2T2DJ6ILPzhB1L9Z4zKflq9O0wtz6EE0sb5wmYTGFPY7Lep5VNK qmB502uZx7aIxF3+AIKc/AR8daEY8rU7ePIbRlNifJO/Y3KkFVVs3zK9NaW5KJ97 /k9M+JUM90ry5EeUZF95Aq4LO1wFrkPzsB++H5wIHxp9cfJEsll7dph1WZmpy3HH sgY/QMTafy+sweGwoGxAAQPAMWi8Jiry56VUkjQ+y6YHtkTpYHpdyEWcaOeRj7vB Ru9+7wa5SeONQFtFUSy22j8a3ev3q4TB8Mbbe3/yOQl4qijhahJok57enuDpbRtw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrfeefgddvfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgesrgdtreertdefjeenucfhrhhomhepuehoucfirhhi mhgvshcuoehvtghgfehrugesfhgrshhtmhgrihhlrdgtohhmqeenucggtffrrghtthgvrh hnpefglefgjeehudejteejjedvueelffdtkeefueekudfgueetkedvgeekkeeuieffleen ucffohhmrghinhepghhnuhdrohhrghdpohhrghhmohguvgdrohhrghenucfkphepuddtke drhedurddugeehrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomhepvhgtghefrhgusehfrghsthhmrghilhdrtghomh X-ME-Proxy: Received: from [192.168.1.80] (pool-108-51-145-108.washdc.fios.verizon.net [108.51.145.108]) by mail.messagingengine.com (Postfix) with ESMTPA id 3D7DB328005D; Wed, 15 Jul 2020 19:40:42 -0400 (EDT) Subject: Re: Superscript and non-blank character To: ian martins References: <5049c130-4383-25b6-bb90-71d152a49a2b@fastmail.com> From: Bo Grimes Message-ID: <2acaf284-d4b0-b71d-4c86-c22e6bb957c7@fastmail.com> Date: Wed, 15 Jul 2020 19:40:42 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------6FB49BC25D95055B03012241" Content-Language: en-US Received-SPF: pass client-ip=66.111.4.28; envelope-from=vcg3rd@fastmail.com; helo=out4-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/15 19:40:43 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm3 header.b=R/ITOBs3; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=W1kWk1A7; dmarc=pass (policy=none) header.from=fastmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: oqLpzEcnlNl7 This is a multi-part message in MIME format. --------------6FB49BC25D95055B03012241 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Ian is a "steely-eyed rocket man"!  I thanked him off-list in order not to clutter it up, which led to several more exchanges. I wanted to add my final reply to him to the list in case others find it helpful in the future. Begin quote: I couldn't get it to work, but...it may have been that instead of closing the file I was testing on I was rather doing M-x eval-buffer.  It kept giving me errors about entities or something. However, after reading your links on local variables and more digging around on forums I decided to try footers before trying it in init.el.  Thus, I arrived at: > # Local Variables: > # mode: org > # org-match-substring-regexp: "\\(\\)\\([_^]\\)\\(\\(?:{\\([^{}]*?\\|\\(?:[^{}]*?{[^{}]*?}\\)+[^{}]*?\\|\\(?:[^{}]*?{\\(?:[^{}]*?{[^{}]*?}\\)+[^{}]*?}\\)+[^{}]*?\\)}\\)\\|\\(?:(\\([^()]*?\\|\\(?:[^()]*?([^()]*?)\\)+[^()]*?\\|\\(?:[^()]*?(\\(?:[^()]*?([^()]*?)\\)+[^()]*?)\\)+[^()]*?\\))\\)\\|\\(?:\\*\\|[+-]?[[:alnum:].,\\]*[[:alnum:]]\\)\\)" > # org-pretty-entities: t > # End This also did not work when I evaluated the buffer.  After carefully rereading your last reply and noticing "The test is to save it with an .org extension and open it. When you try to open it, emacs should ask you if you want to load 'values that may not be safe'" I deduced I should close the file and re-open it (duh!). This time I got the prompt you mentioned, and after accepting the risk, Viola! Rather than attempt it the original way, I think I will keep it as a footer where it is less distracting to me. On 7/14/20 7:51 AM, ian martins wrote: > Bo, you can try this. I don't know what else it will break, so I did it as > a file local. alternatively you could set `org-match-substring-regexp' in > your init. > > --- > ;;; -*- org-match-substring-regexp: > "\\(\\)\\([_^]\\)\\(\\(?:{\\([^{}]*?\\|\\(?:[^{}]*?{[^{}]*?}\\)+[^{}]*?\\|\\(?:[^{}]*?{\\(?:[^{}]*?{[^{}]*?}\\)+[^{}]*?}\\)+[^{}]*?\\)}\\)\\|\\(?:(\\([^()]*?\\|\\(?:[^()]*?([^()]*?)\\)+[^()]*?\\|\\(?:[^()]*?(\\(?:[^()]*?([^()]*?)\\)+[^()]*?)\\)+[^()]*?\\))\\)\\|\\(?:\\*\\|[+-]?[[:alnum:].,\\]*[[:alnum:]]\\)\\)"; > org-pretty-entities: t; -*- > > here are some verses where there's a space after the verse number: > > ^1 In the beginning God created the heavens and the earth. ^2 Now the earth > was formless and empty, darkness was over the surface of the deep, and the > Spirit of God was hovering over the waters. > > if you don't want the space after the verse number, you can use curlys: > > ^{3}And God said, “Let there be light,” and there was light. ^{4}God saw > that the light was good, and he separated the light from the darkness. > ^{5}God called the light “day,” and the darkness he called “night.” And > there was evening, and there was morning—the first day. > > On Fri, Jul 10, 2020 at 8:33 PM Bo Grimes wrote: > >> Emacs 26.3, Org-mode 9.1.9, Kubuntu 20.04, 5.4.0-39-generic >> >> Hi, >> >> I've tried my hardest to find an answer in the manuals (print book and >> on-line), this list, Reddit, and Stack Exchange with no luck. I use Emacs >> for org-mode, and I don't code or know Elisp. I have no use for or >> interest in learning LaTeX. I never use subscript, and I only use >> superscript in poetry/prose (mostly quotes, not original), and I don't >> foresee (but admit I may) a need to export. >> >> I understand that: >> >> ^2H is not recognized as superscript _on purpose_. Per Org syntax, you >> have to add a non-blank character before the caret. Otherwise, there would >> be ambiguity between underline (e.g., _under_) and subscript (_under). And >> superscript syntax follows subscript's. [1] >> >> That makes sense to me as a default [2], given that so many org-mode users >> use both in math, science, and literate coding context, so I wouldn't think >> to suggest it to be changed. All I want to know is how I can change it for >> *me*. >> >> I would like to org-toggle-pretty-entities in a buffer and see superscript >> before, say, a poetry line or Bible verse I'm quoting in a note or journal >> entry, and not see the non-blank character. >> >> Can this be done via customize or with an Elisp snippet in init.el? >> >> Thanks! >> >> [1] https://lists.gnu.org/archive/html/emacs-orgmode/2014-06/msg01022.html >> >> [2] Though I wish it were made explicit in the manuals >> https://orgmode.org/manual/Subscripts-and-Superscripts.html#Subscripts-and-Superscripts >> (Org Mode 9 Reference Manual p 132). It took me a while to figure out why >> it wasn't working at all. >> >> >> --------------6FB49BC25D95055B03012241 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Ian is a "steely-eyed rocket man"!  I thanked him off-list in order not to clutter it up, which led to several more exchanges.  I wanted to add my final reply to him to the list in case others find it helpful in the future.

Begin quote:

I couldn't get it to work, but...it may have been that instead of closing the file I was testing on I was rather doing M-x eval-buffer.  It kept giving me errors about entities or something.

However, after reading your links on local variables and more digging around on forums I decided to try footers before trying it in init.el.  Thus, I arrived at:

> # Local Variables:
> # mode: org
> # org-match-substring-regexp: "\\(\\)\\([_^]\\)\\(\\(?:{\\([^{}]*?\\|\\(?:[^{}]*?{[^{}]*?}\\)+[^{}]*?\\|\\(?:[^{}]*?{\\(?:[^{}]*?{[^{}]*?}\\)+[^{}]*?}\\)+[^{}]*?\\)}\\)\\|\\(?:(\\([^()]*?\\|\\(?:[^()]*?([^()]*?)\\)+[^()]*?\\|\\(?:[^()]*?(\\(?:[^()]*?([^()]*?)\\)+[^()]*?)\\)+[^()]*?\\))\\)\\|\\(?:\\*\\|[+-]?[[:alnum:].,\\]*[[:alnum:]]\\)\\)"
> # org-pretty-entities: t
> # End

This also did not work when I evaluated the buffer.  After carefully rereading your last reply and noticing "The test is to save it with an .org extension and open it. When you try to open it, emacs should ask you if you want to load 'values that may not be safe'" I deduced I should close the file and re-open it (duh!).

This time I got the prompt you mentioned, and after accepting the risk, Viola! Rather than attempt it the original way, I think I will keep it as a footer where it is less distracting to me.


On 7/14/20 7:51 AM, ian martins wrote:
Bo, you can try this. I don't know what else it will break, so I did it as
a file local. alternatively you could set `org-match-substring-regexp' in
your init.

---
;;; -*- org-match-substring-regexp:
"\\(\\)\\([_^]\\)\\(\\(?:{\\([^{}]*?\\|\\(?:[^{}]*?{[^{}]*?}\\)+[^{}]*?\\|\\(?:[^{}]*?{\\(?:[^{}]*?{[^{}]*?}\\)+[^{}]*?}\\)+[^{}]*?\\)}\\)\\|\\(?:(\\([^()]*?\\|\\(?:[^()]*?([^()]*?)\\)+[^()]*?\\|\\(?:[^()]*?(\\(?:[^()]*?([^()]*?)\\)+[^()]*?)\\)+[^()]*?\\))\\)\\|\\(?:\\*\\|[+-]?[[:alnum:].,\\]*[[:alnum:]]\\)\\)";
org-pretty-entities: t; -*-

here are some verses where there's a space after the verse number:

^1 In the beginning God created the heavens and the earth. ^2 Now the earth
was formless and empty, darkness was over the surface of the deep, and the
Spirit of God was hovering over the waters.

if you don't want the space after the verse number, you can use curlys:

^{3}And God said, “Let there be light,” and there was light. ^{4}God saw
that the light was good, and he separated the light from the darkness.
^{5}God called the light “day,” and the darkness he called “night.” And
there was evening, and there was morning—the first day.

On Fri, Jul 10, 2020 at 8:33 PM Bo Grimes <vcg3rd@fastmail.com> wrote:

Emacs 26.3, Org-mode 9.1.9, Kubuntu 20.04, 5.4.0-39-generic

Hi,

I've tried my hardest to find an answer in the manuals (print book and
on-line), this list, Reddit, and Stack Exchange with no luck.  I use Emacs
for org-mode, and I don't code or know Elisp.  I have no use for or
interest in learning LaTeX.  I never use subscript, and I only use
superscript in poetry/prose (mostly quotes, not original), and I don't
foresee (but admit I may) a need to export.

I understand that:

^2H is not recognized as superscript _on purpose_. Per Org syntax, you
have to add a non-blank character before the caret. Otherwise, there would
be ambiguity between underline (e.g., _under_) and subscript (_under). And
superscript syntax follows subscript's. [1]

That makes sense to me as a default [2], given that so many org-mode users
use both in math, science, and literate coding context, so I wouldn't think
to suggest it to be changed.  All I want to know is how I can change it for
*me*.

I would like to org-toggle-pretty-entities in a buffer and see superscript
before, say, a poetry line or Bible verse I'm quoting in a note or journal
entry, and not see the non-blank character.

Can this be done via customize or with an Elisp snippet in init.el?

Thanks!

[1] https://lists.gnu.org/archive/html/emacs-orgmode/2014-06/msg01022.html

[2] Though I wish it were made explicit in the manuals
https://orgmode.org/manual/Subscripts-and-Superscripts.html#Subscripts-and-Superscripts
(Org Mode 9 Reference Manual p 132). It took me a while to figure out why
it wasn't working at all.




    

--------------6FB49BC25D95055B03012241--