![]() |
#1 |
Zealot
![]() 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. |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
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> |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() 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. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#5 |
Zealot
![]() 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. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Running with scissors
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#7 |
Zealot
![]() 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.
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |