redhat 7.2 minichinput 可能出现的问题及解决方法
在第二张盘上miniChinput-0.0.2-1.i386.rpm
mandrake8.1在第一张盘上Chinput-3.0.1-5mdk.i586.rpm
(同样可能存在这样的问题)
一、安装时没有选择big字库
按ctrl+空格没反应,在命令行下键入chinput提示字体错误
1、
修改/usr/lib/Chinput/Chinput.ad文件里那行
将............*-*-big5-0
改成. ........*-*-gb2312.1980-0
2、
在第二张盘上找到kde-i18n-Chinese-Big5-2.2-8.noarch.rpm
rpm -ivh kde-i18n-Chinese-Big5-2.2-8.noarch.rpm 即可。
二、参数设置问题
1、检查/etc/bashrc和~/.bash_profile中看chinput是否真正运行了
2、env 看环境变量XMODIFIER是否是@im=chinput
无上述内容在~/.bash_profile中添加
export LC_ALL=zh_CN.GB2312
export LANG=zh_CN.GB2312
export XMODIFIERS=@im=Chinput
在RH72中修改/etc/X11/xinit/xinitrc.d/xinput 即可自动运行
然后重起X。
使用
ctrl+period(.)切换全角即可输入 “、”“。“等符号
3.系统中的LOCALE环境变量是zh_CN(RH7。2的locale_config不知为什么有的人安装后没有zh_CN.GB2312选项了?)而 /usr/lib/Chinput.ad 中默认设置的是 zh_CN.GB2312 的话当然打不开中文输入法了,/usr/lib/Chinput.ad 中的zh_CN.GB2313 改成 zh_CN 然后 reboot 就成了.
4、/root/.pyinput/usrphrase.tab is not valid pinyin phrase file.
找到一个好的usrphrase.tab文件替换原usrphrase.tab
5、
选项―观感―字体中字符集选择的类型与chinput设置的不同。导致输入的汉字无法显示,比如,字符集都选择gbk,输入汉字就出现上述问题,chinput,默认是gb2312。
[已被 sjqu 编辑过, 在 2001-11-30 14:11]
[已被 sjqu 编辑过, 在 2001-12-04 18:50]
--------------------next---------------------
是这个文件.
/etc/X11/xinit/xinitrc.d/xinput
#!/bin/sh
# Copyright (C) 1999-2001 Red Hat, Inc.
#
# XIM( X Input Method ) script
#
# Korean part,etc contributed by
# Won-kyu Park
#
tmplang="en_US"
#if test x$GDM_LANG != x ; then
# tmplang=$GDM_LANG
if test x$LC_ALL != x ; then
tmplang=$LC_ALL
elif test x$LC_CTYPE != x ; then
tmplang=$LC_CTYPE
elif test x$LANG != x ; then
tmplang=$LANG
elif [ -e /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
# FIXME: 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 [ x$GDMSESSION = xDefault ]; then
PREFERRED=gnome
elif [ x$GDMSESSION = xGNOME ]; then
PREFERRED=gnome
elif [ x$GDMSESSION = xKDE ]; 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 ] || [ x$1 = xdefault ]; 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.
#
if [ -z "$XIM" ]; then
case $tmplang in
ko*)
if [ -e /usr/bin/ami ]; then
XIM="Ami"
elif [ -e /usr/bin/hanIM ]; then
XIM="hanIM"
fi
;;
ja*)
if [ -e /usr/X11R6/bin/kinput2 ]; then
XIM="kinput2"
elif [ -e /usr/X11R6/bin/skkinput ]; then
XIM="skkinput"
fi
;;
zh_CN*)
if [ -e /usr/bin/chinput ]; then
XIM="Chinput"
elif [ -e /usr/X11R6/bin/xcin ]; then
export LC_CTYPE=zh_CN.GB2312
XIM="xcin-zh_CN.GB2312"
fi
;;
zh_TW*)
if [ -e /usr/X11R6/bin/xcin ]; then
export LC_CTYPE=zh_TW.Big5
XIM="xcin"
fi
;;
*)
XIM="none"
;;
esac
fi
# Nice temporary file vulnerability. If this is needed, use mkstemp instead. I couldn't
# find what it was used for so I am clobbering it.
#echo $PREFERRED > /tmp/start.txt
#
# set a proper XIM program with respect to $XIM
#
if [ -z "$XIM_PROGRAM" ]; then
case "$XIM" in
Ami)
case "$PREFERRED" in
gnome)
if which ami_applet >/dev/null 2>&1 ; then
DELAY_START=2
XIM_PROGRAM=ami_applet
XIM_ARGS=""
elif which ami >/dev/null 2>&1 ; then
XIM_PROGRAM=ami
fi
;;
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
;;
hanIM)
if which hanIM >/dev/null 2>&1 ; then
XIM_PROGRAM=hanIM
fi
;;
Chinput)
XIM_PROGRAM=chinput ;;
xcin)
XIM_PROGRAM=xcin ;;
xcin-zh_CN.GB2312)
XIM_PROGRAM=xcin
XIM_ARGS="-x xcin-zh_CN.GB2312" ;;
kinput2)
XIM_PROGRAM=kinput2
if [ X"`ldd /usr/X11R6/bin/kinput2 | grep libcanna`" = X ] ; then
XIM_ARGS="-wnnenvrc /etc/FreeWnn/ja/wnnenvrc"
else
XIM_ARGS="-canna"
fi
;;
skkinput)
XIM_PROGRAM=skkinput
XIM_ARGS="" ;;
*)
XIM_PROGRAM=/bin/true ;;
esac
fi
[ -z "$XMODIFIERS" -a -n "$XIM" ] && export XMODIFIERS="@im=$XIM"
# execute XIM_PROGRAM
if test x$DELAY_START != x; then
#spawn to new process with external shell
bash -c "
while [ x\`ps -C panel -o pid=\` == x ]; do
sleep $DELAY_START
done
[ -z "\$XMODIFIERS" -a -n "$XIM" ] && export XMODIFIERS="@im=$XIM"
sleep $DELAY_START
which $XIM_PROGRAM > /dev/null 2>&1 && LANG=$tmplang $XIM_PROGRAM $XIM_ARGS &
" &
else
which $XIM_PROGRAM > /dev/null 2>&1 && LANG=$tmplang $XIM_PROGRAM $XIM_ARGS &
fi
if which $XIM_PROGRAM >/dev/null 2>&1 ; then
echo -n "XIM DEBUG: "
$XIM_PROGRAM $XIM_ARGS&
fi
--------------------next---------------------
原来通过REDHAT7。1--》7。2
CHINPUT是好的,但是直接安装7。2后CHINPUT不能用了
先是chinput version 3.0.2
................
chinput .....................[ok]
照修改/usr/lib/Chinput/Chinput.ad文件里那行
将............*-*-big5-0
改成. ........*-*-gb2312.1980-0 方法修改没用,之后改回来结果出现了
/root/.pyinput/usrphrase.tab is not valid pinyin phrase file.
于是find / -name usrphrase.tab 后cp /usr/lib/Chinput/im/cce/usrphrase.tab /root/.pyinput/
结果出现
chinput version 3.0.2 --XIM Server
Distributed under the terms of the GNU General Public Licents
can't Open Input Method Servic:
Input Method name :Chinput
Tranport Address:X/
Chinese Input Server is already activated
因该是usrphrase.tab 的问题,斑竹能不能给我一份copy
[已被 presto 编辑过, 在 2001-12-03 13:27]
--------------------next---------------------
阅读(409) | 评论(0) | 转发(0) |