06-03-2013, 04:11 PM | #151 |
Grand Sorcerer
Posts: 27,550
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Interesting. I'd be interested in seeing the source AZW3 to make sure there's not any new meta tag stuff that's exposing/introducing a bug in KindleUnpack, but don't want to run afoul of any copyright issues. Feel free to PM me the details of the book if you're comfortable doing so.
|
06-03-2013, 04:17 PM | #152 | |
Addict
Posts: 392
Karma: 1008414
Join Date: Jun 2011
Device: Kindle
|
Quote:
|
|
Advert | |
|
06-03-2013, 04:53 PM | #153 |
Addict
Posts: 392
Karma: 1008414
Join Date: Jun 2011
Device: Kindle
|
I have another AZW3 file with the exact same whitespace problem in the opf file. PM link sent.
Here's the output from the epubcheck AFTER I fix the whitespace issue: Code:
Validating against EPUB version 2.0 (http://code.google.com/p/epubcheck/) June 3, 2013 9:54:36 PM BST --------------------------------------------------- ERROR: <book name>.epub/OEBPS/content.opf(117,9): element "tours" incomplete; missing required element "tour" ERROR: <book name>.epub/OEBPS/Text/part0000.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0001.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0002.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0003.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0004.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0005.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0006.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0007.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0008.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0009.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0010.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0011.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0012.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0013.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0014.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0015.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0016.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0017.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0018.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0019.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0020.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0021.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0022.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0023.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0024.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0025.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0026.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0027.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0028.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0029.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" ERROR: <book name>.epub/OEBPS/Text/part0030.xhtml(1,149): attribute "style" not allowed here; expected attribute "dir", "lang", "version" or "xml:lang" Check finished with warnings or errors! Last edited by gers1978; 06-03-2013 at 04:56 PM. |
06-03-2013, 05:54 PM | #154 |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The next thing to do is fix all of those errors.
|
06-03-2013, 06:03 PM | #155 |
Grand Sorcerer
Posts: 27,550
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Those particular errors won't make calibre or ADE barf on the ePub, but you still may want to fix them. You'd be amazed at the amount of crap that makes its way into the code of a KF8 book.
Those particular ones are from a style attribute trying to set the font-size in the "html" element tag itself -- for every file in the epub. |
Advert | |
|
06-03-2013, 06:09 PM | #156 |
Addict
Posts: 392
Karma: 1008414
Join Date: Jun 2011
Device: Kindle
|
|
06-05-2013, 05:10 PM | #157 |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
06-06-2013, 11:14 AM | #158 |
Member
Posts: 14
Karma: 10
Join Date: Jun 2013
Device: nook
|
Is there any way to either get this plugin to process multiple files or use it from the command line (see bottom of post), then at least can code a script around it to process multiple files
My fingers are sore I edited the plugin to not show "book successfully extracted blah blah" message too any less clicking is welcome oh and thanks! this plugin is great! Code:
calibre-debug -r "KindleUnpack - The Plugin" test.azw Python function terminated unexpectedly The KindleUnpack - The Plugin plugin has no command line interface (Error Code : 1) Traceback (most recent call last): File "site.py", line 132, in main File "site.py", line 109, in run_entry_point File "site-packages\calibre\debug.py", line 274, in main File "site-packages\calibre\customize\__init__.py", line 303, in cli_main NotImplementedError: The KindleUnpack - The Plugin plugin has no command line in terface Last edited by mbmr; 06-06-2013 at 11:27 AM. |
06-06-2013, 11:54 AM | #159 | |
The Grand Mouse 高貴的老鼠
Posts: 71,507
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
|
|
06-06-2013, 12:45 PM | #160 |
Member
Posts: 14
Karma: 10
Join Date: Jun 2013
Device: nook
|
Hmm will check that now thanks, does that script just unpack into a html folder? all i want is a pdf (rom azw4) or epub (from kf8)
edit #2: no you right this seems to be right path! Last edited by mbmr; 06-06-2013 at 01:25 PM. |
06-06-2013, 01:53 PM | #161 |
Member
Posts: 14
Karma: 10
Join Date: Jun 2013
Device: nook
|
Ok now im trying to find a way to determine the format of a file (kf8, awz4, mobi, topaz, htmlz ) etc from command line how does this plugin do it, im looking over the code now trying how it detects what format the book is
i suppose i could just to kindleunpack the file and see if it results in anything Last edited by mbmr; 06-06-2013 at 01:57 PM. |
06-06-2013, 02:30 PM | #162 | ||
Grand Sorcerer
Posts: 27,550
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Quote:
And for what it's worth, this plugin and the htmlz format don't have a thing to do with each other. And it can't do anything with the topaz format other than tell you that a certain book is IN the topaz format. Also, I have another "What's my MOBI?" python script that will tell you what's under the hood of most MOBI, PRC and the various other Kindlebook type ebook formats. Will work on individual files or entire folders/subfolders. https://www.mobileread.com/forums/sho...d.php?t=192454 Last edited by DiapDealer; 06-06-2013 at 02:42 PM. |
||
06-07-2013, 05:12 AM | #163 |
Member
Posts: 14
Karma: 10
Join Date: Jun 2013
Device: nook
|
Thanks for What's my MOBI? script!
No need to change anything im almost done making a script automatically using the mobiunpack script and skip calibre entirely for that matter edit: whatsmymobi script is a GUI one, possible just have a pure command line only like: whatsmymobi.py /path/to/test.mobi I realize some people like nice buttons and windows but im quite comfortable doing all from command line, allows for great automation and saves my hands ravaged by years of computer use I can sort of understand python but coming from C, Java, PHP world its a bit alien Last edited by mbmr; 06-07-2013 at 06:02 AM. |
06-07-2013, 08:18 AM | #164 | |
Wizard
Posts: 2,018
Karma: 13471689
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
|
Quote:
|
|
06-07-2013, 09:41 AM | #165 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
epub from KindleUnpack in structure only
Hi,
Just to make this perfectly clear, KindleUnpack tries to create an "epub-like" structure from a KF8 raw files. That means if a validated epub was provided to kindlegen, then you should get something very close if not exactly a validated epub back from kindlegen. If however old mobi or unvalidated epubs or even html is fed to kindlegen, then KindleUnpack will generate something that looks like an epub in structure but that will require significant editing in Sigil or an epub to epub conversion in Calibre to produce an epub that will pass validation. KevinH |
Tags |
mobi2mobi |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] EpubSplit | JimmXinu | Plugins | 422 | 04-07-2024 04:10 PM |
[GUI Plugin] EpubMerge | JimmXinu | Plugins | 522 | 04-01-2024 10:25 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[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 |