Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 01-13-2022, 12:11 PM   #481
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,442
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by DiapDealer View Post
I think I actually have a "What's my Mobi?" type python script somewhere that generates a report/log about kindlebook files in directories. You're welcome to it if I can find it (and you can use it).
That sounds like something that could/should be added to the Quality check PI.
MobiType: <type>
theducks is online now   Reply With Quote
Old 01-13-2022, 02:01 PM   #482
stefano.sb
Zealot
stefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheese
 
Posts: 103
Karma: 1000
Join Date: May 2013
Device: Kindle Paperwhite
Quote:
Originally Posted by theducks View Post
That sounds like something that could/should be added to the Quality check PI.
MobiType: <type>
Very good idea... In this plug-in it would be also very useful an option to store the output of a massive check (i.e. "missing EBOK cdetype") into two custom columns
  • the check result
  • last check running date

Stefano
stefano.sb is offline   Reply With Quote
Advert
Old 01-13-2022, 02:30 PM   #483
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,442
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by stefano.sb View Post
Very good idea... In this plug-in it would be also very useful an option to store the output of a massive check (i.e. "missing EBOK cdetype") into two custom columns
  • the check result
  • last check running date

Stefano
I just add a Tag (I have a custom column #usertag i use for notes, which device has the book...) Multi-select (ctrl-a) the results, then use the Metadata editor (bulk mode)

QCPI already has some Mobi checks
theducks is online now   Reply With Quote
Old 01-14-2022, 09:43 AM   #484
stefano.sb
Zealot
stefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheese
 
Posts: 103
Karma: 1000
Join Date: May 2013
Device: Kindle Paperwhite
Quote:
Originally Posted by theducks View Post
I just add a Tag (I have a custom column #usertag i use for notes, which device has the book...) Multi-select (ctrl-a) the results, then use the Metadata editor (bulk mode)

QCPI already has some Mobi checks
Good suggestion! I will try to add the three new MOBI checks that I need to the QCPI (MOBI7, MOBI8, BOTH) using the same approach of the others check currently present (i.e. Chek Mobi -> check missing ASIN identifier)

After that in Calibre I will be able to use the Edit metadata in bulk function to set values in my custum columns

P.S. Next posts in the [GUI Plugin] Quality Check thread....

Thanks

Stefano
stefano.sb is offline   Reply With Quote
Old 01-14-2022, 01:49 PM   #485
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,039
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by stefano.sb View Post
P.S. Next posts in the [GUI Plugin] Quality Check thread....
I don't mind a short derailment, but this is probably a good idea.

Still looking for my script. I've found a few variations that use Python2/Qt4 (or Tkinter), but there should be something newer than that.
DiapDealer is offline   Reply With Quote
Advert
Old 02-02-2022, 09:29 AM   #486
stefano.sb
Zealot
stefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheesestefano.sb can extract oil from cheese
 
Posts: 103
Karma: 1000
Join Date: May 2013
Device: Kindle Paperwhite
Smile

Quote:
Originally Posted by stefano.sb View Post
Good suggestion! I will try to add the three new MOBI checks that I need to the QCPI (MOBI7, MOBI8, BOTH) using the same approach of the others check currently present (i.e. Chek Mobi -> check missing ASIN identifier)

After that in Calibre I will be able to use the Edit metadata in bulk function to set values in my custum columns

P.S. Next posts in the [GUI Plugin] Quality Check thread....

Thanks

Stefano
Here we are :-) I released this new function inside Quality Check Plug-in. See here

It’s a beta version… I am not a good Python programmer so if you want to test it or give me suggestions….

Thanks

Stefano
stefano.sb is offline   Reply With Quote
Old 03-20-2022, 06:23 AM   #487
motherat
Enthusiast
motherat began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Dec 2020
Device: Onyx Boox Poke2
This is excellent, thanks so much for your work!

Question:

KindleUnpack can convert azw3 files to epubs directly via the KF8 to epub... menu item. For mobi files, nothing like this seems to be available -- the plugin can unpack them, but there's no option to turn them into epubs.

I assume that's working as intended? Or am I overlooking something? Is the only way to turn mobis into epubs Calibre's built-in conversion function?
motherat is offline   Reply With Quote
Old 03-20-2022, 09:22 AM   #488
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,737
Karma: 86234863
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by motherat View Post
KindleUnpack can convert azw3 files to epubs directly via the KF8 to epub... menu item. For mobi files, nothing like this seems to be available -- the plugin can unpack them, but there's no option to turn them into epubs.
The internal content of a KF8/azw3 file is very similar to EPUB so it is a fairly straightforward task to create an EPUB from it.

The content inside of the older MOBI format is based on a subset of HTML3. This needs extensive changes to turn it into a proper EPUB, which is something that would out of place in this plugin. It is better handled by calibre's conversion function.
jhowell is online now   Reply With Quote
Old 03-21-2022, 04:49 AM   #489
motherat
Enthusiast
motherat began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Dec 2020
Device: Onyx Boox Poke2
Quote:
Originally Posted by jhowell View Post
The internal content of a KF8/azw3 file is very similar to EPUB so it is a fairly straightforward task to create an EPUB from it.

The content inside of the older MOBI format is based on a subset of HTML3. This needs extensive changes to turn it into a proper EPUB, which is something that would out of place in this plugin. It is better handled by calibre's conversion function.
I see -- thanks for explaining!
motherat is offline   Reply With Quote
Old 09-03-2022, 06:14 PM   #490
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 3,008
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
Any idea?

Unpacking this (de-DRMed) mobi7 dictionary:
Click image for larger version

Name:	Capture d'écran 2022-09-03 16.44.25.png
Views:	462
Size:	67.1 KB
ID:	196253

I get this error:
Code:
calibre, version 6.4.0
ERREUR : Exception non gérée: <b>TypeError</b>:a bytes-like object is required, not 'str'

calibre 6.4  embedded-python: True
Windows-10-10.0.19044-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19044')
Python 3.10.1
Windows: ('10', '10.0.19044', 'SP0', 'Multiprocessor Free')
Interface language: fr
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 49, 0) && DeDRM (10, 0, 1) && AZW6 Image Merge (1, 0, 0) && Package KFX (from KFX Input) (1, 49, 0) && APNX Generator (1, 1, 0) && Count Pages (1, 11, 3) && EpubCheck (0, 2, 4) && Find Duplicates (1, 9, 7) && Generate Cover (2, 2, 0) && Hyphenate This! (0, 1, 3) && KFX metadata reader (from KFX Input) (1, 49, 0) && KFX Input (1, 49, 0) && Set KFX metadata (from KFX Output) (1, 64, 0) && KFX Output (1, 64, 0) && KindleUnpack - The Plugin (0, 83, 1) && KindleXRay (0, 0, 4) && Obok DeDRM (7, 1, 0) && Open With (1, 7, 2) && Quality Check (1, 12, 0) && Standard Ebooks (1, 0, 0) && TTS to MP3 (0, 6, 0) && WordDumb (3, 25, 0) && X-Ray Creator (3, 2, 1)
Traceback (most recent call last):
  File "calibre_plugins.kindleunpack_plugin.action", line 271, in unpack_ebook
  File "calibre_plugins.kindleunpack_plugin.mobi_stuff", line 124, in unpackMOBI
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.kindleunpack", line 934, in unpackBook
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.kindleunpack", line 855, in process_all_mobi_headers
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.kindleunpack", line 632, in processMobi7
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.mobi_dict", line 205, in getPositionMap
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.mobi_dict", line 288, in getInflectionGroups
  File "calibre_plugins.kindleunpack_plugin.kindleunpackcore.mobi_dict", line 377, in applyInflectionRule
AttributeError: 'array.array' object has no attribute 'tostring'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre_plugins.kindleunpack_plugin.action", line 273, in unpack_ebook
  File "calibre_plugins.kindleunpack_plugin.utilities", line 105, in showErrorDlg
  File "traceback.py", line 179, in print_exc
  File "traceback.py", line 121, in print_exception
TypeError: a bytes-like object is required, not 'str'
At this point the images have been extracted, a toc.ncx has been created, but no html content.
PoP is offline   Reply With Quote
Old 09-03-2022, 09:57 PM   #491
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,737
Karma: 86234863
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by PoP View Post
AttributeError: 'array.array' object has no attribute 'tostring'
That error is most likely the result of a change to the array module in Python:

Quote:
New in version 3.2: tostring() is renamed to tobytes() for clarity.

Added: I changed the name of that function in KindleUnpack and was able to unpack that dictionary without any further errors. I have attached a copy of the modified plugin in case anyone else needs to use it.
Attached Files
File Type: zip KindleUnpack - The Plugin.zip (99.0 KB, 635 views)

Last edited by jhowell; 09-03-2022 at 10:24 PM.
jhowell is online now   Reply With Quote
Old 09-04-2022, 08:39 AM   #492
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 3,008
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
Thank you! Perfect
PoP is offline   Reply With Quote
Old 10-25-2022, 09:13 AM   #493
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,039
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by jhowell View Post
That error is most likely the result of a change to the array module in Python:




Added: I changed the name of that function in KindleUnpack and was able to unpack that dictionary without any further errors. I have attached a copy of the modified plugin in case anyone else needs to use it.
Hmmm... Python 3.2 was long gone before calibre was altered to work with Python 3, so this has probably been broken in the plugin all along. I'll try to remember to release a version that will work with both old and new versions of calibre.

Feel free to PM me if something like this comes up in the future and I fail to respond.
DiapDealer is offline   Reply With Quote
Old 05-12-2024, 08:50 PM   #494
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 6,742
Karma: 26974049
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
I tried converting a book with '&' in the title. It generates 3 FATAL errors with epub check. These need to be replaced by '&amp;'.

After I made these edits, there were still a couple of errors (AZW3 contains a fixed-layout format) but these don't seem to create issues, at least for Apple Books:

Code:
ERROR(HTM-046): Signs and Symbols_ An Illustrated Guide to - Dk.epub/OEBPS/Text/cover_page.xhtml(8,8): Fixed layout document has no "viewport" meta element.
ERROR(OPF-014): Signs and Symbols_ An Illustrated Guide to - Dk.epub/OEBPS/Text/cover_page.xhtml(-1,-1): The property "svg" should be declared in the OPF file.
By the way, thanks for this plugin.

Calibre is unable to convert this format to epub. Comic book/manga (made from series of image files) convert okay, it is those that start life as PDF that appear to be problematic.

Kovid does not claim calibre supports conversion to FXL epub (I think he has said 'does NOT support'), but it would be nice to have. I would do a PR if I had more confidence that I could figure it out, and didn't have more immediate demands on my time.

Last edited by tomsem; 05-12-2024 at 09:11 PM.
tomsem is offline   Reply With Quote
Old 05-18-2024, 03:34 AM   #495
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 72,488
Karma: 309060442
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Kindle Unpack isn't/wasn't intended to produce a perfect epub. It's to extract the contents of a MOBI/AZW3/AZW4 file from the proprietary Amazon binary format into common format files.

That it can usually produce a usable ePub is a bonus.
pdurrant is offline   Reply With Quote
Reply

Tags
mobi2mobi


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] EpubMerge JimmXinu Plugins 542 10-28-2024 02:40 PM
[GUI Plugin] EpubSplit JimmXinu Plugins 443 08-13-2024 04:20 PM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 09:39 AM
[GUI Plugin] Ex Libris AlPe Plugins 87 10-10-2020 04:10 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 11:00 AM.


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