Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 440 by fracting: [补丁提交][中英文混合输入的小改进] ibus-pinyin在
双拼模式下,中文输入状态中,键入字符时,在辅助栏同时显示英文字母和译码后的音节
http://code.google.com/p/ibus/issues/detail?id=440
以紫光拼音双拼方案为例
在中文输入状态下,想要输入单词gmail,键入gmail,在输入法辅助栏显示的是译码后的
音节 gun'chi'l
这样输入错误时也不容易发觉,而且影响输入速度,建议像搜狗拼音之类一样,在辅助栏
同时显示英文字母和译码后的音节,这样输入gmail,辅助栏会显示 gmail
[gun'chi'l] .
以下是一个简单的补丁.
##################################################################
--- pinyin.py 2009-07-03 20:21:41.915062018 +0800
+++ pinyin.py.new 2009-07-03 20:32:13.258567475 +0800
@@ -390,7 +390,9 @@
aux_string = u"".join([committed_string, u" ",
u"'".join(pinyin_list)])
else:
aux_string = u"'".join(pinyin_list)
-
+ #双拼模式下,中英文输入时在辅助栏显示英文字母
+ if PinYinEngine.__shuangpin:
+ aux_string = u"".join(self.__user_input.get_chars()) + "
[" + aux_string + "]"
if aux_string:
self.update_aux_string(aux_string, None, True)
else:
Attachments:
pinyin.py.patch 623 bytes
--
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en
-~----------~----~----~----~------~----~------~--~---