1. 程式人生 > >【Linux基礎】Fcitx中文輸入法安裝

【Linux基礎】Fcitx中文輸入法安裝

sun 不顯示 命令 中文輸入 狀態 linu div 中括號 ron

一、安裝Fcitx

1. 安裝Fcitx所需組件

sudo apt install fcitx fcitx-tools fcitx-config* fcitx-frontend* fcitx-module* fcitx-ui-* presage

2. 移除多余的組件(僅針對非KDE桌面)

因為上面的安裝命令為了方便使用了通配符安裝,所以會多安裝一個fcitx-module-kimpanel,這個組件可能導致在非KDE桌面環境下Fcitx輸入中文時不顯示候選詞框,如果是KDE桌面則無需移除。

 sudo apt remove fcitx-module-kimpanel

3. 根據需要安裝一個或多個輸入法

$ sudo apt install fcitx-pinyin            # 拼音
$ sudo apt install fcitx-sunpinyin         # sun拼音
$ sudo apt install fcitx-googlepinyin      # google拼音
$ sudo apt install fcitx-table-wubi-large  # 五筆

二、Fcitx輸入中文時不顯示候選詞框的解決辦法

如上所述,在非KDE桌面環境下,如果安裝了fcitx-module-kimpanel,可能會導致Fcitx輸入中文時不顯示候選詞框,移除該組件,然後重啟Fcitx

sudo apt remove fcitx-module-kimpanel

三、fcitx中文輸入法-全角中括號

新安裝的fcitx,在中文輸入法狀態時,[]打出的字符為·/

編輯/usr/share/fcitx/data/punc.mb.zh_CN,
將
[ ·
] 「 」
這部分改成自己習慣的:
[? 【
]? 】
保存後,重啟一下fcitx就OK了。

【Linux基礎】Fcitx中文輸入法安裝