Thursday, May 18, 2017

CentOS 5 6ä¸‹ç¼–è¯‘å ‰è£ Fcitxï¼ˆå°ä¼é¹ è¾“å ¥æ³•ï¼‰

CentOS 5 6ä¸‹ç¼–è¯‘å ‰è£…Fcitx(小企鹅输入法)


?????? Fcitx ?????

Fcitx?????gettext, gettext-devel, libXft, libXft-devel, libXpm?libXpm-devel?????????????????
??? yum install xxx?????????????????????????????
yum install gettext gettext-devel libXft libXft-devel libXpm libXpm-devel automake autoconf libXtst-devel gtk+-devel gcc zlib-devel libpng-devel gtk2-devel glib-devel -y
??????
1. ??Fcitx?????????wget http://www.fcitx.org/download/fcitx-3.6.3.tar.bz2
2. ???? /usr/src ????tar jxvf fcitx-3.6.3.tar.bz2 -C /usr/src
3. ?????cd /usr/src/fcitx-3.6.3
4. ??”.configure“??? ./autogen.sh
5. ????? ./configure
???Centos 5??????????????????????RHEL??????????
6. ?????
make
make install
7. ????????????fcitx -h??????????????????????
[root@CentOS ~]# fcitx -h
Usage: fcitx [OPTION]
-d run as daemon(default)
-D don’t run as daemon
-c (re)create config file in home directory and then exit
-n[im name] run as specified name
-v display the version information and exit
-h display this help and exit
????Fcitx??????
???????????
1. ?????? vim /etc/X11/xinit/xinput.d/fcitx.conf ?????
XIM=fcitx
XIM_PROGRAM=/usr/local/bin/fcitx
XIM_ARGS=”-d”
GTK_IM_MODULE=fcitx
QT_IM_MODULE =fcitx
2. ???/etc/alternatives/?????????xinputrc?????????
mv /etc/alternatives/xinputrc /etc/alternatives/xinputrc.bak
ln -s /etc/X11/xinit/xinput.d/fcitx.conf /etc/alternatives/xinputrc
3. ?????? ??——???——?????——??? ????“??????????[fcitx]”???“??”?????“ctrl+??”????fcitx????
??????????????????????????????.bashrc????????????
export LANG=”zh_CN.UTF-8?
export LC_CTYPE=”zh_CN.UTF-8?
export XIM=fcitx
export XIM_PROGRAM=fcitx
export GTK_IM_MODULE=xim
export XMODIFIERS=”@im=fcitx”
????????CentOS 5.3?????5.5??????
1. ???????vim /etc/X11/xinit/xinput.d/fcitx?????
XIM=fcitx
XIM_PROGRAM=fcitx
GTK_IM_MOUDLE=fcitx
QT_IM_MOUDLE=fcitx
?????????
2. ??Fcitx?????????????fcitx???????Start FCITX error. Another XIM daemon named SCIM is running??????????”4“
3. ??????????ln -s /etc/X11/xinit/Xinput.d/fcitx /$HOME/.xinputrc
4. ??? fcitx -nb ????????
??fcitx???????????????????????????????????
ctrl+?? ??????
??fcitx?????vim ~/.fcitx/config???????????
??????
?????cd /usr/src/fcitx-3.6.3
???make uninstall
????fcitx?????? vim ~/.fcitx/config
[??]
????(?)=??
????(?)=Courier
??????=20
???????=12
????AA??=1
[??]
????????=1
Enter???=1
??????=0
????????=1
????????=1
LumaQQ??=0
[??]
?????=9
???????3D??=0
?????3D??=1
???????=0
?????????=0
#?????????????????0???????
???????=600
?????=0
??????=1
???=92 210 131
??????=220 220 220
??????=100 180 255
?????????=170 170 170 150 200 150 0 0 255
??????=240 240 240
??????=255 0 0
????????=0 0 255
??????=200 0 0
??????????=0 150 100
#????????????????
????????=0 0 255
????????=100 100 255
#????????/??????????
????????=0 0 0
??????=100 200 255
??????=255 150 255
????????=220 220 220
????????=80 0 0
????????=0 0 0
#??“????????”??????????????????????
[??]
??/?????=CTRL_SPACE
#???????? ?????L_CTRL R_CTRL L_SHIFT R_SHIFT
????????=L_CTRL
???????=0
??????=250
????=CTRL_K
GBK??=CTRL_M
????=CTRL_L
????=CTRL_ALT_E
???=SHIFT_SPACE
????=ALT_SPACE
???=-
???==
?????????=SHIFT
[???]
????=1
????=0
????=1
????=1
????????=0
[??]
????=0
??????=1
??????=0
???????=CTRL_8
???????=CTRL_7
????????=CTRL_DELETE
#?????????????????????
???????=[]
#?????????0–>??? 1–>???? 2–>?????
??????????=2
??????????=1
???????????=0
????an?ang=0
????en?eng=0
????ian?iang=0
????in?ing=0
????ou?u=0
????uan?uang=0
????c?ch=0
????f?h=0
????l?n=0
????s?sh=0
????z?zh=0

Go to link Download