From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29364: 27.0.50; Word Wrap doesn't support CJK Date: Mon, 20 Nov 2017 20:22:09 +0200 Message-ID: <83zi7gdd4e.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1511202191 1921 195.159.176.226 (20 Nov 2017 18:23:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Nov 2017 18:23:11 +0000 (UTC) Cc: 29364@debbugs.gnu.org To: Chunyang Xu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 20 19:23:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGqim-0008Nr-Ep for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Nov 2017 19:23:04 +0100 Original-Received: from localhost ([::1]:58806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGqit-0003NY-56 for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Nov 2017 13:23:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGqim-0003NH-O6 for bug-gnu-emacs@gnu.org; Mon, 20 Nov 2017 13:23:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGqik-0002ok-3y for bug-gnu-emacs@gnu.org; Mon, 20 Nov 2017 13:23:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40672) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eGqik-0002oe-0l for bug-gnu-emacs@gnu.org; Mon, 20 Nov 2017 13:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eGqij-0005be-N0 for bug-gnu-emacs@gnu.org; Mon, 20 Nov 2017 13:23:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Nov 2017 18:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29364 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29364-submit@debbugs.gnu.org id=B29364.151120215621518 (code B ref 29364); Mon, 20 Nov 2017 18:23:01 +0000 Original-Received: (at 29364) by debbugs.gnu.org; 20 Nov 2017 18:22:36 +0000 Original-Received: from localhost ([127.0.0.1]:49353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGqiI-0005aw-Ls for submit@debbugs.gnu.org; Mon, 20 Nov 2017 13:22:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33253) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGqiG-0005ae-J5 for 29364@debbugs.gnu.org; Mon, 20 Nov 2017 13:22:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGqi8-0002R5-Nj for 29364@debbugs.gnu.org; Mon, 20 Nov 2017 13:22:27 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGqi8-0002Qx-KP; Mon, 20 Nov 2017 13:22:24 -0500 Original-Received: from [176.228.60.248] (port=3009 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eGqi6-0001Kn-Tn; Mon, 20 Nov 2017 13:22:24 -0500 In-reply-to: (message from Chunyang Xu on Mon, 20 Nov 2017 20:34:48 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:140155 Archived-At: > From: Chunyang Xu > 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 文字文字文字文字文字文字文字文字文字 > 文字文字文字文字文字文字文字文字文字文字文字文字文 > 字。 > ----------------------------------------------------- > > > 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.