Issue 50 in vimim: Mycloud not work for sentense input.

0 views
Skip to first unread message

vi...@googlecode.com

unread,
Jan 4, 2010, 7:42:38 PM1/4/10
to vi...@googlegroups.com
Status: Accepted
Owner: pan.shi...@gmail.com
Labels: Type-Defect Priority-High

New issue 50 by pan.shi...@gmail.com: Mycloud not work for sentense input.
http://code.google.com/p/vimim/issues/detail?id=50

What steps will reproduce the problem?
1. 输入 nihao<onekey>
2. 在弹出的菜单中选择“你”
3. 然后发现 hao 字也没有了。

What is the expected output? What do you see instead?
应该我字上屏之后,继续选择 hao 字。

Please use labels and text to provide additional information.
computer 电脑:unix_screen
Vim 版本:vim 702
VimIM 版本:vimim.vim 2087
encoding 编码:utf-8
fencs 编码:ucs-bom,utf-8,euc-cn,cp936,gb18030,latin1
lc_time 编码:zh_CN.UTF-8
mode 风格:i_CTRL-^ 经典静态
im 输入:〖自己的云:全拼〗
im 输入:双拼:智能ABC
cloud 搜狗:〖全云输入〗
VimIM 设置:g:vimim_shuangpin_abc=1
VimIM 设置:g:vimim_static_input_style=1
VimIM 设置:g:vimim_tab_as_onekey=1
VimIM 设置:g:vimim_cloud_plugin=/home/poet/src/mycloud/mycloud
VimIM 设置:g:vimim_punctuation_navigation=0 



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

vi...@googlecode.com

unread,
Jan 4, 2010, 8:50:02 PM1/4/10
to vi...@googlegroups.com

Comment #1 on issue 50 by maxiangjiang: Mycloud not work for sentense input.
http://code.google.com/p/vimim/issues/detail?id=50

I could not reproduce this case. Both gVim.exe and vim on cygwin worked for
me:
(1) nihao =>
(2) picked 8 or g => 你
(3) <Space> => 好


你好

nihao 你好
nihao 拟好
nihao 倪浩
nihao 泥蒿
nihao 倪昊
nihao 倪皓
nihao 匿号
ni 你
ni 拟


computer 电脑:Windows32_builtin_gui 
Vim 版本:gvim.exe 702 
VimIM 版本:vimim.vim 2087 
encoding 编码:utf-8 
fencs 编码:ucs-bom,utf8,chinese 
lc_time 编码:English_United States.1252 
mode 风格:i_CTRL-^ 经典静态 
im 输入:〖全云输入★经典静态〗 
cloud 搜狗:〖全云输入〗 
VimIM 设置:g:vimim_static_input_style=1 
VimIM 设置:g:vimim_tab_as_onekey=1 
VimIM 设置:g:vimim_cloud_plugin=python C:/home/vimim/mycloud/mycloud 

pan shizhu

unread,
Jan 4, 2010, 9:29:33 PM1/4/10
to vi...@googlegroups.com
im 输入:〖自己的云:全拼〗

You don't have this line, so it seems that the mycloud check had
failed, you're not using mycloud, you're using sogou cloud.

sogou cloud works, but mycloud not work.

The newest version of mycloud is a bit too big so that you may not
want to download it, if you don't update mycloud to the newest
version, you can comment some lines in vimim_initialize_mycloud_plugin
to make the check pass, and then test the situation.

vi...@googlecode.com

unread,
Jan 4, 2010, 10:16:50 PM1/4/10
to vi...@googlegroups.com

Comment #2 on issue 50 by maxiangjiang: Mycloud not work for sentense input.
http://code.google.com/p/vimim/issues/detail?id=50

Please verify.

The issue is that the keyboard turns into compound one (nihao_xxxx, instead
of nihao)
after matching. The meaning of sentence is lost then. Three extra things

(1) Downloading mycloud.bz2 is stuck from within firefox. It still
showed "one active
download(8 seconds remaining) after half an hour
(2) Using commandline wget is reliable for downloading
(3) It is pain to use mycloud from within gvim.exe. I found three screen
flash before
I could get the menu. Using vim is supposed to be elegant, and any single
screen
flash is intolerable for me. (Should we turned it off for gvim.exe, to
shut down any
possible misuse?) My test was done using console vim.

vi...@googlecode.com

unread,
Jan 6, 2010, 3:50:32 AM1/6/10
to vi...@googlegroups.com

Comment #3 on issue 50 by pan.shi...@gmail.com: Mycloud not work for
sentense input.
http://code.google.com/p/vimim/issues/detail?id=50

经测试,问题并没有解决。

对自己的云而言,双拼和全拼没有区别,不影响测试。

computer 电脑:unix_screen
Vim 版本:vim 702
VimIM 版本:vimim.vim 2115
encoding 编码:utf-8
fencs 编码:ucs-bom,utf-8,euc-cn,cp936,gb18030,latin1
lc_time 编码:zh_CN.UTF-8
mode 风格:i_CTRL-^ 经典静态
im 输入:〖自己的云:智能双打〗
im 输入:智能双打
cloud 搜狗:〖全云输入〗
VimIM 设置:g:vimim_shuangpin_abc=1
VimIM 设置:g:vimim_static_input_style=1
VimIM 设置:g:vimim_tab_as_onekey=1
VimIM 设置:g:vimim_punctuation_navigation=0 

vi...@googlecode.com

unread,
Jan 6, 2010, 4:01:49 PM1/6/10
to vi...@googlegroups.com

Comment #4 on issue 50 by maxiangjiang: Mycloud not work for sentense input.
http://code.google.com/p/vimim/issues/detail?id=50

Well, it looks like mycloud initialization was broken, as I could no
longer input anything in Chinese:

computer 电脑:Windows32_builtin_gui 
Vim 版本:gvim.exe 702 
VimIM 版本:vimim.vim 2118 
encoding 编码:utf-8 
fencs 编码:ucs-bom,utf8,chinese 
lc_time 编码:English_United States.1252 
mode 风格:i_CTRL-^ 经典静态 
im 输入:〖自己的云:0〗 
cloud 搜狗:每超过0个字符就开始云输入 
VimIM 设置:g:vimim_static_input_style=1 
VimIM 设置:g:vimim_tab_as_onekey=1 
VimIM 设置:g:vimim_cloud_plugin=python C:/home/vimim/mycloud/mycloud 

vi...@googlecode.com

unread,
Jan 6, 2010, 7:34:35 PM1/6/10
to vi...@googlegroups.com

Comment #5 on issue 50 by pan.shi...@gmail.com: Mycloud not work for
sentense input.
http://code.google.com/p/vimim/issues/detail?id=50


是的,因为你认为 windows gvim 运行 system() 的用户体验不好,因此我就在
gui_win32 的情
况下完全禁止了使用 system() 方式调用 mycloud,目前只能使用 cygwin 的方式。或
者命令行
方式。

等我 libcall 的库编好了之后, windows gvim 就可以使用那个动态库来实现无弹出
黑框的
mycloud 了。

vi...@googlecode.com

unread,
Jan 6, 2010, 9:19:35 PM1/6/10
to vi...@googlegroups.com

Comment #6 on issue 50 by maxiangjiang: Mycloud not work for sentense input.
http://code.google.com/p/vimim/issues/detail?id=50

>> 因此我就在 gui_win32 的情况下完全禁止了使用 system() 方式调用 mycloud

YES! Great decision.

>> 目前只能使用 cygwin 的方式。

I could just reproduce the error on cygwin. It was different from what I
saw before.
No more 4corner on the menu, for example? I could see fix before, but no
more this time.
Any other change?

vi...@googlecode.com

unread,
Jan 6, 2010, 9:33:11 PM1/6/10
to vi...@googlegroups.com

Comment #7 on issue 50 by maxiangjiang: Mycloud not work for sentense input.
http://code.google.com/p/vimim/issues/detail?id=50

Wait ...

Mycloud seems still not ready for cygwin. (?)
When I set it on my vimrc
:let g:vimim_cloud_plugin="python C:/home/vimim/mycloud/mycloud"

I am supposed to use mycloud first, before I can use sogou cloud?
However, I could not find mycloud ==>


computer 电脑:cygwin_xterm 
Vim 版本:vim 702 
VimIM 版本:vimim.vim 2128 
encoding 编码:utf-8 
fencs 编码:ucs-bom,utf8,chinese 
lc_time 编码:C 
mode 风格:i_CTRL-^ 经典静态 
im 输入:〖全云输入★经典静态〗 
datafile 词库:/home/xma/svn/vim/vimfiles/plugin/privates.txt 
cloud 搜狗:〖全云输入〗 
VimIM 设置:g:vimim_static_input_style=1 
VimIM 设置:g:vimim_tab_as_onekey=1 
VimIM 设置:g:vimim_cloud_plugin=python C:/home/vimim/mycloud/mycloud 
VimIM 设置:g:vimim_punctuation_navigation=0 


vi...@googlecode.com

unread,
Jan 6, 2010, 9:52:46 PM1/6/10
to vi...@googlegroups.com

Comment #8 on issue 50 by pan.shi...@gmail.com: Mycloud not work for
sentense input.
http://code.google.com/p/vimim/issues/detail?id=50

Wait for some time, I've just got a spare computer to run Windows, and I'm
downloading cygwin to setup the test environment...

What is the most obvious is: if you cannot see the 4corner hint, then
you're using
sogou cloud instead of mycloud.

vi...@googlecode.com

unread,
Jan 7, 2010, 2:17:28 PM1/7/10
to vi...@googlegroups.com

Comment #9 on issue 50 by maxiangjiang: Mycloud not work for sentense input.
http://code.google.com/p/vimim/issues/detail?id=50

It is fixed, please verify. (I tested on cygwin 1.7)

One major change is to turn "nihao__xxx" back to "nihao".
While it is possible to get "nihao" (without __xxx) directly, but
another session variable has to be created. I took simple approach, at
the cost of parsing those extra ___xxx.

One suggestion: It is possible to "unite" all my cloud (local and
remote) options into one?

Now, we have three:

g:vimim_cloud_plugin
g:vimim_cloud_plugin_ip
g:vimim_cloud_pim

But, at one time, only one will be used (I am right?).
Therefore, it looks better to use one variable, and we can define
number (such as, different value has different meaning).

Then, it also helps to simplify the code. For example, to fix this
bug, I have the following:
-----------------------------------------------------------------
if len(s:vimim_cloud_plugin) > 1
let first_candidate = get(split(first_candidate,"_"),0)
endif
-----------------------------------------------------------------

I feel we will need the same thing for other mycloud package.

vi...@googlecode.com

unread,
Jan 7, 2010, 7:47:58 PM1/7/10
to vi...@googlegroups.com
Updates:
Status: Verified

Comment #10 on issue 50 by pan.shi...@gmail.com: Mycloud not work for
sentense input.
http://code.google.com/p/vimim/issues/detail?id=50

Verified.

Reply all
Reply to author
Forward
0 new messages