Quote:
Originally Posted by kovidgoyal
In the EPUB2 guide there must be only one guide entry of type cover that points to the actual cover image and one entry of type titlepage that points to the actual HTML file that displays that cover. Any other setup gets forced into this form by calibre's EPUB2 input processing. The viewer (and indeed all of calibre) require this for various kinds of further processing they do.
|
I think I have never seen guide item of type "titlepage". As far as I know, Calibre generates just one guide item (as can be seen e.g. in conversion from docx) . It is of type "cover", and is pointing to file (containing cover image):
Code:
<guide>
<reference type="cover" href="titlepage.xhtml" title="Cover"/>
</guide>
(Also there is nothing as type "titlepage" in EPUB2 standard. There is mentioned type "title-page" there...):
https://idpf.org/epub/20/spec/OPF_2....htm#Section2.6
In any case, Calibre _can_ successfuly process other types of guide items (other then of type "cover"): they are added as fully functional items into "Go to..." menu in Veiwer. As you can see in attached epub. Actually only guide item of type "cover" is processed in "wrong" way... Probably because of its special role in Calibre.
Just tested: When the type "cover" is simply replaced with "something else", menu is generated perfectly.

Of course this is not a good solution; readers can expect type "cover", and probably even Calibre would miss type "cover" in some situations.
Code:
<guide>
<reference type="cover-dummy" title="Obálka" href="Text/cover.xhtml"/>
<reference type="title-page" title="Titulní strana" href="Text/title-page.xhtml"/>
<reference type="text" title="Text" href="Text/chapter1.xhtml"/>
<reference type="colophon" title="Tiráž" href="Text/imprint.xhtml"/>
</guide>
One more note: Phrase "title page" (in file name "titlepage.xhtml", or in menu item name "Title page") from my opinion is in Calibre used in wrong context. Phrase "title page" is in book terminology used for different book part than "cover". (Ok, cover can be in some cases identified as title page. But typically "title page" is page inside of book, it si a part of book front matter...). Of course, name of file "titlepage.xhtml" is many years old Calibre convention, and there would not be good idea to change it. Anyway should be taken into account that "titlepage.xhtml" actually is not "title page". Its "cover"...