![]() |
#481 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,879
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() MobiType: <type> |
|
![]() |
![]() |
![]() |
#482 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 103
Karma: 1000
Join Date: May 2013
Device: Kindle Paperwhite
|
Quote:
Stefano |
|
![]() |
![]() |
Advert | |
|
![]() |
#483 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,879
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
QCPI already has some Mobi checks |
|
![]() |
![]() |
![]() |
#484 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 103
Karma: 1000
Join Date: May 2013
Device: Kindle Paperwhite
|
Quote:
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 |
|
![]() |
![]() |
![]() |
#485 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,338
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
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. |
![]() |
![]() |
Advert | |
|
![]() |
#486 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 103
Karma: 1000
Join Date: May 2013
Device: Kindle Paperwhite
|
![]() Quote:
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 |
|
![]() |
![]() |
![]() |
#487 |
Enthusiast
![]() Posts: 29
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? |
![]() |
![]() |
![]() |
#488 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,000
Karma: 89771343
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#489 | |
Enthusiast
![]() Posts: 29
Karma: 10
Join Date: Dec 2020
Device: Onyx Boox Poke2
|
Quote:
|
|
![]() |
![]() |
![]() |
#490 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,015
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Any idea?
Unpacking this (de-DRMed) mobi7 dictionary: 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' |
![]() |
![]() |
![]() |
#491 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,000
Karma: 89771343
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
That error is most likely the result of a change to the array module in Python:
Quote:
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. Last edited by jhowell; 09-03-2022 at 09:24 PM. |
|
![]() |
![]() |
![]() |
#492 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,015
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Thank you! Perfect
![]() |
![]() |
![]() |
![]() |
#493 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,338
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Feel free to PM me if something like this comes up in the future and I fail to respond. ![]() |
|
![]() |
![]() |
![]() |
#494 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,897
Karma: 27013865
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 '&'.
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. 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 08:11 PM. |
![]() |
![]() |
![]() |
#495 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,584
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
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. |
![]() |
![]() |
![]() |
Tags |
mobi2mobi |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] EpubSplit | JimmXinu | Plugins | 454 | 03-16-2025 03:05 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 AM |
[GUI Plugin] EpubMerge | JimmXinu | Plugins | 555 | 01-18-2025 06:08 PM |
[GUI Plugin] Ex Libris | AlPe | Plugins | 87 | 10-10-2020 03:10 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |