Comment #4 on issue 787 by arch.raymondlin: [ibus-table]基于ibus-table的输入 法无法记忆繁简模式
http://code.google.com/p/ibus/issues/detail?id=787

I have found the reason for this problem.

This problem mainly affect the Traditional Chinese users like me only.
As a function named "get_chinese_mode" in /usr/share/ibus/ibus-table/table.py would determine
the candidate filter mode ( Traditional or Simplified ).
If the locale ( LC_CTYPE or LANG )of your linux distribution have not properly set to zh_TW or zh_HK,
the filter mode would be automatically set default to "simplify Chinese"

There are two solution to this problem for Traditional Chinese users,
first)
please configure your locale LC_CTYPE or LANG to zh_TW or zh_HK

second)
you need to modify the "table.py" file in the folder /usr/share/ibus/ibus-table/
(mostly time root permission is required to edit the file )
near line 125, change it to "return 1":
--------------------------------------------------------------------------
            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
                    # FIX HERE !!
                    #   0 is simplify Chinese
                    #   1 is traditional Chinese
                    return 1
                else:
                    return -1
--------------------------------------------------------------------------

--
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

回复