![]() |
#1 |
Connoisseur
![]() Posts: 59
Karma: 10
Join Date: Mar 2019
Device: Kindle 3 Paperwhite
|
giude item "cover" displayed as "Title page"
Menu "Go to..." of ebook viewer displays guide item of type "cover" as "Title page". Even though guide item declares its own name (using title attribute). Moreover displayed name "Title page" is not factually correct (because cover != title page).
Guide section in toc.opf: Code:
<?xml version="1.0" encoding="utf-8"?> <package {...}> <metadata {...}>{...}</metadata> <manifest>{...}</manifest> <spine toc="ncx">{...}</spine> <guide> <reference type="cover" 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> </package> ![]() Guide items of type "title-page", "text" and "colophon" are displayed (as expected) under their names, as declared in corresponding title attributes ("Titulní strana", "Text", "Tiráž"). Guide item of type "cover" is displayed as "Title page" (expected name: "Obálka"). And, which probably is not intentional either, as last in list. (Expected order would be either order of items in guide section, or order of target positions in document reading order definition...) Calibre 7.7 (just for info, behaviour is not specific for this Calibre version) epub attached Last edited by quinta@ebf.cz; 03-17-2024 at 02:28 PM. |
![]() |
![]() |
![]() |
#2 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,862
Karma: 153006036
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
One item is how did you generate a toc.ncx with every src changed to scr for all the pagelist entries?
Then there are the two pairs of entries pointing to the same target. Again, this is not valid. Code:
<navPoint id="navPoint1" playOrder="1"> <navLabel><text>Báj</text></navLabel> <content src="Text/cover.xhtml"/> <navPoint id="navPoint2" playOrder="2"> <navLabel><text>obálka</text></navLabel> <content src="Text/cover.xhtml"/> </navPoint> Code:
<navPoint id="navPoint33" playOrder="33"> <navLabel><text>Báj</text></navLabel> <content src="Text/afterword.xhtml"/> <navPoint id="navPoint34" playOrder="34"> <navLabel><text>doslov (Jaroslav Putík)</text></navLabel> <content src="Text/afterword.xhtml"/> </navPoint> |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,262
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
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.
|
![]() |
![]() |
![]() |
#4 | ||
Connoisseur
![]() Posts: 59
Karma: 10
Join Date: Mar 2019
Device: Kindle 3 Paperwhite
|
Quote:
![]() Anyway, removing pageList section from ncx did not affect guide "cover" issue. Quote:
Anyway, removing "duplicate src" navPoints from navMap did not affect guide "cover" issue. Thank you very much for suggestions. |
||
![]() |
![]() |
![]() |
#5 | |
Connoisseur
![]() Posts: 59
Karma: 10
Join Date: Mar 2019
Device: Kindle 3 Paperwhite
|
Quote:
Code:
<guide> <reference type="cover" href="titlepage.xhtml" title="Cover"/> </guide> 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. ![]() 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> |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,262
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
*If* you use titlepage it must point to the cover HTML. If you use something else feel free to use whatever. And covers in the calibre viewer are always at the start so there is no use for a cover item in go to
|
![]() |
![]() |
![]() |
#7 |
Connoisseur
![]() Posts: 59
Karma: 10
Join Date: Mar 2019
Device: Kindle 3 Paperwhite
|
|
![]() |
![]() |
![]() |
#8 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,262
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#9 | |
Connoisseur
![]() Posts: 59
Karma: 10
Join Date: Mar 2019
Device: Kindle 3 Paperwhite
|
Still confused. Wasn't the word "titlepage" typing error? Didn't you mean
Quote:
Code:
<guide> <reference type="cover" href="titlepage.xhtml" title="Cover"/> </guide> |
|
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,262
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
cover refers to the actual IMAGE. titlepage refers to the HTML file that displays the image.
|
![]() |
![]() |
![]() |
#11 | ||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 984
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
Quote:
According to EPUB2 specification, the Guide section says that: Code:
Each reference must have an href attribute referring to an OPS Content Document included in the manifest, and which may include a fragment identifier Code:
OPS CONTENT DOCUMENT: An XHTML, DTBook, or Out-Of-Line XML Island that conforms to this specification that may legally appear in an OPF Package Document spine element. Code:
<meta name="cover" content="cover_image_file_id"/> Code:
cover: the book cover(s), jacket information, etc. title-page: page with possibly title, author, publisher, and other metadata The thing is calibre treats "title-page"/"titlepage" as equivalent to "cover". This happens not only in the Guide section, but also when adding a cover page using the Editor, Polish or Conversion. |
||
![]() |
![]() |
![]() |
#12 |
Connoisseur
![]() Posts: 59
Karma: 10
Join Date: Mar 2019
Device: Kindle 3 Paperwhite
|
I am browsing available (Calibre related) epub files. And actually cannot find any guide item "titlepage"... But Calibre surely have to be related into it somehow: simply because guide item "titlepage" do not generate "Go to..." menu item (unlike any other guide item type).
On the other hand, what I can see everywhere is guide item "cover", but pointing on html (not image)...: Code:
<guide> <reference type="cover" href="titlepage.xhtml" title="Cover"/> </guide> I would sware I before met information that guide item "cover" can be used to identify cover image file (besides of second method via manifest/meta[@name="cover"] etc.)... But now, I can't find such info again. Just examples of cover item pointing to html file...: https://epubsecrets.com/where-do-you...e-opf-file.php https://wiki.mobileread.com/wiki/Ebook_Covers |
![]() |
![]() |
![]() |
#13 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,862
Karma: 153006036
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Unless you want to try placing the cover image file in the guide's loi item (list of illustrations), there is no way to point a guide item to the cover image. cover points to the xhtml file that displays the cover image which is normally cover.xhtml and can also point to a jacket file, etc. but again all xhtml files. The title-page item points to an xhtml file with possibly title, author, publisher, etc. other metadata.
Of course, the guide is deprecated in ePub3 where you use the landmark items in the xhtml navigation documents. |
![]() |
![]() |
![]() |
#14 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 984
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 | ||
Connoisseur
![]() Posts: 59
Karma: 10
Join Date: Mar 2019
Device: Kindle 3 Paperwhite
|
Term "titlepage" in Calibre manual:
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Use "short" instead of "full" title for title sort & renaming? | wolpi | Library Management | 2 | 08-04-2016 05:25 PM |
A warning for Linux users: slow "Add Books", "Unknown" title and Author | rolgiati | Library Management | 8 | 07-24-2013 04:36 PM |
Title page does not "translate" as TOC item | Caleń0 | Sigil | 19 | 10-19-2012 11:42 AM |
Title page does not "translate" as TOC item | Caleń0 | Conversion | 3 | 10-18-2012 08:11 PM |