Blame SOURCES/0001-Make-comments-about-_chinese_mode-clearer.patch

b385cc
From 1c316e066f88f9555de5407f00b4be0b076fd42c Mon Sep 17 00:00:00 2001
b385cc
From: Mike FABIAN <mfabian@redhat.com>
b385cc
Date: Thu, 24 Jan 2013 12:47:19 +0100
b385cc
Subject: [PATCH 1/2] Make comments about _chinese_mode clearer
b385cc
b385cc
There was one obvious typo and the comments did not explain
b385cc
the meaning of _chinese_mode clearly.
b385cc
---
b385cc
 engine/table.py | 14 +++++++-------
b385cc
 1 file changed, 7 insertions(+), 7 deletions(-)
b385cc
b385cc
diff --git a/engine/table.py b/engine/table.py
b385cc
index e171949..c106a0a 100644
b385cc
--- a/engine/table.py
b385cc
+++ b/engine/table.py
b385cc
@@ -217,11 +217,11 @@ class editor(object):
b385cc
         if self._onechar == None:
b385cc
             self_onechar = False
b385cc
         # self._chinese_mode: the candidate filter mode,
b385cc
-        #   0 is simplify Chinese
b385cc
-        #   1 is traditional Chinese
b385cc
-        #   2 is Big charset mode, but simplify Chinese first
b385cc
-        #   3 is Big charset mode, but traditional Chinese first
b385cc
-        #   4 is Big charset mode.
b385cc
+        #   0 means to show simplified Chinese only
b385cc
+        #   1 means to show traditional Chinese only
b385cc
+        #   2 means to show all characters but show simplified Chinese first
b385cc
+        #   3 means to show all characters but show traditional Chinese first
b385cc
+        #   4 means to show all characters
b385cc
         # we use LC_CTYPE or LANG to determine which one to use
b385cc
         self._chinese_mode = variant_to_value(self._config.get_value(
b385cc
                 self._config_section,
b385cc
@@ -636,13 +636,13 @@ class editor(object):
b385cc
             return candidates[:]
b385cc
         bm_index = self._pt.index('category')
b385cc
         if self._chinese_mode == 2:
b385cc
-            # big charset with SC first
b385cc
+            # All Chinese characters with simplified Chinese first
b385cc
             return  filter (lambda x: x[bm_index] & 1, candidates)\
b385cc
                     +filter (lambda x: x[bm_index] & (1 << 1) and \
b385cc
                             (not x[bm_index] & 1), candidates)\
b385cc
                     + filter (lambda x: x[bm_index] & (1 << 2), candidates)
b385cc
         elif self._chinese_mode == 3:
b385cc
-            # big charset with SC first
b385cc
+            # All Chinese characters with traditional Chinese first
b385cc
             return  filter (lambda x: x[bm_index] & (1 << 1), candidates)\
b385cc
                     +filter (lambda x: x[bm_index] & 1 and\
b385cc
                     (not x[bm_index] & (1<<1)) , candidates)\
b385cc
-- 
b385cc
1.7.11.7
b385cc