[Others] fcitx5输入法添加自定义词库直接崩溃闪退 Resolved
Tofloor
poster avatar
灵兮之
deepin
2023-03-02 07:46
Author

按着wiki上面自定义词库的方法生成了一个dict文件,把这个文件放到词库的路径下面

打开输入法,打字就立马崩溃闪退,不知道有没有人测试过可以正常添加自定义的词库

这里录制了一个视频,麻烦帮忙看下*https://www.bilibili.com/video/BV1BA411y7PZ/*

https://www.bilibili.com/video/BV1BA411y7PZ/

截图_选择区域_20230301223020.jpg

输入法崩溃后重启后设置界面变得很怪异,都是图标没有文字

image.png

Reply Favorite View the author
All Replies
avatar
灵兮之
deepin
2023-03-02 08:10
#1

正常的是这种界面,有没有这个输入法的交流群?发了好多地方都没人理
image.png

Reply View the author
avatar
lianghb
deepin
2023-03-02 15:36
#2

没添加过自定义词库,也没遇到过相关问题。

没人理你的原因是,你的信息只是表象,没有任何报错信息,log日志。别人无从排查。

你把相关日志打印出来看下啊。

Reply View the author
avatar
一醉陶然
deepin
2023-03-02 16:05
#3

制作 fcitx5 的自定义词库。

我是在 Ubuntu 22.04 下,使用

git clone https://github.com/CHN-beta/sougou-dict
cd sougou-dict
cat dict/*.txt > dict.txt
libime_pinyindict dict.txt sougou.dict
cp *.dict /home/tlntin/.local/share/fcitx5/pinyin/dictionaries/


也可以自己制作 dict.txt, 格式如下(中间是 tab)

荧光点 ying'guang'dian 0
工控板 gong'kong'ban 0
分发器 fen'fa'qi 0
多波长 duo'bo'chang 0
单波长 dan'bo'chang 0
大面阵 da'mian'zhen 0

Reply View the author
avatar
longlong
deepin
2023-03-02 16:54
#4
Reply View the author
avatar
灵兮之
deepin
2023-03-02 17:59
#5

系统版本
image.png

fcitx5是5.0.21-1的

image.png

Reply View the author
avatar
redmibook
deepin
2023-03-02 18:02
#6

fcitx5 还没完全移植过来,deepin 23 上的 fcitx5 还不是完全体。

Reply View the author
avatar
灵兮之
deepin
2023-03-02 18:03
#7
一醉陶然

制作 fcitx5 的自定义词库。

我是在 Ubuntu 22.04 下,使用

git clone https://github.com/CHN-beta/sougou-dict
cd sougou-dict
cat dict/*.txt > dict.txt
libime_pinyindict dict.txt sougou.dict
cp *.dict /home/tlntin/.local/share/fcitx5/pinyin/dictionaries/


也可以自己制作 dict.txt, 格式如下(中间是 tab)

荧光点 ying'guang'dian 0
工控板 gong'kong'ban 0
分发器 fen'fa'qi 0
多波长 duo'bo'chang 0
单波长 dan'bo'chang 0
大面阵 da'mian'zhen 0

我txt文件是下面这样的,汉字(空格)拼音(空格)频率

汉字、拼音、频率这中间不是空格,是tab吗?另外拼音词之间是英文状态的'吗,不是空格吗
image.png

Reply View the author
avatar
redmibook
deepin
2023-03-02 18:04
#8

期待deepin 23 的加快 fcitx5 移植进度

Reply View the author
avatar
灵兮之
deepin
2023-03-02 18:05
#9
redmibook

fcitx5 还没完全移植过来,deepin 23 上的 fcitx5 还不是完全体。

我用的不是v23,是v20.8,刚从20.3升级上来

照理说20.8不应该不兼容啊

Reply View the author
avatar
灵兮之
deepin
2023-03-02 18:21
#10
lianghb

没添加过自定义词库,也没遇到过相关问题。

没人理你的原因是,你的信息只是表象,没有任何报错信息,log日志。别人无从排查。

你把相关日志打印出来看下啊。

日志里面没有输入法的相关信息,你看下是需要哪些日志,我上传上来

后面我录制个视频,也帮忙看下操作过程是否有问题,谢谢

image.png

Reply View the author
avatar
灵兮之
deepin
2023-03-02 18:29
#11
longlong

我的输入法已经更新到5.0.21-1了

Reply View the author
avatar
晚秋(lateautumn)
Moderator
2023-03-02 19:11
#12

我想理,但是不懂呀,我这些天也一直在折腾自定义词库的难题。joy 坛主尽快研究明白分享kissing_heart

Reply View the author
avatar
灵兮之
deepin
2023-03-02 21:00
#13
晚秋(lateautumn)

我想理,但是不懂呀,我这些天也一直在折腾自定义词库的难题。joy 坛主尽快研究明白分享kissing_heart

你是下载别人的词库导进去有问题还是自己写的词库有问题?

搜狗的词库下载了有些能正常用,我是自己整的词库转为dict文件放进去出问题的

Reply View the author
avatar
灵兮之
deepin
2023-03-03 18:09
#14

搞了两天终于弄好了,是文档编码格式跟部分词的拼音有问题导致的

把搜狗以前的6万多词库跟讯飞1.6万的词库导入进去,打字真的快了很多
image.png

Reply View the author