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 02-21-2017, 06:24 PM   #391
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: 27,535
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Nitro View Post
It's happening with some polish books, nothing special about them.
You're trying to split this mobi? Or do you get that error during a normal unpack/extract?

If you're trying to split, what version of Kindlegen/KindlePreview were the dual-format mobis created with?
DiapDealer is offline   Reply With Quote
Old 02-22-2017, 02:15 AM   #392
Nitro
Member
Nitro began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2011
Device: Sony PRS 505
I'm trying to split original azw3 file from bookshop, to get separate mobi and kf8 files.
Not sure how to check Kindlegen/KindlePreview version.
Nitro is offline   Reply With Quote
Advert
Old 02-22-2017, 03:00 AM   #393
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: 71,483
Karma: 305784726
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by Nitro View Post
I'm trying to split original azw3 file from bookshop, to get separate mobi and kf8 files.
Not sure how to check Kindlegen/KindlePreview version.
An azw3 downloaded from Amazon doesn't have a mobi portion. It's already a separate KF8 file.
pdurrant is offline   Reply With Quote
Old 02-22-2017, 03:17 AM   #394
Nitro
Member
Nitro began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2011
Device: Sony PRS 505
Quote:
Originally Posted by pdurrant View Post
An azw3 downloaded from Amazon doesn't have a mobi portion. It's already a separate KF8 file.
It's not from amazon. It's from local polish shop.
One thing. We don't have protection on files here, just a watermark.
Nitro is offline   Reply With Quote
Old 02-22-2017, 03:57 AM   #395
Nitro
Member
Nitro began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2011
Device: Sony PRS 505
Hmm... Ok, my bad.
@pdurrant gave me a good hint.
I re-checked my files, the original ones were in mobi format and they did contain azw3 and another mobi file. I added them to calibre and a months later I was trying to split azw3 file this time and it gave me an error. I just saw possibility to do it so I tried
Sorry for confusion and help
Nitro is offline   Reply With Quote
Advert
Old 02-22-2017, 05:26 AM   #396
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: 27,535
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
No problem. Although ideally, the plugin's menu shouldn't even be giving you the option to split a file that isn't "splittable". Before each menu is built, each kindlebook format's headers are briefly examined to determine which actions are appropriate for that particular type of Kindlebook.

If you can provide a brief, non-copyright-violating example of a kindlebook that the plugin mistakenly indicates can be split, I'll take a look.
DiapDealer is offline   Reply With Quote
Old 02-22-2017, 06:17 AM   #397
Nitro
Member
Nitro began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2011
Device: Sony PRS 505
PM sent. Again, thanks for your time
Nitro is offline   Reply With Quote
Old 02-22-2017, 08:21 AM   #398
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: 27,535
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Have you been able to split azw3 files from this particular bookstore with KindleUnpack before, or is this something you just recently decided to try?
DiapDealer is offline   Reply With Quote
Old 02-22-2017, 08:46 AM   #399
Nitro
Member
Nitro began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2011
Device: Sony PRS 505
azw3 file was created by calibre/kindleunpack when I splitted mobi file from this bookstore.
They do not provide azw3, just joint mobi with mobi and azw3 inside.
Nitro is offline   Reply With Quote
Old 02-22-2017, 08:57 AM   #400
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: 27,535
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Nitro View Post
azw3 file was created by calibre/kindleunpack when I splitted mobi file from this bookstore.
They do not provide azw3, just joint mobi with mobi and azw3 inside.
So you're saying the azw3 was already split from a dual-format mobi (and kindle unpack STILL thinks it's a splittable file)?

That's interesting. There must be something different about the way those particular dual-format books are being generated. Normally all dual-header info and boundary markers are removed from an azw3 that's created when KindleUnpack splits a dual-format mobi. The one I have still indicates (for all intents and purposes) that it's still a dual format mobi.

I'll have to do some more investigating.
DiapDealer is offline   Reply With Quote
Old 02-22-2017, 02:37 PM   #401
Nitro
Member
Nitro began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Jun 2011
Device: Sony PRS 505
Yes, azw3 file was split from dual-format mobi.

I have files from at least 2 different book stores, which behaves the same.
Nitro is offline   Reply With Quote
Old 02-22-2017, 05:17 PM   #402
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: 27,535
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
There's definitely something different about the dual-format mobis from those stores ... but I'm not sure what. The resulting azw3 files from splitting those dual formats are structurally different than ones I've previously split from kindlegen created ones. Could simply be a newer version of kindlegen/kindle previewer (I admit I haven't tried to keep up) .

Either way, I think I can work around the issue by slightly beefing up my initial "quick" dual-format test that creates the menu actions.

NOTE: this issue is plugin-related only. No errors result when checking the "Split" box on the standalone KindleUnpack tool (there is simply no separate azw3/mobi created).
DiapDealer is offline   Reply With Quote
Old 03-05-2017, 10:31 AM   #403
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: 27,535
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Released a new version (0.81.4) that I hope fixes AZW3s from being falsely reported as being "splittable" in the plugin's menus.
DiapDealer is offline   Reply With Quote
Old 07-29-2017, 01:19 PM   #404
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: 27,535
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Released a new version (0.81.5) that utilizes the latest upstream changes to the core KindleUnpack files (addresses urls to SVG images in CSS not unpacking properly).
DiapDealer is offline   Reply With Quote
Old 02-05-2018, 09:11 PM   #405
democrite
Evangelist
democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.democrite will give the Devil his due.
 
Posts: 425
Karma: 77256
Join Date: Sep 2011
Device: none
Hello,

I've been using this for a long time without issues. Got a azw3 recently that errors:

Code:
Processing ncx / toc
Traceback (most recent call last):
  File "kindleunpack.py", line 1016, in <module>
    sys.exit(main())
  File "kindleunpack.py", line 1004, in main
    unpackBook(infile, outdir, apnxfile, epubver, use_hd)
  File "kindleunpack.py", line 919, in unpackBook
    process_all_mobi_headers(files, apnxfile, sect, mhlst, K8Boundary, False, epubver, use_hd)
  File "kindleunpack.py", line 836, in process_all_mobi_headers
    processMobi8(mh, metadata, sect, files, rscnames, pagemapproc, k8resc, obfuscate_data, apnxfile, epubver)
  File "kindleunpack.py", line 522, in processMobi8
    ncx_data = ncx.parseNCX()
  File "./mobi_ncx.py", line 45, in parseNCX
    outtbl, ctoc_text = self.mi.getIndexData(self.ncxidx, "NCX")
  File "./mobi_index.py", line 38, in getIndexData
    ctocdict = self.readCTOC(cdata)
  File "./mobi_index.py", line 131, in readCTOC
    pos, ilen = getVariableWidthValue(txtdata, offset)
  File "./mobi_index.py", line 157, in getVariableWidthValue
    if ord(v) & 0x80:
TypeError: ord() expected a character, but string of length 0 found
I didn't really try to figure out the code though adding if len(v) is 0, finished = True at least made it complete though I'm not sure if there's anything missing from the output.
democrite 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] 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


All times are GMT -4. The time now is 07:31 AM.


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