1. 程式人生 > >ubuntu14.04---多語言輸入法的配置

ubuntu14.04---多語言輸入法的配置

startup,don't change input method, then I can use scim input method to input chinese character.

then if I using ctrl+shift, the input method simarly changed to fcitx.(because I can see the engines than I changed are privoided by fcitx, if using ps commnd to check.)
but you can not change the configuration of fcitx when the input method can work.
so if kill the fcitx, the input methods are all invalid.
I want to start the fcitx , then configure it at the beginning time

if I do this, the system give such messges:
置檔案: fcitx-punc-ng.conf
(INFO-4067 /build/buildd/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) 載入附加元件配置檔案: fcitx-vk.conf
(INFO-4067 /build/buildd/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) 載入附加元件配置檔案: fcitx-rime.conf
(INFO-4067 /build/buildd/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) 載入附加元件配置檔案: fcitx-pinyin.conf
(INFO-4067 /build/buildd/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) 載入附加元件配置檔案: fcitx-spell.conf
(INFO-4067 /build/buildd/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) 載入附加元件配置檔案: fcitx-sogoucloudpinyin.conf
(INFO-4067 /build/buildd/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) 載入附加元件配置檔案: fcitx-imselector.conf
(INFO-4067 /build/buildd/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) 載入附加元件配置檔案: fcitx-notificationitem.conf
(WARN-4067 /build/buildd/fcitx-4.2.8.3/src/lib/fcitx-config/fcitx-config.c:922) 配置項不合法:  行12 缺少'='
(ERROR-4067 /build/buildd/fcitx-4.2.8.3/src/lib/fcitx/module.c:66) fcitx-sogoucloudpinyin ABI Version Error
load time = 143 (ms)
(ERROR-4067 /build/buildd/fcitx-4.2.8.3/src/frontend/xim/xim.c:240) XIM啟動錯誤。是否有另一個名為SCIM的XIM守護程式正在執行?
(ERROR-4067 /build/buildd/fcitx-4.2.8.3/src/lib/fcitx/instance.c:427) Exiting.


所以應該刪除scim。刪除scim後,發現fcitx開啟後,可以正常設定輸入法了,但是仍然不能發現日文輸入法。
到這一步後,覺得scim既然沒有什麼用,那就應該直接刪除就好來,解除安裝來scim。
這樣認為,fcitx應該就可以發現和設定來吧。

這樣操作完畢,殺掉所有的fcitx,然後到/usr/bin/fcitx啟動,發現起來之後,其設定介面依然沒有所有輸入法的設定。
不瞭解這樣的機制是什麼,也不清除這個和ibus是不是衝突。因為系統中裝了ibus的中文輸入和日文輸入法。
所以決定解除安裝fcitx後,再嘗試一下。
解除安裝時,由於fcitx還在執行,忘記殺掉了,其可執行程式和相關檔案並沒有被ubuntu的軟體管理程式刪掉。
因此手動刪除了可執行程式後,重新啟動系統。

啟動後,發現中文輸入法變了,但是能夠正常輸入;日文輸入法也是正常的,英文也ok了。

所以結論是:這三種輸入法衝突導致的。
總結一下:
1.起初為了安裝中文輸入法,就安裝了scim/fcitx/ibus三種輸入法軟體相關的中文,
從實際使用的角度,可以看出起始時scim是有效的,後來fcitx程序啟動後,fcitx自帶的搜狗輸入法變得有效,因此之前應該是一直使用的fcitx的中文輸入法。
2.但是fcitx無法辨別ibus的輸入法,所以後來安裝的日文輸入法總是沒法切換出來。雖然ibus的安裝成功了,(怎麼成功的?可以看到由右上角的語言提示欄有)。
3.刪除掉scim和fcitx後,發現ibus就可以正常生效了。

另外:
ibus的輸入法配置,需要在系統的 區域和語言》輸入源  中選擇新增,注意不是新增鍵盤,而是真正的輸入法!!