Category Archives: fcitx development

去除 Fcitx 5 码表的 PUA 字符

首先来讲一些历史,在更加久远的 Fcitx 3 的时代,Fcitx 的码表文件是使用 gb18030 存储的。在 Fcitx 3 -> Fcitx 4 的过程中,所有的文件都被替换为了 UTF-8,但是受限于当时的 glibc,出现了很多转换的结果是 PUA 区的情况(Private Use Area)。从根本上来说,导致这个的原因是 Unicode 标准仍未收入这些文字,因此采用 PUA 存储这些文字的权宜之计。 Unicode 有一些历史文档记载这些,但是并不是所有我们遇见的字符都记载其中 https://www.unicode.org/L2/L2004/04161-hkscs-gb-pua.pdf 但是时过境迁,现在已经过去十几年了,因此这些 PUA 的字符也都获得了对应的码位。也就是说,是时候把他们重新拉出来更新了。 对于 fcitx5-chinese-addons 当中的码表(实际上是 libime 这个包),这倒不是一件难事。只需要把 fcitx3 的文件找回来,然后在新的 glibc 的系统上重新转换一次即可。为了验证当年的流程,我还特地安装了一个 debian 5 … Continue reading

Posted in fcitx development | Tagged , , , | 4 Comments

Accent color support in Fcitx 5

Recently a new feature was added to XDG desktop portal, which allows portal to return an accent color. Since the default theme of fcitx5 is almost monochrome, it is a good addition the default theme together with the dark/light theme … Continue reading

Posted in fcitx development | Tagged , , | Leave a comment

Key repetition and key event handling issue with Wayland input method protocols

I do have lots of complaints about wayland current input method protocols. Some of them are just lacking features, but this issue is the one that I think have design flaw from the beginning. Let’s first review how the keyboard … Continue reading

Posted in fcitx development, Linux | Tagged , , , | 2 Comments

演示一下和 openKylin 合作开发的虚拟键盘

将在下一个版本的 Fcitx 加入支持。 界面的代码位于:https://gitee.com/openkylin/kylin-virtual-keyboard 欢迎大家进行测试,虽然功能的支持还非常初级,但是已经可以进行一些简单的测试(X11 下,想要在 Wayland 下使用还有一些工作需要进行)。 (视频闪烁主要是录制问题)

Posted in fcitx development | Tagged , | 2 Comments

Switch fcitx theme based on system color

With the next version fcitx will be able to switch to an alternative dark theme when system dark/light theme changes. The feature relies on xdg desktop portal implementation that supports this value. Hopefully accent-color in xdg portal can be merged … Continue reading

Posted in fcitx development | Tagged , , | Leave a comment