10-09-2022, 10:15 PM | #1 |
Custom User Title
Posts: 8,650
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Structure detection & splitting in ebook-edit?
When converting files, the "structure detection" option will split apart long files. Is there an option like this in ebook-edit aside from doing it manually?
|
10-09-2022, 10:35 PM | #2 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You mean you want to split on file size? No there is no automated tool to do that in the editor.
Last edited by kovidgoyal; 10-10-2022 at 12:08 PM. |
Advert | |
|
10-10-2022, 05:28 AM | #3 |
Well trained by Cats
Posts: 29,817
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Way misusing
Preferences Output Options :EPUB Output: Split files larger than... 260K is the normal (for older reader devices), but you could make it smaller...I guess |
10-10-2022, 10:55 AM | #4 | |
Bibliophagist
Posts: 35,500
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
My process is to use Sigil, insert split markers at the chapter boundaries using regex to locate the boundaries and then split the file at those markers, then finish off with some manual splitting if needed. |
|
10-10-2022, 10:59 AM | #5 |
Custom User Title
Posts: 8,650
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I noticed that structure detection will split at the chapter marks as long as you have the right XPath expression.
|
Advert | |
|
10-10-2022, 11:05 AM | #6 | |
Bibliophagist
Posts: 35,500
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
That is, file 1 is chapters 1,2,3 and part of 4, file 2 is the rest of chapter 4, 5, 6 and part of 7, etc. A very annoying workflow. |
|
10-10-2022, 11:36 AM | #7 |
Custom User Title
Posts: 8,650
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
In my specific case, I have a book that the author decided to publish the book in a single HTML file even though the chapters are clearly marked. It causes ebook-viewer to freeze for a few seconds trying to open it and I don't even want to try it on my Kobo. I was hoping to fix it without doing an epub>epub conversion.
Last edited by ownedbycats; 10-10-2022 at 11:40 AM. |
10-10-2022, 01:22 PM | #8 | |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
10-10-2022, 03:21 PM | #9 | |
Addict
Posts: 387
Karma: 1638210
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Quote:
I often merge all the chapter files (yeah, thanks Gutenberg) and then use this. |
|
10-10-2022, 03:57 PM | #10 | |
Wizard
Posts: 1,104
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
I have been using the "Split file at selected location" button in the file preview screen, and sometimes that gets a bit annoying when there are 100+ chapters. I know I could reconvert and use the split option in the settings, but when the chapters and paragraphs use the same tags, I haven't figured out a way to differentiate the two. |
|
10-10-2022, 04:15 PM | #11 |
Well trained by Cats
Posts: 29,817
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
On the CODE of any HTML file
|
10-10-2022, 04:27 PM | #12 |
Wizard
Posts: 1,104
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
|
10-10-2022, 10:39 PM | #13 |
Custom User Title
Posts: 8,650
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I'll give that a try. Thank you.
|
12-19-2023, 09:39 PM | #14 |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
|
12-20-2023, 07:59 PM | #15 |
Not Quite Dead
Posts: 194
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
|
"Is there an option like this in ebook-edit"
Are you looking for new files based on html structure, like chapters? Right-click within the code of the large file and select "Split at multiple locations." Last edited by Brett Merkey; 12-20-2023 at 08:08 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is it possible to disable structure detection? | MarjaE | Conversion | 1 | 05-11-2016 01:23 PM |
Structure Detection - trying to learn | odamizu | Conversion | 4 | 09-16-2015 08:00 PM |
RTF Structure Detection? | philhxc | Conversion | 1 | 11-09-2011 02:01 AM |
Trouble w structure detection | jeff47 | Calibre | 1 | 10-13-2010 12:51 AM |
Structure detection v5.5 and v6.2 | AlexBell | Calibre | 2 | 07-29-2009 10:11 PM |