Make comments about _chinese_mode clearer

There was one obvious typo and the comments did not explain
the meaning of _chinese_mode clearly.
Improve detection of simplified and traditional Chinese

Resolves:  #857967 https://bugzilla.redhat.com/show_bug.cgi?id=857967

see also http://code.google.com/p/ibus/issues/detail?id=1492
“unable to write 晞 with any of the two Wubi input methods”
晞 (wubi code = JQDH) cannot be written.

- add a script generate-chinese-variants.py which parses
  Unihan_Variants.txt from the Unihan database and generates another
  Python script.  The generated Python script contains a hash table
  with information which characters are simplified, which
  characters are traditional and which characters are both and
  a small function using that hash table to detect whether a string
  is traditional or simplified Chinese or both.
- use the generated script and function in tabsqlitedb.py instead
  of the old way to distinguish between simplified and tradtional
  Chinese which used test encoding to legacy encodings like gb2312
  and big5hkscs.

The new way of simplified/traditional detection should give
better results. 晞 from issue 1492 is now classified as both
traditional and simplified Chinese, not only traditional as it
was with the old detection code.
add engine/chinese_variants.py to engine/Makefile.am

Needed by

commit f17e9b3aecea7b6646da689a466341936bce1ee3
Author: Mike FABIAN <mfabian@redhat.com>
Date:   Thu Jan 24 17:37:27 2013 +0100

    Improve detection of simplified and traditional Chinese
Fix typo, thanks to Mathieu Bridon
Add auto_select functionality to select the first phrase when typing. Useful for Cyrillic transliteration.
Update cmode pproperty in chinese mode only
Fall back to auto_select = False if neither dconf nor the table have a value for auto_select
Preedit needs to be updated on page-up and page-down

When paging through the lookup table, the preedit needs to be updated
to show the phrase selected by the cursor in the lookup table. Before
this patch, the preedit was not updated and when commiting the
character selected in the lookup table suddenly replaced the character
in the preedit. This differed from the behaviour when moving through
the lookup table with the arrow-up and arrow-down keys.
Using page-up and page-down or the arrow icons at the bottom
of the lookup table should also update the preedit just like it
is done when the arrow-up and arrow-down keys are used.
Changes in dconf values now get applied immediately

Changing values of dconf keys for example with

   dconf write /desktop/ibus/engine/table/cangjie3/chinesemode 3

was not applied immediately to the ibus-table engine, only
when changing to a different input method and back this
change was applied.

This commit fixes this problem.
Support uppercase umlauts

Needed for translit.txt and translit-ua.txt. This should be solved in
a better, more generic way. But at the moment this patch is better
than nothing.
Merge pull request #10 from mike-fabian/mike-collected-changes-on-kaio-1.6-branch

Mike collected changes on kaio 1.6 branch
Merge upstream/1.6 to 1.6