View Single Post
Old 12-19-2021, 06:23 PM   #4
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Dire_Storm View Post
Is there a way to combine the chapters into a single HTML file while still being able to list each chapter in the table of contents?
Yes, just select them in the Book Browser (the left-hand column with all the files listed), then Right-Click > Merge.

If the files have some sort of categories (like Parts, Years, etc.), try to combine them into logical points. That may make more sense.

If not, then do something like:
  • Chapters0001-0010.xhtml
  • Chapters0011-0020.xhtml
  • [...]
  • Chapters1000-1010.xhtml

That would cut your files down by 10.

Side Note: Another thing to keep in mind is the content.opf + toc.ncx. When dealing with 1000+ separate files, those 2 files can grow extremely large. If they reach the tipping point of >300 KBs, this may make the ebook completely unreadable on older devices.

Quote:
Originally Posted by Dire_Storm View Post
Or is there another way to reduce the slowness of adding an HTML file?
You could swap over to Calibre's Editor. It seems to handle very large # of HTML files fine.

Besides that, you can always just work on your HTML externally, then import them into Sigil.

Or, like KevinH said, just split the thing into 2 or more volumes.

Note: I did test Add Blank HTML File in Sigil + the attached EPUB... and while there is a noticeable delay before the file appears, it's ~2 seconds.

How slow is yours going?

Quote:
Originally Posted by KevinH View Post
Forgive me but what single book needs over 1500 chapters? Perhaps you would be better served splitting this into multiple epubs (volume 1, volume 2) than trying to shoehorn so many "chapters" into one epub.
I've worked on compilations with tons of material (like 20 years of weekly newspaper articles by an author).

Although those were combined into one HTML file "per year", I could see how you could also have one "per article".

I'll attach a test EPUB.

Maybe there's something that can be done in speeding up these extreme cases, similar to when you sped up Reports + Spellcheck.

Attached File Note: All I did was take the original ebook:

https://mises.org/library/business-t...-henry-hazlitt

and ran:

Search: <h1 class="cht"
Replace: <hr class="sigil_split_marker" /><h1 class="cht"

+ Split at Markers (F6).

This split all ~1000 articles into their respective HTML files.

Last edited by Tex2002ans; 12-19-2021 at 06:33 PM.
Tex2002ans is offline   Reply With Quote