diff --git a/ibus-m17n-xkb-options.patch b/ibus-m17n-xkb-options.patch index 551f1c8..81e3c9c 100644 --- a/ibus-m17n-xkb-options.patch +++ b/ibus-m17n-xkb-options.patch @@ -268,7 +268,7 @@ Index: ibus-m17n-1.3.2/src/engine.c ibus_m17n_init_common (); } -@@ -299,6 +385,25 @@ ibus_m17n_engine_class_init (IBusM17NEng +@@ -299,6 +385,27 @@ ibus_m17n_engine_class_init (IBusM17NEng G_CALLBACK(ibus_m17n_config_value_changed), klass); @@ -278,10 +278,12 @@ Index: ibus-m17n-1.3.2/src/engine.c + if (!xkl_config_rec_get_from_server (klass->xkl_config_rec, + xkl_engine)) { + g_object_unref (klass->xkl_config_rec); ++ klass->xkl_config_rec = NULL; + g_warning ("Can't get default keyboard config from the server"); + } else if (!parse_xkb_options (klass->xkl_config_rec, + engine_config->xkb_options)) { + g_object_unref (klass->xkl_config_rec); ++ klass->xkl_config_rec = NULL; + g_warning ("Can't parse xkb options %s", + engine_config->xkb_options); + } @@ -294,17 +296,7 @@ Index: ibus-m17n-1.3.2/src/engine.c klass->im = NULL; } -@@ -412,6 +517,9 @@ ibus_m17n_engine_constructor (GType - IBusM17NEngine *m17n; - GObjectClass *object_class; - IBusM17NEngineClass *klass; -+#if HAVE_LIBXKLAVIER -+ GdkDisplay *display; -+#endif /* HAVE_LIBXKLAVIER */ - - m17n = (IBusM17NEngine *) G_OBJECT_CLASS (parent_class)->constructor (type, - n_construct_params, -@@ -499,6 +607,11 @@ ibus_m17n_engine_destroy (IBusM17NEngine +@@ -499,6 +606,11 @@ ibus_m17n_engine_destroy (IBusM17NEngine m17n->context = NULL; } @@ -316,7 +308,7 @@ Index: ibus-m17n-1.3.2/src/engine.c IBUS_OBJECT_CLASS (parent_class)->destroy ((IBusObject *)m17n); } -@@ -735,6 +848,19 @@ ibus_m17n_engine_enable (IBusEngine *eng +@@ -735,6 +847,19 @@ ibus_m17n_engine_enable (IBusEngine *eng ibus_engine_get_surrounding_text (engine, &text, &cursor_pos); g_object_unref (text); #endif /* HAVE_IBUS_ENGINE_GET_SURROUNDING_TEXT */ @@ -336,7 +328,7 @@ Index: ibus-m17n-1.3.2/src/engine.c } static void -@@ -744,6 +870,17 @@ ibus_m17n_engine_disable (IBusEngine *en +@@ -744,6 +869,17 @@ ibus_m17n_engine_disable (IBusEngine *en ibus_m17n_engine_focus_out (engine); parent_class->disable (engine); diff --git a/ibus-m17n-xx-icon-symbol.patch b/ibus-m17n-xx-icon-symbol.patch index 43dac05..7b24a5d 100644 --- a/ibus-m17n-xx-icon-symbol.patch +++ b/ibus-m17n-xx-icon-symbol.patch @@ -1,15 +1,28 @@ -Patch to embed hotkeys and symbol property in component XML. +From 432d6f93be857d2544ad19ba67caea22d5843cc5 Mon Sep 17 00:00:00 2001 +From: Daiki Ueno +Date: Tue, 5 Jul 2011 16:26:49 +0900 +Subject: [PATCH] Supply hotkeys and symbol in engine desc. + +--- + configure.ac | 3 + + m4/.gitignore | 2 + + m4/ibus.m4 | 52 +++++++++ + src/default.xml.in.in | 284 +++++++++++++++++++++++++++++++++++++++++-------- + src/m17nutil.c | 10 ++ + src/m17nutil.h | 6 + + 6 files changed, 312 insertions(+), 45 deletions(-) + create mode 100644 m4/ibus.m4 + Index: ibus-m17n-1.3.2/configure.ac =================================================================== --- ibus-m17n-1.3.2.orig/configure.ac +++ ibus-m17n-1.3.2/configure.ac -@@ -122,6 +122,10 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GET +@@ -122,6 +122,9 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GET AM_GNU_GETTEXT([external]) AM_GNU_GETTEXT_VERSION(0.16.1) +# hotkeys in component xml +IBUS_WITH_HOTKEYS -+IBUS_SET_SYMBOL([?]) + # OUTPUT files @@ -75,12 +88,492 @@ Index: ibus-m17n-1.3.2/src/default.xml.in.in =================================================================== --- ibus-m17n-1.3.2.orig/src/default.xml.in.in +++ ibus-m17n-1.3.2/src/default.xml.in.in -@@ -254,5 +254,7 @@ +@@ -10,97 +10,114 @@ + m17n:as:phonetic + 2 + FALSE ++ + + + m17n:bn:inscript* + 2 + FALSE + lv3:ralt_switch ++ + + + m17n:gu:inscript* + 2 + FALSE + lv3:ralt_switch ++ + + + m17n:hi:inscript* + 2 + FALSE + lv3:ralt_switch ++ + + + m17n:kn:kgp + 2 + FALSE ++ + + + m17n:ks:kbd + 2 + FALSE ++ + + + m17n:mai:inscript* + 2 + FALSE + lv3:ralt_switch ++ + + + m17n:ml:inscript* + 2 + FALSE + lv3:ralt_switch ++ + + + m17n:mr:inscript* + 2 + FALSE + lv3:ralt_switch ++ + + + m17n:ne:rom + 2 + FALSE ++ + + + m17n:or:inscript* + 2 + FALSE + lv3:ralt_switch ++ + + + m17n:pa:inscript* + 2 + FALSE + lv3:ralt_switch ++ + + + m17n:sa:harvard-kyoto + 2 + FALSE ++ + + + m17n:sd:inscript* + 2 + FALSE + lv3:ralt_switch ++ + + + m17n:si:wijesekera + 2 + FALSE + lv3:ralt_switch ++ සි + + + m17n:ta:tamil99 + 2 + FALSE ++ + + + m17n:te:inscript* + 2 + FALSE + lv3:ralt_switch ++ + + + + m17n:ja:anthy + 0 + TRUE +- +- +- m17n:zh:cangjie +- 0 +- TRUE +- +- +- m17n:zh:py-b5 +- 0 +- TRUE +- +- +- m17n:zh:py-gb +- 0 +- TRUE +- +- +- m17n:zh:py +- 0 +- TRUE +- +- +- m17n:zh:quick +- 0 +- TRUE +- +- +- m17n:zh:tonepy-b5 +- 0 +- TRUE +- +- +- m17n:zh:tonepy-gb +- 0 +- TRUE +- +- +- m17n:zh:tonepy +- 0 +- TRUE +- +- +- m17n:zh:util +- 0 +- TRUE ++ + + +@@ -167,92 +141,312 @@ + m17n:as:* + 1 + FALSE ++ + + + m17n:bn:* + 1 + FALSE ++ + + + m17n:gu:* + 1 + FALSE ++ + + + m17n:hi:* + 1 + FALSE ++ + + + m17n:kn:* + 1 + FALSE ++ + + + m17n:ks:* + 1 + FALSE ++ + + + m17n:mai:* + 1 + FALSE ++ + + + m17n:ml:* + 1 + FALSE ++ + + + m17n:mr:* + 1 + FALSE ++ + + + m17n:ne:* + 1 + FALSE ++ + + + m17n:or:* + 1 + FALSE ++ + + + m17n:pa:* + 1 + FALSE ++ + + + m17n:sa:* + 1 + FALSE ++ + + + m17n:sd:* + 1 + FALSE ++ + + + m17n:si:* + 1 + FALSE + lv3:ralt_switch ++ සි + + + m17n:ta:* + 1 + FALSE ++ + + + m17n:te:* + 1 + FALSE ++ ++ ++ ++ ++ m17n:*:kbd ++ 0 ++ FALSE ++ ++ ++ ++ m17n:*:pre ++ 0 ++ FALSE ++ ++ ++ ++ m17n:*:post ++ 0 ++ FALSE ++ ++ ++ ++ m17n:am:sera ++ 0 ++ FALSE ++ ++ ++ ++ m17n:bo:* ++ 0 ++ FALSE ++ ++ ++ ++ m17n:cr:* ++ 0 ++ FALSE ++ ++ ++ ++ m17n:dv:* ++ 0 ++ FALSE ++ ++ ++ ++ m17n:eo:* ++ 0 ++ FALSE ++ ++ ++ ++ m17n:fa:* ++ 0 ++ FALSE ++ ف ++ ++ ++ m17n:fr:* ++ 0 ++ FALSE ++ ++ ++ ++ m17n:ii:* ++ 0 ++ FALSE ++ ++ ++ ++ m17n:iu:* ++ 0 ++ FALSE ++ ++ ++ ++ m17n:kk:* ++ 0 ++ FALSE ++ قا ++ ++ ++ m17n:km:* ++ 0 ++ FALSE ++ ++ ++ ++ m17n:lo:* ++ 0 ++ FALSE ++ ++ ++ ++ m17n:nsk:* ++ 0 ++ FALSE ++ ++ ++ ++ m17n:oj:* ++ 0 ++ FALSE ++ ++ ++ ++ m17n:ps:* ++ 0 ++ FALSE ++ ++ ++ ++ m17n:ru:* ++ 0 ++ FALSE ++ Я ++ ++ ++ m17n:sv:* ++ 0 ++ FALSE ++ ++ ++ ++ m17n:syrc:* ++ 0 ++ FALSE ++ ++ ++ ++ m17n:tai:* ++ 0 ++ FALSE ++ ++ ++ ++ m17n:th:* ++ 0 ++ FALSE ++ ++ ++ ++ m17n:ur:* ++ 0 ++ FALSE ++ خ ++ ++ ++ m17n:vi:han ++ 0 ++ FALSE ++ ++ ++ ++ m17n:vi:nom* ++ 0 ++ FALSE ++ ++ ++ ++ m17n:vi:* ++ 0 ++ FALSE ++ ++ ++ ++ m17n:yi:* ++ 0 ++ TRUE ++ ++ ++ ++ m17n:zh:bopomofo ++ 0 ++ TRUE ++ ++ ++ ++ m17n:zh:cangjie ++ 0 ++ TRUE ++ ++ ++ ++ m17n:zh:py* ++ 0 ++ TRUE ++ ++ ++ ++ m17n:zh:quick ++ 0 ++ TRUE ++ ++ ++ ++ m17n:zh:tonepy* ++ 0 ++ TRUE ++ + + + m17n:* 0 FALSE ++ + @IBUS_HOTKEYS_XML@ -+ @IBUS_SYMBOL_XML@ Index: ibus-m17n-1.3.2/src/m17nutil.c diff --git a/ibus-m17n.spec b/ibus-m17n.spec index aa1103c..fc42c01 100644 --- a/ibus-m17n.spec +++ b/ibus-m17n.spec @@ -13,7 +13,7 @@ Name: ibus-m17n Version: 1.3.2 -Release: 7%{?dist} +Release: 8%{?dist} Summary: The M17N engine for IBus platform License: GPLv2+ Group: System Environment/Libraries @@ -77,6 +77,11 @@ make DESTDIR=${RPM_BUILD_ROOT} install %{_datadir}/ibus/component/* %changelog +* Fri Aug 5 2011 Daiki Ueno - 1.3.2-8 +- Update ibus-m17n-xx-icon-symbol.patch. +- Fix bug 727024 - ibus compose file needs a symbol tag for gnome-shell +- Update ibus-m17n-xkb-options.patch. + * Thu Jul 7 2011 Daiki Ueno - 1.3.2-7 - don't specify --with-hotkey.