+ -
当前位置:首页 → 问答吧 → 问urxvt中文输入

问urxvt中文输入

时间:2009-01-07

来源:互联网

用的是rxvt-unicode,配置文件如下:
代码:
URxvt.background:black
!URxvt.foreground:gray60
URxvt.foreground:white
URxvt.geometry: 90x25+180+200
URxvt.colorBD:yellow
URxvt.colorUL:green
URxvt.cursorColor:red3
URxvt.color0:black
URxvt.color1:red3
URxvt.color2:springgreen
URxvt.color3:wheat3
URxvt.color4:navy
URxvt.color5:magenta4
URxvt.color6:steelblue1
URxvt.color7:gray85
URxvt.color8:gray10
URxvt.color9:orangered2
URxvt.color10:chartreuse3
URxvt.color11:lightgoldenrod2
URxvt.color12:skyblue1
URxvt.color13:pink1
URxvt.color14:lightblue1
!Scroll
URxvt.scrollBar: true
URxvt.scrollBar_right: true
URxvt.scrollBar_floating: true
URxvt.scrollstyle: plain
URxvt.saveLines: 5000
!fonts
URxvt.font:xft:Bitstream Vera Sans Mono-10,xft:WenQuanYi Bitmap Song-10
URxvt.boldFont:xft:Bitstream Vera Sans Mono-10:Bold,xft:WenQuanYi Bitmap Song-10:Bold
!Input Method
URxvt.inputMethod: fcitx
URxvt.preeditType: OverTheSpot
URxvt.imFont: WenQuanYi Bitmap Song
此配置在openbox下可以输入中文,but移到fvwm,fluxbox,awesome等环境下都不行,何解?

作者: YaoM   发布时间: 2009-01-07

不关fvwm,fluxbox,awesome的事,看一下你输入法环境变量(不知道是不是这样说?)设置好了没有!!如:

代码:
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
export XMODIFIERS

作者: Hosanna   发布时间: 2009-01-08

用 scim-bridge 吧,以前一直设置
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
export XMODIFIERS
后来换成 scim-bridge后就全好了

作者: axlrose   发布时间: 2009-01-08

谢谢两位
其实我是用的fcitx
只是配置文件的最后少了一句:
export XMODFIERS
奇怪的是在openbox中正常使用,而其他WM不行

作者: YaoM   发布时间: 2009-01-08