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

词库 luna_pinyin.net 文件格式有问题 #60

Open
kaedea opened this issue Jul 30, 2021 · 1 comment
Open

词库 luna_pinyin.net 文件格式有问题 #60

kaedea opened this issue Jul 30, 2021 · 1 comment

Comments

@kaedea
Copy link

kaedea commented Jul 30, 2021

luna_pinyin.net.dict.yaml 词库默认未启用,dict 格式貌似有问题?

@wongdean
Copy link
Owner

这个词库,如果使用了wiki的大词库,可以不要了。而且,dict如果格式有问题,一般是两种问题:
1)换行符问题
Unix 系统中:每行结尾只有 "<换行>",即 "\n";
Windows 系统中:每行结尾是 "<回车><换行>",即 "\r\n";
Mac 系统中:每行结尾是 "<回车>",即 "\r"

dict只认"\n",你找个文本编辑器,vscode/sublime都可以,把格式改为unix的即可

2)拼音和字之间分隔符,应该使用制表符"\t",而不能是空格

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

No branches or pull requests

2 participants