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 sJGqMW+cDV9jVQAA0tVLHw (envelope-from ) for ; Tue, 14 Jul 2020 11:52:15 +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 SMRwLW+cDV/PDQAAbx9fmQ (envelope-from ) for ; Tue, 14 Jul 2020 11:52:15 +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 131B0940145 for ; Tue, 14 Jul 2020 11:52:14 +0000 (UTC) Received: from localhost ([::1]:47706 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jvJTp-0005bK-T9 for larch@yhetil.org; Tue, 14 Jul 2020 07:52:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jvJTV-0005bB-Iw for emacs-orgmode@gnu.org; Tue, 14 Jul 2020 07:51:53 -0400 Received: from mail-ej1-f42.google.com ([209.85.218.42]:40518) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jvJTT-00038A-ME for emacs-orgmode@gnu.org; Tue, 14 Jul 2020 07:51:53 -0400 Received: by mail-ej1-f42.google.com with SMTP id o18so21306329eje.7 for ; Tue, 14 Jul 2020 04:51:50 -0700 (PDT) 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; bh=h5eDA3ADXw7Ju3oVStIcvAZsDAg6EebUE89yMe02dqw=; b=sD3ipvqgM0QwaBhHEW/CSdVz+H0zZVCQmMV/rHi1/uyyXeIqoYb6omGmylPSekycbG 0nXqgyfyi/VtoQ2muS0BivTaUMaOLfpfKGgOXWi93QLTlvVSupMcQcBh0qecVX0aPj4e bjJ/n7mA7dHYfZRGv1XgaT+7qYJ8Xywo9BFYRk9R5gFJm3m3R6S5G689iRVqAnMID3zI o3CE7avDkuoYi/dIl8OIoGs3Fsm8GV8sqO+pYeI0RcpT4l+JntE653RAnXJsb6DH6yM0 75OigBdRIx24Gx+yHdB/NLDRbAzE+ToXiBStsxFamhdetaNwcbASMSljXEV17QuMx4y9 q3QA== X-Gm-Message-State: AOAM530rUJcq/V9RXmlnBpDIfjxSuN+qLrsbv+NyzF9L0UiB5Gs1bTaF tunN9UbzrTjSWZjdFsNojEANK3enMFCMVXQzD44= X-Google-Smtp-Source: ABdhPJzGqZKP4bpIB9ePeKukyGy9hqHDc2AeA8g373bFX4SL+tha7oexdN84BS1fm9R1Ltomiy9wPSxCUA+CIXMvy+k= X-Received: by 2002:a17:906:c453:: with SMTP id ck19mr3992050ejb.185.1594727509537; Tue, 14 Jul 2020 04:51:49 -0700 (PDT) MIME-Version: 1.0 References: <5049c130-4383-25b6-bb90-71d152a49a2b@fastmail.com> In-Reply-To: <5049c130-4383-25b6-bb90-71d152a49a2b@fastmail.com> From: ian martins Date: Tue, 14 Jul 2020 07:51:38 -0400 Message-ID: Subject: Re: Superscript and non-blank character To: Bo Grimes Content-Type: multipart/alternative; boundary="000000000000b8376705aa656e42" Received-SPF: pass client-ip=209.85.218.42; envelope-from=ianxm1@gmail.com; helo=mail-ej1-f42.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/14 07:51:49 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=1, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=no 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=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=jhu.edu (policy=none); 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: -0.91 X-TUID: PY822lPttOn9 --000000000000b8376705aa656e42 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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:].,\\]*[[:aln= um:]]\\)\\)"; 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, =E2=80=9CLet there be light,=E2=80=9D 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 =E2=80=9Cday,=E2=80=9D and the darkness he called = =E2=80=9Cnight.=E2=80=9D And there was evening, and there was morning=E2=80=94the 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 Emac= s > 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 woul= d > be ambiguity between underline (e.g., _under_) and subscript (_under). An= d > superscript syntax follows subscript's. [1] > > That makes sense to me as a default [2], given that so many org-mode user= s > use both in math, science, and literate coding context, so I wouldn't thi= nk > to suggest it to be changed. All I want to know is how I can change it f= or > *me*. > > I would like to org-toggle-pretty-entities in a buffer and see superscrip= t > before, say, a poetry line or Bible verse I'm quoting in a note or journa= l > 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.htm= l > > [2] Though I wish it were made explicit in the manuals > https://orgmode.org/manual/Subscripts-and-Superscripts.html#Subscripts-an= d-Superscripts > (Org Mode 9 Reference Manual p 132). It took me a while to figure out why > it wasn't working at all. > > > --000000000000b8376705aa656e42 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Bo, you can try this. I don't know what else it w= ill break, so I did it as a file local. alternatively you could set `org-ma= tch-substring-regexp' in your init.

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

here are some verses wher= e there's a space after the verse number:

^1 In the b= eginning God created the heavens and the earth. ^2 Now the earth was formle= ss and empty, darkness was over the surface of the deep, and the Spirit of = God was hovering over the waters.

if you don&#= 39;t want the space after the verse number, you can use curlys:
<= br>^{3}And God said, =E2=80=9CLet there be light,=E2=80=9D and there was li= ght. ^{4}God saw that the light was good, and he separated the light from t= he darkness. ^{5}God called the light =E2=80=9Cday,=E2=80=9D and the darkne= ss he called =E2=80=9Cnight.=E2=80=9D And there was evening, and there was = morning=E2=80=94the first day.

On Fri, Jul 10, 2020 at 8:33 PM Bo Grim= es <vcg3rd@fastmail.com> w= rote:
=20 =20 =20

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.=C2=A0 I use Emacs for org-mode, and I don't code or know El= isp.=C2=A0 I have no use for or interest in learning LaTeX.=C2=A0 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.=C2=A0

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.=C2=A0 A= ll I want to know is how I can change it for *me*.=C2=A0

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-or= gmode/2014-06/msg01022.html

[2] Though I wish it were made explicit in the manuals https://orgmode.org/manual/Subsc= ripts-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.



--000000000000b8376705aa656e42--