Quote:
Originally Posted by DNSB
<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
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>