Hi,

Attached is my patch to add 'cjkw(idth)' option to toggle CJK width
option. When turned on, characters with East Asian width class
of 'A'(mbiguous) (see UTR #1? 'East Asian Width) are treated as
having the cell width of 2 instead of 1. The default is off(because
characters affected had better be treated as having the cell width
of '1' 'typography-wise' ) and it's only effective when the fileencoding
is UTF-8.

This option is necessary because in the GUI mode (and in a terminal
where a CJK font is used or a similar option is turned on.
e.g. xterm with 'cjk-width' option), many East Asian
people (CJK) use CJK fonts which have fullwidth (cell width of 2)
glyphs for characters with EA Width class 'A'. With
this patch and 'cjkw' turned on, there's no more inconsistency
between the width of glyphs  for characters like Euro, registered
sign, copyright sign in those fonts  and that perceived by vim.

FYI, xterm has a similar option 'cjk-width'.  Lik xterm,
my patch uses Markus Kuhn's EA width 'A' character table
automatically generated from Unicode 3.2. When Unicode 4.0
is finalized, the table has to be updated.

It'd be nice if the patch can get in soon.

Jungshik

--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/



Reply via email to