* Can't activate SCIM input method with en_US.UTF-8 locale
@ 2009-05-15 23:06 Zhang Wei
2009-05-16 1:20 ` Kenichi Handa
2009-05-16 14:08 ` Kan-Ru Chen
0 siblings, 2 replies; 4+ messages in thread
From: Zhang Wei @ 2009-05-15 23:06 UTC (permalink / raw)
To: emacs-devel
The SCIM input method can be activated in any other software except Emacs with
en_US.UTF-8 locale.
brep@ooobook:~$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
brep@ooobook:~$
In GNU Emacs 23.0.93.1 (i686-pc-linux-gnu, GTK+ Version 2.16.1)
of 2009-05-16 on ooobook
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=SCIM
locale-coding-system: utf-8-unix
default-enable-multibyte-characters: t
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can't activate SCIM input method with en_US.UTF-8 locale
2009-05-15 23:06 Can't activate SCIM input method with en_US.UTF-8 locale Zhang Wei
@ 2009-05-16 1:20 ` Kenichi Handa
2009-05-16 12:25 ` Zhang Wei
2009-05-16 14:08 ` Kan-Ru Chen
1 sibling, 1 reply; 4+ messages in thread
From: Kenichi Handa @ 2009-05-16 1:20 UTC (permalink / raw)
To: Zhang Wei; +Cc: emacs-devel
In article <loom.20090515T225733-607@post.gmane.org>, Zhang Wei <brep@163.com> writes:
> The SCIM input method can be activated in any other software except Emacs with
> en_US.UTF-8 locale.
> brep@ooobook:~$ locale
> LANG=en_US.UTF-8
> LC_CTYPE="en_US.UTF-8"
> LC_NUMERIC="en_US.UTF-8"
> LC_TIME="en_US.UTF-8"
> LC_COLLATE="en_US.UTF-8"
> LC_MONETARY="en_US.UTF-8"
> LC_MESSAGES="en_US.UTF-8"
> LC_PAPER="en_US.UTF-8"
> LC_NAME="en_US.UTF-8"
> LC_ADDRESS="en_US.UTF-8"
> LC_TELEPHONE="en_US.UTF-8"
> LC_MEASUREMENT="en_US.UTF-8"
> LC_IDENTIFICATION="en_US.UTF-8"
> LC_ALL=
> brep@ooobook:~$
Did you set the env. var. XMODIFIERS to @im=SCIM?
Emacs doesn't use gtk_im_module but XIM protocol.
---
Kenichi Handa
handa@m17n.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can't activate SCIM input method with en_US.UTF-8 locale
2009-05-16 1:20 ` Kenichi Handa
@ 2009-05-16 12:25 ` Zhang Wei
0 siblings, 0 replies; 4+ messages in thread
From: Zhang Wei @ 2009-05-16 12:25 UTC (permalink / raw)
To: emacs-devel
Kenichi Handa <handa <at> 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 <kmuto@debian.org>
# 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 <language>_<region> without .<encoding> and .<encoding>@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"
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can't activate SCIM input method with en_US.UTF-8 locale
2009-05-15 23:06 Can't activate SCIM input method with en_US.UTF-8 locale Zhang Wei
2009-05-16 1:20 ` Kenichi Handa
@ 2009-05-16 14:08 ` Kan-Ru Chen
1 sibling, 0 replies; 4+ messages in thread
From: Kan-Ru Chen @ 2009-05-16 14:08 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1.1.1: Type: text/plain, Size: 137 bytes --]
Install some X core fonts, e.g. xfonts-100dpi, might help.
Reference:
http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1646
[-- Attachment #1.1.2: Type: application/pgp-signature, Size: 196 bytes --]
[-- Attachment #2: Type: application/pgp-signature, Size: 196 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-16 14:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-15 23:06 Can't activate SCIM input method with en_US.UTF-8 locale Zhang Wei
2009-05-16 1:20 ` Kenichi Handa
2009-05-16 12:25 ` Zhang Wei
2009-05-16 14:08 ` Kan-Ru Chen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).