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

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