On 03/12/2021 02:09, Juan Manuel Macías wrote:
I believe, that emphasis marks are a part of Org that can be very
shocking to new users. I mean, there is a series of behaviors that seem
obvious and trivial in the emphasized text, but that in Org are not
possible out of the box, unless you configure
`org-emphasis-regexp-components'. Three quick examples. This in Org is
not possible out of the box:
#+begin_example
[/emphasis/]
¡/emphasis/!
¿/Emphasis/?
#+end_example
Maybe this issue should be considered independently of itra-word emphasis.
Second and third examples looks like they should be supported. Ihor
mentioned treating punctuation in a more general way. It requires rich
test set to estimate changes in heuristics. I suspect some problems
since start and end patterns are not symmetric and I have not found a
way to specify in regexp only punctuation marks that normally appears in
front of words. Square brackets likely should be excluded somehow as
well since they are part of Org syntax. I am unsure if it is possible to
use just regexp without additional checks of candidates.
Ihor Radchenko. [PATCH] Re: c47b535bb origin/main org-element: Remove
dependency on ‘org-emphasis-regexp-components’
Sun, 21 Nov 2021 17:28:57 +0800.
https://list.orgmode.org/87v90lzwkm.fsf@localhost