Tuesday, October 4, 2016

Gnetoo install fcitx

Gnetoo install fcitx



?gentoo?????????????????????????????????????????????????????????gentoo??????????
1. ???????
1.1 ??locale-gen
????????locale.gen???
#####/etc/locale.gen#######
en_US ISO-8859-1
en_US.UTF-8 UTF-8
zh_CN GB18030
zh_CN.GBK GBK
zh_CN.GB2312 GB2312
zh_CN.UTF-8 UTF-8
??????locale-gen?????????locale.
1.2 ??locale
??/etc/env.d/100i18n??????????
LANG=en_US.UTF-8
LC_CTYPE=zh_CN.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
???????????????????????????fcitx???zh_CN.UTF-8?LC_CTYPE??????????????

1.3 ?????env-update && source /etc/profile?????????????????

2. fcitx?????
2.1 ??????????~x86???????fcitx?????????????SCIM??????????????????????????????~x86?????????n???????????????????stable??????????????????

2.2 ?/etc/env.d/?????95fcitx???????????
# !/bin/bash
# This script set the "XIM" and some other environment variable,
# then starts fcitx automatically when loading X
XMODIFIERS="@im=fcitx"
XIM=fcitx
XIM_ARGS="-d"
XIM_PROGRAM=fcitx
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
?????????????????????fcitx????????????????????????????

2.3 ?fcitx????????
???windows???????????????????GNOME????SESSION?????????????SESSION??????????
System->Preferences->Sessions->Add
??????????

????Name?Comment??????

2.4 ???KDE?????????
????????????????????????????????????????KDE4.0???3.5????
cd ~/.kde4.0/Autostart
ln -sf /usr/bin/fcitx
?????????Autostart??????fcitx????KDE??????????????


Available link for download