找回密码
 注册
查看: 1202|回复: 8

为什么每次都要在终端输入fcitx之后才能运行中文?

[复制链接]
发表于 2005-1-1 06:36:26 | 显示全部楼层 |阅读模式
我安装了Fcitx-3.0.2-1mgc.i686.rpm之后,的确比较爽!!

唯一的缺点就是每次重启后,都要在终端输入fcitx之后,才能进行中文输入!

为什么啊,这一点好不爽阿。。。

高手们,一定有办法帮助菜鸟我一下吧??
发表于 2005-1-1 10:22:49 | 显示全部楼层
用gnome的话,在~/.gnomerc里加一句
fcitx &
回复

使用道具 举报

发表于 2005-1-5 08:52:47 | 显示全部楼层
[quote:1c817fc2c6="blackdream"]用gnome的话,在~/.gnomerc里加一句
fcitx &[/quote]

受教了。
回复

使用道具 举报

发表于 2005-1-5 13:49:31 | 显示全部楼层
若要�}機時就自動運行 SCIM,

在 Redhat 9 / Feroda core l 下 ,
修改 /etc/X11/xinit/xinitrc.d/xinput 檔案,

---------------------------------------------
        zh_CN*)
            if [ -e /usr/bin/chinput ]; then
                XIM="Chinput"
            fi
        ;;
        zh_TW*)
            if [ -e /usr/X11R6/bin/xcin ]; then
                XIM="xcin"
            fi
        ;;
---------------------------------------------
把以上句子改成 :
---------------------------------------------
#        zh_CN*)
#            if [ -e /usr/bin/chinput ]; then
#                XIM="Chinput"
#            fi
#        ;;
#        zh_TW*)
#            if [ -e /usr/X11R6/bin/xcin ]; then
#                XIM="xcin"
#            fi
#        ;;
---------------------------------------------
在檔案內容最末处�[入以下3行:
---------------------------------------------
scim -d
export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE=xim
---------------------------------------------
重新开機後,不管在英文丶中文繁體丶簡體環境下都可輸入中文,
在終端機下�]可輸入中文。
回复

使用道具 举报

发表于 2005-1-5 18:15:36 | 显示全部楼层

Re: 为什么每次都要在终端输入fcitx之后才能运行中文?

[quote:7eb97c8df6="jiapei100"]我安装了Fcitx-3.0.2-1mgc.i686.rpm之后,的确比较爽!!

唯一的缺点就是每次重启后,都要在终端输入fcitx之后,才能进行中文输入!

为什么啊,这一点好不爽阿。。。

高手们,一定有办法帮助菜鸟我一下吧??[/quote]
不爽
不能在mozilla下面输入东西.
回复

使用道具 举报

 楼主| 发表于 2005-1-6 09:05:04 | 显示全部楼层
我可以在mozilla firefox下输入中文。。。

哦,你要每次在终端启动fictx之后再打开浏览器,这个时候才能输入中文;否则你先打开浏览器之后,再fictx,还是不能输入中文

另外, 我 /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 <[email protected]>
#

oldterm=$TERM
unset TERM
# Load up the user and system locale settings
if [ -f /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 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 [ -f ~/.ime ]; then
  tmpime=$(<~/.ime)
  if which $tmpime >/dev/null 2>&1 ; then
    XIM=$tmpime
    tmpime=TRUE
  fi
fi

if [ -z "$XIM" ]; then
    case $tmplang in
        ko*)
            if which ami >/dev/null 2>&1 ; then
                    XIM="Ami"
            elif which hanIM >/dev/null 2>&1 ; then
                    XIM="hanIM"
            fi
        ;;
        ja*)
            if which xwnmo >/dev/null 2>&1 ; then
                    XIM="_XWNMO"
            elif which kinput2 >/dev/null 2>&1 ; then
                    XIM="kinput2"
            elif which skkinput >/dev/null 2>&1 ; then
                    XIM="skkinput"
            fi
        ;;
        zh_CN*)
            if which scim >/dev/null 2>&1 ; then
                XIM="scim"
            elif which fcitx >/dev/null 2>&1 ; then
                XIM="fcitx"
            elif which chinput >/dev/null 2>&1 ; then
                XIM="chinput"
            fi
        ;;
        zh_TW*)
            if which xcin >/dev/null 2>&1 ; then
                XIM="xcin"
            fi
        ;;
        *)
            XIM="none"
        ;;
    esac
fi

#
# 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=Chinput
        XIM_PROGRAM=chinput ;;
      skim)
        XIM=SCIM
        if [ $PREFERRED = kde ];then
                XIM_PROGRAM=skim
        else
                XIM_PROGRAM=scim
        fi
        XIM_ARGS="-d"
        ;;
      scim)
        XIM=SCIM
        XIM_PROGRAM=scim
        XIM_ARGS="-d"
        ;;
      fcitx)
        XIM_PROGRAM=fcitx ;;
      xcin)
        XIM_PROGRAM=xcin
        XIM_ARGS="-x xcin" ;;
      _XWNMO)
        XIM_PROGRAM=xwnmo
         ;;
      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

if [ ! -f ~/.ime ] || [ $tmpime != TRUE ] ; then
  echo $XIM_PROGRAM >~/.ime
  unset tmpime
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

回复

使用道具 举报

发表于 2005-1-6 09:25:15 | 显示全部楼层
看到你的这段了没有?
zh_CN*)
if which scim >/dev/null 2>&1 ; then
XIM="scim"
elif which fcitx >/dev/null 2>&1 ; then
XIM="fcitx"
elif which chinput >/dev/null 2>&1 ; then
XIM="chinput"
fi
;;
zh_TW*)
if which xcin >/dev/null 2>&1 ; then
XIM="xcin"
fi
;;
回复

使用道具 举报

发表于 2005-1-6 09:26:37 | 显示全部楼层
能否在不用输入法的时候快速隐藏输入法的工具条?
回复

使用道具 举报

发表于 2005-1-6 09:32:50 | 显示全部楼层
http://www.linuxfans.org/nuke/modules.php?name=Site_Downloads&op=geninfo&did=2521
回复

使用道具 举报

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

本版积分规则

GMT+8, 2025-2-7 04:05 , Processed in 0.034515 second(s), 16 queries .

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

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