找回密码
 注册
查看: 871|回复: 7

SCIM输入法在fedora2下导致面板闪动的问题?

[复制链接]
发表于 2004-5-24 18:20:52 | 显示全部楼层 |阅读模式
scim输入法总的来说很不错,但在fedora 2下无法正常使用,因为在某些程序中必须禁用scim的在光标处预编辑的功能,才能正常使用。但在2中如果禁用这项功能,一旦输入汉字就会导致系统面板的scim图标不断抖动,输入法状态栏也找不到而无法正常输入汉字。不知大家遇到过这个问题没有?如何解决?THX!
 楼主| 发表于 2004-5-25 02:44:39 | 显示全部楼层
查看了手册终于解决了:我原来用的是rpm,下载源tar包,自己编译即可,而且也解决了fwen说的必须注销一次再登录才能出现的问题。同时修改xinput文件,让它可以在英文状态下输入中文:
#!/bin/bash
# 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.
#
# XIM( X Input Method ) script
#
# Original Korean support contributed by:
# Won-kyu Park <[email protected]>
#

oldterm=$TERM
unset TERM
# Load up the user and system locale settings
if [ -r /etc/profile.d/lang.sh ]; then
. /etc/profile.d/lang.sh
fi
export TERM=$oldterm

tmplang="en_US"
#if test x$GDM_LANG != x ; then
# tmplang=$GDM_LANG
if [ -n "$LC_ALL" ]; then
tmplang=$LC_ALL
elif [ -n "$LC_CTYPE" ]; then
tmplang=$LC_CTYPE
elif [ -n "$LANG" ]; then
tmplang=$LANG
elif [ -r /etc/sysconfig/i18n ]; then
. /etc/sysconfig/i18n
tmplang=$LANG
fi

#
# check to see if the user has a preferred desktop
#

PREFERRED=

# runlevel 5 - checks which session manager it will load
# runlevel 3 - checks which desktop manager it will load
if [ -f /etc/sysconfig/desktop ]; then
# WARNING: This grep regex can be combined when someone has copious spare time.
if grep -q "GNOME" /etc/sysconfig/desktop 2>/dev/null || grep -q "\"\"" /etc/sysconfig/desktop 2>/dev/null; then
# runlevel 5 with gdm - checks for $GDMSESSION and set the $PREFERRED
if [ "$GDMSESSION" = "Default" ]; then
PREFERRED=gnome
elif [ "$GDMSESSION" = "GNOME" ]; then
PREFERRED=gnome
elif [ "$GDMSESSION" = "KDE" ]; then
PREFERRED=kde
else
# applies if no env and runlevel 3
PREFERRED=gnome
fi
elif grep -q "KDE" /etc/sysconfig/desktop 2>/dev/null; then

if [ -z $1 -o "$1" = "default" ]; then
# applies if no arg passed by kdm and runlevel 3
PREFERRED=kde
else
# otherwise assign $PREFERRED from arg
PREFERRED=$1
fi
fi
fi

if [ -z "$PREFERRED" ]; then

GSESSION=gnome-session
STARTKDE=startkde

# by default, we run GNOME.
if which "$GSESSION" > /dev/null 2>&1; then
PREFERRED=gnome
fi

# if GNOME isn't installed, try KDE.
if which "$STARTKDE" > /dev/null 2>&1; then
PREFERRED=kde
fi
fi


#
# check $XIM and set a default $XIM value.
#

# default to iiim if htt server is running
if [ -z "$XIM" ]; then
case $tmplang in ( ar* | be* | ja* | ko* | th* | zh* | *_IN* )
if /sbin/service IIim status 2>/dev/null | /bin/grep -q pid ; then
XIM=htt
fi
;;
esac

fi

# otherwise revert to legacy XIM client
if [ -z "$XIM" ]; then
case $tmplang in
ja*)
# WARNING: This binary should be in /usr/bin, not in /usr/X11R6/bin, because
# /usr/X11R6/bin is strictly for software supplied as an official part of
# X11R6, not for random applications to drop files in.
if [ -x /usr/X11R6/bin/xwnmo ]; then
XIM="_XWNMO"
elif [ -x /usr/bin/uim-xim ]; then
XIM="uim"
# WARNING: This binary should be in /usr/bin, not in /usr/X11R6/bin, because
# /usr/X11R6/bin is strictly for software supplied as an official part of
# X11R6, not for random applications to drop files in.
elif [ -x /usr/X11R6/bin/kinput2 ]; then
XIM="kinput2"
# WARNING: This binary should be in /usr/bin, not in /usr/X11R6/bin, because
# /usr/X11R6/bin is strictly for software supplied as an official part of
# X11R6, not for random applications to drop files in.
elif [ -x /usr/X11R6/bin/skkinput ]; then
XIM="skkinput"
fi
;;
ko*)
if [ -x /usr/bin/nabi ]; then
XIM="nabi"
elif [ -x /usr/bin/ami ]; then
XIM="Ami"
elif [ -x /usr/bin/hanIM ]; then
XIM="hanIM"
fi
;;
zh_CN*)
if [ -x /usr/bin/scim ]; then
XIM="SCIM"
fi
;;
zh_TW*)
# WARNING: This binary should be in /usr/bin, not in /usr/X11R6/bin, because
# /usr/X11R6/bin is strictly for software supplied as an official part of
# X11R6, not for random applications to drop files in.
if [ -x /usr/X11R6/bin/xcin ]; then
XIM="xcin"
fi
;;
en_US*)
if [ -x /usr/bin/scim ]; then
XIM="SCIM"
fi
;;
esac
fi

#
# set a proper XIM program with respect to $XIM
#
if [ -z "$XIM_PROGRAM" ]; then
case "$XIM" in
Ami)
case "$PREFERRED" in
kde)
if which wmami >/dev/null 2>&1 ; then
XIM_PROGRAM=wmami
XIM_ARGS="-wait"
elif which ami >/dev/null 2>&1 ; then
XIM_PROGRAM=ami
fi
;;
*)
if which ami >/dev/null 2>&1 ; then
XIM_PROGRAM=ami
fi
;;
esac
;;
Chinput)
XIM_PROGRAM=chinput
;;
hanIM)
if which hanIM >/dev/null 2>&1 ; then
XIM_PROGRAM=hanIM
fi
;;
htt)
XIM_PROGRAM=httx
;;
kinput2)
XIM_PROGRAM=kinput2
if [ -z "$XIM_ARGS" ]; then
if /usr/bin/cannaping 2>/dev/null ; then
XIM_ARGS="-canna +kinput -xim"
elif /sbin/service FreeWnn status 2>/dev/null | /bin/grep -q pid
then
XIM_ARGS="-wnn +kinput -xim"
else
XIM_ARGS="+kinput -xim"
fi
fi
;;
nabi)
XIM_PROGRAM=nabi
;;
skkinput)
XIM_PROGRAM=skkinput
;;
uim)
XIM_PROGRAM=uim-xim
;;
_XWNMO)
XIM_PROGRAM=xwnmo
;;
xcin)
XIM_PROGRAM=xcin
XIM_ARGS="-x xcin"
;;
SCIM)
XIM_PROGRAM=scim
XIM_ARGS="-d"
;;
esac
fi

# set default gtk IM module
if [ -z "$GTK_IM_MODULE" ]; then
case "$XIM" in
htt)
GTK_IM_MODULE=iiim
;;
SCIM)
GTK_IM_MODULE=xim
;;
esac
fi
[ -n "$GTK_IM_MODULE" ] && export GTK_IM_MODULE

# setup XMODIFIERS
[ -z "$XMODIFIERS" -a -n "$XIM" ] && export XMODIFIERS="@im=$XIM"

# execute XIM_PROGRAM
which "$XIM_PROGRAM" > /dev/null 2>&1 && LANG="$tmplang" "$XIM_PROGRAM" $XIM_ARGS &
回复

使用道具 举报

发表于 2004-5-25 11:30:50 | 显示全部楼层
谢谢老兄的勤苦努力
谢谢了
回复

使用道具 举报

发表于 2004-5-25 17:50:15 | 显示全部楼层
麻烦你把软件还有安装过程说仔细点
我还是搞不定
编译哪个版本?
我装完scim后,scim-chinese装不上
回复

使用道具 举报

 楼主| 发表于 2004-5-25 18:53:23 | 显示全部楼层
到苏哲的主页下载scim-0.9.7.tar.gz、scim-chinese-0.3.0.tar.gz、scim-tables-0.3.5.tar.gz这三个软件包,因为configure默认使用/usr/local所以需要改一下。
三个包都使用一下步骤:
./configure --prefix=/usr
make
make install
完毕后,把上面的xinput 复制到/etc/X11/xinit/xinitrc.d/下就可以了。如图,显示很正常:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

发表于 2004-5-26 14:06:17 | 显示全部楼层
w1ang

thanx   

此外,我感觉up2date-gonome这个程序也好像和它有冲突
最好卸载了
回复

使用道具 举报

 楼主| 发表于 2004-5-26 19:54:37 | 显示全部楼层
[quote:c6e8380e91="fwen"]
此外,我感觉up2date-gonome这个程序也好像和它有冲突
最好卸载了[/quote]
我的倒是一点问题也没有。
回复

使用道具 举报

发表于 2004-5-26 21:51:15 | 显示全部楼层
老兄,你的上面的贴图里的光标上下怎么那么宽,我的怎么那么窄?
你怎么设置的
我怎么感觉有点别扭和上个版本当输入字体的时候?
不知到哪的原因,说不了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-7 14:48 , Processed in 0.089263 second(s), 17 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表