Skip to content

Instantly share code, notes, and snippets.

@y56
Last active April 9, 2020 19:16
Show Gist options
  • Save y56/8bfa3f391b730f545bddc3eb9ffc6935 to your computer and use it in GitHub Desktop.
Save y56/8bfa3f391b730f545bddc3eb9ffc6935 to your computer and use it in GitHub Desktop.
chewing chinese input on ubuntu
https://gist.github.com/tanyuan/c0d4ee15cf0c9c93da28cc1cf0ff87b3
====
https://wenxintaichi.blogspot.com/2018/06/blog-post_29.html
====
Ubuntu 18.04
1.進入系統設定值/語言支援, 依照系統的建議的更新下載
2.terminal 之下
$sudo apt install fcitx
$sudo apt install fcitx-chewing
3.重新登入
4.預設輸入法框架: fcitx
4.1 重新登入
5.單擊螢幕右上角小鍵盤(或小企鵝或任何顯示中、英、酷字樣的按鈕), configure fcitx (配置當前輸入法),在視窗下方按+號加入新酷音
(如果沒有小企鵝,也許需要重新開機)。
6.
I need to do `fcitx-autostart` in terminal.
Use `gnome-session-properties` to add this command to be executed for every startup.
Ubuntu 18.04
1.進入系統設定值/語言支援, 依照系統的建議的更新下載
2.在軟體中心安裝fcitx、fcitx設定、fcitx-qimpanel-configtool
3.terminal之下安裝新酷音輸入法:$sudo apt-get install fcitx-chewing
或是 Synaptic之下安裝新酷音輸入法 fcitx-chewing
4.預設輸入法框架: fcitx
5.(重新開機)小鍵盤(或小企鵝或任何顯示中、英、酷字樣的按鈕)就會出現在右上方選單列。
6.可順便到"配置當前輸入法/全域設定"設定有關快捷鍵等的配置。
7.
設為預設輸入法架構: System Settings > Language Support > Language Tab > Keyboard input method system: set to fcitx
8.
讓每個程式獨立維持輸入法狀態: System Settings > Keyboard > Typing Tab > Click on Text Entry > Select Allow different sources for each application
9.
fcitx 設定沒事別跳出選字框: 右上角工具列 fcitx 鍵盤圖示 > Configure > Global Config > Click Show Advance Option > Appearance > Do not show input window if there is only preedit string
10.
下載這個 Gist 的圖示,取代原本新酷音超不搭的圖示,符合 Ubuntu Ambiance 主題風格:
sudo cp fcitx-chewing.png /usr/share/icons/hicolor/48x48/apps/fcitx-chewing.png
11.
在家目錄建立一個.xsessionrc檔,並寫入一些環境變數
vim ~/.xsessionrc
-- ↓寫入的內容↓ --
export GTK_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export QT_IM_MODULE=fcitx
這樣fcitx輸入法就完全正常了,輸入速度多快都沒問題
但重開機後fcitx輸入法就不會自動啟動了,因此要另外設定,每次開機自動執行 `fcitx-autostart`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment