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

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 06-27-2013, 02:36 PM   #1
apeiron75
Junior Member
apeiron75 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2013
Device: Kindle Paperwhite
Splitting a Mobi file in 3 parts

Hi all

I would like to split one of the books I have in Mobi format in three different parts (ie 3 different files). Is this possible without having to convert it to something like word and then reconvert it into mobi?

I do not need any text editing, just split.

Many thanks!
apeiron75 is offline   Reply With Quote
Old 06-27-2013, 03:56 PM   #2
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,062
Karma: 40855212
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
No way that I know of. You're going to need to get it into some editable format, divide it up, and then rebuild each portion.
DiapDealer is online now   Reply With Quote
 
Enthusiast
Old 06-27-2013, 06:18 PM   #3
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,623
Karma: 5071748
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by apeiron75 View Post
Hi all

I would like to split one of the books I have in Mobi format in three different parts (ie 3 different files). Is this possible without having to convert it to something like word and then reconvert it into mobi?

I do not need any text editing, just split.

Many thanks!
You do not need to convert it to word. Kindleunpack can take it apart and produce some original opf and html files that can be used to split the parts. If there is a mobi KF8 inside then it will regenerate an ePub that can be edit in Sigil or other ePub editing tool and then you can use KindleGen to put it back together. Mobi these days can be just a wrapper for several internal formats. Kindleupack with automatically do the right thing.

Dale
DaleDe is offline   Reply With Quote
Old 06-27-2013, 08:37 PM   #4
susan_cassidy
Wizard
susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.
 
Posts: 1,886
Karma: 1698650
Join Date: Jan 2009
Device: Kindle, iPad (not used much for reading)
You may have trouble with the existing Table of Contents, though, since the chapters will no longer be in the same file.
susan_cassidy is online now   Reply With Quote
Old 06-28-2013, 10:10 AM   #5
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,623
Karma: 5071748
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by susan_cassidy View Post
You may have trouble with the existing Table of Contents, though, since the chapters will no longer be in the same file.
Sigil can easily generate a new TOC.

Dale
DaleDe is offline   Reply With Quote
Old 06-28-2013, 11:33 AM   #6
tomsem
Wizard
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: 2,422
Karma: 2519673
Join Date: Apr 2009
Location: USA
Device: iPod Touch, Xoom, Kindle PW, iPad3, Fire HD2
It would be nice to have a script to automate all of this, for either mobi or epub. Both Amazon and Google provide cloud storage for third party content but there is a 50MB limit on ebook size. I have several books that are bigger than that.
tomsem is offline   Reply With Quote
Old 06-30-2013, 06:37 AM   #7
apeiron75
Junior Member
apeiron75 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2013
Device: Kindle Paperwhite
Quote:
Originally Posted by DaleDe View Post
You do not need to convert it to word. Kindleunpack can take it apart and produce some original opf and html files that can be used to split the parts. If there is a mobi KF8 inside then it will regenerate an ePub that can be edit in Sigil or other ePub editing tool and then you can use KindleGen to put it back together. Mobi these days can be just a wrapper for several internal formats. Kindleupack with automatically do the right thing.

Dale
Dale,
many thanks for your suggestion. Kindleunpack works fine but the generated HTML file contains some extra white lines that I can't get rid of - converting it back to Mobi with Calibre using the "remove spacing between paragraph" option, will suppress the white lines created by kindleunpack as well as others that should stay.

Looks like I need to find a compromise
apeiron75 is offline   Reply With Quote
Old 06-30-2013, 08:26 AM   #8
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,062
Karma: 40855212
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Kindleunpack has never produced any extra whitespace in my experience. You're not separating the html from the css (if any css is produced from a KF8 source) are you?

Rebuilding untouched KindleUnpacked source using Kindlegen usually produces an ebook identical (or very nearly) to the original. That's the goal of KindleUnpack after all.
DiapDealer is online now   Reply With Quote
Old 06-30-2013, 09:13 AM   #9
apeiron75
Junior Member
apeiron75 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2013
Device: Kindle Paperwhite
No Css, only Html, ncx and opf files are there with an Images folder.
OK, let me tell you what I did.

1) installed kindleunpack clalibre plugin
2) unpacked and produced html file
3) viewing the HTML file in Calibre shows already extra white lines
4) I split the HTML in word, save it and convert to Mobi. White lines still there

Just tried to use kindlegen instead of calibre for conversion.. no difference

Last edited by apeiron75; 06-30-2013 at 09:48 AM.
apeiron75 is offline   Reply With Quote
Old 06-30-2013, 10:38 AM   #10
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,062
Karma: 40855212
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Most curious.

Would probably need to see the original mobi (that doesn't exhibit the whitespace issue) to see where the extra whitespace might come from (or a small mobi that exhibits the same behavior if the one you're using is too large and/or copyrighted).

You might try immediately rebuilding the html with Kindlegen (untouched by Word) to see if the unwanted whitespace is still showing up.

If I had to guess, I'd say using Word to do your splitting is where the whitespace gets introduced--regardless of what viewing the html in calibre shows (the test suggested above should confirm that). I'd recommend using Sigil or just a plain text editor of some kind to do the actual HTML editing/splitting. Nothing wrong with Word if it's all you have/know, but it's going to take liberties with the code.
DiapDealer is online now   Reply With Quote
Old 06-30-2013, 10:53 AM   #11
apeiron75
Junior Member
apeiron75 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2013
Device: Kindle Paperwhite
Quote:
Originally Posted by DiapDealer View Post
Most curious.

You might try immediately rebuilding the html with Kindlegen (untouched by Word) to see if the unwanted whitespace is still showing up.

If I had to guess, I'd say using Word to do your splitting is where the whitespace gets introduced-
Forgot to mention that i also tried that Kindleunpack->kindlegen without any intermediate editing.. same result.

Last edited by apeiron75; 06-30-2013 at 11:00 AM.
apeiron75 is offline   Reply With Quote
Old 07-02-2013, 02:39 PM   #12
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,062
Karma: 40855212
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Yes. It seems apparent (now anyway) that the code KindleUnpack extracts from a MOBI7-only ebook is really only useful for rebuilding a MOBI7-only ebook with kindlegen (if you want the output to be identical to the original). And since kindlegen creates a dual-purpose file by default, the KF8 portion of that dual-purpose file (which will be rendered by any device supporting KF8) will be wonky and will introduce the unwanted space between the paragraphs.

After creating your three new ebooks (with Kindlegen), you could use KindleUnpack to then split the MOBI from the KF8 and that MOBI-only file will look the same as the original on all devices. But if you have any hopes of creating a KF8 file (or dual MOBI/KF8 file) for your final use, I can't recommend doing so with the KindleUnpacked source of a MOBI-only ebook. If you do, it will likely only render the same as the original on a device that doesn't support the KF8 format.

I've probably only confused you more, but that's about the best description of what's going on that I can come up with.
DiapDealer is online now   Reply With Quote
Old 07-04-2013, 05:58 AM   #13
apeiron75
Junior Member
apeiron75 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2013
Device: Kindle Paperwhite
Thanks very much for your answer! I must admit I had to read it few times but it makes sense now.

However I tried to play a bit around and I came to this conclusion: the extra lines are generated by Kindleunpack, not Kindlegen. If I send the Mobi file to KindleUnpack I get an HTML file which (when opened using Chrome, or even Calibre) shows already the extra lines between paragraphs - extra lines that were NOT there in the original Mobi.

Am I adding confusion?
apeiron75 is offline   Reply With Quote
Old 07-04-2013, 08:03 AM   #14
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,062
Karma: 40855212
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
However I tried to play a bit around and I came to this conclusion: the extra lines are generated by Kindleunpack, not Kindlegen. If I send the Mobi file to KindleUnpack I get an HTML file which (when opened using Chrome, or even Calibre) shows already the extra lines between paragraphs - extra lines that were NOT there in the original Mobi.

Am I adding confusion?
Not confusion. Just a bit of wrongness. KindleUnpack is not generating any extra lines. Period. It doesn't really matter how a browser renders the resulting source, because browsers aren't used to create MOBI files; kindlegen is. The extra lines are added when the resulting source is used by kindlegen to create the KF8 portion of the hybrid MOBI/KF8 file. The MOBI-only portion of the file is, indeed, being created without "extra spacing" and looks just like the original. I've checked. Rebuild the source and use KindlePreviewer (in Kindle eInk->Kindle emulation mode) to see.
DiapDealer is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Splitting up the mobi format forum William Ockham Feedback 1 12-29-2012 01:09 PM
Generating mobi and KF8 parts of Kindle file from separate sources PeterHatch Kindle Formats 31 03-20-2012 04:33 PM
File splitting and endnotes links mtrahan ePub 11 05-01-2011 04:07 PM
K3 splitting words in Mobi RockSlice Calibre 11 12-31-2010 01:38 AM
Splitting large file sizes ... Hangman Calibre 1 04-05-2010 10:01 PM


All times are GMT -4. The time now is 08:33 PM.


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