ibus-anthy/ibus-anthy-xx-icon-symbol.patch

70 lines
2.3 KiB
Diff
Raw Normal View History

2011-06-22 04:45:22 +00:00
--- ibus-anthy-1.2.4/configure.ac.orig 2011-06-21 18:25:58.000000000 +0900
2011-07-29 15:09:04 +00:00
+++ ibus-anthy-1.2.4/configure.ac 2011-07-29 23:37:19.000000000 +0900
@@ -122,6 +122,39 @@ AC_ARG_WITH(kasumi-icon,
2011-06-22 04:45:22 +00:00
[KASUMI_ICON_FILE="$datadir/pixmaps/kasumi.png"])
AC_SUBST(KASUMI_ICON_FILE)
+dnl - check hotkeys for ibus-anthy which is used for ibus bridge mode.
+dnl - Normally you don't need this so could be HOTKEYS="no"
+AC_ARG_WITH(hotkeys,
+ [AC_HELP_STRING([--with-hotkeys=HOTKEYS],
+ [Use hotkeys for ibus bridge mode. (available value: yes/no/keys)])],
+ [HOTKEYS="$withval"],
+ [HOTKEYS="no"])
+if test x"$HOTKEYS" = x"no"; then
2011-07-29 15:09:04 +00:00
+ HOTKEYS_XML="<!-- <hotkeys>Control+space,Zenkaku_Hankaku</hotkeys> -->"
2011-06-22 04:45:22 +00:00
+elif test x"$HOTKEYS" = x"yes"; then
2011-07-29 15:09:04 +00:00
+ HOTKEYS_XML="<hotkeys>Control+space,Zenkaku_Hankaku</hotkeys>"
2011-06-22 04:45:22 +00:00
+elif test x"$HOTKEYS" = x; then
2011-07-29 15:09:04 +00:00
+ HOTKEYS_XML="<hotkeys>Control+space,Zenkaku_Hankaku</hotkeys>"
+elif test x"$HOTKEYS" = xnull; then
+ HOTKEYS_XML="<hotkeys></hotkeys>"
2011-06-22 04:45:22 +00:00
+else
2011-07-29 15:09:04 +00:00
+ HOTKEYS_XML="<hotkeys>${HOTKEYS}</hotkeys>"
2011-06-22 04:45:22 +00:00
+fi
2011-07-29 15:09:04 +00:00
+AC_SUBST(HOTKEYS_XML)
2011-06-22 04:45:22 +00:00
+
2011-07-29 15:09:04 +00:00
+SYMBOL_CHAR='&#x3042;'
+SYMBOL_TEST="import ibus
2011-06-22 04:45:22 +00:00
+engine = ibus.EngineDesc('test')
+exit(not hasattr(engine, 'symbol'))
2011-06-22 04:45:22 +00:00
+"
+$PYTHON -c "$SYMBOL_TEST"
+if test $? -eq 0; then
2011-07-29 15:09:04 +00:00
+ SYMBOL_XML="<symbol>${SYMBOL_CHAR}</symbol>"
2011-06-22 04:45:22 +00:00
+else
2011-07-29 15:09:04 +00:00
+ SYMBOL_XML="<!-- <symbol>${SYMBOL_CHAR}</symbol> -->"
2011-06-22 04:45:22 +00:00
+fi
2011-07-29 15:09:04 +00:00
+AC_SUBST(SYMBOL_XML)
2011-06-22 04:45:22 +00:00
+
dnl - define GETTEXT_* variables
GETTEXT_PACKAGE=ibus-anthy
AC_SUBST(GETTEXT_PACKAGE)
2011-07-29 15:09:04 +00:00
@@ -146,3 +179,15 @@ m4/Makefile
2011-06-22 04:45:22 +00:00
])
AC_OUTPUT
+echo "
+ IBus-Anthy version ibus_version
+
+python-config: $PYTHON_CONFIG
+PYTHON_CFLAGS $PYTHON_CFLAGS
+PYTHON_LIBS $PYTHON_LIBS
+ANTHY_ZIPCODE_FILE $ANTHY_ZIPCODE_FILE
+KASUMI_EXEC_FILE $KASUMI_EXEC_FILE
+KASUMI_ICON_FILE $KASUMI_ICON_FILE
2011-07-29 15:09:04 +00:00
+HOTKEYS_XML $HOTKEYS_XML
+SYMBOL_XML $SYMBOL_XML
2011-06-22 04:45:22 +00:00
+"
--- ibus-anthy-1.2.4/engine/anthy.xml.in.in.orig 2011-06-21 18:24:39.000000000 +0900
2011-07-29 15:09:04 +00:00
+++ ibus-anthy-1.2.4/engine/anthy.xml.in.in 2011-07-29 23:36:19.000000000 +0900
@@ -22,6 +22,8 @@
<longname>Anthy</longname>
<description>Anthy Input Method</description>
<rank>99</rank>
2011-07-29 15:09:04 +00:00
+ @HOTKEYS_XML@
+ @SYMBOL_XML@
</engine>
</engines>
</component>