emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Yujie Wen <yjwen.ty@gmail.com>
To: "emacs-orgmode@gnu.org Mode" <emacs-orgmode@gnu.org>
Subject: Re: How to remove spaces for soft line-breaks
Date: Tue, 9 Jul 2013 13:23:31 +0800	[thread overview]
Message-ID: <CAHenMCEsRqHOOPu_xc__GzDE1tD2T-i1bDRHj4NYEnHXVkciag@mail.gmail.com> (raw)
In-Reply-To: <51DB96F8.8060108@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1591 bytes --]

Hi, Christian,

2013/7/9 Christian Wittern <cwittern@gmail.com>

> Hi Bastien, Yujie
>
> On 2013-07-08 17:22, Bastien wrote:
>
>> Hi Yujie,
>>
>> Yujie Wen <yjwen.ty@gmail.com> writes:
>>
>>  I am wondering whether there is a way to forbid such spaces, or if
>>> no such a way, whether it is possible to work out a patch to forbid
>>> it.
>>>
>> I would try M-x visual-line-mode RET and see if you like it.
>>
> Well, this will not solve the problem for the OP, which occurs during
> export.
>
> What has to be done, I think, is to remove the CR/LF characters for
> Chinese (and Japanese, Korean etc.) text when exporting to HTML, because
> they will otherwise show up in the displayed HTML as single space
> characters.
>
I used to thinking of removing CR/LF at the parsing or exporting stage. But
now I think it is not a perfect solution since it will remove by mistake
some meaningful spaces. For example, in an English/Chinese mixed texts
whereas lines are sometimes broken at between two English words, which is
often the case when we fill graphs with m-q.

Discerning meaningful and meaningless spaces for Chinese and Japanese is
rather too complicated a topic. Chinese rarely use spaces for separating
words, Japanese sometimes use spaces for separating syntax elements.
Korean, by my instinct at staring on Korean scripts, does use spaces to
separate words.

I guess, this requires either a derived custom export engine or a
> internationalization framework that allows the specification of the text
> language.
>
> Christian
>
>
> --
> Christian Wittern, Kyoto
>
>
>
Regards,
Yujie

[-- Attachment #2: Type: text/html, Size: 2542 bytes --]

      reply	other threads:[~2013-07-09  5:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-08  0:59 How to remove spaces for soft line-breaks Yujie Wen
2013-07-08  8:22 ` Bastien
2013-07-09  4:52   ` Christian Wittern
2013-07-09  5:23     ` Yujie Wen [this message]

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=CAHenMCEsRqHOOPu_xc__GzDE1tD2T-i1bDRHj4NYEnHXVkciag@mail.gmail.com \
    --to=yjwen.ty@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).