Re: [DISCUSSION] What should we do with undocumented x^(superscript inside /round/ braces) syntax? (was: Subscript with parenthesis)

2024-02-17 Thread Mark Barton
> On Feb 17, 2024, at 5:33 AM, Ihor Radchenko wrote: > > WDYT? +1 I use the curly braces since I often use underscores for other reasons. There would be no impact to me and this is the first I ever heard that parentheses would work.

Re: [DISCUSSION] What should we do with undocumented x^(superscript inside /round/ braces) syntax? (was: Subscript with parenthesis)

2024-02-17 Thread Thomas Dye
+1 Tom > On Feb 17, 2024, at 9:38 AM, William Denton wrote: > > On Saturday, February 17th, 2024 at 07:07, Ihor Radchenko > wrote: > >> I tentatively propose to remove the x^(2-i) example from the docstring >> and mark the ^(...) syntax deprecated. >> >> WDYT? > > I think it's very sensib

Re: [DISCUSSION] What should we do with undocumented x^(superscript inside /round/ braces) syntax? (was: Subscript with parenthesis)

2024-02-17 Thread William Denton
On Saturday, February 17th, 2024 at 07:07, Ihor Radchenko wrote: > I tentatively propose to remove the x^(2-i) example from the docstring > and mark the ^(...) syntax deprecated. > > WDYT? I think it's very sensible. It's surprising ^(...) works like this, and if anyone was using it (perhaps

[DISCUSSION] What should we do with undocumented x^(superscript inside /round/ braces) syntax? (was: Subscript with parenthesis)

2024-02-17 Thread Ihor Radchenko
Ihor Radchenko writes: > "Tom Alexander" writes: > >> Some additional things I'm noticing: >> >> - when using parenthesis, :use-brackets-p is nil, so they're not equivalent >> to curly braces. > > `org-element-subscript-parser' uses `org-match-substring-regexp', which > indeed allows foo_(...).

Re: Subscript with parenthesis

2023-09-29 Thread Tom Alexander
> Not true. I tried > > b^(*asd*) and bold inside superscript does get parsed. Ah thanks for double-checking! You're right, that is getting parsed. Not sure what test document I was using to make me think objects didn't work inside the parenthesis. -- Tom Alexander pgp: https://fizz.buzz/pgp.as

Re: Subscript with parenthesis

2023-09-22 Thread Ihor Radchenko
"Tom Alexander" writes: > Some additional things I'm noticing: > > - when using parenthesis, :use-brackets-p is nil, so they're not equivalent > to curly braces. `org-element-subscript-parser' uses `org-match-substring-regexp', which indeed allows foo_(...). This is not documented in org-syntax

Re: Subscript with parenthesis

2023-09-21 Thread Tom Alexander
Some additional things I'm noticing: - when using parenthesis, :use-brackets-p is nil, so they're not equivalent to curly braces. - it does not support objects inside the parenthesis, just plain text, which again means they're not equivalent to braces. - it, however, seems to require that the pa

Subscript with parenthesis

2023-09-21 Thread Tom Alexander
The org-mode documentation[1] states that the SCRIPT portion of the subscript/superscript is either an asterisk, the standard set of objects wrapped in balanced curly braces, or an optional sign followed by "Either the empty string, or a string consisting of any number of alphanumeric characters