Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-03-2013, 05:11 PM   #151
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: 9,535
Karma: 44002482
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.
DiapDealer is online now   Reply With Quote
Old 06-03-2013, 05:17 PM   #152
gers1978
Addict
gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.
 
Posts: 311
Karma: 1008414
Join Date: Jun 2011
Device: Kindle
Quote:
Originally Posted by DiapDealer View Post
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.
PM sent
gers1978 is offline   Reply With Quote
Old 06-03-2013, 05:53 PM   #153
gers1978
Addict
gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.
 
Posts: 311
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 05:56 PM.
gers1978 is offline   Reply With Quote
Old 06-03-2013, 06:54 PM   #154
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,504
Karma: 19471833
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2), Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
The next thing to do is fix all of those errors.
JSWolf is offline   Reply With Quote
Old 06-03-2013, 07:03 PM   #155
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: 9,535
Karma: 44002482
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.
DiapDealer is online now   Reply With Quote
Old 06-03-2013, 07:09 PM   #156
gers1978
Addict
gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.gers1978 ought to be getting tired of karma fortunes by now.
 
Posts: 311
Karma: 1008414
Join Date: Jun 2011
Device: Kindle
Quote:
Originally Posted by JSWolf View Post
The next thing to do is fix all of those errors.
Lol, I'm not sure how
gers1978 is offline   Reply With Quote
Old 06-05-2013, 06:10 PM   #157
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,504
Karma: 19471833
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2), Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by gers1978 View Post
Lol, I'm not sure how
Go to the ePub forum and past the code so we can see what's there and then we can help you out. You can use Sigil or Tweak Book to see the code.
JSWolf is offline   Reply With Quote
Old 06-06-2013, 12:14 PM   #158
mbmr
Member
mbmr began at the beginning.
 
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 12:27 PM.
mbmr is offline   Reply With Quote
Old 06-06-2013, 12:54 PM   #159
pdurrant
Santa 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: 33,341
Karma: 90778786
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
Quote:
Originally Posted by mbmr View Post
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
If you want to use it from the command-line, could you just use the python script, not the plugin? See this thread.
pdurrant is offline   Reply With Quote
Old 06-06-2013, 01:45 PM   #160
mbmr
Member
mbmr began at the beginning.
 
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 02:25 PM.
mbmr is offline   Reply With Quote
Old 06-06-2013, 02:53 PM   #161
mbmr
Member
mbmr began at the beginning.
 
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 02:57 PM.
mbmr is offline   Reply With Quote
Old 06-06-2013, 03:30 PM   #162
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: 9,535
Karma: 44002482
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by mbmr View Post
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
Asked and answered over the course of this thread. I'm frankly just not interested enough in the bulk unpacking of Kindle books to make the modifications to the plugin that would be necessary to accomplish it. Someone else will have to take up that cause.

Quote:
Originally Posted by mbmr View Post
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
Check out the utilities.py script. Specifically, the mobiProcessor class... and where it calls the MobiHeaderLight class. That's where the bulk of the work is done to determine what kind of Kindlebook it is.

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.
http://www.mobileread.com/forums/sho...d.php?t=192454

Last edited by DiapDealer; 06-06-2013 at 03:42 PM.
DiapDealer is online now   Reply With Quote
Old 06-07-2013, 06:12 AM   #163
mbmr
Member
mbmr began at the beginning.
 
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 07:02 AM.
mbmr is offline   Reply With Quote
Old 06-07-2013, 09:18 AM   #164
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 1,262
Karma: 1619751
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Aura H2O
Quote:
Originally Posted by pdurrant View Post
If you want to use it from the command-line, could you just use the python script, not the plugin? See this thread.
Thanks! I wanted to do the same thing, and never thought of that. The standalone python script plus the MakeBAT plugin for Total Commander did the trick nicely
mbovenka is offline   Reply With Quote
Old 06-07-2013, 10:41 AM   #165
KevinH
Wizard
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 1,077
Karma: 444444
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
KevinH is offline   Reply With Quote
Reply

Tags
mobi2mobi

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] EpubMerge JimmXinu Plugins 186 12-16-2014 01:17 PM
[GUI Plugin] Open With kiwidude Plugins 251 12-15-2014 01:07 PM
[GUI Plugin] EpubSplit JimmXinu Plugins 151 11-07-2014 12:06 PM
[GUI Plugin] Ex Libris AlPe Plugins 68 09-02-2014 03:56 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 10:39 AM.


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