View Single Post
Old 07-26-2023, 07:45 AM   #20
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,368
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by stumped View Post
That's it.
It's all about tricking sigil to add incremental ids to new h3 tags
I did not invent that 2014 recipe, I just used it. Doitsu was the author I think

I should also have added, that after creating all temporary h2 lines, I used calibre with structure detect to split the book into lots of html files, one per chapter.
Only then do I regenerate toc in sigil.
You can also use Sigil to split a really long file into smaller ones. Continuing with your current example:

Code:
Find: 
<p class="textbreak"><span class="dropcap"><span><img src="../images/00003.jpeg" alt="" class="calibre7"/></span></span></p>

Replace: 
<hr class="sigil_split_marker" />
<p class="textbreak"><span class="dropcap"><span><img src="../images/00003.jpeg" alt="" class="calibre7"/></span></span></p>

Select: edit, split at markers (F6)
Then continue with the steps I posted previously.
Turtle91 is offline   Reply With Quote