View Single Post
Old 02-25-2013, 10:01 AM   #4
mtrahan
Colonel Mustard
mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.mtrahan is no ebook tyro.
 
mtrahan's Avatar
 
Posts: 90
Karma: 1426
Join Date: Feb 2010
Location: Montreal
Device: iPhone 6, Kindle Paperwhite 2, iPad 2
My first post wasn't clear: the cover image appears inside the book. My problem is in the library: there is no cover generated, just the blank generic cover. I'm testing this on Kobo app on iPad and also on Kobo Vox. Someone told me my file does the same on a Kobo eInk reader.

I can indeed get the cover generated when using SVG to display it in the xhtml file. I just thought it would be safer on most devices to use just plain (x)html to display it. Am I wrong thinking that?

But most of all, my problem is that I'm really puzzled with this one. I just can't understand why it doesn't work. For example, I tested another book I did, cover displayed in the same way, it works on Kobo: so I just copy-paste the cover.xhtml page from it and bring it in this book. I double-check the semantics, save, transfer it in Kobo apps: it doesn't work! The exact same code I'm using in the previous book doesn't work here for a reason I can't find and it is a complete mystery to me.

I will display the cover using SVG for now, but still, I would really like to understand what is going on here.

Oh and deleting all the margin-stuff in the cover.xhtml file doesn't do anything, dgatwood. I pretty much removed everything—see:

Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Couverture</title>
</head>


<body>
<p><img alt="Cover" src="../Images/cover.jpg" /></p>
</body>
</html>
And it still doesn't work!

Oh well.

Thanks a lot for your help, guys. Much appreciated.
mtrahan is offline   Reply With Quote