1. Edit /usr/share/ibus-table/engine/table.py 
2. Find the following code (at about line 116)
if __lc.find('zh_') == 0:
                # this is a zh_XX
                __place =__lc.split('_')[1]
                if __place == 'cn':
                    return 0
                else:
                    return 1
            else:
                if self.db._is_chinese:                                                                               
                    # if IME declare as Chinese IME
                    return 0
                else:
                    return -13. Edit as following
if __lc.find('zh_') == 0:
                # this is a zh_XX
                __place =__lc.split('_')[1]
                if __place == 'cn':
                    return 0
                else:
                    return 1
            else:
                if self.db._is_chinese:                                                                               
                    # if IME declare as Chinese IME
                    # return 0
                    return 1  #Edit this line to return 1 instead of 0
                else:
                    return -14. Restart IBUS and DONE
 
 
Thank you very much! This worked perfectly!
ReplyDeleteThe change still work on my Ubuntu 12.04, Thanks.
ReplyDeleteThis change doesn't work for Ubuntu 12.10. Is it because my keyboard input method is ibus?
ReplyDelete