Huang Jing <[email protected]> writes:
> Using zero-width spaces (ZWS) can be an acceptable workaround it
> there's proper tooling support. For instance, when LANGUAGE is set to
> Chinese or Japanese (it should be CJK [Chinese, Japanese, Korean],
> however I don't speak Korean [but I've heard that they do use spaces
> to divide words in some occasions]), org-emphasize could automatically
> insert ZWS around markers.
Currently, org-emphasize inserts spaces. We can indeed change that.
However, I am not sure if this is something that needs to be tied to
LANGUAGE. Some people may prefer ZWS in Latin documents as well for the
purposes of intra-word markup.
What about (1) adding a customization for org-emphasize to choose which
separator to use; (2) Handling prefix key in org-emphasize to switch
between different separators?
> *keeping ZWS* since some plain text viewers might rely on spaces for
> line breaks, and if they do correctly categorize ZWS as space (which
> is breakable) but does not support CJK line break, we shouldn't
> remove intentional ZWS.
>
> *remove ZWS* since it's very unlikely that a text viewer supports ZWS
> but not Chinese and Japanese line breaking algorithms, since Unicode
> reference manual specifies how to break texts in languages Unicode
> supports into lines.
I reviewed the previous discussions, and I am thinking about (1)
removing *all* ZWS; (2) introducing a new entity \zws that can be used
when zero-width space is required.
>> For the Org markup itself, we have considered alternative escape
>> mechanisms. For example, I once suggested \--{} (new entity) to serve as
>> a replacement for zero-width spaces.
>> https://list.orgmode.org/orgmode/87mtct9y1f.fsf@localhost/
>> It still feels awkward though.
>>
>> Another idea is mimicking markdown with its doubled emphasis markers
>> text**bold**text.
>>
>> Or we can make use of the discussed future inline special block markup:
>> text@*{bold}text or text@bold{bold}text.
>> https://list.orgmode.org/orgmode/875xwqj4tl.fsf@localhost/
>
> Maybe I will post a question in the Emacs China forum to see what
> other users think about this?
I've seen https://emacs-china.org/t/org-mode/30438/17 and (if the
translation is right), it looks like users generally do not mind ZWS. I
am a bit surprised, but I guess it makes things easier.
Although, I think you did not mention text**bold**text idea.
--
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>