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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-11-2011, 04:54 PM   #1
Ransom
Banned
Ransom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensions
 
Posts: 242
Karma: 51054
Join Date: Jun 2011
Location: Belleville, IL
Device: Kindle-3
How To Stop It From Splitting HTML Files?

Hello,

I use a combination of programs (like most folks I guess) to do my formatting, but I've noticed that I tend to loose my chapter links after outputting an epub file with Calibre. What I do is to usually start out in html and then use Sigil for making the initial epub from that. Then I'll bring the epub into Calibre to resave it as epub again while using the "remove spacing between paragraphs" function to get my single spaced lines with proper indents. This works fine except that the epub that Calibre outputs splits the html files into chucks, and in doing so, the chapter links will only work up till the first page split. My only solution so far has been to bring the contents of the zip file into Sigil once more, copy the code from any pages AFTER the first page split, and paste them back to the first page so that it's all one long html page again, and resave it once more. This works fine, but it's a lot of steps.

I'm new to this stuff, and I realize there must be a better way. I was hoping there was a command I was missing in Calibre that would stop it from splitting the file up while exporting as epub. Short of that, I'm sure there must be some way to format the indents properly within Sigil, possibly with CSS? I know some old-time html but never really learned much about style sheets.

Any help would be appreciated.

R
Ransom is offline   Reply With Quote
Old 06-11-2011, 05:01 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,391
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can control splittin via options in the EPUB Output section of the conversion dialog. Though when calibre splits files it automatically adjusts links, so I doubt that is your problem.
kovidgoyal is online now   Reply With Quote
 
Enthusiast
Old 06-11-2011, 06:48 PM   #3
Ransom
Banned
Ransom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensions
 
Posts: 242
Karma: 51054
Join Date: Jun 2011
Location: Belleville, IL
Device: Kindle-3
Thanks for replying. I can see where it says: "Split files larger than:", but while I can select how big the file is before splitting, I see no option not to split the file at all. I guess I can set it to some massive size though. I'll see how that works. I really don't think there's any other problem. I've looked over the codes in the resulting html files, and everything seems to be fine--unless it's something being done in the other files within the zip folder (of which I know very little).
Ransom is offline   Reply With Quote
Old 06-11-2011, 11:02 PM   #4
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,022
Karma: 777817
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Note that most readers require the (X)HTML to be split inside the ebook file to allow them to handle it without running out of RAM trying to load it. That is why Calibre by default has a split maximum of about 260KB as many readers start chocking when you get above 300KB.
itimpi is offline   Reply With Quote
Old 06-12-2011, 04:57 AM   #5
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 62,564
Karma: 40125235
Join Date: Nov 2006
Location: UK
Device: PW2, iPad Retina Mini, iPhone 4, MS Surface Pro, Onyx T68, N7,
Quote:
Originally Posted by itimpi View Post
Note that most readers require the (X)HTML to be split inside the ebook file to allow them to handle it without running out of RAM trying to load it. That is why Calibre by default has a split maximum of about 260KB as many readers start chocking when you get above 300KB.
No, not "most"; only those running older versions of Adobe's software - primarily the older Sony Readers. More modern versions of the Adobe software don't have this issue, and nor of course do other file formats such as Mobipocket.
HarryT is online now   Reply With Quote
Old 06-12-2011, 06:41 AM   #6
Pablo
Guru
Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.Pablo ought to be getting tired of karma fortunes by now.
 
Pablo's Avatar
 
Posts: 722
Karma: 2541163
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-505, PRS-T2
Quote:
Originally Posted by Ransom View Post
Short of that, I'm sure there must be some way to format the indents properly within Sigil, possibly with CSS? I know some old-time html but never really learned much about style sheets.
If you already use Sigil, you don't need (in fact, you should avoid), further processing with calibre.
What you want is very easily achieved within Sigil by properly coding your CSS. I suggest you have a look at my ePub tutorial (see my signature), which covers HTML, CSS and Sigil.

Hope it helps.
Pablo is offline   Reply With Quote
Old 06-12-2011, 08:33 AM   #7
dwig
Guru
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 951
Karma: 1351860
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Kindle 3/WiFi Retired:Clie - UX50, T415, ...
Quote:
Originally Posted by Ransom View Post
...My only solution so far has been to bring the contents of the zip file into Sigil once more, copy the code from any pages AFTER the first page split, and paste them back to the first page so that it's all one long html page again, ...
One of the horrid things about Sigil is that some of its more useful functionality is rather hidden by the UI design. There is one such "hidden" function that makes this problem much easier to fix.

To merge/concatenate two xhtml files in Sigil you simply right click (Windows, I presume its CTRL-click on Mac??) on the second file in the "Book View" pane and select "Merge with previous" from the resulting menu.

I use this frequently with machine converted ePubs that are split somewhat haphazardly. I generally split the files again at appropriate breaks in the text (e.g. chapters, ...). Since Sigil's UI slows down noticably with larger files, particularily switching from code to preview mode after a CSS edit, I generally start by splitting the first segment and only do the "merge with previous" when I get to the end of that segment and find that part of the chapter spans to the next xhtml file. I then continue splitting that combined file.

Last edited by dwig; 06-12-2011 at 08:37 AM.
dwig is offline   Reply With Quote
Old 06-12-2011, 11:32 AM   #8
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 3,632
Karma: 18305540
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindle 2, Kindle KB, Kindle PW 1 & 2, Kindle Fire 2nd Gen
Cool thank you

Quote:
Originally Posted by dwig View Post
One of the horrid things about Sigil is that some of its more useful functionality is rather hidden by the UI design. There is one such "hidden" function that makes this problem much easier to fix.

To merge/concatenate two xhtml files in Sigil you simply right click (Windows, I presume its CTRL-click on Mac??) on the second file in the "Book View" pane and select "Merge with previous" from the resulting menu.

I use this frequently with machine converted ePubs that are split somewhat haphazardly. I generally split the files again at appropriate breaks in the text (e.g. chapters, ...). Since Sigil's UI slows down noticably with larger files, particularily switching from code to preview mode after a CSS edit, I generally start by splitting the first segment and only do the "merge with previous" when I get to the end of that segment and find that part of the chapter spans to the next xhtml file. I then continue splitting that combined file.
great tip, thanks.
alansplace is offline   Reply With Quote
Old 06-12-2011, 02:08 PM   #9
Ransom
Banned
Ransom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensionsRansom can understand the language of future parallel dimensions
 
Posts: 242
Karma: 51054
Join Date: Jun 2011
Location: Belleville, IL
Device: Kindle-3
Great answers one and all!
Ransom is offline   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 .prc (and .mobi files) maddz Other formats 2 12-12-2010 06:02 PM
Does splitting EPUB among more HTML files improve Performance? purcelljf ePub 2 10-01-2010 01:15 AM
Access to local HTML files and content, HTML ebooks, annotation on HTML ebooks leo315 enTourage Archive 2 05-10-2010 02:40 PM
Splitting the Bible into Multiple Files SciFiGal777 Ectaco jetBook 3 03-27-2010 09:35 PM
Splitting files... or something? *Angie* Calibre 4 09-14-2009 07:42 PM


All times are GMT -4. The time now is 05:24 AM.


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