-
Notifications
You must be signed in to change notification settings - Fork 61
FreeBSD 安裝教程
Ayaka edited this page Jun 6, 2023
·
12 revisions
pkg install fcitx5 fcitx5-configtool fcitx5-gtk fcitx5-qt zh-fcitx5-rime zh-rime-essay
安裝時會提示執行以下命令:
cp /usr/local/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart/
新建 ~/.xprofile
:
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
重啓系統後,在輸入法圖標上點按右鍵,開啓 Fcitx5 配置,然後添加 rime。
由於 pkg 內未必為最新版本,建議手動安裝。
mkdir -p ~/.local/share/fcitx5/rime/opencc
git clone https://github.com/rime/rime-cantonese.git ~/.rime-cantonese
ln -s ~/.rime-cantonese/*.yaml ~/.local/share/fcitx5/rime
ln -s ~/.rime-cantonese/*.txt ~/.local/share/fcitx5/rime
ln -s ~/.rime-cantonese/opencc/* ~/.local/share/fcitx5/rime/opencc
git clone https://github.com/CanCLID/rime-loengfan.git ~/.rime-loengfan
ln -s ~/.rime-loengfan/*.yaml ~/.local/share/fcitx5/rime
git clone https://github.com/rime/rime-stroke.git ~/.rime-stroke
ln -s ~/.rime-stroke/*.yaml ~/.local/share/fcitx5/rime
新建 ~/.local/share/fcitx5/rime/default.custom.yaml
:
patch:
schema_list:
- schema: jyut6ping3
然後重新部署。
可以使用 hosxy/Fcitx5-Material-Color 等佈景主題。
git -C ~/.rime-cantonese pull
git -C ~/.rime-loengfan pull
然後重新部署。
rm -rf ~/.rime-cantonese
rm -rf ~/.rime-loengfan
rm -rf ~/.rime-stroke
find -L ~/.local/share/fcitx5/rime -maxdepth 1 -type l -exec rm -- {} +
find -L ~/.local/share/fcitx5/rime/opencc -maxdepth 1 -type l -exec rm -- {} +
rm -f ~/.local/share/fcitx5/rime/default.custom.yaml
pkg remove fcitx5 fcitx5-configtool fcitx5-gtk fcitx5-qt zh-fcitx5-rime zh-rime-essay
rm -f ~/.xprofile