LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1420|回复: 7

fcitx can display WUBI but can`t input chinese

[复制链接]
发表于 2006-10-26 03:23:47 | 显示全部楼层 |阅读模式
i show the setting for my arch. now ,how  to set for the fcitx can work

[root@arch locale]# locale


locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=zh_CN.utf8
LC_CTYPE="zh_CN.utf8"
LC_NUMERIC="zh_CN.utf8"
LC_TIME="zh_CN.utf8"
LC_COLLATE=C
LC_MONETARY="zh_CN.utf8"
LC_MESSAGES="zh_CN.utf8"
LC_PAPER="zh_CN.utf8"
LC_NAME="zh_CN.utf8"
LC_ADDRESS="zh_CN.utf8"
LC_TELEPHONE="zh_CN.utf8"
LC_MEASUREMENT="zh_CN.utf8"
LC_IDENTIFICATION="zh_CN.utf8"
LC_ALL=
/////////////////////////
[
root@arch locale]# cat /root/.xinitrc
export LANG=zh_CN.utf8
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=XIM
export XIM=fcitx
export XIM_PROGRAM=fcitx
env LC_CTYPE=zh_CN.uft8 fcitx
fcitx &
exec startkde
////////////////////////////

[root@arch locale]# cat /etc/rc.conf
#
# /etc/rc.conf - Main Configuration for Arch Linux
#
LOCALE="zh_CN.utf8"
LANG="zh_CN.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="China/Shanghai"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USEcolor="yes"
///////////////////////
i make the # away form the "/etc/locale.gen" file   and take it run

[root@arch etc]# ./locale.gen
./locale.gen: line 129: en_US.UTF-8: command not found
./locale.gen: line 170: es_US.UTF-8: command not found
./locale.gen: line 171: es_US: command not found
./locale.gen: line 348: zh_CN.GB18030: command not found
./locale.gen: line 349: zh_CN.GBK: command not found
./locale.gen: line 350: zh_CN.UTF-8: command not found
./locale.gen: line 351: zh_CN: command not found
//////////////////////////////

[root@arch fonts]# ls
100dpi  75dpi  TTF  Type1  cyrillic  encodings  fonts.cache-1  misc  util
///////////////

[root@arch fonts]# cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder3)  Tue Aug  1 21:11:12 PDT 2006

Section "Files"

# Additional fonts: Locale, Gimp, TTF...
#       FontPath     "/usr/share/lib/X11/fonts/latin2/75dpi"
#       FontPath     "/usr/share/lib/X11/fonts/latin2/100dpi"
# True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
    RgbPath         "/usr/share/X11/rgb"
    ModulePath      "/usr/lib/xorg/modules"
    FontPath    "/usr/share/fonts/TTF"
    FontPath    "/usr/share/fonts/misc:unscaled"
    FontPath    "/usr/share/fonts/75dpi:unscaled"
    FontPath    "/usr/share/fonts/100dpi:unscaled"
    FontPath    "/usr/share/fonts/cyrillic"
    FontPath    "/usr/share/fonts/Type1"
    FontPath    "/usr/local/share/fonts"
EndSection


发表于 2006-10-26 09:28:17 | 显示全部楼层
你不只是fcitx不能输入吧,中文都不能显示!
回复 支持 反对

使用道具 举报

发表于 2006-10-26 12:47:23 | 显示全部楼层
我只想英文环境下输入中文,装了scim运行也不成功,谁有经验说说看?多谢
回复 支持 反对

使用道具 举报

发表于 2006-10-26 14:37:24 | 显示全部楼层
没有生成locale
# vi /etc/locale.gen
把 zh_CN.UTF-8 UTF-8 这行去掉注释
然后运行命令重新生成locale
# locale-gen
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-26 15:06:23 | 显示全部楼层
我去掉注释[color="Red"],运行locale.gen还是locale-gen
[root@arch etc]# ./locale.gen
./locale.gen: line 129: en_US.UTF-8: command not found
./locale.gen: line 170: es_US.UTF-8: command not found
./locale.gen: line 171: es_US: command not found
./locale.gen: line 348: zh_CN.GB18030: command not found
./locale.gen: line 349: zh_CN.GBK: command not found
./locale.gen: line 350: zh_CN.UTF-8: command not found
./locale.gen: line 351: zh_CN: command not found
//////////////////////////////
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-26 15:11:54 | 显示全部楼层
我现在XP等下回去试。
我装了KDE,和FCITX  还装了ttf-ms-fonts和ttf-arghic-uming 和 ttf-qrphic-ukai字体
现在FCITX显法五笔之类的地方可以换拼音之类但是灰色输不了。
还有MOUNT FAT的盘用UTF8显示方块。
回复 支持 反对

使用道具 举报

发表于 2006-10-26 15:50:53 | 显示全部楼层
Post by uljling
我去掉注释[color="Red"],运行locale.gen还是locale-gen
[root@arch etc]# ./locale.gen
./locale.gen: line 129: en_US.UTF-8: command not found
./locale.gen: line 170: es_US.UTF-8: command not found
./locale.gen: line 171: es_US: command not found
./locale.gen: line 348: zh_CN.GB18030: command not found
./locale.gen: line 349: zh_CN.GBK: command not found
./locale.gen: line 350: zh_CN.UTF-8: command not found
./locale.gen: line 351: zh_CN: command not found
//////////////////////////////

编辑/etc/locale.gen
运行命令locale-gen
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-26 19:44:26 | 显示全部楼层
就是错在这一步了.汗.不过输入法倒是输得了,但写字板或文件名输中文都显示方块了.只有FIREFOX显示中文..再怎么搞也不得.所以把KDE干了,装了XFCE4现在中文之类的都好了.
回复 支持 反对

使用道具 举报

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

本版积分规则

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