「FCITX」- 5 | 新版本 Fcix 输入法 | Linux

认识

官网:
文档:https://fcitx-im.org/wiki/Fcitx_5
仓库:https://github.com/fcitx/fcitx5

Fcitx 5 is a generic input method framework released under LGPL-2.1+. | Next generation of fcitx | Fcitx5 是 Fcitx 的下一代版本(在升级 Ubuntu 22.04 版本时,04/25/2023,我们开始使用 Fcitx 5 输入法),其为针对 Linux Desktop 的中文输入。

组成

Fcitx 5,使用了 DBus 协议来实现输入法和应用程序之间的通信。

Basic concept

Wayland

https://fcitx-im.org/wiki/Using_Fcitx_5_on_Wayland

性质

Fcitx5,其支持的语言和功能与 Fcitx 相同;
Fcitx5,在性能和稳定性方面有所提升。

提供主题 Theme 机制来定制外观

Fcitx5,还支持多种主题,其允许我们自由定制输入法的外观。

https://fcitx-im.org/wiki/Fcitx_5_Theme
https://wiki.archlinux.org/title/Fcitx5#Themes

https://github.com/search?q=fcitx5+theme&type=Repositories

Configure / Addons / Classic User Interface / <Gear Icon> / Theme: Dark Theme:

If you are using KCM on KDE Plasma, then switch themes with: Setting > Regional Settings > Input Method > Configure addons > Classic User Interface > Theme.

Theming does not work if you are using gnome-shell-extension-kimpanel-gitAUR in GNOME.

提供插件 Addon 机制来增强功能

Fcitx5,还支持多种插件,可以自由定制输入法的功能。

https://fcitx-im.org/wiki/Category:Addon

构建

安装 ⇒ 配置 ⇒ 使用

第一步、安装输入法

# Ubuntu 22.04 LTS,该命令将安装所有与 Fcitx 5 相关的软件包
apt-get install fcitx5-*

第二步、配置输入法

输入法配置:

# for Ubuntu 22.04 LTS
im-config

输入法自启动(Fcitx/Setup Fcitx 5/Autostart):

mkdir -p ~/.config/autostart && cp /usr/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart

第三步、使用输入法

系统托盘图标 ⇒ Configure ⇒ Input Method ⇒ Avaialable Input Method ⇒ 选择 Pinyin 书法

应用

在中文输入法下,输入英文标点符号

针对该功能,需要 Punctuation Addons 实现。

Q:Fcitx 5,在 Pinyin 下,当输入逗号时,如果逗号前的文本为英文,则该逗号英文逗号。如何关闭?
A:Configure / Addons / Punctuation / <Gear Icon> / 取消 Half width punctuation … 选项;

在中文输入法下,当删除中文标点时,其自动变为英文标点。

Q:在拼音状态下,输入英文标点,删除时自动变为中文标点?
A:Configure / Addons / Punctuation / <Gear Icon> / Half width punctuation …,取消勾选。

快捷输入 | 输入当前日期

WIP

场景 | 输入特殊符号(字符)

除了常规输入外,我们还需要输入某些特殊字符,诸如 ②, ③, ④ 等等;

该笔记将记录:在 FCITX 中,输入特殊字符的方法,以及相关问题的解决办法;

改进

[DONE] … input method popup when typing in GNOME Shell’s activities search box …

… It is recommended to install Input Method Panel GNOME Shell Extensions to provide the input method popup. https://extensions.gnome.org/extension/261/kimpanel/ otherwise you may not be able to see input method popup when typing in GNOME Shell’s activities search box. For more details see https://fcitx-im.org/wiki/using_Fcitx_5_on_Wayland#GNOME …

针对该问题,安装 Input Method Panel 插件,来解决。

Input Method Panel | by csslayer | Input Method Panel using KDE’s kimpanel protocol for Gnome-Shell

10/18/2025 已知问题:我们但是切换输入法时,由于其图标宽度变化,所以导致 Topbar 图标左右移动。并且,我们使用 activities 功能时不涉及中文搜索,所以不需要使用输入法,所以我们禁用该插件。