看板 Linux 關於我們 聯絡資訊
目前正在使用 KDE neon 5.17 版 安裝了 fcitx + rime 的輸入 使用注音輸入 能正常跑出中文候選詞 個人習慣如果要輸入的字詞爲第一候選字詞時 便會直接按enter鍵輸入 但是卻會導致候選詞消失 輸入到上面的變成了鍵盤上所敲擊的鍵位(ex:你好->sucl) 而如果使用選字詞的方式是能正常輸入中文的 想請教有解決的方法嗎? 以下附上 fcitx-diagnose 輸出的結果: # System Info: 1. `uname -a`: Linux AA 5.3.0-28-generic #30~18.04.1-Ubuntu SMP Fri Jan 17 06:14:09 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux 2. `lsb_release -a`: No LSB modules are available. Distributor ID: neon Description: KDE neon User Edition 5.17 Release: 18.04 Codename: bionic 3. `lsb_release -d`: Description: KDE neon User Edition 5.17 4. `/etc/lsb-release`: DISTRIB_ID=neon DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="KDE neon User Edition 5.17" 5. `/etc/os-release`: NAME="KDE neon" VERSION="5.17" ID=neon ID_LIKE="ubuntu debian" PRETTY_NAME="KDE neon User Edition 5.17" VARIANT="User Edition" VERSION_ID="18.04" HOME_URL="http://neon.kde.org/" SUPPORT_URL="http://neon.kde.org/" BUG_REPORT_URL="http://bugs.kde.org/" LOGO=start-here-kde-neon PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-po licy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic 6. Desktop Environment: Desktop environment is `kde`. 7. Bash Version: BASH_VERSION='4.4.20(1)-release' # Environment: 1. DISPLAY: DISPLAY=':0' 2. Keyboard Layout: 1. `setxkbmap`: xkb_keymap { xkb_keycodes { include "evdev+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compat { include "complete" }; xkb_symbols { include "pc+us+inet(evdev)" }; xkb_geometry { include "pc(pc105)" }; }; 2. `xprop`: _XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us", "", "" 3. Locale: 1. All locale: C C.UTF-8 POSIX en_AG en_AG.utf8 en_AU.utf8 en_BW.utf8 en_CA.utf8 en_DK.utf8 en_GB.utf8 en_HK.utf8 en_IE.utf8 en_IL en_IL.utf8 en_IN en_IN.utf8 en_NG en_NG.utf8 en_NZ.utf8 en_PH.utf8 en_SG.utf8 en_US.utf8 en_ZA.utf8 en_ZM en_ZM.utf8 en_ZW.utf8 lzh_TW lzh_TW.utf8 2. Current locale: LANG=zh_TW.UTF-8 LANGUAGE=zh_TW:en_US LC_CTYPE="zh_TW.UTF-8" LC_NUMERIC=lzh_TW LC_TIME=lzh_TW LC_COLLATE="zh_TW.UTF-8" LC_MONETARY=lzh_TW LC_MESSAGES="zh_TW.UTF-8" LC_PAPER=lzh_TW LC_NAME=lzh_TW LC_ADDRESS=lzh_TW LC_TELEPHONE=lzh_TW LC_MEASUREMENT=lzh_TW LC_IDENTIFICATION=lzh_TW LC_ALL= **Error occurs when running `locale`. Please check your locale settings.** locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory 4. Directories: 1. Home: /home/AA 2. `${XDG_CONFIG_HOME}`: Environment variable `XDG_CONFIG_HOME` is not set. Current value of `XDG_CONFIG_HOME` is `~/.config` (`/home/AA/.config`). 3. Fcitx Settings Directory: Current fcitx settings directory is `~/.config/fcitx` (`/home/AA/.config/fcitx`). 5. Current user: The script is run as AA (1000). # Fcitx State: 1. executable: Found fcitx at `/usr/bin/fcitx`. 2. version: Fcitx version: `4.2.9.6` 3. process: Found 2 fcitx processes: 1560 fcitx 1581 fcitx-dbus-watc 4. `fcitx-remote`: `fcitx-remote` works properly. 5. DBus interface: Using `dbus-send` to check dbus. Owner of DBus name `org.fcitx.Fcitx` is `:1.33`. PID of DBus name `org.fcitx.Fcitx` owner is `1560`. # Fcitx Configure UI: 1. Config Tool Wrapper: Found fcitx-configtool at `/usr/bin/fcitx-configtool`. 2. Config GUI for gtk2: Found `fcitx-config-gtk` at `/usr/bin/fcitx-config-gtk`. 3. Config GUI for gtk3: Found `fcitx-config-gtk3` at `/usr/bin/fcitx-config-gtk3`. 4. Config GUI for kde: # Frontends setup: ## Xim: 1. `${XMODIFIERS}`: Environment variable XMODIFIERS is set to "@im=fcitx" correctly. Xim Server Name from Environment variable is fcitx. 2. XIM_SERVERS on root window: Xim server name is the same with that set in the environment variable. ## Qt: 1. qt4 - `${QT4_IM_MODULE}`: Environment variable QT_IM_MODULE is set to "fcitx" correctly. 2. qt5 - `${QT_IM_MODULE}`: Environment variable QT_IM_MODULE is set to "fcitx" correctly. 3. Qt IM module files: Found fcitx im module for Qt4: `/usr/lib/x86_64-linux-gnu/qt4/plugins/inputmethods/qtim-fcitx.so`. Found fcitx im module for Qt5: `/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatformi nputcontextplugin.so`. ## Gtk: 1. gtk - `${GTK_IM_MODULE}`: Environment variable GTK_IM_MODULE is set to "fcitx" correctly. 2. `gtk-query-immodules`: 1. gtk 2: **Cannot find `gtk-query-immodules` for gtk 2** **Cannot find fcitx im module for gtk 2.** 2. gtk 3: **Cannot find `gtk-query-immodules` for gtk 3** **Cannot find fcitx im module for gtk 3.** 3. Gtk IM module cache: 1. gtk 2: Found immodules cache for gtk `2.24.32` at `/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache`. Version Line: # Created by /usr/lib/x86_64-linux-gnu/libgtk2.0-0/gtk-query-immodules-2.0 from gtk+-2.24.32 Found fcitx im modules for gtk `2.24.32`. "/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-fcitx.so" "fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*" 2. gtk 3: Found immodules cache for gtk `3.22.30` at `/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache`. Version Line: # Created by /usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0 from gtk+-3.22.30 Found fcitx im modules for gtk `3.22.30`. "/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-fcitx.so" "fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*" 4. Gtk IM module files: 1. gtk 2: All found Gtk 2 immodule files exist. 2. gtk 3: All found Gtk 3 immodule files exist. # Configuration: ## Fcitx Addons: 1. Addon Config Dir: Found fcitx addon config directory: `/usr/share/fcitx/addon`. 2. Addon List: 1. Found 25 enabled addons: fcitx-autoeng fcitx-chttrans fcitx-classic-ui fcitx-clipboard fcitx-dbus fcitx-freedesktop-notify fcitx-fullwidth-char fcitx-imselector fcitx-ipc fcitx-ipcportal fcitx-keyboard fcitx-kimpanel-ui fcitx-lua fcitx-notificationitem fcitx-punc fcitx-quickphrase fcitx-remote fcitx-rime fcitx-spell fcitx-unicode fcitx-vk fcitx-x11 fcitx-xim fcitx-xkb fcitx-xkbdbus 2. Found 0 disabled addons: 3. Addon Libraries: All libraries for all addons are found. 4. User Interface: Found 2 enabled user interface addons: fcitx-classic-ui fcitx-kimpanel-ui ## Input Methods: 1. Found 2 enabled input methods: fcitx-keyboard-us rime 2. Default input methods: You have a keyboard input method "fcitx-keyboard-us" correctly added as your default input method. # Log: 1. `date`: Fri Feb 7 10:27:51 CST 2020 2. `~/.config/fcitx/log/`: total 0 3. `~/.config/fcitx/log/crash.log`: `~/.config/fcitx/log/crash.log` not found. -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.230.88.185 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1581043491.A.5B7.html
dododavid006: 你到設定 -> 附加元件 -> 鍵盤配置的設定,裡面有個02/08 09:08
dododavid006: 用 enter 鍵確認輸入字串 打勾看看02/08 09:09
請問是 Use enter to commit the existing string 這個選項嗎? 如果是的話那上述情況仍然一樣 ※ 編輯: p992003 (36.230.51.40 臺灣), 02/08/2020 20:03:04
joehuan: 這是預設行為吧, 我是用rime+囧月拼音 02/09 01:53
joehuan: 我都用enter來直接輸入英文 02/09 01:53
joehuan: 改這個檔案~/.config/fcitx/rime/build/default.yaml 02/09 01:55
joehuan: 或bopomofo.schema.yaml試試 02/09 01:56
joehuan: 我猜是key_binder, bindings, 加一個 02/09 01:57
joehuan: {when: composing, accept: Enter, send: 1}之類的 02/09 01:58
自己更新一下後續 如 joehuan 大大所言加入類似的key_binder就解決了 我是加入了: - {accept: Return, send: Q, when: composing} 之後英文鍵旁的Enter就能預設輸入第一個候選字了 ※ 編輯: p992003 (36.230.147.210 臺灣), 02/14/2020 20:00:03