At 2010-08-07 21:57:23,"Tony Mechelynck" <antoine.mechely...@gmail.com> wrote:
>On 04/08/10 19:16, JiaYanwei wrote:>>
>> At 2010-08-04 23:46:23, "Bram Moolenaar"<b...@moolenaar.net>  wrote:>>>>>
>>> JiaYanwei  wrote:>>>
>>>> For example, I work with Windows Xp Simplified Chinese Edition. There's a
>>>> character 'CIRCLED NUMBER TWENTY' - U+2473, beyond the character set of ACP
>>>> (system active codepage) CP936. While it can be copyed and pasted into the
>>>> textbox of Find and Replace dialog, but it can't be inputed directly from
>>>> windows IME (the inputed character will be the question mark '?').>>>>
>>>> It puzzled me for a long time. I finally found the reason that ANSI Version
>>>> functions such as DispatchMessageA and IsDialogMessageA will Ignore the
>>>> WM_WCHAR message.>>>>
>>>> The attachment 2274_uime.patch.gz is the patch for vim 7.2.446, 
>>>> 2477_uime.patch.gz is for 7.3d revision 2...@mercurial.
>>>>>> Thanks.>>>
>>> Can a few people verify this works OK with different compilers?>>
>> I have just compiled it with msvc2005 express&  mingw and also have tested 
>> it.
>> It works ok.>>>> ps:
>> I have got a same waring many times while compile it by vc2005:
>>      warning C4819: The file contains a character that cannot be represented
>>        in the current code page (936). Save the  file in Unicode format to
>>        prevent data loss
>> This warning is useful for the IDE since soure maybe modified by it. But we
>> don't compile vim with the IDE, so... could we add "/wd4819" to CFLAGS to 
>> disable it?
>>OTOH, instead of having the Unicode codepoint in UTF-8, maybe it should 
>be represented in some sort of escape format? I'm not sure whether 
>"\u2473" or "\xE2\x91\xB3" or something else is the right representation 
>in this case though.>
>Of course, you can input any codepoint into Vim (with 'encoding' set to 
>UTF-8) by bypassing the IME, in this case by using Ctrl-V u 2 4 7 3 
>without the spaces. Or if you use it often, you can assign it to a 
>mapping or make up a keymap (about the latter, see 
>http://vim.wikia.com/wiki/How_to_make_a_keymap ).
Thanks.

Maybe I have't explained clearly. I just wish I can input Unicode Characters 
that beyond ACP by IME(e.g. some Pinyin input method, not directly by enter 
Unicode hex sequence) into Find and Replace dialog of gVim. Maybe the table 
as follows could help explain this more clearly:

                                      gVim  gVim-R&P notepad notepad-R&P
Copy & paste characters inside ACP      +      +        +       +
Input characters inside ACP by IME      +      +        +       +
Copy & paste characters beyond ACP      +      +        +       +
Input characters beyond ACP by IME      +      -        +       +

gVim: main edit window of gVim-win32
gVim-R&P: the textbox of Find and Replace dialog of gVim-win32
notpad: main edit window of the notepad.exe of Windows
notepad-R&P: the textbox of Find and Replace dialog of notepad.exe

>
>>
>>>
>>> --
>>> hundred-and-one symptoms of being an internet addict:
>>> 2. You kiss your girlfriend's home page.
>>>
>>> /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
>>> ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
>>> \\\        download, build and distribute -- http://www.A-A-P.org        ///
>>> \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
>>
>
>Best regards,
>Tony.
>-- 
>Violators can be fined, arrested or jailed for making ugly faces at a dog.
>               [real standing law in Oklahoma, United States of America]

Best regards,
Yanwei.
--

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui