Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: 添加输入Rime userdb.txt用户词典, 已测试gboard, google 拼音, 搜狗txt输出正常 #242

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

cgcel
Copy link
Contributor

@cgcel cgcel commented Apr 5, 2023

功能添加

解决rime的用户词典无法转其他词库的功能缺失问题

处理逻辑

以 xxx.userdb.txt 输入, dictionary.txt 输出为例:

输入: xxx.userdb.txt

# Rime user dictionary
#@/db_name	luna_pinyin.userdb
#@/db_type	userdb
#@/rime_version	1.5.3
#@/tick	51207
#@/user_id	rime-xxx
a 	啊	c=194 d=2.84851 t=51207
a 	阿	c=0 d=0.0527292 t=51207
a gen ting 	阿根廷	c=2 d=0.00211643 t=51207

输出: dictionary.txt

# Gboard Dictionary version:1
a	啊	zh-CN
a	阿	zh-CN
agenting	阿根廷	zh-CN

@nopdan nopdan merged commit 0dbe53e into studyzy:master Jan 26, 2024
nopdan added a commit that referenced this pull request Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants