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.
|