View Single Post
Old 04-02-2022, 11:40 PM   #420
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by BKh View Post
I have about 20 of these old epubs and was going to upgrade them to epub 3 just for the sake of ... well ... I don't know. Seems like a good idea since they are almost 10 years old.
Only reason I've found to do this is that it makes Apple (i)Books happier.
If you update an epub2 and replace a file, it won't update any new metadata, like TOC. So it's impossible to use epub2 for a "work in progress" or one you modify or add sections to.

Otherwise, I don't need any of the features of epub3, so conversion just makes the files harder to work with.

But if you do update to epub3, one thing you can do is use the NAV file conversion creates as the TOC page as well, delete any existing TOC page.
The default formatting is unattractive, so I paste this in the header:

Code:
<style type="text/css">
h1 {
  font-style: italic;
  text-align: center;
  font-weight: normal;
  font-size: 1.8em;
}
ol { list-style-type: none;}
li {
  font-weight: normal;
  text-align: left;
  margin-left: 0em;
  font-size: 1rem;
  text-indent: -2em;
}
a {  text-decoration: none;}
    </style>
Modify to taste.
When updating the TOC in Sigil it preserves the file header so this will be kept.

Last edited by AlanHK; 04-02-2022 at 11:50 PM.
AlanHK is offline   Reply With Quote