QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 878|回复: 7

how to input chinese?

[复制链接]
发表于 2004-4-10 23:05:39 | 显示全部楼层 |阅读模式
now my system is ml1.2pre6 ,but i can not input chinese after rebuilding the kernel,what should i do??or where can i find solutions?
发表于 2004-4-10 23:10:49 | 显示全部楼层
在控制台运行fcitx试试
我的输入法也不能自动起动!
是不是pr6的bug,要如何小企鹅输入法随kde起动呢?
回复

使用道具 举报

发表于 2004-4-10 23:17:48 | 显示全部楼层
yup, it is bug. But if you use init 3 + startx, it should be ok.
回复

使用道具 举报

发表于 2004-4-10 23:23:49 | 显示全部楼层
对于Fcitx不能自动运行,您可以用命令来调用,如下:
[root@sir root]#fcitx
也可以把fcitx命令写入当前用户目录下的.bashrc文件中,或者.profile中,根据您所用的系统来判断,这个命令在文件中要独占一行!

或者在/etc/X11/xinit/xinitrc.d/xinput里加上:
LANGUAGE=zh_CN.GBK  
LANG=zh_CN.GBK  
LC_ALL=zh_CN.GBK  
export XMODIFIERS=@im=fcitx  
fcitx&
回复

使用道具 举报

发表于 2004-4-10 23:38:03 | 显示全部楼层
[quote:21edba2c18="jackey"]yup, it is bug. But if you use init 3 + startx, it should be ok.[/quote]
我就是这样做D
回复

使用道具 举报

发表于 2004-4-11 00:18:33 | 显示全部楼层
[quote:0b7f077d70="jackey"]yup, it is bug. But if you use init 3 + startx, it should be ok.[/quote]
麻烦您做个补丁传上来好吗,这样虽然可以但是很不方便!
不知直接考pr5的/usr/share/config/kdm/Xsession文件过来行吗?
哪位还有pr5的提供一个好吗!
回复

使用道具 举报

发表于 2004-4-11 10:12:39 | 显示全部楼层

Xsession

bash-2.05b# cat Xsession
#!/bin/bash
# Copyright (c) 1999-2002 Red Hat, Inc.

# redirect errors to a file in user's home directory if we can
if [ -z "$GDMSESSION" ]; then
    # GDM redirect output itself in a smarter fashion
    errfile="$HOME/.xsession-errors"
    if cp /dev/null "$errfile" 2> /dev/null ; then
        chmod 600 "$errfile"
        exec > "$errfile" 2>&1
    else
        errfile=`mktemp -q /tmp/xses-$USER.XXXXXX`
        if [ $? -eq 0 ]; then
            exec > "$errfile" 2>&1
        fi
    fi
fi

if ! printenv PATH | grep -q /usr/X11R6/bin
then
        PATH="${PATH}":/usr/X11R6/bin
fi

xsetroot -solid '#20305A'

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
userxkbmap=$HOME/.Xkbmap

sysresources=/etc/X11/Xresources
sysmodmap=/etc/X11/Xmodmap
sysxkbmap=/etc/X11/Xkbmap

# merge in defaults
if [ -f "$sysresources" ]; then
    xrdb -merge "$sysresources"
fi

if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

# merge in keymaps
if [ -f "$sysxkbmap" ]; then
    setxkbmap $(cat "$sysxkbmap")
    XKB_IN_USE=yes
fi

if [ -f "$userxkbmap" ]; then
    setxkbmap $(cat "$userxkbmap")
    XKB_IN_USE=yes
fi

if [ -z "$XKB_IN_USE" -a ! -L /etc/X11/X ]; then
    if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then
       xkbsymbols=`sed -n -e 's/^[     ]*XkbSymbols[   ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config`
       if [ -n "$xkbsymbols" ]; then
           setxkbmap -symbols "$xkbsymbols"
           XKB_IN_USE=yes
       fi
    fi
fi

# xkb and xmodmap don't play nice together
if [ -z "$XKB_IN_USE" ]; then
    if [ -f "$sysmodmap" ]; then
       xmodmap "$sysmodmap"
    fi

    if [ -f "$usermodmap" ]; then
       xmodmap "$usermodmap"
    fi
fi

unset XKB_IN_USE

# run all system xinitrc shell scripts.
for i in /etc/X11/xinit/xinitrc.d/* ; do
    if [ -x "$i" ]; then
       . "$i"
    fi
done

# is ssh-agent available?
SSHAGENT=
[ -x /usr/bin/ssh-agent ] && SSHAGENT="/usr/bin/ssh-agent"

# now, we see if xdm/gdm/kdm has asked for a specific environment
case $# in
1)
    if [ -x "/usr/share/apps/switchdesk/Xclients.$1" ]; then
       exec -l $SHELL -c "$SSHAGENT /usr/share/apps/switchdesk/Xclients.$1";
    fi;

    case "$1" in
    failsafe)
       exec -l $SHELL -c "xterm -geometry 80x24-0-0"
       ;;
    gnome)
       exec -l $SHELL -c "$SSHAGENT gnome-session"
       ;;
    kde|kde1|kde2)
       exec -l $SHELL -c "$SSHAGENT /usr/share/apps/switchdesk/Xclients.kde"
       ;;
    twm)
        # fall back to twm
       exec -l $SHELL -c "$SSHAGENT /usr/share/apps/switchdesk/Xclients.twm"
       ;;
    *)
       # GDM provies either a command line as the first argument or
       # provides 'failsafe', 'default' or 'custom'.  KDM will do the
       # same at some point
       if [ -n "$GDMSESSION" -a "$1" != "default" -a "$1" != "custom" ]; then
            exec -l $SHELL -c "$SSHAGENT $1"
       fi
       ;;
    esac
esac

# otherwise, take default action
if [ -x "$HOME/.xsession" ]; then
    exec -l $SHELL -c "$SSHAGENT $HOME/.xsession"
elif [ -x "$HOME/.Xclients" ]; then
    exec -l $SHELL -c "$SSHAGENT $HOME/.Xclients"
elif [ -x /etc/X11/xinit/Xclients ]; then
    exec -l $SHELL -c "$SSHAGENT /etc/X11/xinit/Xclients"
else
    # should never get here; failsafe fallback
    exec -l $SHELL -c "xsm"
fi
回复

使用道具 举报

发表于 2004-4-11 10:23:09 | 显示全部楼层
或者在/etc/X11/xinit/xinitrc.d/xinput里加上:
LANGUAGE=zh_CN.GBK
LANG=zh_CN.GBK
LC_ALL=zh_CN.GBK
export XMODIFIERS=@im=fcitx
fcitx&

This is good.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-25 15:22 , Processed in 0.047048 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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