03-30-2021, 07:22 AM | #91 |
Evangelist
Posts: 411
Karma: 2666666
Join Date: Nov 2020
Device: none
|
I just collect the difficult level of lemmas from some books of mine that have word wise enabled by Amazon. The level data the plugin uses doesn't cover all the words of the Kindle dictionary but it's large enough for most books IMO.
I think it's not that hard to customize the difficult level data file(data/lemmas.json) or create a new one according to your needs. For example, the first lemma in the file is: Code:
"midway": [ 2, 14487 ], Last edited by xxyzz; 03-30-2021 at 07:26 AM. |
03-30-2021, 08:47 AM | #92 |
Member
Posts: 19
Karma: 10
Join Date: Apr 2018
Device: none
|
|
03-30-2021, 09:43 AM | #93 |
Evangelist
Posts: 411
Karma: 2666666
Join Date: Nov 2020
Device: none
|
Except the docs I mentioned before, you also need to modify data/add_lemmas.py to generate a customized lemmas.json file. Then you can replace the lemmas.json file in the plugin zip file and load it in calibre.
|
03-30-2021, 09:48 AM | #94 | |
Member
Posts: 19
Karma: 10
Join Date: Apr 2018
Device: none
|
Quote:
|
|
03-30-2021, 10:59 AM | #95 | |
Member
Posts: 19
Karma: 10
Join Date: Apr 2018
Device: none
|
Quote:
where should I put LanguageLayer.en.ASIN.kll files and WordWise.kll.en.en.db? |
|
03-31-2021, 03:01 AM | #96 |
Evangelist
Posts: 411
Karma: 2666666
Join Date: Nov 2020
Device: none
|
It doesn't matter where you put these files. If you want to create a new json file from other sources then you don't need LanguageLayer files and have to modify the code. That script is for adding new lemmas from word wise files of books brought from Kindle store.
|
03-31-2021, 03:13 AM | #97 |
Member
Posts: 19
Karma: 10
Join Date: Apr 2018
Device: none
|
|
03-31-2021, 05:14 AM | #98 | |
Evangelist
Posts: 411
Karma: 2666666
Join Date: Nov 2020
Device: none
|
Quote:
Code:
$ cd data $ python add_lemmas.py path_of_kll.en.en.klld path_of_LanguageLayer.en.ASIN.kll $ cd .. $ calibre-customize -b . |
|
03-31-2021, 06:31 AM | #99 | |
Member
Posts: 19
Karma: 10
Join Date: Apr 2018
Device: none
|
Quote:
Code:
Processing LanguageLayer.en.ASIN.kll cn-kll.en.en.klld has 75819 lemmas added 316 lemmas lemmas.json has 22334 lemmas Traceback (most recent call last): File "D:\Elegram\WordDumb-master\data\add_lemmas.py", line 62, in <module> with open('lemmas.json', 'r') as f: FileNotFoundError: [Errno 2] No such file or directory: 'lemmas.json' |
|
03-31-2021, 09:05 AM | #100 |
Evangelist
Posts: 411
Karma: 2666666
Join Date: Nov 2020
Device: none
|
My bad... I didn't test the code last time. I have fix the bug and improve the script speed, please pull the latest change.
|
03-31-2021, 09:52 AM | #101 |
Member
Posts: 19
Karma: 10
Join Date: Apr 2018
Device: none
|
|
04-11-2021, 05:24 AM | #102 |
Evangelist
Posts: 411
Karma: 2666666
Join Date: Nov 2020
Device: none
|
v3.6.0
- create threaded job for each book, select multiple books will run the jobs concurrently - download all dependent packages via pip3 - add 77 lemmas - update nltk and numpy to the latest version - other improvements can be found in git log This version requires Python 3 to install dependencies. v3.6.1 install dependencies before running jobs to avoid racing v3.6.2 get KFX asset_id from KFX Input 1.38.0 updated method v3.6.3 fix can't delete old package folder bug Last edited by xxyzz; 04-15-2021 at 11:57 PM. |
04-20-2021, 08:44 AM | #103 |
Evangelist
Posts: 411
Karma: 2666666
Join Date: Nov 2020
Device: none
|
v3.6.4
- bug fix: check device is ejected or not before sending files - bug fix: convert Path to str for Python 3.8 shutil.move() |
04-26-2021, 06:34 AM | #104 |
Junior Member
Posts: 3
Karma: 10
Join Date: Apr 2021
Device: Kindle PPW3
|
Working great with latest 5.16.1. But I noticed the book wouldn't keep its book cover when showing up on Kindle. Is there any way to get around this?
|
04-26-2021, 10:58 AM | #105 | |
Evangelist
Posts: 411
Karma: 2666666
Join Date: Nov 2020
Device: none
|
Quote:
v3.6.5 uses calibre's API to scale the cover to Kindle's cover size. Hope it will solve your problem. Last edited by xxyzz; 04-26-2021 at 07:55 PM. |
|
Tags |
worddumb, x-ray |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] CalibreSpy | DaltonST | Plugins | 244 | 01-27-2024 06:43 AM |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 492 | 10-25-2022 08:13 AM |
[GUI Plugin] Manga plugin | mastertea | Plugins | 6 | 01-06-2022 02:43 AM |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 05:25 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |