[Others] 在deepin上使用fcitx5输入法
Tofloor
poster avatar
神末shenmo
Moderator
Spark-App
2022-09-28 04:34
Author

我照着这篇帖子 https://bbs.deepin.org/post/224852 配置了下,略微修改了些细节,替换了一些国内访问需要加速的链接,加上了后续的一些踩坑的经验,把图片换成文字


1. 安装Fcitx5输入法

  1. 卸载fcitx4:sudo apt purge fcitx*

  2. 安装fcitx5:sudo apt install fcitx5

  3. 启动器中设置Fcitx 5开机自启动,并注销重新登陆系统

  4. 安装中文输入法:sudo apt install fcitx5-chinese-addons

  5. 启动器中打开Fcitx 5配置

  6. 在配置窗口的 输入法tab下将拼音从右边添加到左边
    截图_fcitx5-config-qt_20210818105532

  7. 手动添加fcitx5中文输入法默认词库:从 https://kgithub.com/felixonmars/fcitx5-pinyin-zhwiki 下载.dict后缀的符合版权的词库文件,放到 ~/.local/share/fcitx5/pinyin/dictionaries/目录下,没有则创建目录

    如果你加入了better dde源,你可以直接 sudo apt install fcitx5-pinyin-zhwiki 来安装词库

  8. 在fcitx5配置窗口的附加组件tab下,点击拼音选项后面的齿轮按钮进入配置窗口,点击词典后面的齿轮按钮,打开另一个配置窗口,选择导入并选择在线浏览搜狗细胞词典,在打开的页面中选择对应的词典并点击立即下载,下载完成后会自动添加到拼音词典管理器中。
    截图_选择区域_20210819092158

  9. 启用表情符号:sudo apt install fonts-noto-color-emoji,安装后在fcitx5配置页面的 附加组件tab下选择 拼音后面的齿轮进入配置页面,勾选 启用颜文字

  10. 启用云拼音:sudo apt install fcitx5-module-cloudpinyin,安装后在fcitx5配置页面的 附加组件tab下选择 云拼音,点击齿轮进入云拼音配置页面,后端选择Baidu。

  11. 启用单行模式:打开fcitx5配置页面,选择 附加组件tab,选择 拼音并勾选 在程序中显示预编辑文本 (在一些应用中会有问题,不建议启用)

2. 配置优化Fcitx5(修改完成后重启输入法生效)

  1. 修改输入法:打开fcitx5配置页面,选择 附加组件tab,选择 经典用户界面后面的齿轮进入经典用户界面窗口,可以修改输入法主题,字体,字号,菜单字体等。或者在~/.confit/fcitx5/conf/classicui.conf中修改这些选项。
  2. 推荐使用的皮肤:Fcitx5-Material-Color

sudo aptss install fcitx5-material-color 即可在经典用户界面窗口中设置此皮肤

因为deepin源中无此包,使用星火商店的cli安装指令

使用此指令的前提是安装星火应用商店
你也可以使用spk链接来安装 spk://store/themes/fcitx5-material-color

  1. 使用第三方皮肤,所有的皮肤都必须将文件夹放到目录~/.local/share/fcitx5/themes/下
  • 使用搜狗输入法皮肤:下载搜狗输入法皮肤搜狗输入法皮肤转换器 ,比如使用皮肤转换器通过这条命令 ./ssfconv -t fcitx5 ~/Downloads/哪吒之魔童降世.ssf ~/Downloads/哪吒之魔童降世 将搜狗输入法皮肤转为fcitx5皮肤,将转换后的皮肤文件夹复制到 ~/.local/share/fcitx5/themes/下面
  • 其他开源皮肤:将下载的主题包文件夹放到 ~/.local/share/fcitx5/themes/下面
  1. 修改候选词个数:Fcitx配置->拼音->页大小
  2. 修改按键输出字符:sudo dedit /usr/share/fcitx5/punctuation/punc.mb.zh_CN,每一行第一个字符代表按键,第二个开始的所有字符代表该按键的Fcitx5中文输入法下的输出字符

dedit支持在安装此应用后可使用 spk://store/office/tech.shenmo.dedit

亦可使用 sudo aptss install tech.shenmo.dedit 安装

3. fcitx5中文输入法方括号和无法输入 ·问题的解决

/usr/share/fcitx5/punctuation/punc.mb.zh_CN的18、19行改为:

[ 【
] 】

并在尾部添加

` ·

博客原文

Reply Favorite View the author
All Replies
jjcui8595
Moderator
2022-09-28 04:38
#1

like

Reply View the author
liwl
deepin
2022-09-28 05:18
#2

这个fcitx5主题皮肤为啥我没有apt install到?

Reply View the author
liwl
deepin
2022-09-28 05:49
#3

深度源的fcitx5版本不是最新,在dp有bug

使用better-dde源更新fcitx5最佳

Reply View the author
寂静的羽夏
deepin
2022-09-28 05:58
#4

总结的挺不错like

Reply View the author
神末shenmo
Moderator
Spark-App
2022-09-28 06:05
#5
liwl

深度源的fcitx5版本不是最新,在dp有bug

使用better-dde源更新fcitx5最佳

我用的就是这个

唯一的问题就是大写字母不直接上屏,别的都很完美了

Reply View the author
神末shenmo
Moderator
Spark-App
2022-09-28 06:06
#6
liwl

这个fcitx5主题皮肤为啥我没有apt install到?

哇,原来在better dde源里

Reply View the author
deepin-superuser
deepin
2022-09-28 16:37
#7

1.7 使用 better-dde 源可以直接 sudo apt install fcitx5-pinyin-zhwiki 安装 fcitx5-pinyin-zhwiki

2.5 修复快捷键无法打开截图和录屏:sudo apt install qdbus-qt5 (这个问题早已修复 现在已经不需要 qdbus-qt5 了

Reply View the author
神末shenmo
Moderator
Spark-App
2022-09-28 16:47
#8
deepin-superuser

1.7 使用 better-dde 源可以直接 sudo apt install fcitx5-pinyin-zhwiki 安装 fcitx5-pinyin-zhwiki

2.5 修复快捷键无法打开截图和录屏:sudo apt install qdbus-qt5 (这个问题早已修复 现在已经不需要 qdbus-qt5 了

收到

Reply View the author
xuqi
deepin testing team
2022-09-28 16:50
#9

like

Reply View the author
miaoaaa
deepin
2022-09-28 17:32
#10

fcitx5对比fcitx4有什么优势吗?

Reply View the author
神末shenmo
Moderator
Spark-App
2022-09-28 18:02
#11
miaoaaa

fcitx5对比fcitx4有什么优势吗?

实际上搜狗等第三方输入法的优化下,fcitx4的体验已经可以逼近fcitx5了

Reply View the author
redmibook
deepin
2022-09-29 06:34
#12
神末shenmo

实际上搜狗等第三方输入法的优化下,fcitx4的体验已经可以逼近fcitx5了

胡说八道

Reply View the author
神末shenmo
Moderator
Spark-App
2022-09-29 20:23
#13
redmibook

胡说八道

愿闻高论

Reply View the author
WangZhongyun
deepin
2022-10-01 03:00
#14

安装在deepin23预览版里,默认安装的浏览器还能启动吗?

Reply View the author
神末shenmo
Moderator
Spark-App
2022-10-01 04:00
#15
WangZhongyun

安装在deepin23预览版里,默认安装的浏览器还能启动吗?

没试过

我还在20

Reply View the author
pzm9012
Moderator
2022-10-01 06:37
#16

感谢分享

Reply View the author
ThinKinG
deepin testing team
2022-10-08 22:18
#17

like

Reply View the author
一醉陶然
deepin
2023-01-23 22:55
#18

第八条,导入自定义的搜狗词库失败,哪位能帮忙把 自定义搜狗词库转成 dict格式?

链接: https://pan.baidu.com/s/1CLF_hk7UjiB7pfeTy5vgCA?pwd=wk48 提取码: wk48

Reply View the author