Upgrading to GitLab 11.10.0. Expect errors and see debian-infrastructure-announce@lists.debian.org for further information.

Commit 70ec844c authored by Mathieu Bridon's avatar Mathieu Bridon

Port to the new pycangjie API

Note that characters are not sorted by frequency for us any more, but
instead libcangjie gives us objects which have the frequency as one
of their attributes, so we're now sorting ourselves.
parent 7ed0c186
......@@ -19,6 +19,8 @@
__all__ = ["EngineCangjie", "EngineQuick"]
from operator import attrgetter
from gi.repository import GLib
from gi.repository import IBus
......@@ -308,8 +310,10 @@ class Engine(IBus.Engine):
code = self.current_input
if code:
for c in self.cangjie.getCharacters(code):
for c in sorted(self.cangjie.getCharacters(code),
num_candidates += 1
if num_candidates == 0:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment