all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Chunyang Xu <mail@xuchunyang.me>
Cc: 29364@debbugs.gnu.org
Subject: bug#29364: 27.0.50; Word Wrap doesn't support CJK
Date: Mon, 20 Nov 2017 20:22:09 +0200	[thread overview]
Message-ID: <83zi7gdd4e.fsf@gnu.org> (raw)
In-Reply-To: <m260a5nn6f.fsf@xuchunyang.me> (message from Chunyang Xu on Mon,  20 Nov 2017 20:34:48 +0800)

> From: Chunyang Xu <mail@xuchunyang.me>
> Date: Mon, 20 Nov 2017 20:34:48 +0800
> 
> the point is, Chinese doesn't have to rely on space to break, it can
> break at anywhere but with some exceptions, such as, after breaking, the
> punctuation mark can not be at the beginning of the line, so the
> following is also incorrect:
> 
> -----------------------------------------------------
> 文字文字 English 文字文字文字文字文字文字文字文字文字
> 文字文字文字文字文字文字文字文字文字文字文字文字文字
> 。
> -----------------------------------------------------
> 
> for this width, it should display:
> 
> -----------------------------------------------------
> 文字文字 English 文字文字文字文字文字文字文字文字文字
> 文字文字文字文字文字文字文字文字文字文字文字文字文
> 字。
> -----------------------------------------------------
> 
> \f
> Some applications such as Chrome (web browser) and Atom (text edit) can
> wrap CJK text, and Atom added CJK wrapping support by this patch:
> 
> - https://github.com/atom/atom/pull/9162
> 
> There is an article from Wikipedia explaining how to break CJK text:
> 
> - https://en.wikipedia.org/wiki/Line_breaking_rules_in_East_Asian_languages

Emacs has an implementation of those rules in kinsoku.el.  Word-wrap
is done on the C level in the display engine; volunteers are welcome
to submit patches for honoring Kinsoku rules on that level.  The
challenge is to do so without slowing down redisplay.

Thanks.





  reply	other threads:[~2017-11-20 18:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-20 12:34 bug#29364: 27.0.50; Word Wrap doesn't support CJK Chunyang Xu
2017-11-20 18:22 ` Eli Zaretskii [this message]
2021-02-04 14:05 ` Lars Ingebrigtsen

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83zi7gdd4e.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=29364@debbugs.gnu.org \
    --cc=mail@xuchunyang.me \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.