[Others] 修改 Fcitx 4.x “五笔拼音”的输入法图标(附DEB包)
Tofloor
poster avatar
字甲达宾
deepin
2021-05-05 05:40
Author

修改 Fcitx 4.x “五笔拼音”的输入法图标(附DEB包)

2021-5-03

fcitx 输入法的“五笔”相关的码表,常用的有3种:

码表目录位置:

/usr/share/fcitx/table/

* 1. wbx.mb 纯五笔。包名:fcitx-table-wubi

* 2. wbpy.mb 五笔拼音混输。包名:fcitx-table-wbpy

* 3. wubi-large.mb 纯五笔(大字符集)。包名:fcitx-table-wubi-large

 

然而,当前 fcitx 官方包中,以上三种五笔模式,显示的图标都是 同一个图标,即:

/usr/share/fcitx/imicon/wubi.png (包名:fcitx-data)

 

如果用户经常需要在“纯五笔”和“五笔拼音”模式切换,而输入法面板图标中,始终是同一个五笔图标,不能有效标示当前使用的是哪种输入法。

 

为了自己使用方便,索性制作了两个不同的图标,顺便打了个 deb 包。方便用得着的朋友们。

------------
fcitx-imicon-wubi-extra_4.2.9.6-1_all.deb
文件大小: 12 K
https://z701.com/d/30646948-42156121-83686f
(访问密码:6859)
-------------

注:添加的图标:

/usr/share/fcitx/imicon/wbpy.png (用于“五笔拼音混输”模式)

/usr/share/fcitx/imicon/wubi-large.png (用于“五笔(大字符集)”模式)

 

技术说明:

1. 添加图标后,还需要以 root 用户身份,修改对应的 conf 配置文件:

/usr/share/fcitx/table/wbpy.conf (“五笔拼音混输”模式)

/usr/share/fcitx/table/wubi-large.conf (“五笔(大字符集)”模式)

把 第13行

IconName=wubi

 修改成对应的图标名(不需要输入图标的 png 扩展名)。如:

IconName=wbpy

或者

IconName=wubi-large

 

2. DEB 包中,已通过添加安装脚本 DEBIAN/postinst 和 DEBIAN/postrm ,

实现自动替换/还原 wbpy.conf 和 wubi-large.conf 中相关的图标参数设定。

 

附、新增的两种图标(注:图标文字使用“思源黑体”制作)

 

Reply Favorite View the author
All Replies
lanyun7112
deepin
2021-05-06 05:03
#1

楼主辛苦,解决方法说的也很有条理,新手一目了然,不过原生码表或多或少都有点小问题,不是那么的好用,推荐 rime 的,特别是有大佬改良的,超好用

Reply View the author
字甲达宾
deepin
2021-05-11 04:40
#2
lanyun7112

楼主辛苦,解决方法说的也很有条理,新手一目了然,不过原生码表或多或少都有点小问题,不是那么的好用,推荐 rime 的,特别是有大佬改良的,超好用

rime 似乎还没有收入 debian 10的源。不能用 apt-get install 直接安装。

相对而言, Fcitx 的覆盖面可能更广一些。

Reply View the author
小明Hackintosh
deepin
2021-05-27 22:21
#3

五笔拼音怎么搞?

Reply View the author
chenshijie
deepin
2021-09-15 21:14
#4

https://github.com/fcitx/fcitx5-table-extra/issues

https://github.com/linuxdeepin/deepin-icon-theme/issues

建议楼主可以尝试在这些开源项目里面讨论,提交issues

Reply View the author
字甲达宾
deepin
2021-09-16 05:44
#5
chenshijie

https://github.com/fcitx/fcitx5-table-extra/issues

https://github.com/linuxdeepin/deepin-icon-theme/issues

建议楼主可以尝试在这些开源项目里面讨论,提交issues

谢谢建议.

只是个人的 github, 多年以前, 就已经不再登陆使用了.

欢迎有心人代为提交.

Reply View the author