Gentoo Archives: gentoo-commits

From: "Matsuu Takuto (matsuu)" <matsuu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-i18n/ibus-anthy/files: ibus-anthy-0.1.1.20080912-gentoo.patch
Date: Wed, 21 Jan 2009 14:42:30
Message-Id: E1LPeHi-0004qP-KM@stork.gentoo.org
1 matsuu 09/01/21 14:42:26
2
3 Added: ibus-anthy-0.1.1.20080912-gentoo.patch
4 Log:
5 Backport from git tree.
6 (Portage version: 2.1.6.6/cvs/Linux 2.6.28-gentoo x86_64)
7
8 Revision Changes Path
9 1.1 app-i18n/ibus-anthy/files/ibus-anthy-0.1.1.20080912-gentoo.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/ibus-anthy/files/ibus-anthy-0.1.1.20080912-gentoo.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/ibus-anthy/files/ibus-anthy-0.1.1.20080912-gentoo.patch?rev=1.1&content-type=text/plain
13
14 Index: ibus-anthy-0.1.1.20080912-gentoo.patch
15 ===================================================================
16 diff -Naur ibus-anthy-0.1.1.20080912.orig/engine/engine.py ibus-anthy-0.1.1.20080912/engine/engine.py
17 --- ibus-anthy-0.1.1.20080912.orig/engine/engine.py 2008-09-04 00:12:21.000000000 +0900
18 +++ ibus-anthy-0.1.1.20080912/engine/engine.py 2009-01-13 19:06:22.000000000 +0900
19 @@ -568,6 +568,15 @@
20 return True
21
22 def __on_key_space(self):
23 + if self.__input_mode == INPUT_MODE_WIDE_LATIN:
24 + # Input Wide Latin chars
25 + char = unichr(keysyms.space)
26 + wide_char = symbol_rule.get(char, None)
27 + if wide_char == None:
28 + wide_char = ibus.unichar_half_to_full(char)
29 + self.__commit_string(wide_char)
30 + return True
31 +
32 if self.__preedit_ja_string.is_empty():
33 return False
34
35 diff -Naur ibus-anthy-0.1.1.20080912.orig/engine/romaji.py ibus-anthy-0.1.1.20080912/engine/romaji.py
36 --- ibus-anthy-0.1.1.20080912.orig/engine/romaji.py 2008-09-03 15:12:49.000000000 +0900
37 +++ ibus-anthy-0.1.1.20080912/engine/romaji.py 2009-01-13 17:57:03.000000000 +0900
38 @@ -56,6 +56,12 @@
39 self._jachars = jachars
40 return [RomajiSegment(c)]
41
42 + jachars, c = romaji_correction_rule.get(text, (None, None))
43 + if jachars:
44 + self._enchars = text[0]
45 + self._jachars = jachars
46 + return [RomajiSegment(c)]
47 +
48 for i in range(-min(4, len(text)), 0):
49 enchars = text[i:]
50
51 @@ -107,6 +113,11 @@
52 self._enchars = c
53 return [RomajiSegment(text[0], jachars)]
54
55 + jachars, c = romaji_correction_rule.get(text, (None, None))
56 + if jachars:
57 + self._enchars = c
58 + return [RomajiSegment(text[0], jachars)]
59 +
60 for i in range(min(4, len(text)), 0, -1):
61 enchars = text[:i]
62
63 diff -Naur ibus-anthy-0.1.1.20080912.orig/engine/tables.py ibus-anthy-0.1.1.20080912/engine/tables.py
64 --- ibus-anthy-0.1.1.20080912.orig/engine/tables.py 2008-09-04 00:13:03.000000000 +0900
65 +++ ibus-anthy-0.1.1.20080912/engine/tables.py 2009-01-13 18:31:31.000000000 +0900
66 @@ -228,6 +228,7 @@
67
68 symbol_rule = {
69 # symbols
70 + u" " : u" ",
71 u"," : u"、",
72 u"." : u"。",
73 u"!" : u"!",
74 @@ -570,22 +571,22 @@
75 u"%" : (u"%", u"%"),
76 u"&" : (u"&", u"&"),
77 u"’" : (u"’", u"'"),
78 - u"(" : (u"(", u""),
79 + u"(" : (u"(", u"("),
80 u")" : (u")", u")"),
81 u"〜" : (u"〜", u"~"),
82 u"=" : (u"=", u"="),
83 - u"^" : (u"^", u"u"),
84 + u"^" : (u"^", u"^"),
85 u"\" : (u"\", u"\\"),
86 u"|" : (u"|", u"|"),
87 u"‘" : (u"‘", u"`"),
88 u"@" : (u"@", u"@"),
89 - u"{" : (u"{", u""),
90 + u"{" : (u"{", u"{"),
91 u"「" : (u"「", u"「"),
92 u"+" : (u"+", u"+"),
93 u";" : (u";", u";"),
94 u"*" : (u"*", u"*"),
95 - u":" : (u":", u" : u"),
96 - u"}" : (u"}", u")"),
97 + u":" : (u":", u":"),
98 + u"}" : (u"}", u"}"),
99 u"」" : (u"」", u"」"),
100 u"<" : (u"<", u"<"),
101 u">" : (u">", u">"),