📖 SUSE 輸入法安裝與設定

分類:桌面應用 | 作者:pake | 發布時間:2024-11-01 23:27

SUSE Linux 中文輸入法設定指南

SUSE Linux 支援多種中文輸入法,例如 IBus(Intelligent Input Bus)、Fcitx5(Flexible Input Method Framework)和 Rime(中州韻)。本篇將介紹如何安裝、設定與最佳化中文輸入法,以確保流暢的輸入體驗。

目錄


安裝與切換輸入法框架

SUSE 預設使用 IBus 作為輸入法框架,但可以選擇 Fcitx5 或 Rime 來獲得更好的輸入體驗。

檢查當前輸入法框架

echo $XMODIFIERS

若顯示 @im=ibus,表示 IBus 為目前的輸入法框架。

安裝 IBus 與 Fcitx5

sudo zypper install ibus ibus-libpinyin ibus-table-chinese ibus-gtk3 ibus-gtk4 -y
sudo zypper install fcitx5 fcitx5-chinese-addons fcitx5-gtk -y

切換至 IBus

echo "export GTK_IM_MODULE=ibus" >> ~/.bashrc
echo "export QT_IM_MODULE=ibus" >> ~/.bashrc
echo "export XMODIFIERS=@im=ibus" >> ~/.bashrc
source ~/.bashrc

切換至 Fcitx5

echo "export GTK_IM_MODULE=fcitx" >> ~/.bashrc
echo "export QT_IM_MODULE=fcitx" >> ~/.bashrc
echo "export XMODIFIERS=@im=fcitx" >> ~/.bashrc
source ~/.bashrc

設定 IBus 輸入法

  1. 啟動 IBus 設定工具
    ibus-setup
  2. 添加中文輸入法
    • 開啟 ibus-setup
    • 選擇「Input Method」標籤
    • 點擊「+」並搜尋「Chinese - Intelligent Pinyin」或「Chinese - Wubi」
  3. 重新啟動 IBus
    ibus restart
  4. 測試輸入法
    Super + Space(或 Ctrl + Space)切換輸入法,嘗試輸入中文。

設定 Fcitx5 輸入法

  1. 啟動 Fcitx5 設定工具
    fcitx5-configtool
  2. 添加中文輸入法
    • 開啟 fcitx5-configtool
    • 點擊「+」並搜尋「Pinyin」或「Wubi」
  3. 重新啟動 Fcitx5
    fcitx5 -r &
  4. 設定開機自動啟動
    echo "fcitx5 &" >> ~/.bashrc

設定 Rime(中州韻)輸入法

Rime 是一款可高度定制的中文輸入法,支援拼音、倉頡、五筆等。

  1. 安裝 Rime
    sudo zypper install ibus-rime fcitx5-rime -y
  2. 啟動輸入法平台
    • 若使用 IBus:
      ibus restart
      ibus-setup
    • 若使用 Fcitx5:
      fcitx5-configtool
  3. 初始化 Rime
    mkdir -p ~/.config/ibus/rime
    rime_dict_manager
  4. 自訂 Rime 配置
    編輯 ~/.config/ibus/rime/default.custom.yaml,例如:
    patch:
     schema_list:
       - schema: luna_pinyin
       - schema: wubi86
  5. 重新部署 Rime
    rime_deployer

解決輸入法相關問題


結語

本指南介紹了 SUSE Linux 的中文輸入法設定,涵蓋 IBus、Fcitx5、Rime 三種框架,並提供詳細的設定與疑難排解方法。透過這些步驟,您可以在 SUSE 系統上流暢地輸入中文。

⬅ 上一篇 下一篇 ➡
🔙 返回 桌面應用 📚 返回教學列表 🏠 返回首頁