Kindle2Anki icon indicating copy to clipboard operation
Kindle2Anki copied to clipboard

apkg created before dict.db has been created

Open bnic24 opened this issue 4 years ago • 6 comments

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 avatar May 01 '20 23:05 bnic24

@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.

johan456789 avatar Oct 06 '20 14:10 johan456789

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.

smb-apache avatar Jan 28 '21 23:01 smb-apache

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

johan456789 avatar Jan 29 '21 11:01 johan456789

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

smb-apache avatar Jan 29 '21 16:01 smb-apache

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.

johan456789 avatar Jan 29 '21 23:01 johan456789

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

yinchyy avatar Jan 14 '22 21:01 yinchyy