View Single Post
Old 07-26-2023, 11:07 AM   #24
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,
Quote:
Originally Posted by Karellen View Post
Yes, a single header does not need an ID, but subsequent headers in the same xhtml file will need one.

I think @stumped is under the mistaken idea that the TOC needs ID's to work, which is not the case for a single header, as far as I understand it.
Nol it's that I need sequential tocds so that I can rexex the numbers into my headers.
I see no other way to generate chapter numbers across 144 files. My example has 144 chapters, too many to number them manually
E.g. find <h2 toc_id(\d+) >placeholder
Replace <h2 > \1
stumped is offline   Reply With Quote