Answers.Body: <p>I'll disagree strongly with Sekhemty: Oxygen is a far superior tool to either Sigil or Calibre, both of which (last I used them, anyway) do all kinds of things to your files without telling you about them. Oxygen is incredibly powerful, and I'd use it in a heartbeat if it wasn't so expensive.</p>
  
  <p>To post the code, try just pasting it into the text box you're typing in, then select it all and click the button above that looks like {}. That should enable you do paste in code, like this: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"&gt;
  &lt;head&gt;
  &lt;title&gt;4_kitchen.xhtml&lt;/title&gt;
  &lt;link href="template.css" rel="stylesheet" type="text/css" /&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>Hope that helps!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-05-30T00:33:07.927Z
Answers.Text: Long time no read Stackexchange. I went through another round of cover angst. Fixed the Kobo problem by downsizing the cover image slightly. However, the code I was using was still not accepted by Oxygen. Later, another indie project, same cover code, will not display on author's iPad. I junked the code using SVG and typed in the code from Elizabeth Castro's epub book. Oxygen likes, validator likes, displays, waiting to hear from author.
  
  Nice to hear that someone else appreciates Oxygen. I do want to see all the code.
Answers.UserDisplayName: Zora
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-01-31T22:48:07.197Z
Answers.LastActivityDate: 2014-01-31T22:48:07.197Z
Answers.UserDisplayName: Tom
Answers.Body: <p>Use a dedicated epub editor instead of a generic xml one, you will have you work greatly improved with a lot of specific optimizations for ebooks.</p>
  
  <p>With Sigil and the Calibre internal editor I've never had this kind of problem, and I use a Kobo ereader regularly.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-01-29T00:36:27.637Z
Answers.Text: I will force myself to try Sigil again. I thought it wrote ugly code. Plus, I like my own standard .css file (tweaked as necessary).
Answers.UserDisplayName: Zora
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-01-28T14:45:51.437Z
Answers.LastActivityDate: 2014-01-28T14:45:51.437Z
Answers.UserDisplayName: Sekhemty
Answers.Body: <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
  &lt;svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" etc etc&gt;
  </code></pre>
  
  <p>This works in Kobo, make sure the two declarations come before anything, put width, height etc after. Kobo wants the svg declaration first, drop the xmlns="http://www.w3.org/1999/xhtml" you do not need it, but the other two you do need. I struggled with this for some many weeks until I stumbled on the solution.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-02-02T16:58:39.953Z
Answers.LastActivityDate: 2014-02-02T17:16:28.850Z
Answers.LastEditDate: 2014-02-02T17:16:28.850Z
Answers.UserDisplayName: user543
Body: <p>I formatted an epub for an indie author. The author tells me that the cover displays properly on the Kindle and the Nook; I checked it in ADE and Calibre. It passed the IDPF epub validator.  However, it is not displaying properly in the Kobo app on the author's iPad. There is a blank page after the cover. I consulted a colleague, who checked some of her covers in the Kobo app. Two covers of the same size, with the same svg coding—one had the blank page and one didn't. </p>
  
  <p>My colleague suspects that the problem covers are being displayed on two pages, with a hairline of color on the top of the blank page. Is the app setting margins that bump the cover down? She tried inserting code to set margins to 0 and that didn't work. </p>
  
  <p>Does anyone have any ideas as to the source of the problem and how to fix it?</p>
  
  <hr>
  
  <p>I should perhaps add that I work in Oxygen XML editor, which does not like the code for the cover page. It flags it as invalid. All the other files are fine. </p>
  
  <p>However the cover page passes the IDPF validator and displays properly (in most cases :) ). </p>
  
  <p>I tried posting my cover page code here, but it did not display; I could not figure out how to escape it. If anyone can tell me how to escape the code, I can post it and y'all can pick it apart. (Yeah, I'm a duffer coder; it's been a long time since I took programming classes.) </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-01-28T11:23:02.903Z
Comments.Text: What is the exact XML error you get?
Comments.UserDisplayName: mmmmmm
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-01-29T00:35:02.600Z
Comments.Text: Element type svg must be declared. I do have a declaration, svg xmlns="http://www.w3.org/2000/svg", in the body, but perhaps that is the wrong code? or it is in the wrong place?
Comments.UserDisplayName: Zora
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-01-29T10:23:38.900Z
Comments.Text: We need to see the exact code
Comments.UserDisplayName: mmmmmm
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-02-01T20:55:47.193Z
Comments.Text: What do I do to escape the code? I tried slashes, but that didn't work.
Comments.UserDisplayName: Zora
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-02-01T20:58:00.900Z
Comments.Text: I can see no attempt at showing Xml here - either indent for 4 characters, enclose in `  or hit the code button (the third one)in the editor
Comments.UserDisplayName: mmmmmm
Tags: <epub><kobo><html><cover>
Title: Epub cover does not display properly in Kobo app
UserDisplayName: Zora
ThreadText: # Epub cover does not display properly in Kobo app
  
  (Asked by: username_0 on 2014-01-28)
  
  I formatted an epub for an indie author. The author tells me that the cover displays properly on the Kindle and the Nook; I checked it in ADE and Calibre. It passed the IDPF epub validator. However, it is not displaying properly in the Kobo app on the author's iPad. There is a blank page after the cover. I consulted a colleague, who checked some of her covers in the Kobo app. Two covers of the same size, with the same svg coding—one had the blank page and one didn't.
  
  My colleague suspects that the problem covers are being displayed on two pages, with a hairline of color on the top of the blank page. Is the app setting margins that bump the cover down? She tried inserting code to set margins to 0 and that didn't work.
  
  Does anyone have any ideas as to the source of the problem and how to fix it?
  
  ---
  
  I should perhaps add that I work in Oxygen XML editor, which does not like the code for the cover page. It flags it as invalid. All the other files are fine.
  
  However the cover page passes the IDPF validator and displays properly (in most cases :) ).
  
  I tried posting my cover page code here, but it did not display; I could not figure out how to escape it. If anyone can tell me how to escape the code, I can post it and y'all can pick it apart. (Yeah, I'm a duffer coder; it's been a long time since I took programming classes.)
  
  **Tags:** epub, kobo, html, cover
  
  > **Comments:**
  > **username_1**: What is the exact XML error you get?  
  > **username_0**: Element type svg must be declared. I do have a declaration, svg xmlns="http://www.w3.org/2000/svg", in the body, but perhaps that is the wrong code? or it is in the wrong place?  
  > **username_1**: We need to see the exact code  
  > **username_0**: What do I do to escape the code? I tried slashes, but that didn't work.  
  > **username_1**: I can see no attempt at showing Xml here - either indent for 4 characters, enclose in `  or hit the code button (the third one)in the editor  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2014-01-31. Score: 1
  
  I'll disagree strongly with username_3: Oxygen is a far superior tool to either Sigil or Calibre, both of which (last I used them, anyway) do all kinds of things to your files without telling you about them. Oxygen is incredibly powerful, and I'd use it in a heartbeat if it wasn't so expensive.
  To post the code, try just pasting it into the text box you're typing in, then select it all and click the button above that looks like {}. That should enable you do paste in code, like this: 
  
  
  
  4_kitchen.xhtml
  
  
  
  Hope that helps!
  
  > **Comments:**
  > **username_0**: Long time no read Stackexchange. I went through another round of cover angst. Fixed the Kobo problem by downsizing the cover image slightly. However, the code I was using was still not accepted by Oxygen. Later, another indie project, same cover code, will not display on author's iPad. I junked the code using SVG and typed in the code from Elizabeth Castro's epub book. Oxygen likes, validator likes, displays, waiting to hear from author.  Nice to hear that someone else appreciates Oxygen. I do want to see all the code.  
  
  ---
  
  ### Answer by username_3 on 2014-01-28. Score: 1
  
  Use a dedicated epub editor instead of a generic xml one, you will have you work greatly improved with a lot of specific optimizations for ebooks.
  
  With Sigil and the Calibre internal editor I've never had this kind of problem, and I use a Kobo ereader regularly.
  
  > **Comments:**
  > **username_0**: I will force myself to try Sigil again. I thought it wrote ugly code. Plus, I like my own standard .css file (tweaked as necessary).  
  
  ---
  
  ### Answer by username_4 on 2014-02-02. Score: 1
  
  This works in Kobo, make sure the two declarations come before anything, put width, height etc after. Kobo wants the svg declaration first, drop the xmlns="http://www.w3.org/1999/xhtml" you do not need it, but the other two you do need. I struggled with this for some many weeks until I stumbled on the solution.
  
  
  ---
  
  