From: Jens Lechtenboerger <lechten@wi.uni-muenster.de>
To: Max Nikulin <manikulin@gmail.com>
Cc: <emacs-orgmode@gnu.org>
Subject: Re: Syntax question: What is BORDER in 4.17. Text Markup?
Date: Wed, 7 Dec 2022 08:16:26 +0100 [thread overview]
Message-ID: <87fsdrr8dx.fsf@wi.uni-muenster.de> (raw)
In-Reply-To: <tmp1mc$1792$1@ciao.gmane.io> (Max Nikulin's message of "Wed, 7 Dec 2022 10:35:38 +0700")
On 2022-12-07, Max Nikulin wrote:
> On 07/12/2022 01:28, Jens Lechtenboerger wrote:
>> Hi there,
>> the syntax for Text Markup such as *bold* at [1] specifies
>> PRE MARKER CONTENTS MARKER POST with
>> CONTENTS as BORDER BODY BORDER and
>> BORDER as “Any non-whitespace character.”
>> What is the role of BORDER here? Does it really exist?
>
> I think, the idea is to stress that
>
> / / or * word *
>
> must not be considered as emphasis.
I see, thanks.
>> What is BORDER if CONTENTS should be a single character, e.g., in
>> the two strings “*x*” and “~*~”? Are single characters forbidden?
>
> The spec is not precise here. It is close to the code that actually
> allows single character contents, see
> `org-element--parse-generic-emphasis' and the docstring of
> `org-emphasis-regexp-components'.
>
> Perhaps it should be stated as (in regexp notation)
>
> BORDER (BODY? BORDER)?
>
> or as alternatives
>
> BORDER or BORDER BORDER or BORDER BODY BORDER.
If find this confusing. What is BODY (semantically) if two of its
characters are assigned to BORDERs?
What about getting rid of BORDER in the spec and replacing
“Where BORDER and BODY are not separated by whitespace.”
with
“Where BODY does neither begin nor end with whitespace”?
(If that is correct...)
The implementation with regexps is a different issue.
Best wishes
Jens
next prev parent reply other threads:[~2022-12-07 7:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-06 18:28 Syntax question: What is BORDER in 4.17. Text Markup? Jens Lechtenboerger
2022-12-06 18:54 ` tomas
2022-12-07 3:35 ` Max Nikulin
2022-12-07 7:16 ` Jens Lechtenboerger [this message]
2022-12-07 7:54 ` Jens Lechtenboerger
2022-12-07 9:36 ` Timothy
2022-12-07 10:29 ` Jens Lechtenboerger
2022-12-07 10:38 ` tomas
2022-12-07 15:43 ` Nick Dokos
2022-12-07 15:52 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fsdrr8dx.fsf@wi.uni-muenster.de \
--to=lechten@wi.uni-muenster.de \
--cc=emacs-orgmode@gnu.org \
--cc=manikulin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).