Commit 6a0e7981 authored by Mathieu Bridon's avatar Mathieu Bridon

Sort by "classic" frequency

Our new, better frequency is not ready yet (see issue #11), and many
users have built some muscle memory from their years of typing
Cangjie/Quick on that other Operating System.

Let's use that older, worse ordering for now, and we'll see later on how
to introduce the new one.
parent 3bf451cd
......@@ -349,7 +349,7 @@ class Engine(IBus.Engine):
code = self.current_input
for c in sorted(self.cangjie.getCharacters(code),
key=attrgetter("frequency"),
key=attrgetter("classic_frequency"),
reverse=True):
self.lookuptable.append_candidate(IBus.Text.new_from_string(c.chchar))
num_candidates += 1
......
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