View Single Post
Old 06-18-2021, 01:08 AM   #26
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 DNSB View Post
<sarcasm>What? The installer does not install the user guide and automatically open it after the install? What kind of user hostile software are you creating?</sarcasm>
What? You mean the thing you're supposed to immediately click through as fast as possible and X right out of?

Quote:
Originally Posted by hobnail View Post
If you're consistent with your chapter titles, for example, I use h2 tags for chapter titles then you can use Sigil's insert split marker (ctl+shift+return) to have as a copy of what you're going to replace/change to.


Insert > Split Marker (Ctrl+Shift+Enter) places this code within your EPUB:

Code:
<hr class="sigil_split_marker" />
then pressing Edit > Split At Markers (F6) splits the HTML files wherever that code is placed.

Or, like you mentioned, this can be done on a mass scale by using Search/Replace:

Search: <h2
Replace: <hr class="sigil_split_marker" /><h2

This looks for all "<h2" (or whatever else you use for chapter titles), then a simple F6 splits your entire book in one shot.

* * *

Example Code:

Original:

Code:
<p>Dedicated to jonesyb</p>

<h2>Chapter 1</h2>
<p>It was a dark and stormy night.</p>
<h2>Chapter 2</h2>
<p>I woke up in bed.</p>
After S&R (or manually placing splits):

Code:
<p>Dedicated to jonesyb</p>

<hr class="sigil_split_marker" /><h2>Chapter 1</h2>
<p>It was a dark and stormy night.</p>
<hr class="sigil_split_marker" /><h2>Chapter 2</h2>
<p>I woke up in bed.</p>
After F6:

Code:
<p>Dedicated to jonesyb</p>
Code:
<h2>Chapter 1</h2>
<p>It was a dark and stormy night.</p>
Code:
<h2>Chapter 2</h2>
<p>I woke up in bed.</p>

Last edited by Tex2002ans; 06-18-2021 at 01:13 AM.
Tex2002ans is offline   Reply With Quote