Closed arpanghosh8453 closed 3 months ago
Same as #226, what's the pydantic and pydantic-core version in the worddumb-libs-py3.12 folder? It's because the latest Python 3.12 release changed the ForwardRef._evaluate()
function but I thought the latest pydantic already fixed this error.
I think it's 2.7.1. Is there any way to fix it manually?
Delete the worddumb-libs-py3.12
folder and the plugin will download the latest packages.
I think I got it working, but the resulting file has some issues when opened with Koreader. First of all, it generates a separate file, and copies the file to it's destination. It cannot be combined with other plugin or plugboard for on the fly modifications of the files simultaneously. And Koreader uses hashes for file identification which makes it hard to replace the file and keep the ongoing progress and other syncs. What I was suggesting here is to have it show the x-ray data in a popup like dictionary (how it already does on kindle native software).
Koreader has a similar window for dictionary when a word is selected. I was wondering about a seamless integration. if you can store the x-ray data in a seperate sidecar like file and koreader can load the file on side when the book loads and show the details in the popup, that would be a perfect solution. And for e-readers, Koreader is very popular. So I think it will be great! Let me know what you think!
Kindle uses sqlite file for Word Wise and X-Ray, I wrote some documents of the database tables at here https://xxyzz.github.io/WordDumb/contributing/index.html
I'm not familiar with koreader sidecar file, I assume you want to support Kindle db files on koreader?
So essentially you inject those sqlite file when sending the book? There is no modification on the book file itself?
Koreader can query sqlite files very well. Just need to use some sort of linking between the files so they get identified properly. Then Koreader can perform the query to see if there is any X-ray data available for the selected text.
Can I export the sqlite file worddumb produces? How do you fetch the data? is it generated or fetched using some kind of API?
Kindle book files are not modified except the book doesn't have a valid ASIN metadata, and only metadata are changed.
Run the plugin on any Kindle format book without connecting Kindle, the db file is at the same folder of the book. X-Ray entities are created using spaCy NER model and MediaWiki API: https://github.com/xxyzz/WordDumb/blob/5db487b9ddab07c84c48306aa4fce515e666609d/parse_job.py#L685
Please notice Kindle uses the text offset location of the entire book to find Word Wise and X-Ray data.
I see, Thank you. I will look into it and get back to you if I have an idea how to implement it for koreader.
Close as resolved. Please create new issue or discussion for other errors and new features.
Checkboxes
Describe the bug and copy the error message
Error message
Plugin settings and reproduce steps
Creating x-ray file for a epub book
Generated files, screenshots or videos
No response