View Single Post
Old 07-25-2023, 01:26 AM   #5
stumped
Wizard
stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.
 
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
thanks all
after much searching, i mostly did it manually folliowng this 2014 post. use regex to get numbers from ID tags...
( i skipped trying to hide chapter numbers behind a picture and instead i replaced the pictures with numbers
[QUOTE=Doitsu;2933379]Unfortunately, Sigil only adds ids to heading tags, if there are multiple heading tags in a file.

@Keeth: You'll have to outsmart Sigil and make it add sequential ids to each heading tag. Assuming that each chapter is a separate .html file and contains only one heading tag at the beginning of the file, for example <h3>Chapter</h3> do the following:

1. Replace all <h3>Chapter</h3> with <h3>Chapter</h3><h4>Chapter</h4>.

2. Regenerate the TOC. You should end up with: <h3>Chapter</h3><h4 id="sigil_toc_id_1">Chapter</h4> for the first chapter.

3. Replace all <h3>Chapter</h3> with nothing. I.e. delete them.
stumped is offline   Reply With Quote