From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Problem of auto-fill-mode for wide character Date: Wed, 04 Jan 2006 13:28:08 +0900 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1136348930 5825 80.91.229.2 (4 Jan 2006 04:28:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Jan 2006 04:28:50 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 04 05:28:46 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Eu0GQ-0001Tj-Gl for ged-emacs-devel@m.gmane.org; Wed, 04 Jan 2006 05:28:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eu0I4-0001lw-Q2 for ged-emacs-devel@m.gmane.org; Tue, 03 Jan 2006 23:30:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Eu0Hc-0001lq-PR for emacs-devel@gnu.org; Tue, 03 Jan 2006 23:29:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Eu0Hc-0001le-B2 for emacs-devel@gnu.org; Tue, 03 Jan 2006 23:29:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eu0Hc-0001la-4o for emacs-devel@gnu.org; Tue, 03 Jan 2006 23:29:56 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Eu0Iw-0003MF-O6 for emacs-devel@gnu.org; Tue, 03 Jan 2006 23:31:19 -0500 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id k044S9N0029017; Wed, 4 Jan 2006 13:28:09 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.13.4/8.13.4/Debian-3) with ESMTP id k044S9jc029922; Wed, 4 Jan 2006 13:28:09 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1Eu0Fs-0000Er-00; Wed, 04 Jan 2006 13:28:08 +0900 Original-To: "Herbert Euler" In-reply-to: (herberteuler@hotmail.com) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:48679 Archived-At: In article , "Herbert Euler" writes: [...] >> I've just registered these apparent characters: >> U+3041..U+30FF, U+3400..U+4DB5, U+4e00..U+9fbb, U+F900..U+FAFF, >> U+FF00..U+FF9F, U+20000..U+2FFFF >> So, now auto-fill should work for most Han characters. >> >> But, there are many more questionable characters, for instance: >> U+3000..U+303F, U+3200..U+33FF, ... > In my opinion, this solution is not an applicable one. Trying to register > most characters in Chinese, Japanese and Korean as auto-fill-chars would > waste lots of memory, and perhaps some characters would be forgot > to be registered. For example, in Japanese, Hiragana and Katakana > probably work, but not for most Kanji. Besides, the policy for filling > punctuations in English and in Chinese is different: usually, if a > punctuation > appears to be the last character of a line but exceeds the fill-column, > it will be extended to the next line with the word it follows in English, > but left there (and following characters will be moved to the next > line) in Chinese. I don't know whether this is supported by registering > auto-fill-chars. At first, a char-table doesn't consume that much space if you register characters of continuous codes. For instance, registering all Han characters is not a problem. Next, it seems that you misunderstand the role of auto-fill-chars. It's a table to register characters that triggers the auto-fill-function. How auto-fill-function fills the line(s) is a different thing. And, although it's difficult to explain how lines are filled (it's encoded in functions), at least Emacs considers special treatment of punctuations (e.g. opening/closing parentheses at the end/beginning of line) for Chinese and Japanese. You'll get a hint if you read lisp/international/kinsoku.el. --- Kenichi Handa handa@m17n.org