diff --git a/read/im.md b/read/im.md deleted file mode 100644 index 63957a8..0000000 --- a/read/im.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: 中文輸入法 -nav_order: 3000 -has_children: true ---- - - -# 中文輸入法 - - -## fcitx - -* [fcitx-chewing](https://samwhelp.github.io/note-about-fedora/read/im/fcitx/fcitx-chewing.html) - - diff --git a/read/im/fcitx.md b/read/im/fcitx.md deleted file mode 100644 index 6abef6b..0000000 --- a/read/im/fcitx.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: fcitx -nav_order: 3100 -has_children: true -parent: 中文輸入法 ---- - - -# fcitx diff --git a/read/im/fcitx/fcitx-chewing.md b/read/im/fcitx/fcitx-chewing.md deleted file mode 100644 index 4715820..0000000 --- a/read/im/fcitx/fcitx-chewing.md +++ /dev/null @@ -1,152 +0,0 @@ ---- -title: fcitx-chewing -nav_order: 3101 -has_children: false -parent: fcitx -grand_parent: 中文輸入法 ---- - - -# fcitx-chewing - -## 微調腳本 - -* [fcitx-chewing 安裝微調腳本](https://github.com/samwhelp/note-about-fedora/tree/gh-pages/_demo/adjustment/env/im/fcitx-chewing) - - -## 指令安裝 - -執行下面指令,安裝相關「Package」 - -``` sh -sudo dnf install fcitx fcitx-chewing fcitx-configtool fcitx-gtk2 fcitx-gtk3 fcitx-qt4 fcitx-qt5 -``` - -或是執行下面指令,安裝相關「Package」 - -``` sh -sudo dnf install fcitx fcitx-chewing fcitx-configtool fcitx-gtk2 fcitx-gtk3 fcitx-qt4 fcitx-qt5 -y -``` - - - - -## 切換輸入法架構 - -執行 - -``` sh -imsettings-list -``` - -顯示 - -``` -- 1: IBus[ibus.conf] (recommended) - 2: X compose table[xcompose.conf] - 3: FCITX[fcitx.conf] -``` - -執行下面指令,切換輸入法架構到「fcitx」 - -``` sh -imsettings-switch fcitx -``` - -顯示 - -``` -Switched input method to fcitx -``` - -> 重新登出,然後登入,就會生效 - - -## ~/.config/imsettings/xinputrc - -上面的步驟,會產生一個檔案「~/.config/imsettings/xinputrc」 - -執行下面指令 - -``` sh -file ~/.config/imsettings/xinputrc -``` - -顯示 - -``` -/home/liveuser/.config/imsettings/xinputrc: symbolic link to /etc/X11/xinit/xinput.d/fcitx.conf -``` - -可以了解到關於「~/.config/imsettings/xinputrc」這個檔案, - -是「symbolic link」到「/etc/X11/xinit/xinput.d/fcitx.conf」 - - -執行 - -``` sh -ls /etc/X11/xinit/xinput.d/ -1 -``` - -顯示 - -``` -fcitx.conf -ibus.conf -none.conf -xcompose.conf -xim.conf -``` - -執行 - -``` -cat /etc/X11/xinit/xinput.d/fcitx.conf -``` - -顯示 - -``` -XIM=fcitx -XIM_PROGRAM=/usr/bin/fcitx -ICON="/usr/share/pixmaps/fcitx.png" -XIM_ARGS="-D" -PREFERENCE_PROGRAM=/usr/bin/fcitx-configtool -SHORT_DESC="FCITX" -GTK_IM_MODULE=fcitx -if test -f /usr/lib/qt4/plugins/inputmethods/qtim-fcitx.so || \ - test -f /usr/lib64/qt4/plugins/inputmethods/qtim-fcitx.so || \ - test -f /usr/lib/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so || \ - test -f /usr/lib64/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so; -then - QT_IM_MODULE=fcitx -else - QT_IM_MODULE=xim -fi - -``` - - - -## 環境變數 - -執行 - -``` sh -env | grep fcitx -``` - -顯示 - -``` -GTK_IM_MODULE=fcitx -XMODIFIERS=@im=fcitx -QT_IM_MODULE=fcitx -``` - - -## 按鍵綁定 - -* [spec-keybind-chewing](https://github.com/samwhelp/note-about-ubuntu/blob/gh-pages/_demo/adjustment/env/im/fcitx-chewing/spec-keybind-chewing.md) -* [spec-keybind](https://github.com/samwhelp/note-about-ubuntu/blob/gh-pages/_demo/adjustment/env/im/fcitx-chewing/spec-keybind.md) diff --git a/read/im/fcitx5.md b/read/im/fcitx5.md deleted file mode 100644 index 6430aa9..0000000 --- a/read/im/fcitx5.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: fcitx5 -nav_order: 3110 -has_children: true -parent: 中文輸入法 ---- - - -# fcitx5 diff --git a/read/im/fcitx5/fcitx5-chewing.md b/read/im/fcitx5/fcitx5-chewing.md deleted file mode 100644 index bbcf3ea..0000000 --- a/read/im/fcitx5/fcitx5-chewing.md +++ /dev/null @@ -1,228 +0,0 @@ ---- -title: fcitx5-chewing -nav_order: 3111 -has_children: false -parent: fcitx5 -grand_parent: 中文輸入法 ---- - - -# fcitx5-chewing - - -## 查詢 - -執行 - -``` sh -dnf search fcitx5 -``` - -顯示 - -``` -Last metadata expiration check: 1:38:37 ago on Sun 15 May 2022 11:29:34 AM EDT. -==================================== Name Exactly Matched: fcitx5 ===================================== -fcitx5.i686 : Next generation of fcitx -fcitx5.x86_64 : Next generation of fcitx -=================================== Name & Summary Matched: fcitx5 ==================================== -fcitx5-anthy.x86_64 : Anthy Wrapper for Fcitx5 -fcitx5-autostart.noarch : This package will make fcitx5 start with your GUI session -fcitx5-chinese-addons.i686 : Chinese related addon for fcitx5 -fcitx5-chinese-addons.x86_64 : Chinese related addon for fcitx5 -fcitx5-chinese-addons-data.noarch : Data files of fcitx5-chinese-addons -fcitx5-chinese-addons-devel.i686 : Development files for fcitx5-chinese-addons -fcitx5-chinese-addons-devel.x86_64 : Development files for fcitx5-chinese-addons -fcitx5-configtool.i686 : Configuration tools used by fcitx5 -fcitx5-configtool.x86_64 : Configuration tools used by fcitx5 -fcitx5-data.noarch : Data files of Fcitx5 -fcitx5-devel.i686 : Development files for fcitx5 -fcitx5-devel.x86_64 : Development files for fcitx5 -fcitx5-gtk-devel.i686 : Development files for fcitx5-gtk -fcitx5-gtk-devel.x86_64 : Development files for fcitx5-gtk -fcitx5-gtk2.i686 : fcitx5 gtk module for gtk2 -fcitx5-gtk2.x86_64 : fcitx5 gtk module for gtk2 -fcitx5-gtk3.x86_64 : fcitx5 gtk module for gtk3 -fcitx5-gtk4.x86_64 : fcitx5 gtk module for gtk4 -fcitx5-hangul.x86_64 : Hangul Wrapper for Fcitx5 -fcitx5-kkc.x86_64 : Libkkc input method support for Fcitx5 -fcitx5-libthai.x86_64 : Libthai Wrapper for Fcitx5 -fcitx5-lua-devel.i686 : Development files for fcitx5-lua -fcitx5-lua-devel.x86_64 : Development files for fcitx5-lua -fcitx5-m17n.x86_64 : m17n Wrapper for Fcitx5 -fcitx5-migrator.i686 : Migration tools for fcitx5 -fcitx5-migrator.x86_64 : Migration tools for fcitx5 -fcitx5-migrator-devel.i686 : Devel files for fcitx5-migrator -fcitx5-migrator-devel.x86_64 : Devel files for fcitx5-migrator -fcitx5-mozc.x86_64 : A wrapper of mozc for fcitx5 -fcitx5-qt.i686 : Qt library and IM module for fcitx5 -fcitx5-qt.x86_64 : Qt library and IM module for fcitx5 -fcitx5-qt-devel.i686 : Development files for fcitx5-qt -fcitx5-qt-devel.x86_64 : Development files for fcitx5-qt -fcitx5-qt-libfcitx5qt5widgets.i686 : Provide libFcitx5Qt5WidgetsAddons for fcitx5 -fcitx5-qt-libfcitx5qt5widgets.x86_64 : Provide libFcitx5Qt5WidgetsAddons for fcitx5 -fcitx5-qt-libfcitx5qtdbus.i686 : Provides libFcitx5Qt5DBusAddons for fcitx5 -fcitx5-qt-libfcitx5qtdbus.x86_64 : Provides libFcitx5Qt5DBusAddons for fcitx5 -fcitx5-qt-module.i686 : Provides seperately modules for fcitx5-qt -fcitx5-qt-module.x86_64 : Provides seperately modules for fcitx5-qt -fcitx5-qt6.i686 : Qt 6 support for fcitx5 -fcitx5-qt6.x86_64 : Qt 6 support for fcitx5 -fcitx5-sayura.x86_64 : Sinhala Transe IME engine for Fcitx5 -fcitx5-skk.x86_64 : Japanese SKK (Simple Kana Kanji) Engine for Fcitx5 -fcitx5-table-extra.noarch : Extra tables for Fcitx5 -fcitx5-table-other.noarch : Other tables for Fcitx5 -fcitx5-unikey.x86_64 : Unikey support for Fcitx5 -fcitx5-zhuyin-data.noarch : Data files for fcitx5-zhuyin -======================================== Name Matched: fcitx5 ========================================= -fcitx5-chewing.x86_64 : Chewing Wrapper for Fcitx -fcitx5-gtk.i686 : Gtk im module and glib based dbus client library -fcitx5-gtk.x86_64 : Gtk im module and glib based dbus client library -fcitx5-lua.i686 : Lua support for fcitx -fcitx5-lua.x86_64 : Lua support for fcitx -fcitx5-rime.x86_64 : RIME support for Fcitx -fcitx5-zhuyin.x86_64 : Libzhuyin Wrapper for Fcitx -kcm-fcitx5.i686 : Config tools to be used on KDE based environment. -kcm-fcitx5.x86_64 : Config tools to be used on KDE based environment. -``` - - -## 指令安裝 - -執行下面指令,安裝相關「Package」 - -``` sh -sudo dnf install fcitx5 fcitx5-chewing fcitx5-configtool fcitx5-gtk2 fcitx5-gtk3 fcitx5-gtk4 fcitx5-qt fcitx5-qt6 -``` - -或是執行下面指令,安裝相關「Package」 - -``` sh -sudo dnf install fcitx5 fcitx5-chewing fcitx5-configtool fcitx5-gtk2 fcitx5-gtk3 fcitx5-gtk4 fcitx5-qt fcitx5-qt6 -y -``` - - - - -## 切換輸入法架構 - -執行 - -``` sh -imsettings-list -``` - -顯示 - -``` -* 1: IBus[ibus.conf] (recommended) - 2: X compose table[xcompose.conf] - 3: fcitx5[fcitx5.conf] - 4: FCITX[fcitx.conf] -``` - -執行下面指令,切換輸入法架構到「fcitx5」 - -``` sh -imsettings-switch fcitx5 -``` - -顯示 - -``` -Switched input method to fcitx5 -``` - -> 重新登出,然後登入,就會生效 - - -## ~/.config/imsettings/xinputrc - -上面的步驟,會產生一個檔案「~/.config/imsettings/xinputrc」 - -執行下面指令 - -``` sh -file ~/.config/imsettings/xinputrc -``` - -顯示 - -``` -/home/liveuser/.config/imsettings/xinputrc: symbolic link to /etc/X11/xinit/xinput.d/fcitx5.conf -``` - -可以了解到關於「~/.config/imsettings/xinputrc」這個檔案, - -是「symbolic link」到「/etc/X11/xinit/xinput.d/fcitx5.conf」 - - -執行 - -``` sh -ls /etc/X11/xinit/xinput.d/ -1 -``` - -顯示 - -``` -fcitx5.conf -fcitx.conf -ibus.conf -none.conf -xcompose.conf -xim.conf -``` - -執行 - -``` -cat /etc/X11/xinit/xinput.d/fcitx5.conf -``` - -顯示 - -``` -XIM=fcitx5 -XIM_PROGRAM=/usr/bin/fcitx5 -ICON="fcitx5" -XIM_ARGS="-D" -PREFERENCE_PROGRAM=/usr/bin/fcitx5-configtool -SHORT_DESC="fcitx5" -GTK_IM_MODULE=fcitx -if test -f /usr/lib/qt4/plugins/inputmethods/qtim-fcitx5.so || \ - test -f /usr/lib64/qt4/plugins/inputmethods/qtim-fcitx5.so || \ - test -f /usr/lib/qt5/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so || \ - test -f /usr/lib64/qt5/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so; -then - QT_IM_MODULE=fcitx -else - QT_IM_MODULE=xim -fi - -# workaround for gnome users -if [ "$XDG_SESSION_DESKTOP" = "gnome" ]; then - /usr/bin/systemd-run --user --unit=$XIM $XIM_PROGRAM $XIM_ARGS -fi -``` - - - -## 環境變數 - -執行 - -``` sh -env | grep fcitx -``` - -顯示 - -``` -GTK_IM_MODULE=fcitx -XMODIFIERS=@im=fcitx5 -IMSETTINGS_MODULE=fcitx5 -QT_IM_MODULE=fcitx -``` - - - diff --git a/read/im/ibus.md b/read/im/ibus.md deleted file mode 100644 index e344b97..0000000 --- a/read/im/ibus.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: ibus -nav_order: 3200 -has_children: true -parent: 中文輸入法 ---- - - -# ibus diff --git a/read/im/ibus/ibus-chewing.md b/read/im/ibus/ibus-chewing.md deleted file mode 100644 index aea5e9e..0000000 --- a/read/im/ibus/ibus-chewing.md +++ /dev/null @@ -1,167 +0,0 @@ ---- -title: ibus-chewing -nav_order: 3201 -has_children: false -parent: ibus -grand_parent: 中文輸入法 ---- - - -# ibus-chewing - - -## switch-input-source - -在「gnome-shell」內建有整合「ibus」, - -請參考「[switch-input-source](https://samwhelp.github.io/note-about-ubuntu/read/flavours/workstation/adjustment/switch-input-source.html)」這篇的說明。 - - -> 以下是在其他桌面環境的操作。 - -## 指令安裝 - -``` sh -sudo dnf install ibus ibus-chewing ibus-gtk2 ibus-gtk3 ibus-gtk4 ibus-qt -``` - - -## 切換輸入法架構 - -執行下面指令,切換輸入法架構到「ibus」 - -``` sh -imsettings-switch ibus -``` - -``` -Switched input method to ibus -``` - -重新登出,然後登入,就會生效 - - -## ~/.config/imsettings/xinputrc - -上面的步驟,會產生一個檔案「~/.config/imsettings/xinputrc」 - -執行下面指令 - -``` sh -file ~/.config/imsettings/xinputrc -``` - -顯示 - -``` -/home/liveuser/.config/imsettings/xinputrc: symbolic link to /etc/X11/xinit/xinput.d/ibus.conf -``` - -可以了解到關於「~/.config/imsettings/xinputrc」這個檔案, - -是「symbolic link」到「/etc/X11/xinit/xinput.d/ibus.conf」 - - -執行 - -``` sh -ls /etc/X11/xinit/xinput.d/ -1 -``` - -顯示 - -``` -fcitx.conf -ibus.conf -none.conf -xcompose.conf -xim.conf -``` - -執行 - -``` -cat /etc/X11/xinit/xinput.d/ibus.conf -``` - -顯示 - -``` -XIM=ibus -XIM_PROGRAM="/usr/bin/ibus-daemon" -ICON="ibus" -XIM_ARGS="-r --xim" -PREFERENCE_PROGRAM=/usr/bin/ibus-setup -SHORT_DESC="IBus" -GTK_IM_MODULE=ibus -NOT_RUN=gnome3 - -if test -f /usr/lib64/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so || \ - test -f /usr/lib/qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so || \ - test -f /usr/lib64/qt4/plugins/inputmethods/libqtim-ibus.so || \ - test -f /usr/lib/qt4/plugins/inputmethods/libqtim-ibus.so; -then - QT_IM_MODULE=ibus -else - QT_IM_MODULE=xim -fi -``` - -## 環境變數 - -執行 - -``` sh -env | grep ibus -``` - -顯示 - -``` -GTK_IM_MODULE=ibus -XMODIFIERS=@im=ibus -QT_IM_MODULE=ibus -``` - - -## gsettings - - -``` sh -gsettings list-recursively | grep org.freedesktop.ibus | sort -``` - - - -## 可用輸入法清單 - -也可以透過「下指令」的方式,,來加入「慣用的中文輸入法」。 - -執行下面指令,就可以設定「可用輸入法清單」。 - -``` sh -gsettings set org.freedesktop.ibus.general preload-engines "['xkb:us::eng', 'chewing']" -``` - - -``` sh -gsettings set org.freedesktop.ibus.general preload-engines "['xkb:us::eng', 'libzhuyin']" -``` - -``` sh -gsettings set org.freedesktop.ibus.general preload-engines "['xkb:us::eng', 'chewing', 'libzhuyin']" -``` - -## 更改切換按鍵 - -預設只要按下「`Win + Space`」, - -就可以切換「英文輸入法」和「中文輸入法」。 - -因為我還是習慣使用「`Ctrl + Space`」切換「英文輸入法」和「中文輸入法」。 - -所以執行下面指令,來更改「切換按鍵」 - -``` sh -gsettings set org.freedesktop.ibus.general.hotkey triggers "['space']" -```