用ibus 打速成
以下既都係我用UBUNTU 10.04黎RUN~唔知其他得5得
1.先裝好IBUS
#fedora
ibus-setup
2. sudo aptitude install ibus-table-quick-classic
#fedora
yum install ibus-table-cangjie ibus-table-quick
3. sudo gedit /usr/share/ibus-table/engine/table.py
search “_page_size"
將右面個6改做9
search “elif key.code == keysyms.space:"
將呢句下面既
o_py = self._editor._py_mode
sp_res = self._editor.space ()
#return (KeyProcessResult,whethercommit,commitstring)
if sp_res[0]:
self.commit_string (sp_res[1])
#self.add_string_len(sp_res[1])
self.db.check_phrase (sp_res[1], sp_res[2])
else:
if sp_res[1] == u’ ‘:
self.commit_string (cond_letter_translate (u" “))
if o_py != self._editor._py_mode:
self._refresh_properties ()
self._update_ui ()
return True
換做
res = self._editor.page_down()
self._update_lookup_table ()
return res
4. 禁右上角個IBUS ICON, 左鍵, RESTART
5. 加漢語->速成古典版
PS. 仍有有3個問題, 一個碼個D唔可以禁空白黎揀, 同埋冇關聯字詞, 唔可以用9公格揀字愛麗絲:) 8/16/2010 3:37 PM
#about line 1355
if key.mask & modifier.RELEASE_MASK:
return True
if self._editor.is_empty ():
之間加入
if key.code>=65457 and key.code<=65465 :
key.code-=65408
elif key.code == keysyms.space and len(self._editor._chars[0])==1:
key.code=keysyms._1
就可以解決 單一個碼空白鍵輸入字, 同埋九宮格問題