Derek Chen-Becker <[email protected]> writes:
> I did a search through the worg sources and I found several places where
> things are described as "alphabetic", but none of them relate to priority.
> There are some related to sorting that specifically call out "alphabetical
> order" like "A-Z" and "Z-A" but I don't think those are related, either.
> IIRC, Emacs is not L18N aware for sorting (I recall it uses ASCII order),
> so I don't know if we should call that out specially here.
>> However, the worg/org-syntax.org page also refers to "alphabetic
>> characters" under blocks (switches), entities (can be followed by a
>> non-alphabetic character), LaTeX fragments, and macros. I think most or
>> all of these mean [a-zA-Z]. Should we fix these as well?
Switches are described as the following:
- SWITCH :: Either the pattern =-l "FORMAT"= where =FORMAT=
represents a string consisting of any characters but a double
quote (="=) or newline, or the pattern =-S= or =+S= where =S=
represents a single alphabetic character
In reality, the only allowed switches are -l "FORMAT", -i, -k, -r, -n
[NUMBER], and +n [NUMBER].
For entities, non-alphabetic basically refers to (rx (not letter)) > non :alpha:
‘[:alpha:]’
This matches any letter. For multibyte characters, it matches
characters whose Unicode ‘general-category’ property (*note
Character Properties::) indicates they are alphabetic characters.
So, it is actually accurate. Maybe we want to expand about Unicode
general-category.
We may define "alphabetic" in the glossary I think. Using Unicode
definitions.
Also, similar problem is alphanumeric.
Radio-type links are structured according to the following pattern:
#+begin_example
PRE RADIO POST
#+end_example
+ [[#Special_Tokens][PRE]] :: A non-alphanumeric character.
+ RADIO :: One or more objects matched by some
[[#Targets_and_Radio_Targets][radio target]]. It can
contain the minimal set of objects.
+ [[#Special_Tokens][POST]] :: A non-alphanumeric character.
Radio links are even more tricky - that's not non-alphanumeric, but
non-alphanumeric, but allow Chinese characters :)
(which makes me wonder if we should do the same for emphasis markers;
but that's a story for a different discussion).
--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>