Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-04-2020, 11:07 AM   #1
seanos
Zealot
seanos began at the beginning.
 
seanos's Avatar
 
Posts: 102
Karma: 12
Join Date: Apr 2010
Location: Melbourne, Australia
Device: Kobo Sage, Kobo Aura H2O, LG V20
Only split large files (no other conversion)

Is it possible, using ebook-convert, to just split large html files in an epub without doing any other conversion?

I’ve had a look at the help, but since I’m not sure what it’s doing by default, it’s hard to know what options to use. It’s really important that it doesn’t touch the CSS.

Last edited by seanos; 10-04-2020 at 11:09 AM.
seanos is offline   Reply With Quote
Old 10-04-2020, 11:16 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,925
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by seanos View Post
Is it possible, using
Code:
ebook-convert
, to just split large html files in an epub without doing any other conversion?

I’ve had a look at the help, but since I’m not sure what it’s doing by default, it’s hard to know what options to use. It’s really important that it doesn’t touch the CSS.
User the Calibre Editor.
There is an icon on the bottom of the PREVIEW pane (Pages with Horizontal bar between them).
Click that, then drag the green bar to where you want the split: Click the mouse. (repeat as many times as needed) Save: exit

OR if you have a code identifiable place: Right click IN the code are of the oversize file: Split Multiple: <enter the criteria>
theducks is offline   Reply With Quote
Advert
Old 10-04-2020, 11:28 AM   #3
seanos
Zealot
seanos began at the beginning.
 
seanos's Avatar
 
Posts: 102
Karma: 12
Join Date: Apr 2010
Location: Melbourne, Australia
Device: Kobo Sage, Kobo Aura H2O, LG V20
I will have quite a few large (~2 MB) files. The first one is nearly 60,000 lines. I’m trying to avoid manually editing them and was hoping calibre might be able to do it intelligently (based on file size).

Manually doing it might involve > 200 splits and I won’t be able to tell the size.

There are no chapters in this material (apart from the already large files).

Last edited by seanos; 10-04-2020 at 11:32 AM.
seanos is offline   Reply With Quote
Old 10-04-2020, 11:44 AM   #4
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: 45,233
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No you cannot use ebook-convert to just split, it will do other processing.
kovidgoyal is offline   Reply With Quote
Old 10-04-2020, 11:52 AM   #5
seanos
Zealot
seanos began at the beginning.
 
seanos's Avatar
 
Posts: 102
Karma: 12
Join Date: Apr 2010
Location: Melbourne, Australia
Device: Kobo Sage, Kobo Aura H2O, LG V20
Thanks for the reply.

I’ll use ‘split’ on my source files then and examine the results to find a sane place to do the actual split manually, since ‘split’ will break the HTML.

Hmm...maybe I can pre-process the source files so that the only line endings are after a </div> and then ‘split -C’ won’t mangle them.
seanos is offline   Reply With Quote
Advert
Old 10-04-2020, 12:18 PM   #6
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,584
Karma: 14328510
Join Date: Nov 2019
Device: none
Sigil also has a manual split file function where you put the cursor where you want the split and press Ctl-Enter. It duplicates the head and end stuff and makes the new files correct.

You can also go through the files and add a split marker with Ctl-Shift-Enter and they'll all be split when you later press F6. The split marker is merely an hr tag with a class that sigil looks for so once you add one you can copy it and use a regular expression to automatically add them. I use that to redo books from Project Gutenberg so that the files start on a chapter (h2), first merging them together with Ctl-M then splitting them in the correct place, just before the h2 tag.

Last edited by hobnail; 10-04-2020 at 12:23 PM.
hobnail is offline   Reply With Quote
Old 10-04-2020, 09:09 PM   #7
seanos
Zealot
seanos began at the beginning.
 
seanos's Avatar
 
Posts: 102
Karma: 12
Join Date: Apr 2010
Location: Melbourne, Australia
Device: Kobo Sage, Kobo Aura H2O, LG V20
Thanks for the reply. Yes, I’m a long-time Sigil user too so I knew about that, but it’s the automation I was after.
seanos is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
AZW3 to EPUB conversion is split with one page per paragrah steinarb Conversion 6 05-14-2018 09:20 AM
Split an EPUB into more HTML files 1v4n0 Sigil 7 10-24-2015 12:57 PM
Is there a quick way to split large html files? cager Editor 4 04-08-2014 08:10 AM
fast way to delete many split files cybmole Sigil 0 01-22-2011 11:26 AM
Split up a very large ebook (6000+ pages) klark ePub 1 11-03-2010 07:57 AM


All times are GMT -4. The time now is 04:52 AM.


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