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

Use sdcv to export the list of all the words in a dictionary for use by aspell. #75

Open
hongyi-zhao opened this issue Jul 25, 2021 · 2 comments
Labels

Comments

@hongyi-zhao
Copy link

On Ubuntu 20.04, I've installed the latest git master version of sdcv and have added some dictionaries:

werner@X10DAi:~$ sdcv --version
Console version of Stardict, version 0.5.3
werner@X10DAi:~$ sdcv -l
Dictionary's name   Word count
懒虫简明英汉词典    452185
Webster's Third New International Dictionary, Unabridged (En-En)    296190

Now I want to export all the words in a dictionary, say, "Webster's Third New International Dictionary, Unabridged (En-En)" for use by aspell.

Any hints for doing this with sdcv?

Regards,
HY

@Dushistov
Copy link
Owner

you can use something like:

sdcv -n -u "Webster's Third New International Dictionary, Unabridged (En-En)" '*'

to get all dictionary articles.

@hongyi-zhao
Copy link
Author

It can only get very small part of the words:

$ sdcv -n -u "Webster's Third New International Dictionary, Unabridged (En-En)" '*'|egrep  -- '^--[>]-'|wc -l
73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants