View Single Post
Old 02-09-2021, 08:37 AM   #16
413Michele
Enthusiast
413Michele began at the beginning.
 
Posts: 47
Karma: 10
Join Date: Jan 2021
Location: Italy
Device: Kobo Libra 2, Kindle Paperwhite (1st gen)
Quote:
Originally Posted by JSWolf View Post
You do not need #toc_1" because all it does is slow down using the ToC. With the unnecessary ID, the code has to load the chapter and then find the ID before displaying the chapter instead of just loading and displaying the chapter.
Those IDs were autogenerated during the calibre ToC generation, and correct me if I'm wrong, but I think having IDs makes the index more "resilient", right? I think the alternative are file positions, which may cause problems if the file is edited later.

Quote:
Also, it would be easier to find what's in what file if you renamed your files. So if Section0004.xhtml is chapter one, name it chapter01.xhtml.
Sadly the text was all in a single xhtml file, I'd rather it had coherent divisions, but it's not so (I then split it in 2 parts for size reasons but it doesn't matter here).
413Michele is offline   Reply With Quote