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


內容轉自:https://www.cnblogs.com/wmjlh/p/7407156.html

 

一、安裝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了。

 ##############################################################################################################

另一種方法:

> sudo apt-get install fcitx-pinyin im-switch

> im-config -s fcitx -z all_ALL

安裝fcitx后,在系統input method中選擇Fcitx並安裝中文輸入法,重啟系統即可。但是沒有候選詞框。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM