From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Zhang Wei Newsgroups: gmane.emacs.devel Subject: Re: Can't activate SCIM input method with en_US.UTF-8 locale Date: Sat, 16 May 2009 12:25:11 +0000 (UTC) Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242476751 19432 80.91.229.12 (16 May 2009 12:25:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 May 2009 12:25:51 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 16 14:25:44 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M5IxU-0003Oe-AK for ged-emacs-devel@m.gmane.org; Sat, 16 May 2009 14:25:44 +0200 Original-Received: from localhost ([127.0.0.1]:34381 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5IxS-0003SJ-Te for ged-emacs-devel@m.gmane.org; Sat, 16 May 2009 08:25:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M5IxM-0003SB-J5 for emacs-devel@gnu.org; Sat, 16 May 2009 08:25:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M5IxG-0003RD-NW for emacs-devel@gnu.org; Sat, 16 May 2009 08:25:36 -0400 Original-Received: from [199.232.76.173] (port=54798 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5IxG-0003R7-Ds for emacs-devel@gnu.org; Sat, 16 May 2009 08:25:30 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:36646 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M5IxF-00060Y-SQ for emacs-devel@gnu.org; Sat, 16 May 2009 08:25:30 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M5IxA-0003Qg-MZ for emacs-devel@gnu.org; Sat, 16 May 2009 12:25:25 +0000 Original-Received: from 124.133.120.75 ([124.133.120.75]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 May 2009 12:25:24 +0000 Original-Received: from brep by 124.133.120.75 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 May 2009 12:25:24 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 126 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 124.133.120.75 (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.7) Gecko/2009030814 Iceweasel/3.0.9 (Debian-3.0.9-1)) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:110925 Archived-At: Kenichi Handa m17n.org> writes: > Did you set the env. var. XMODIFIERS to @im=SCIM? > > Emacs doesn't use gtk_im_module but XIM protocol. brep@ooobook:~$ echo $XMODIFIERS @im=SCIM brep@ooobook:~$ cd /etc/X11/Xsession.d/ brep@ooobook:/etc/X11/Xsession.d$ ls 20x11-common_process-args 75dbus_dbus-launch 30x11-common_xresources 80im-switch 40x11-common_xsessionrc 90consolekit 50x11-common_determine-startup 90x11-common_ssh-agent 52libcanberra-gtk-module_add-to-gtk-modules 99x11-common_start 55gnome-session_gnomerc brep@ooobook:/etc/X11/Xsession.d$ cat 80im-switch #!/bin/sh # Copyright (C) 2005 Kenshi Muto # Modified for Debian package. # Copyright (C) 1999 - 2004 Red Hat, Inc. All rights reserved. This # copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the # GNU General Public License version 2. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # X Input method setup script # Keep original values related to IM _XIM=$XIM _XIM_PROGRAM=$XIM_PROGRAM _XIM_ARGS=$XIM_ARGS _XMODIFIERS=$XMODIFIERS _GTK_IM_MODULE=$GTK_IM_MODULE _QT_IM_MODULE=$QT_IM_MODULE # $LNG is locale _ without . and .@EURO LNG=${LC_ALL:-${LC_CTYPE:-${LANG}}} LNG=${LNG%@*} LNG=${LNG%.*} [ -z "$LNG" ] && LNG="all_ALL" || true echo "Setting IM through im-switch for locale=$LNG." # Source first found configuration under $LNG locale for f in "$HOME/.xinput.d/${LNG}" \ "$HOME/.xinput.d/all_ALL" \ "/etc/X11/xinit/xinput.d/${LNG}" \ "/etc/X11/xinit/xinput.d/all_ALL" \ "/etc/X11/xinit/xinput.d/default" ; do if [ -f "$f" -a -r "$f" ]; then echo "Start IM through $f linked to $(readlink -f $f)." . "$f" break fi done unset LNG # Revibe IM related environment if other values were set. [ "$_XIM" ] && XIM=$_XIM || true [ "$_XIM_PROGRAM" ] && XIM_PROGRAM=$_XIM_PROGRAM || true [ "$_XIM_ARGS" ] && XIM_ARGS=$_XIM_ARGS || true [ "$_XMODIFIERS" ] && XMODIFIERS=$_XMODIFIERS ||true [ "$_GTK_IM_MODULE" ] && GTK_IM_MODULE=$_GTK_IM_MODULE || true [ "$_QT_IM_MODULE" ] && QT_IM_MODULE=$_QT_IM_MODULE || true [ -n "$GTK_IM_MODULE" ] && export GTK_IM_MODULE || true [ -n "$QT_IM_MODULE" ] && export QT_IM_MODULE || true # setup XMODIFIERS [ -z "$XMODIFIERS" -a -n "$XIM" ] && XMODIFIERS="@im=$XIM" || true [ -n "$XMODIFIERS" ] && export XMODIFIERS || true # execute XIM_PROGRAM if [ -n "$XIM_PROGRAM" -a -x "$XIM_PROGRAM" ]; then if [ -z "$XIM_PROGRAM_SETS_ITSELF_AS_DAEMON" ]; then eval "$XIM_PROGRAM $XIM_ARGS &" || true else eval "$XIM_PROGRAM $XIM_ARGS" || true fi fi # execute XIM_PROGRAM_XTRA [ -n "$XIM_PROGRAM_XTRA" ] && eval "$XIM_PROGRAM_XTRA &" || true brep@ooobook:/etc/X11/Xsession.d$ ls 20x11-common_process-args 50x11-common_determine-startup 75dbus_dbus-launch 90x11-common_ssh-agent 30x11-common_xresources 52libcanberra-gtk-module_add-to-gtk-modules 80im-switch 99x11-common_start 40x11-common_xsessionrc 55gnome-session_gnomerc 90consolekit brep@ooobook:/etc/X11/Xsession.d$ ls -al /home/brep/.xinput.d/en_US lrwxrwxrwx 1 brep brep 28 05-16 04:17 /home/brep/.xinput.d/en_US -> /etc/X11/xinit/xinput.d/scim brep@ooobook:/etc/X11/Xsession.d$ cat /etc/X11/xinit/xinput.d/scim # # Use "X input Method" for all applications # # Per Ming's Documentation in SCIM, XIM Input Method is activated # not only for old X-applications but also for GTK and QT appplication. # # If a user wish to use, GTK Input Method, (s)he can right-click input # area and select "Input Methods" and change from "X input Method" to # "SCIM Input Method". # XIM=SCIM XIM_PROGRAM=/usr/bin/scim XIM_ARGS="-d" XIM_PROGRAM_SETS_ITSELF_AS_DAEMON=yes GTK_IM_MODULE=xim QT_IM_MODULE=xim DEPENDS="scim,scim-anthy|scim-canna|scim-chewing|scim-pinyin|scim-hangul |scim-prime|scim-skk|scim-tables-additional|scim-m17n|scim-uim| scim-tables-ja|scim-tables-ko|scim-tables-zh"