all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problem of auto-fill-mode for wide character
@ 2005-12-17 15:58 Herbert Euler
  2005-12-28  7:46 ` Kenichi Handa
  0 siblings, 1 reply; 8+ messages in thread
From: Herbert Euler @ 2005-12-17 15:58 UTC (permalink / raw)


Hello everyone,

I'm very happy to see that Emacs supports Unicode internally,
but there is a problem in auto-fill-mode with this modification.
I'm going to explain why I think it's because of Unicode support.

In Emacs 21, some wide characters, such as Chinese characters,
are inserted with the command 'encoded-kbd-self-insert-iso2022
-8bit'. This makes it different from inserting command for ASCII
characters, which are insterted with 'self-insert-command'. Auto-
fill-mode works fine in this way (although I don't know about
the detail); if one inputs more Chinese characters beyond 'current
-fill-column', these Chinese characters will be moved to the next
line automatically. Perhaps it's because Chinese characters are
inserted with 'encoded-kbd-self-insert-iso2022-8bit' other than
'self-insert-command'.

In the current Unicode 2 branch, Chinese characters are inserted
with the command 'self-insert-command' as ASCII characters.
This makes auto-fill in Chinese like other languages such as English,
since "in Auto Fill mode, lines are broken automatically _at spaces_
when they get longer than the desired width". This is good to
languages in which words are separated with spaces, but at
least it's not appropriate for Chinese, because there are _no_
spaces between Chinese characters. So one can force Emacs
auto-fill either by inserting spaces or by pressing M-q to invoke
'fill-paragraph', both of them is not "natural" in Chinese editing.

Is my understanding correct? Could somebody help solve this
problem? Thanks.

Regards,
Guanpeng Xu

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Problem of auto-fill-mode for wide character
@ 2005-12-18  4:56 Herbert Euler
  0 siblings, 0 replies; 8+ messages in thread
From: Herbert Euler @ 2005-12-18  4:56 UTC (permalink / raw)


Hello,

I'm very happy to see that Emacs supports Unicode internally, but
there is a problem in auto-fill-mode with this modification.  I'm
going to explain why I think it's because of Unicode support.

In Emacs 21, some wide characters, such as Chinese characters, are
inserted with the command 'encoded-kbd-self-insert-iso2022
-8bit'. This makes it different from inserting command for ASCII
characters, which are insterted with 'self-insert-command'. Auto-
fill-mode works fine in this way (although I don't know about the
detail); if one inputs more Chinese characters beyond 'current
-fill-column', these Chinese characters will be moved to the next line
automatically. Perhaps it's because Chinese characters are inserted
with 'encoded-kbd-self-insert-iso2022-8bit' other than
'self-insert-command'.

In the current Unicode 2 branch, Chinese characters are inserted with
the command 'self-insert-command' as ASCII characters.  This makes
auto-fill in Chinese like other languages such as English, since "in
Auto Fill mode, lines are broken automatically _at spaces_ when they
get longer than the desired width". This is good to languages in which
words are separated with spaces, but at least it's not appropriate for
Chinese, because there are _no_ spaces between Chinese characters. So
one can force Emacs auto-fill either by inserting spaces or by
pressing M-q to invoke 'fill-paragraph', both of them is not "natural"
in Chinese editing.

Could somebody help solve this problem? Thanks.

Regards,
Guanpeng Xu

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-01-10  1:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-17 15:58 Problem of auto-fill-mode for wide character Herbert Euler
2005-12-28  7:46 ` Kenichi Handa
2005-12-30  2:43   ` Herbert Euler
2006-01-04  4:28     ` Kenichi Handa
2006-01-09  2:56   ` Herbert Euler
2006-01-10  1:20     ` Kenichi Handa
2006-01-10  1:58       ` Herbert Euler
  -- strict thread matches above, loose matches on Subject: below --
2005-12-18  4:56 Herbert Euler

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.