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

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

[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

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:

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

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

Subscript with parenthesis

2023-09-21 Thread Tom Alexander
meric characters, commas, backslashes, and dots" But I'm seeing the following test document parse as containing a subscript despite using parenthesis which I do not think matches any of the above criteria: ``` foo_(bar) ``` [1] https://orgmode.org/worg/org-syntax.html#Subscript_and_Superscri