06-11-2011, 04:54 PM | #1 |
Banned
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 |
06-11-2011, 05:01 PM | #2 |
creator of calibre
Posts: 43,871
Karma: 22666666
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.
|
Advert | |
|
06-11-2011, 06:48 PM | #3 |
Banned
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).
|
06-11-2011, 11:02 PM | #4 |
Wizard
Posts: 4,552
Karma: 950151
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.
|
06-12-2011, 04:57 AM | #5 | |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
|
|
Advert | |
|
06-12-2011, 06:41 AM | #6 | |
Guru
Posts: 970
Karma: 4999999
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-505, PRS-T2
|
Quote:
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. |
|
06-12-2011, 08:33 AM | #7 | |
Wizard
Posts: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
Quote:
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. |
|
06-12-2011, 11:32 AM | #8 | |
Grand Sorcerer
Posts: 5,886
Karma: 464403178
Join Date: Feb 2010
Location: 33.9388° N, 117.2716° W
Device: Kindles K-2, K-KB, PW 1 & 2, Voyage, Fire 2, 5 & HD 8, Surface 3, iPad
|
thank you
Quote:
|
|
06-12-2011, 02:08 PM | #9 |
Banned
Posts: 242
Karma: 51054
Join Date: Jun 2011
Location: Belleville, IL
Device: Kindle-3
|
Great answers one and all!
|
|
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 |