amoikevin / libgooglepinyin

Automatically exported from code.google.com/p/libgooglepinyin
0 stars 0 forks source link

Candidates in Traditional chinese #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When you write in the traditional chinese mode the candidates are still showed 
in simplified chinese (except of the first candidate)

There is problem in the file engine.py
on Lines 291, 339 in two for cycles, where miss the conversion.

  for i in range...
     text = im_get_candidate(i)
+    if self.__trad_chinese[self.__mode]:
+      text = libopencc.convert(text)
+      pass
     self.__lookup_table.append_candidate(ibus.Text(text))
     pass

Original issue reported on code.google.com by m.vys...@seznam.cz on 22 Aug 2012 at 9:11