View Single Post
Old 09-14-2019, 10:46 PM   #113
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Calenorn View Post
Thank you, sir. So I guess "Generate ToC from files" would be the best option?

I will give that a try.
Firstly, the changes in the firmware mean that there are less issues with kepubs that do not have a one-to-one relationship between the ToC and the internal files. In fact, I'm not sure if there are any problems now. If I can find a list of them, I will do some testing.

I'll at least partly disagree with Jon on this. Using "Generate ToC from files" should work to solve the issue. But, it uses the first text in the file for the heading, or the file name if there isn't any, so it might not produce what you want. But, it is a starting point that can be edited.

Personally, I use "Generate ToC from major headings". This generates the ToC from h1, h2 and h3 tags in the book. Then I look and see what is missing. I will sometimes use the ToC editor to add an extra entry, but, I usually add the heading to the file. If there isn't a natural heading in the file, I'll add it with a class that doesn't display the text or take space. I will also do this for some books that use images or other styles for chapter headings that the ToC generation options do not work with. That allows me to regenerate the ToC at any time without losing entries.

And Jon, before you get on your hobby-horse about wasted space and useless files, I completely and utterly disagree with your campaign to make all books look the same, remove all except absolutely necessary whitespace and remove extras that the author or publisher added. My cleanup is about making sure I can read the book. My suggestions are to help people achieve the results that they desire.
davidfor is offline   Reply With Quote