Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 10-19-2024, 04:45 AM   #16
nezih
Enthusiast
nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.
 
nezih's Avatar
 
Posts: 40
Karma: 14828
Join Date: Feb 2023
Device: Kobo Aura SE
Quote:
Originally Posted by Thorns View Post
Have sent you a PM with the file if you wouldn't mind looking at it? Just the MOBI file. I wasn't sure if allowed to post here publicly. Would really appreciate any advice either way
Alright, from what I gather you first converted the AZW3 to MOBI via calibre which I suppose stripped all dictionary related tags. Instead, you should have unpacked the azw3 directly via KindleUnpack plugin. Then, the script will be able to parse all entries. Here is the preview of resulting stardict file on GoldenDict:
Attached Thumbnails
Click image for larger version

Name:	Ekran görüntüsü 2024-10-19 104145.png
Views:	30
Size:	53.0 KB
ID:	211493  

Last edited by nezih; 10-19-2024 at 04:48 AM. Reason: wording
nezih is offline   Reply With Quote
Old 10-19-2024, 05:57 AM   #17
Thorns
Member
Thorns began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Oct 2024
Device: Kobo
Quote:
Originally Posted by nezih View Post
Alright, from what I gather you first converted the AZW3 to MOBI via calibre which I suppose stripped all dictionary related tags. Instead, you should have unpacked the azw3 directly via KindleUnpack plugin. Then, the script will be able to parse all entries. Here is the preview of resulting stardict file on GoldenDict:
Hi, yes the steps I took are as follows. I have the azw3 which has DRM on it.

1. Load up the file in calibre
2. "Convert" the file in calibre to remove the DRM - I converted this to MOBI
3. Use the unpack plugin on the resulting MOBI file
4. Run your script in the mobi7 folder that gets created - this folder has the "book.html" file

Then I received the error.

I have just tried to run the unpack plugin directly without first converting it and it gives an error immediately - i assume because it has DRM on it.

I have also tried to "convert" it to azw3; i.e. just try to remrove the DRM. This works, but when I run the unpack I get a mobi8 folder which doesn't have the html file, and the mobi7 folder which only has the images and no html file so I'm not sure how I can run your script.

Could you please detail how you managed to get it to work? Many thanks again
Thorns is offline   Reply With Quote
Old 10-19-2024, 06:17 AM   #18
nezih
Enthusiast
nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.
 
nezih's Avatar
 
Posts: 40
Karma: 14828
Join Date: Feb 2023
Device: Kobo Aura SE
Quote:
Originally Posted by Thorns View Post
Hi, yes the steps I took are as follows. I have the azw3 which has DRM on it.

1. Load up the file in calibre
2. "Convert" the file in calibre to remove the DRM - I converted this to MOBI
3. Use the unpack plugin on the resulting MOBI file
4. Run your script in the mobi7 folder that gets created - this folder has the "book.html" file

Then I received the error.

I have just tried to run the unpack plugin directly without first converting it and it gives an error immediately - i assume because it has DRM on it.

I have also tried to "convert" it to azw3; i.e. just try to remrove the DRM. This works, but when I run the unpack I get a mobi8 folder which doesn't have the html file, and the mobi7 folder which only has the images and no html file so I'm not sure how I can run your script.

Could you please detail how you managed to get it to work? Many thanks again
- Renamed the .original_mobi to .azw3
- Dragged and dropped this file to calibre then ran KindleUnpack on it
- In the output mobi7 folder ran the script as below:
Code:
python mobi2stardict.py --fix-links --html-file book.html --chunked
nezih is offline   Reply With Quote
Old 10-19-2024, 06:25 AM   #19
Thorns
Member
Thorns began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Oct 2024
Device: Kobo
Quote:
Originally Posted by nezih View Post
- Renamed the .original_mobi to .azw3
- Dragged and dropped this file to calibre then ran KindleUnpack on it
- In the output mobi7 folder ran the script as below:
Code:
python mobi2stardict.py --fix-links --html-file book.html --chunked
So when trying the exact same steps I get the following error with the plugin, which is the same error I get when trying to unpack the original azw file directly. How strange!
Is there any way you can share the output?
Attached Thumbnails
Click image for larger version

Name:	error.png
Views:	20
Size:	22.8 KB
ID:	211494  
Thorns is offline   Reply With Quote
Old 10-19-2024, 07:03 AM   #20
Thorns
Member
Thorns began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Oct 2024
Device: Kobo
OK - I got it to work! I had to use another version of the calibre plugin to get the unloading to work properly. Then I ran the script and copied the contents directly to Koreader and it seems to work perfectly. I attached the version I used incase anyone else needs it.
Attached Files
File Type: zip KindleUnpack - The Plugin.zip (99.0 KB, 25 views)
Thorns is offline   Reply With Quote
Old 10-19-2024, 07:12 AM   #21
nezih
Enthusiast
nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.nezih is less competitive than you.
 
nezih's Avatar
 
Posts: 40
Karma: 14828
Join Date: Feb 2023
Device: Kobo Aura SE
Quote:
Originally Posted by Thorns View Post
OK - I got it to work! I had to use another version of the calibre plugin to get the unloading to work properly. Then I ran the script and copied the contents directly to Koreader and it seems to work perfectly. I attached the version I used incase anyone else needs it.
Yeah, I remember modifying my local copy of the plugin to bypass that error. Glad it worked out for you.
nezih is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
so purchased a book from the kindle store Alrayes Amazon Kindle 27 12-12-2018 09:05 AM
Transfer ALL Purchased Books to Kindle? HeatherA Amazon Kindle 6 03-25-2014 04:50 PM
Kindle purchased content portability mj72 Amazon Kindle 5 09-26-2010 05:33 PM
Hacks Kindle noob... purchased books can't open with Kindle Riptide Amazon Kindle 16 10-13-2009 08:30 PM
poor illustration on books purchased through CONNECT store jakeluck Sony Reader 14 03-06-2007 05:50 PM


All times are GMT -4. The time now is 03:26 AM.


MobileRead.com is a privately owned, operated and funded community.