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

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