您尚未登录。

#1 2023-08-28 22:54:07

Xiaoto1
会员
注册时间: 2023-08-28
帖子: 5

Unable to input Chinese using fcitx5

Im really an idiot, can someone tell me how to fix it, thanks..!!

fcitx5-diagnose                                                                             
# 系统信息:

2.  `lsb_release -a`:

        LSB Version:    n/a
        Distributor ID: ManjaroLinux
        Description:    Manjaro Linux
        Release:        23.0.0
        Codename:       Uranos

3.  `lsb_release -d`:

        Description:    Manjaro Linux

4.  `/etc/lsb-release`:

        DISTRIB_ID="ManjaroLinux"
        DISTRIB_RELEASE="23.0.0"
        DISTRIB_CODENAME="Uranos"
        DISTRIB_DESCRIPTION="Manjaro Linux"

5.  `/etc/os-release`:

        NAME="Manjaro Linux"
        PRETTY_NAME="Manjaro Linux"
        ID=manjaro
        ID_LIKE=arch
        BUILD_ID=rolling
        ANSI_COLOR="32;1;24;144;200"
        HOME_URL="https://manjaro.org/"
        DOCUMENTATION_URL="https://wiki.manjaro.org/"
        SUPPORT_URL="https://forum.manjaro.org/"
        BUG_REPORT_URL="https://docs.manjaro.org/reporting-bugs/"
        PRIVACY_POLICY_URL="https://manjaro.org/privacy-policy/"
        LOGO=manjarolinux

6.  桌面环境:
    桌面环境为 `kde`。
7.  XDG 会话类型:
        XDG_SESSION_TYPE='wayland'

8.  Bash 版本:
        BASH_VERSION='5.1.16(1)-release'

# 环境:1.  DISPLAY:

        DISPLAY=':1'


        WAYLAND_DISPLAY='wayland-0'

2.  键盘布局:
    1.  `setxkbmap`:

            WARNING: Running setxkbmap against an Xwayland server
            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.  全部可用 locale:
            C
            C.UTF-8
            en_US.utf8
            POSIX
            zh_CN.utf8

    2.  当前 locale:
            LANG=zh_CN.UTF-8
            LC_CTYPE="zh_CN.UTF-8"
            LC_NUMERIC=zh_CN.UTF-8
            LC_TIME=zh_CN.UTF-8
            LC_COLLATE="zh_CN.UTF-8"
            LC_MONETARY=zh_CN.UTF-8
            LC_MESSAGES="zh_CN.UTF-8"
            LC_PAPER=zh_CN.UTF-8
            LC_NAME=zh_CN.UTF-8
            LC_ADDRESS=zh_CN.UTF-8
            LC_TELEPHONE=zh_CN.UTF-8
            LC_MEASUREMENT=zh_CN.UTF-8
            LC_IDENTIFICATION=zh_CN.UTF-8
            LC_ALL=

4.  目录:
    1.  主目录:
            /home/xiao

    2.  `${XDG_CONFIG_HOME}`:

        环境变量 `XDG_CONFIG_HOME` 没有设定。
        `XDG_CONFIG_HOME` 的当前值是 `~/.config` (`/home/xiao/.config`)。
    3.  Fcitx5 设置目录:
        当前 fcitx5 设置目录是 `~/.config/fcitx5` (`/home/xiao/.config/fcitx5`)。
5.  当前用户:
    脚本作为 xiao (1000) 运行。
# Fcitx 状态:
1.  可执行文件:
    在 `/usr/bin/fcitx5` 找到了 fcitx5。
2.  版本:
    Fcitx 版本: `5.0.23`

3.  进程:
    找到了 1 个 fcitx5 进程:
           7251 fcitx5

4.  `fcitx5-remote`:

    `fcitx5-remote` 工作正常。
5.  DBus 界面:
    使用 `dbus-send` 来检查 dbus。
    DBus 名称 `org.fcitx.Fcitx5` 的所有者是 `:1.284`。
    DBus 名称 `org.fcitx.Fcitx5` 的 PID 所有者是 `7251`。
    来自 dbus 的调试信息:
           Group [x11::1] has 3 InputContext(s)
          IC [e3be050bd94644b3ae81de21120aa86f] program:google-chrome frontend:dbus cap:6000000032 focus:0
          IC [4c3a0408c6df45d08ac048dc6cc69a8f] program:google-chrome frontend:dbus cap:6000000032 focus:0
          IC [ebaf0d6db3ba445ca39be28f4b4dfd7d] program:cfw frontend:dbus cap:6000000032 focus:0
        Group [wayland:] has 2 InputContext(s)
          IC [2c070fe0e4ec4ffe8fbc27e593d3a89c] program:konsole frontend:dbus cap:e001820872 focus:1
          IC [b276f5a711534e37bd411b2f956fa4d4] program:plasmashell frontend:dbus cap:1e001800072 focus:0
        Input Context without group

# Fcitx 配置界面:1.  配置工具封装:
    在 `/usr/bin/fcitx5-configtool` 找到了 fcitx5-configtool。
2.  Qt 的配置界面:
    在 `/usr/bin/fcitx5-config-qt` 找到了 `fcitx5-config-qt`。
3.  KDE 的配置界面:
    找到了 fcitx5 的 kcm 模块。
        kcm_fcitx5                     - 配置输入法
# 前端设置:## Xim:
1.  `${XMODIFIERS}`:

    环境变量 XMODIFIERS 已经正确地设为了“@im=fcitx”。    从环境变量中获取的 Xim 服务名称为 fcitx.

2.  根窗口上的 XIM_SERVERS:
    Xim 服务的名称与环境变量中设置的相同。
## Qt:
1.  qt4 - `${QT4_IM_MODULE}`:

    环境变量 QT_IM_MODULE 已经正确地设为了“fcitx”。
2.  qt5 - `${QT_IM_MODULE}`:

    环境变量 QT_IM_MODULE 已经正确地设为了“fcitx”。
3.  Qt 输入法模块文件:
    找到了 fcitx5 的 qt6 输入法模块:`/usr/lib/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`。    找到了 fcitx5 qt5 模块:`/usr/lib/fcitx5/qt5/libfcitx-quickphrase-editor5.so`。    找到了未知的 fcitx qt 模块:`/usr/lib/qt/plugins/kcms/kcm_fcitx5.so`。    找到了 fcitx5 的 qt 输入法模块:`/usr/lib/qt/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so`。
    下列错误也许并不准确,因为对 Qt 版本的猜测取决于发行版如何打包 Qt。如果您不使用任何对应版本的 Qt 程序,或者在 Wayland 下使用 Qt 的 text-input 支持,下列错误也也不是严重问题。    **无法找到 Qt4 的 fcitx5 输入法模块。**

## Gtk:
1.  gtk - `${GTK_IM_MODULE}`:

    环境变量 GTK_IM_MODULE 已经正确地设为了“fcitx”。
2.  `gtk-query-immodules`:

    1.  gtk 2:

        **无法找到 gtk 2 的 `gtk-query-immodules`。**

        **无法找到 gtk 2 的 fcitx5 输入法模块。**

    2.  gtk 3:

        在 `/usr/bin/gtk-query-immodules-3.0` 找到了 gtk `3.24.38` 的 `gtk-query-immodules`。        版本行:
            # Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.38

        已找到 gtk `3.24.38` 的 fcitx5 输入法模块。
            "/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx5.so"
            "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
            "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"

3.  Gtk 输入法模块缓存:
    1.  gtk 2:

        **无法找到 gtk 2 的输入法模块缓存**

        **无法在缓存中找到 gtk 2 的 fcitx5 输入法模块。**

    2.  gtk 3:

        在 `/usr/lib/gtk-3.0/3.0.0/immodules.cache` 找到了 gtk `3.24.38` 的输入法模块缓存。        版本行:
            # Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.38

        已找到 gtk `3.24.38` 的 fcitx5 输入法模块。
            "/usr/lib/gtk-3.0/3.0.0/immodules/im-fcitx5.so"
            "fcitx" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"
            "fcitx5" "Fcitx5 (Flexible Input Method Framework5)" "fcitx5" "/usr/locale" "ja:ko:zh:*"

    3.  gtk 4:

        **无法找到 gtk 4 的输入法模块缓存**

        **无法在缓存中找到 gtk 4 的 fcitx5 输入法模块。**

4.  Gtk 输入法模块文件:
    1.  gtk 2:

        找到的全部 Gtk 2 输入法模块文件均存在。
    2.  gtk 3:

        找到的全部 Gtk 3 输入法模块文件均存在。
    3.  gtk 4:

        找到的全部 Gtk 4 输入法模块文件均存在。
# 配置:
## Fcitx 插件:1.  插件配置文件目录:
    找到了 fcitx5 的插件配置目录:`/usr/share/fcitx5/addon`。
2.  插件列表:
    1.  找到了 19 个已启用的插件:
            Classic User Interface 5.0.23
            Clipboard 5.0.23
            DBus 5.0.23
            DBus Frontend 5.0.23
            Emoji 5.0.23
            Fcitx4 Frontend 5.0.23
            IBus Frontend 5.0.23
            Input method selector 5.0.23
            Keyboard 5.0.23
            KDE Input Method Panel 5.0.23
            Status Notifier 5.0.23
            Notification 5.0.23
            Quick Phrase 5.0.23
            Spell 5.0.23
            Unicode 5.0.23
            Wayland 5.0.23
            Wayland Input method frontend 5.0.23
            XCB 5.0.23
            X Input Method Frontend 5.0.23

    2.  找到了 0 个被禁用的插件:
3.  插件库:

    所有插件所需的库都被找到。
4.  用户界面:
    找到了 2 个已启用的用户界面插件:
        Classic User Interface
        KDE Input Method Panel

## 输入法:1.  `/home/xiao/.config/fcitx5/profile`:

        [Groups/0]
        # Group Name
        Name=default
        # Layout
        Default Layout=us
        # Default Input Method
        DefaultIM=keyboard-cn-altgr-pinyin

        [Groups/0/Items/0]
        # Name
        Name=keyboard-us
        # Layout
        Layout=

        [Groups/0/Items/1]
        # Name
        Name=keyboard-cn-altgr-pinyin
        # Layout
        Layout=

        [GroupOrder]
        0=default

离线

#2 2023-08-29 00:06:29

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,491
个人网站

Re: Unable to input Chinese using fcitx5

去输入法的设置里边,添加一个中文输入法(用于输入中文的输入法),不是「键盘」里的「汉语拼音」(这个是用来输入 hànyǔpīnyīn 的)。

离线

#3 2023-08-29 00:08:01

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,491
个人网站

Re: Unable to input Chinese using fcitx5

如果你找不到中文输入法的话,检查一下你有没有安装 fcitx5-chinese-addons。

离线

#4 2023-08-29 22:15:06

Xiaoto1
会员
注册时间: 2023-08-28
帖子: 5

Re: Unable to input Chinese using fcitx5

依云 说:

去输入法的设置里边,添加一个中文输入法(用于输入中文的输入法),不是「键盘」里的「汉语拼音」(这个是用来输入 hànyǔpīnyīn 的)。

谢谢,解决了!!

离线

页脚