Monday, July 26, 2010

Re: [bug report] Vim Help on IME

On 25/07/10 23:02, Sean wrote:
> Hi Bram,
>
> It is a good time to consider this Vim help entry as a bug:
>
> :help IME
>
> > 8. Input on MS-Windows *mbyte-IME*
> > To input multibyte characters on Windows, you have to use Input
> > Method Editor(IME). process of your editing text, you must
> > switch status (on/off) of IME many many many times. Because IME
> > with status on is hooking all of your key inputs, you cannot
> > input 'j', 'k', or almost all of keys to Vim directly.
>
> Those statements are not only not true, but also underestimate the
> power of vim scripting.
>
> VimIM plugin is created to do Input under Windows as well as Console
> without using any external API.
>
> As an example, all CJK in the VimIM manual (http://
> vimim.googlecode.com/svn/vimim/vimim.html) were input directly from
> within vim without following the "official" way suggested by Vim Help.
>
> Sean
>

Let's say it is unclear. As far as I remember, or rather, let's say, all
the time since there has been a +multi_byte feature, Vim (when compiled
with +multi_byte and with 'encoding' set to a multibyte charset, of
course) has always allowed the user, even on Windows, to enter multibyte
characters without the need for an Input Method, by the following means:

- Any character, multibyte or otherwise, can be entered directly if your
keyboard has a key or key combination for it: for instance my Belgian
keyboard natively provides many accented characters, which, in Unicode,
are above 0x7F, therefore multibyte if 'encoding' is set to UTF-8. It
even has key combinations for the Euro sign and the French oe and OE
digraphs, none of which is included in the Latin1 character set.

- Any character for which a digraph is defined can be entered with a
Ctrl-K prefix, see :help i_CTRL-K

- Any character defined as the {rhs} of an imap or of an lmap
(including, in the latter case, those defined by a keymap) can be
entered by means of that mapping.

- Any Unicode codepoint at all (including "noncharacter" codepoints, of
which the Unicode Consortium has decided that they shall never be used)
can be entered by the method described under :help i_CTRL-V_digit if you
know its Unicode codepoint number in hex.

I believe that there is part of a sentence missing in that help
paragraph (or maybe thought to be implicit in the context of a
discussion about Input Methods), as follows:

To input multibyte characters *by means of an Input Method* on Windows,
you have to use an Input Method Editor (IME). (etc.)

In general, that whole section of the help sounds like it had been
written by someone with an imperfect knowledge of English. Maybe it
could be improved by rereading and copyediting.


Best regards,
Tony.
--
There is no right or wrong, there is only your personal opinion.
(Bram Moolenaar)

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment