Merge lp:~gunnarhj/ubuntu/wily/ibus/pt_PT-compose into lp:ubuntu/wily/ibus

Proposed by Gunnar Hjalmarsson
Status: Rejected
Rejected by: Sebastien Bacher
Proposed branch: lp:~gunnarhj/ubuntu/wily/ibus/pt_PT-compose
Merge into: lp:ubuntu/wily/ibus
Diff against target: 131 lines (+111/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu-add-pt_PT-compose.patch (+103/-0)
To merge this branch: bzr merge lp:~gunnarhj/ubuntu/wily/ibus/pt_PT-compose
Reviewer Review Type Date Requested Status
Sebastien Bacher Disapprove
Review via email: mp+258527@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

Gunnar, thanks for the work but it seems upstream ibus fixed that differently right? Which means that solution is deprecated? I'm marking it as rejected but feel free to change it back if that's a wrong understanding of the situation

review: Disapprove
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Basically I agree. The one reason for uploading this (temporarily) would be if it will take some time before the upstream change lands in Ubuntu. Are you able to estimate that?

Revision history for this message
Sebastien Bacher (seb128) wrote :

No, but the new cycle just started so we should be able to get the update before the next version of ubuntu ships to users. Aron might have a better idea about that though

Unmerged revisions

56. By Gunnar Hjalmarsson

* debian/patches/ubuntu-add-pt_PT-compose.patch:
  - Add compose table for pt_PT (LP: #518056).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2015-04-04 20:39:27 +0000
3+++ debian/changelog 2015-05-07 16:21:13 +0000
4@@ -1,3 +1,10 @@
5+ibus (1.5.9-1ubuntu4) wily; urgency=medium
6+
7+ * debian/patches/ubuntu-add-pt_PT-compose.patch:
8+ - Add compose table for pt_PT (LP: #518056).
9+
10+ -- Gunnar Hjalmarsson <gunnarhj@ubuntu.com> Thu, 07 May 2015 17:48:00 +0200
11+
12 ibus (1.5.9-1ubuntu3) vivid; urgency=medium
13
14 * Drop the ibus dependency on python-notify. According to the changelog,
15
16=== modified file 'debian/patches/series'
17--- debian/patches/series 2014-10-28 17:07:58 +0000
18+++ debian/patches/series 2015-05-07 16:21:13 +0000
19@@ -21,3 +21,4 @@
20 ubuntu-disable-trigger.patch
21 ubuntu-forward-panel-properties.patch
22 ibus-zz-C.UTF-8.patch
23+ubuntu-add-pt_PT-compose.patch
24
25=== added file 'debian/patches/ubuntu-add-pt_PT-compose.patch'
26--- debian/patches/ubuntu-add-pt_PT-compose.patch 1970-01-01 00:00:00 +0000
27+++ debian/patches/ubuntu-add-pt_PT-compose.patch 2015-05-07 16:21:13 +0000
28@@ -0,0 +1,103 @@
29+Description: Add compose table for pt_PT
30+Bug: https://launchpad.net/bugs/518056
31+Forwarded: https://code.google.com/p/ibus/issues/detail?id=1777
32+Author: Gunnar Hjalmarsson <gunnarhj@ubuntu.com>
33+
34+diff -ru ibus.orig/bindings/vala/ibus-private.vapi ibus/bindings/vala/ibus-private.vapi
35+--- ibus.orig/bindings/vala/ibus-private.vapi 2014-09-16 04:55:35.000000000 +0200
36++++ ibus/bindings/vala/ibus-private.vapi 2015-04-07 16:37:11.073047380 +0200
37+@@ -19,4 +19,8 @@
38+ public const uint16[] seqs_pt_br;
39+ [CCode (cname = "ibus_compose_table_pt_br", cheader_filename = "ibuscomposetable.h")]
40+ public const Table table_pt_br;
41++ [CCode (cname = "ibus_compose_seqs_pt_pt", cheader_filename = "ibuscomposetable.h")]
42++ public const uint16[] seqs_pt_br;
43++ [CCode (cname = "ibus_compose_table_pt_pt", cheader_filename = "ibuscomposetable.h")]
44++ public const Table table_pt_br;
45+ }
46+diff -ru ibus.orig/src/gencomposetable.c ibus/src/gencomposetable.c
47+--- ibus.orig/src/gencomposetable.c 2014-09-16 04:55:35.000000000 +0200
48++++ ibus/src/gencomposetable.c 2015-04-07 16:32:51.081097441 +0200
49+@@ -140,6 +140,7 @@
50+ "/usr/share/X11/locale/el_GR.UTF-8/Compose",
51+ "/usr/share/X11/locale/fi_FI.UTF-8/Compose",
52+ "/usr/share/X11/locale/pt_BR.UTF-8/Compose",
53++ "/usr/share/X11/locale/pt_PT.UTF-8/Compose",
54+ NULL
55+ };
56+
57+@@ -883,6 +884,8 @@
58+ PRINT_LOCALE_AND_IBUS_COMPOSE_TABLE (fi_fi);
59+ else if (g_strstr_len (compose_file, -1, "pt_BR") != NULL)
60+ PRINT_LOCALE_AND_IBUS_COMPOSE_TABLE (pt_br);
61++ else if (g_strstr_len (compose_file, -1, "pt_PT") != NULL)
62++ PRINT_LOCALE_AND_IBUS_COMPOSE_TABLE (pt_pt);
63+ else
64+ g_assert_not_reached ();
65+ }
66+@@ -932,6 +935,10 @@
67+ g_printerr ("Generating ibus_compose_seqs_pt_br ...\n");
68+ g_printf ("static const guint16 ibus_compose_seqs_pt_br[] = {\n");
69+ }
70++ else if (g_strstr_len (compose_file, -1, "pt_PT") != NULL) {
71++ g_printerr ("Generating ibus_compose_seqs_pt_pt ...\n");
72++ g_printf ("static const guint16 ibus_compose_seqs_pt_pt[] = {\n");
73++ }
74+ else
75+ g_assert_not_reached ();
76+
77+@@ -952,6 +959,8 @@
78+ PRINT_IBUS_COMPOSE_TABLE_LOCALE (fi_fi, MAX_COMPOSE_LEN);
79+ else if (g_strstr_len (compose_file, -1, "pt_BR") != NULL)
80+ PRINT_IBUS_COMPOSE_TABLE_LOCALE (pt_br, MAX_COMPOSE_LEN);
81++ else if (g_strstr_len (compose_file, -1, "pt_PT") != NULL)
82++ PRINT_IBUS_COMPOSE_TABLE_LOCALE (pt_pt, MAX_COMPOSE_LEN);
83+ else
84+ g_assert_not_reached ();
85+
86+diff -ru ibus.orig/src/ibuscomposetable.h ibus/src/ibuscomposetable.h
87+--- ibus.orig/src/ibuscomposetable.h 2014-09-16 04:55:35.000000000 +0200
88++++ ibus/src/ibuscomposetable.h 2015-04-07 16:35:29.751713537 +0200
89+@@ -2088,10 +2088,42 @@
90+ G_N_ELEMENTS (ibus_compose_seqs_pt_br) / (4 + 2)
91+ };
92+
93++static const guint16 ibus_compose_seqs_pt_pt[] = {
94++ IBUS_KEY_dead_acute, IBUS_KEY_C, 0, 0,
95++ 0, 0x00C7, /* Ccedilla # LATIN CAPITAL LETTER C WITH CEDILLA */
96++ IBUS_KEY_dead_acute, IBUS_KEY_c, 0, 0,
97++ 0, 0x00E7, /* ccedilla # LATIN SMALL LETTER C WITH CEDILLA */
98++ IBUS_KEY_Multi_key, IBUS_KEY_quotedbl, IBUS_KEY_slash, 0,
99++ 0, 0x301E, /* U301e # DOUBLE PRIME QUOTATION MARK */
100++ IBUS_KEY_Multi_key, IBUS_KEY_quotedbl, IBUS_KEY_backslash, 0,
101++ 0, 0x301D, /* U301d # REVERSED DOUBLE PRIME QUOTATION MARK */
102++ IBUS_KEY_Multi_key, IBUS_KEY_apostrophe, 0x03D2, 0,
103++ 0, 0x03D3, /* U03D3 # GREEK UPSILON WITH ACUTE AND HOOK SYMBOL */
104++ IBUS_KEY_Multi_key, IBUS_KEY_comma, IBUS_KEY_E, 0,
105++ 0, 0x0228, /* U0228 # LATIN CAPITAL LETTER E WITH CEDILLA */
106++ IBUS_KEY_Multi_key, IBUS_KEY_comma, IBUS_KEY_e, 0,
107++ 0, 0x0229, /* U0229 # LATIN SMALL LETTER E WITH CEDILLA */
108++ IBUS_KEY_Multi_key, IBUS_KEY_U, IBUS_KEY_comma, IBUS_KEY_E,
109++ 0, 0x1E1C, /* U1E1C # LATIN CAPITAL LETTER E WITH CEDILLA AND BREVE */
110++ IBUS_KEY_Multi_key, IBUS_KEY_U, IBUS_KEY_comma, IBUS_KEY_e,
111++ 0, 0x1E1D, /* U1E1D # LATIN SMALL LETTER E WITH CEDILLA AND BREVE */
112++ IBUS_KEY_Multi_key, IBUS_KEY_e, IBUS_KEY_e, 0,
113++ 0, 0x018F, /* U018f */
114++ IBUS_KEY_Multi_key, IBUS_KEY_acute, 0x03D2, 0,
115++ 0, 0x03D3 /* U03D3 # GREEK UPSILON WITH ACUTE AND HOOK SYMBOL */
116++};
117++
118++static const IBusComposeTable ibus_compose_table_pt_pt = {
119++ ibus_compose_seqs_pt_pt,
120++ 4,
121++ G_N_ELEMENTS (ibus_compose_seqs_pt_pt) / (4 + 2)
122++};
123++
124+ static const IBusComposeTableLocaleList ibus_compose_table_locale_list[] = {
125+ { "el_gr", &ibus_compose_table_el_gr },
126+ { "fi_fi", &ibus_compose_table_fi_fi },
127+ { "pt_br", &ibus_compose_table_pt_br },
128++ { "pt_pt", &ibus_compose_table_pt_pt },
129+ { NULL, NULL }
130+ };
131+

Subscribers

People subscribed via source and target branches