Blame SOURCES/0001-Fix-typo-thanks-to-Mathieu-Bridon.patch

fc8e58
From 03cba776da99b05218c2b1c86f3e93d3373f253e Mon Sep 17 00:00:00 2001
fc8e58
From: Mike FABIAN <mfabian@redhat.com>
fc8e58
Date: Wed, 30 Jan 2013 07:41:54 +0100
fc8e58
Subject: [PATCH 1/5] Fix typo, thanks to Mathieu Bridon
fc8e58
fc8e58
---
fc8e58
 engine/chinese_variants.py         | 4 ++--
fc8e58
 tools/generate-chinese-variants.py | 8 ++++----
fc8e58
 2 files changed, 6 insertions(+), 6 deletions(-)
fc8e58
fc8e58
diff --git a/engine/chinese_variants.py b/engine/chinese_variants.py
fc8e58
index e48d992..5dce934 100644
fc8e58
--- a/engine/chinese_variants.py
fc8e58
+++ b/engine/chinese_variants.py
fc8e58
@@ -27,7 +27,7 @@ variants_table = {
fc8e58
     # 1 = 1 << 0       simplified Chinese
fc8e58
     # 2 = 1 << 1       traditional Chinese
fc8e58
     # 3 = (1 | 1 << 1) used both in simplified *and* traditional Chinese
fc8e58
-    # 4 = 2 << 3       mixture of simplified and traditional Chinese
fc8e58
+    # 4 = 1 << 2       mixture of simplified and traditional Chinese
fc8e58
     u'蘄': 2,
fc8e58
     u'谈': 1,
fc8e58
     u'預': 2,
fc8e58
@@ -6075,7 +6075,7 @@ def detect_chinese_category(phrase):
fc8e58
     1 = 1 << 0       simplified Chinese
fc8e58
     2 = 1 << 1       traditional Chinese
fc8e58
     3 = (1 | 1 << 1) used both in simplified *and* traditional Chinese
fc8e58
-    4 = 2 << 3       mixture of simplified and traditional Chinese
fc8e58
+    4 = 1 << 2       mixture of simplified and traditional Chinese
fc8e58
     '''
fc8e58
     # make sure that we got a unicode string
fc8e58
     if type(phrase) != type(u''):
fc8e58
diff --git a/tools/generate-chinese-variants.py b/tools/generate-chinese-variants.py
fc8e58
index b846496..c54eaec 100755
fc8e58
--- a/tools/generate-chinese-variants.py
fc8e58
+++ b/tools/generate-chinese-variants.py
fc8e58
@@ -58,7 +58,7 @@ variants_table_orig = {
fc8e58
     # 1 = 1 << 0       simplified Chinese
fc8e58
     # 2 = 1 << 1       traditional Chinese
fc8e58
     # 3 = (1 | 1 << 1) used both in simplified *and* traditional Chinese
fc8e58
-    # 4 = 2 << 3       mixture of simplified and traditional Chinese
fc8e58
+    # 4 = 1 << 2       mixture of simplified and traditional Chinese
fc8e58
     #
fc8e58
     # overrides can be added manually here. For example the following
fc8e58
     # line marks the 〇 character as used in both
fc8e58
@@ -185,7 +185,7 @@ variants_table = {
fc8e58
     # 1 = 1 << 0       simplified Chinese
fc8e58
     # 2 = 1 << 1       traditional Chinese
fc8e58
     # 3 = (1 | 1 << 1) used both in simplified *and* traditional Chinese
fc8e58
-    # 4 = 2 << 3       mixture of simplified and traditional Chinese
fc8e58
+    # 4 = 1 << 2       mixture of simplified and traditional Chinese
fc8e58
 ''')
fc8e58
 
fc8e58
     for phrase in variants_table_orig:
fc8e58
@@ -208,7 +208,7 @@ def detect_chinese_category(phrase):
fc8e58
     1 = 1 << 0       simplified Chinese
fc8e58
     2 = 1 << 1       traditional Chinese
fc8e58
     3 = (1 | 1 << 1) used both in simplified *and* traditional Chinese
fc8e58
-    4 = 2 << 3       mixture of simplified and traditional Chinese
fc8e58
+    4 = 1 << 2       mixture of simplified and traditional Chinese
fc8e58
     \'\'\'
fc8e58
     # make sure that we got a unicode string
fc8e58
     if type(phrase) != type(u''):
fc8e58
@@ -253,7 +253,7 @@ test_data = {
fc8e58
     # 1 = 1 << 0       simplified Chinese
fc8e58
     # 2 = 1 << 1       traditional Chinese
fc8e58
     # 3 = (1 | 1 << 1) used both in simplified *and* traditional Chinese
fc8e58
-    # 4 = 2 << 3       mixture of simplified and traditional Chinese
fc8e58
+    # 4 = 1 << 2       mixture of simplified and traditional Chinese
fc8e58
     u'乌': 1,
fc8e58
     u'烏': 2,
fc8e58
     u'晞': 3,
fc8e58
-- 
fc8e58
1.7.11.7
fc8e58