Yue Yi <[email protected]> writes:

> Ihor Radchenko <[email protected]> 2025/12/26 18:46 0800 writes:
>> >> That said, I tried
>> >> 冰淇凌*。 (Hello *world* foo.
>> >> And with the new patch
>> >> "*。 (Hello *world*" is bold.
>> >> (perfectly reasonable given the rules, but looking strange in my eyes)
>> >
>> > I give it a test, and the results are as expected, although it does look a
>> > little strange.
>>
>> The question is: what would be more natural? Can we somehow implement it?
>
> Hard to say, maybe ZWS or Juan Manuel Macías's approach. (not yet
> totally implemented)
>
> https://lists.gnu.org/archive/html/emacs-orgmode/2024-03/msg00005.html

Sure. That markup is indeed the most reliable (and can be used for
intraword markup). But that is tangent.

What I want to discuss here is the standard markup. Our standard markup
aims to be *intuitive*. That's why it is important to address non-Latin
languages - markup should be intuitive for everyone, not just for people
writing in languages that happen to use spaces.

So, I'd like to examine various aspects of this proposed new markup
syntax, making sure that we avoid non-intuitive behavior as much as
technically possible.

>> The next step will be dealing with plain links like
>> 好https://orgmode.org好. How are they used in Chinese text? Is there
>> anything like space that is used to delimit links?
>
> In Chinese plain-text writing, it is our best practice to use spaces to
> separate Chinese and English characters. For specific details, you can
> refer to this widely recognized translation guide:
> ...
> ...
> For org-mode users, the <> syntax can be used when no space is desired
> between a link and Chinese text. Like this:
>
> 好<https://orgmode.org>好

Good. So, plain links are not an issue for Chinese.

The only remaining potential candidate for changes in syntax is
https://orgmode.org/worg/org-syntax.html#org0bb3335 -- radio links:

第一段:*无线电目标(radio target)/ 用三个尖括号定义,例如 
<<<重要提示>>>。文档中任何与该目标名称完全相同的纯文本(如“重要提示”)会自动变成指向该目标的链接。

第二段:定义目标:在段落中写入纯文本“重要提示”,该文本会自动成为链接。更新后,点击重要提示会跳转到目标处。

Here is the syntax rule we have now:

        ;; Some languages, e.g., Chinese, do not use spaces to
        ;; separate words.  Also allow surrounding radio targets with
        ;; line-breakable characters.
        (before-re "\\(?:^\\|[^[:alnum:]]\\|\\c|\\)\\(")
        (after-re "\\)\\(?:$\\|[^[:alnum:]]\\|\\c|\\)")

We use ?c category, only limiting to Chinese. We should probably use ?|
here as well, to cover Japanese and other languages without spaces.

-- 
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>

Reply via email to