Package: im-switch
Version: 1.14
Severity: wishlist
Tags: patch

It would be nice to have general IM config file which sets X Input
Method (xim) for both GTK and QT programs. Such config file can be used
with many languages. Patch is attached to this message.

Probably the most important reason for such config file is that GTK
programs don't use xim as default input method and hence the Compose key
doesn't work in GTK programs. People have needed to add
"GTK_IM_MODULE=xim" to their /etc/environment file but it can't be
edited by a normal user.

The second reason is related to new Finnish keyboard layout
"fi(kotoistus)". In the future it will become the default Finnish layout
and part of its functionality is provided throught the Compose key. So
it may be that in the future Finnish users need XIM as default input
method in all programs (GTK and QT). It would require adding
/etc/alternatives/xinput-fi_FI for appropriate config file. But this is
not the case just yet. For now I just suggest adding the config file
inside the attached patch.

Thanks
diff -Nru im-switch-1.14/debian/rules im-switch-1.14.new/debian/rules
--- im-switch-1.14/debian/rules 2006-11-07 17:47:40.000000000 +0200
+++ im-switch-1.14.new/debian/rules     2007-12-22 11:07:51.927698766 +0200
@@ -57,6 +57,7 @@
        install -o root -g root -m 644 sample/none 
$(CURDIR)/debian/im-switch/etc/X11/xinit/xinput.d
        install -o root -g root -m 644 sample/default 
$(CURDIR)/debian/im-switch/etc/X11/xinit/xinput.d/default
        install -o root -g root -m 644 sample/th-xim 
$(CURDIR)/debian/im-switch/etc/X11/xinit/xinput.d
+       install -o root -g root -m 644 sample/default-xim 
$(CURDIR)/debian/im-switch/etc/X11/xinit/xinput.d
 
 # Build architecture-independent files here.
 binary-indep: build install
diff -Nru im-switch-1.14/sample/default-xim 
im-switch-1.14.new/sample/default-xim
--- im-switch-1.14/sample/default-xim   1970-01-01 02:00:00.000000000 +0200
+++ im-switch-1.14.new/sample/default-xim       2007-12-22 11:06:39.470687317 
+0200
@@ -0,0 +1,32 @@
+#
+# General configuration to set X Input Method (xim) for GTK and QT.
+# See im-switch(8) and /usr/share/doc/im-switch/README.Debian .
+
+#
+# Define IM for traditional X application with XIM
+#
+#  XIM server name
+#  XIM program /path/filename
+#  XIM program command line arguments
+#  XMODIFIERS environment parameter
+# 
+XIM=none
+XIM_PROGRAM=
+XIM_ARGS=
+
+#
+# Define GTK and QT IM module
+#   They may or may not be using xim as the IM.
+#
+GTK_IM_MODULE=xim
+QT_IM_MODULE=xim
+
+#
+# Define lists of packages neded for above IM to function
+#
+DEPENDS=
+
+#
+# Define X start up hook script to update IM environment
+#
+

Reply via email to