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

apkg created before dict.db has been created #3

Open
bnic24 opened this issue May 1, 2020 · 6 comments
Open

apkg created before dict.db has been created #3

bnic24 opened this issue May 1, 2020 · 6 comments

Comments

@bnic24
Copy link

bnic24 commented May 1, 2020

I've been adjusting this script to get it working with a french dictionary, and I noticed that when running the script for the first time, or with a new dictionary, I'm prompted to select the book and then an apkg is created before the dict.db has finished being created. The result is an Anki deck missing meanings. After a few minutes the dict.db is created and the script terminates.

If I run the script again a correct apkg is created.

@johan456789
Copy link

@bnic24 Does this script work for you? What did you change in the script? Mine created an empty dict.db, and there's no definition.

@smb-apache
Copy link

I've been adjusting this script to get it working with a french dictionary, and I noticed that when running the script for the first time, or with a new dictionary, I'm prompted to select the book and then an apkg is created before the dict.db has finished being created. The result is an Anki deck missing meanings. After a few minutes the dict.db is created and the script terminates.

If I run the script again a correct apkg is created.

@bnic24 Does this script work for you? What did you change in the script? Mine created an empty dict.db, and there's no definition.

Did you guys get it working? I was able to finally get everything to install properly but running the script only leaves me with an apkg that has the word and sentence context WITHOUT the meaning. dict.db is empty, 8kb, even though I left it running the first execution until it finished. I've run the script multiple times for the same book, and this doesn't fix the missing meanings.

@johan456789
Copy link

johan456789 commented Jan 29, 2021

It never worked for me. I gave up and wrote my own script. It uses WordNet definition instead of Kindle's built-in dictionary.

@smb-apache
Copy link

It never worked for me. I gave up and wrote my own script. It uses WordNet definition instead of Kindle's built-in dictionary.

Do you have it posted anywhere or are willing to post? I've spent days trying to get one of these solutions to work, nothing works

@johan456789
Copy link

Do you have it posted anywhere or are willing to post?

Here:
https://github.com/johan456789/yaktoa

It's customized for my own use. Just ask anything if you need help.

@yinchyy
Copy link

yinchyy commented Jan 14, 2022

I've managed to fix it, but my solution isn't really case insensitive (you need to look for some schemes in your rawml dictionary in order to find proper separator if it varies from mine, which is h2).
If anyone is interested to try it, you can see it there: https://github.com/yinchyy/Kindle2Anki

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

4 participants