[Exchange and share] 制作 fcitx5 的自定义词库
Tofloor
poster avatar
一醉陶然
deepin
2023-03-02 16:06
Author

制作 fcitx5 的自定义词库。

deepin v23 alpha2 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/.local/share/fcitx5/pinyin/dictionaries/

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

image.png

然后使用下面两行命令就可以:

libime_pinyindict dict.txt sougou.dict
cp *.dict $home/.local/share/fcitx5/pinyin/dictionaries/

其中 dict.txt 可以改成其他文件名, 生成的 dict文件放在 $HOME/.local/share/fcitx5/pinyin/dictionaries/

Reply Favorite View the author
All Replies
1 / 2
To page
青稚°
Moderator
2023-03-02 16:13
#1

不是版本老,应该是定制过,因为深度魔改比较严重,几乎joy

Reply View the author
longlong
deepin
Developer
2023-03-02 16:53
#2
青稚°

不是版本老,应该是定制过,因为深度魔改比较严重,几乎joy

没有定制,是版本太老。新的版本很快就会推送

Reply View the author
青稚°
Moderator
2023-03-02 17:20
#3
longlong

没有定制,是版本太老。新的版本很快就会推送

嗯嗯,23现在版本还有来自debian上游的包,一半deepin自己打包,一半debian,日后肯定脱离越来越多。like

Reply View the author
liwl
deepin
2023-03-02 18:33
#4

有点意思,回头试试

我主要是使用快捷短语

Reply View the author
晚秋(lateautumn)
Moderator
2023-03-02 19:08
#5

V23 现在支持自定义吗?

Reply View the author
灵兮之
deepin
2023-03-02 20:55
#6

你好,有空能帮我转下这个txt文件吗,转成dict格式的

我试试看会不会是我这系统问题导致转出来的文件有问题

1.txt

Reply View the author
灵兮之
deepin
2023-03-02 21:18
#7
liwl

有点意思,回头试试

我主要是使用快捷短语

我是想将讯飞输入法的词库转到fcitx5上面使用

讯飞使用了好几年,词库16000多,都是常用的,打字快很多

比如打一个名字,“木一明”没在词库里面,就算打了muyiming第一个都不会有这个词

如果是词库里面有的,直接打mym三个首字母第一个就是这个词了,速度快了很多很多

Reply View the author
一醉陶然
deepin
2023-03-02 21:44
#8
It has been deleted!
一醉陶然
deepin
2023-03-02 21:45
#9
晚秋(lateautumn)

V23 现在支持自定义吗?

v23 不支持,尝试安装 libime_pinyindict (这个工具是关键)

水平差,没有成功

fcitx5 挺好用的,希望官方重视 libime_pinyindict 这个工具(软件包)。

Reply View the author
晚秋(lateautumn)
Moderator
2023-03-02 22:42
#10
一醉陶然

v23 不支持,尝试安装 libime_pinyindict (这个工具是关键)

水平差,没有成功

fcitx5 挺好用的,希望官方重视 libime_pinyindict 这个工具(软件包)。

agree 搜狗输入法用不了,逼着自己试用系统的五笔拼音,确实还不错。只要能把搜狗词库倒进去,感觉比搜狗输入法好用。搜狗输入法就是有些特殊的符号输入比较方便。

Reply View the author
vivian_me
deepin testing team
2023-03-02 22:44
#11

棒啊like

Reply View the author
对方正在输入...
deepin
2023-03-02 23:24
#12

shift无法切换中英文的问题怎么解决呢

Reply View the author
对方正在输入...
deepin
2023-03-03 00:36
#13
一醉陶然

v23 不支持,尝试安装 libime_pinyindict (这个工具是关键)

水平差,没有成功

fcitx5 挺好用的,希望官方重视 libime_pinyindict 这个工具(软件包)。

apt install libime-bin

安装这个包后就有你这个转换工具了

Reply View the author
W2J
deepin
2023-03-03 00:37
#14

fcitx词库这么自定义啊,学到了

Reply View the author
W2J
deepin
2023-03-03 01:06
#15

有点疑问啊,

按照楼主步骤生成的sougou.dict,大小有192M+,好大的体积!我是哪里没做对吗?

ls -l sougou.dict
-rw-rw-r-- 1 ltu ltu 192801983 3月 2 16:58 sougou.dict

Reply View the author
一醉陶然
deepin
2023-03-03 01:32
#16
W2J

有点疑问啊,

按照楼主步骤生成的sougou.dict,大小有192M+,好大的体积!我是哪里没做对吗?

ls -l sougou.dict
-rw-rw-r-- 1 ltu ltu 192801983 3月 2 16:58 sougou.dict

那个是好多词库的合并。

Reply View the author
一醉陶然
deepin
2023-03-03 01:39
#17
对方正在输入...

apt install libime-bin

安装这个包后就有你这个转换工具了

太好了,这个管用的。我试过了。。。

谢谢!

Reply View the author
一醉陶然
deepin
2023-03-03 01:45
#18
W2J

有点疑问啊,

按照楼主步骤生成的sougou.dict,大小有192M+,好大的体积!我是哪里没做对吗?

ls -l sougou.dict
-rw-rw-r-- 1 ltu ltu 192801983 3月 2 16:58 sougou.dict

https://bbs.deepin.org/zh/post/251150

看一下这贴,我分享了一个 综合词库,30多兆

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

https://bbs.deepin.org/zh/post/251150

看一下这贴,我分享了一个 综合词库,30多兆

你有测试下吗,我感觉放入这些词库,打字时好像没有调用到这些词典

词典里面有的词,不管是输入首字母还是拼音全部输都没有出来词

Reply View the author
灵兮之
deepin
2023-03-03 03:04
#20
对方正在输入...

shift无法切换中英文的问题怎么解决呢

设置这个键就可以shift切换中英文输入
image.png

Reply View the author
1 / 2
To page