Showing posts with label fcitx. Show all posts
Showing posts with label fcitx. Show all posts

Tuesday, October 11, 2016

Gentoo install fcitx

Gentoo install fcitx



??emerge??Fcitx(Free Chinese Input Toy for X)????????fcitx???/etc/portage/package.keywords???????????4.0?????
app-i18n/fcitx ~x86
app-i18n/fcitx-configtool ~x86
app-i18n/fcitx-sunpinyin ~x86
app-i18n/sunpinyin ~x86
fcitx-configtool ???GTK?fcitx?????
sunpinyin???????????????????????fcitx-sunpinyin???????????????????????
??fcitx?fcitx-sunpinyin?fcitx-configtool?
emerge -avt fcitx fcitx-configtool fcitx-sunpinyin
????????????fcitx??????????????????????3????
1. ?Bash?????????Xfce4?
???????.xinitrc??????Xfce4??????????????????
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim
fcitx &
exec startxfce4
2. ???Slim???????
????Slim?????/etc/slim.conf????Xfce4???~/.xinitrc???
# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd exec /bin/sh - ~/.xinitrc %session
# login_cmd exec /bin/bash -login ~/.xinitrc %session
login_cmd exec /bin/bash -login /usr/share/slim/Xsession %session
?????/usr/share/slim/Xsession???????~/.xinitrc????fcitx????????/usr/share/slim/Xsession??????fcitx??????/usr/share/slim/Xsession???X?????????xprofile???
# Read /etc/xprofile and .xprofile for X specific setup
test -f /etc/xprofile && . /etc/xprofile
test -f "$HOME/.xprofile" && . "$HOME/.xprofile"
??????????.xprofile???fcitx?????????
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim
?????.xprofile???????fctix &???????????fcitx??????????????fcitx.desktop??????autostart???
ln -s /usr/share/applications/fcitx.desktop ~/.config/autostartAvailable link for download

Read more »

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

Read more »