View Single Post
Old 07-25-2023, 03:29 AM   #8
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,636
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
I don't know what post from 2014 you are referring to, so I have no chance of finding it.

I thought @BeckyEbook gave you the solution to hide chapter titles. You don't need to hide it behind an image, it just remains invisible. The title="" makes the chapter number available to the TOC generator, but the empty value between the opening and closing h2 tags means nothing is displayed.

<h2 title="Chapter 1"></h2>

FWIW, when I come across a book with missing chapter numbers I add them using...

Find: <body>
Replace: <body>\n\n <h2>mm</h2>

The above adds the header tags. Of course you need to be careful that you select the correct xhtml pages.

Next I run a Regex-Function (in Calibre) to replace the mm with incrementing numbers.
Karellen is online now   Reply With Quote