Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 04-06-2011, 01:32 PM   #1
jmickey
Member
jmickey doesn't litterjmickey doesn't litterjmickey doesn't litter
 
Posts: 12
Karma: 218
Join Date: Apr 2011
Device: Skytex Primer
Error expected td or th

When I have a ebook created in calbre checked by epubcheck I get the error

ERROR: Afghan Tales - James Mickey Girvan.epub/jacket.xhtml(16): element "tr" incomplete; expected element "td" or "th"

When I check the jacket.xhtml in sigil it has This field in it <tr><td></td></tr> if I remove that field and save it epub check validates the epub. But though AdobeDE can read the file ereaders cannot load the corrected epub, how do I get calibre to not stick in that blank <tr><td></tr></td> ?
I made the epub from html files.



jmickey
jmickey is offline   Reply With Quote
Old 04-06-2011, 04:36 PM   #2
jmickey
Member
jmickey doesn't litterjmickey doesn't litterjmickey doesn't litter
 
Posts: 12
Karma: 218
Join Date: Apr 2011
Device: Skytex Primer
Hi
Though I should list the code produced by calibre in the jacket.xhtml and my code that was fed into calibre.

my code which tidy passes with no errors and no warnings. I have only one html file the rest are .jpgs


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML version 1.0 "
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" version="en">
<head>
<title>Afghan Tales</title>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<meta http-equiv="content-language" content="en" />
<meta name="generator" content="SEEdit Maxi for Macintosh" />
<link rel="stylesheet" href="styles/standard.css" type="text/css" />
</head>
<body>
<table><tr><td>
<h1>Table of contents</h1>
</td></tr>
<tr><td>
<ul>
<li><h2><a href="Index.html#index3"><font size="3">Introduction</font></A></h2></li>
<li><h2><a href="Index.html#index5"><font size="3">Chapter 1 Teamwork</font></A></h2></li>
<li><h2><a href="Index.html#index13"><font size="3">Chapter 2 On Patrol</font></A></h2></li>
<li><h2><a href="Index.html#index22"><font size="3">Chapter 3 Rescue Mission</font></A></h2></li>
<li><h2><a href="Index.html#index36"><font size="3">Chapter 4 Ambushed</font></A></h2></li>
<li><h2><a href="Index.html#index52"><font size="3">Commemoration</font></A></h2></li>
<li><h2><img src="Contentpic.jpg" alt=""></img></h2></li>
</ul></td></tr>
</table>
<p><a id="index3"><img alt="index3.jpg" src="index3.jpg" /></a></p>
<p><a id="index4"><img alt="" src="index4.jpg" /></a></p>
<p><a id="index5"><img alt="" src="index5.jpg" /></a></p>
<p><img alt="" src="index6.jpg" /></p>
<p><img alt="" src="index7.jpg" /></p>
<p><img alt="" src="index8.jpg" /></p>
<p><img alt="" src="index9.jpg" /></p>
<p><img alt="" src="index10.jpg" /></p>
<p><img alt="" src="index11.jpg" /></p>
<p><img alt="" src="index12.jpg" /></p>

Calibre's jacket.xhtml only listing up to the error fields

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Afghan Tales</title>
<meta content="jacket" name="calibre-content" />
<link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css" />

<style type="text/css">
@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }
</style>
</head>

<body class="calibre">
<div class="cbjbanner">
<table class="cbjheader">
<tr class="calibre1">
<td class="cbjtitle" colspan="2"><span class="title">Afghan Tales</span></td>
</tr>

<tr class="calibre1">
<td></td>
</tr>


<tr class="calibre1">
<td class="cbjauthor" colspan="2">James Mickey Girvan</td>
</tr>

now what in my code causes calibre to put that empty <tr class="calibre1">
<td></td> </tr> in the Jacket file. That item if removed in sigil allows the epub to pass epubcheck but I find editing in sigil leaves me with a file that cannot load on ereaders. though it works in AdobeDE.
Any clues anyone?

jmickey
jmickey is offline   Reply With Quote
Old 04-06-2011, 04:43 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,620
Karma: 4998447
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
<tr class="calibre1">
<td></td>
</tr>

Is perfectly valid XHTML as far as I know. If epubcheck is complaining about it, just ignore the complaint. epubcheck is buggier than the average bug hive.
kovidgoyal is offline   Reply With Quote
Old 04-07-2011, 08:15 AM   #4
jmickey
Member
jmickey doesn't litterjmickey doesn't litterjmickey doesn't litter
 
Posts: 12
Karma: 218
Join Date: Apr 2011
Device: Skytex Primer
HI
May look good but if epubcheck won't pass it then neither will lulu. So that makes it a problem, and should be fixed iso calibre doesn't put it out. Unless something in my file is telling calibre to do it

jmickey
jmickey is offline   Reply With Quote
Old 04-07-2011, 09:01 AM   #5
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80446
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Quote:
Originally Posted by jmickey View Post
May look good but if epubcheck won't pass it then neither will lulu. So that makes it a problem, and should be fixed iso calibre doesn't put it out.
As long as what Calibre outputs is valid ePub, there's no problem. You can always use tools like Sigil if you want to fine-tune your file.
Manichean is offline   Reply With Quote
Old 04-07-2011, 09:11 AM   #6
jmickey
Member
jmickey doesn't litterjmickey doesn't litterjmickey doesn't litter
 
Posts: 12
Karma: 218
Join Date: Apr 2011
Device: Skytex Primer
HI
I find that Sigil is not a good editor. Epub files edited by Sigil are not readable on some ereaders- like the Skytex Primer for one. The skytex Primer cannot even load a file edited by Sigil. So obviously Sigil has some serious bugs in it. And if there is no problem with my source code then Calibre has a serious bug too.

jmickey
jmickey is offline   Reply With Quote
Old 04-07-2011, 09:19 AM   #7
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80446
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
If Calibre outputs what is a valid ePub file as defined in the ePub standards, then it has no bugs. If other software complains about the output, then that software is buggy. I don't think Calibre should deliberately create broken output just to please broken software.
Manichean is offline   Reply With Quote
Old 04-07-2011, 09:19 AM   #8
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,799
Karma: 12528001
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by jmickey View Post
May look good but if epubcheck won't pass it then neither will lulu. So that makes it a problem, and should be fixed iso calibre doesn't put it out. Unless something in my file is telling calibre to do it
I just looked and I don't have what you're seeing.

You can uncheck Insert metadata as first page and the book jacket won't be inserted. Or you can find \CalibreConfig\resources\jacket\template.xhtml and edit this file as needed to remove what you're seeing.

Update: I looked at a different book, what you're seeing is where the series info would go, when there is no series it is blank. I am at a loss why epubcheck flags this it is perfectly fine.

Last edited by DoctorOhh; 04-07-2011 at 09:30 AM.
DoctorOhh is offline   Reply With Quote
Old 04-07-2011, 09:47 AM   #9
jmickey
Member
jmickey doesn't litterjmickey doesn't litterjmickey doesn't litter
 
Posts: 12
Karma: 218
Join Date: Apr 2011
Device: Skytex Primer
@dwanthny
I will take a look at that.

@manichean
What you say may be true but for publication epubcheck is the took used to verify files uploaded - used by publishers. If this snippet of code is useless it shouldn't be created. But that is something I guess I can test by loading and saving in Sigil without changing anything and then trying it in the ereader. Then I'll know if Calibre and Sigil are doing the right thing and if that snippet is something needed.I'll get back to you.

jmickey
jmickey is offline   Reply With Quote
Old 04-07-2011, 10:01 AM   #10
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80446
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Quote:
Originally Posted by jmickey View Post
What you say may be true but for publication epubcheck is the took used to verify files uploaded - used by publishers.
And your concerns would be entirely legitimate if the aim of Calibre would be to produce files for publication. However, it's not- it's aimed at the end user, allowing the user to manage, and convert, his ebooks.
Manichean is offline   Reply With Quote
Old 04-07-2011, 10:42 AM   #11
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,430
Karma: 5560777
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by jmickey View Post
@manichean
What you say may be true but for publication epubcheck is the took used to verify files uploaded - used by publishers. If this snippet of code is useless it shouldn't be created. But that is something I guess I can test by loading and saving in Sigil without changing anything and then trying it in the ereader. Then I'll know if Calibre and Sigil are doing the right thing and if that snippet is something needed.I'll get back to you.

jmickey
IMHO flightcrew is fussier than epubcheck.
Both of these tools will pass pure garbage content as long as you wrap them in the proper tag
epubcheck has Known issues (incorrectly flags things as errors and ignores others).

If these companies don't know that by now and accept your book after reviewing the mis-identified errors or getting a second opinion via Flightcrew, then finding another Publisher should be at the top of your list

As for certain devices failing to read your output. That may be a Device problem., not yours
theducks is offline   Reply With Quote
Old 04-07-2011, 04:14 PM   #12
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,799
Karma: 12528001
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
I want to know why you even have the Book Jacket (Insert metadata as first page) feature enabled if your planning to publish this book.I have never seen or bought a book with this at the front. If I bought a book with this as the first page I would assume the group was less than professional.
DoctorOhh is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR: Open Quote is Expected (means what?) NewDay ePub 4 10-26-2010 10:51 AM
What did you learn from reading fiction that you hadn't expected going in? Ea Lounge 73 10-04-2010 09:48 PM
No. of visitors expected Manishsb General Discussions 5 08-05-2010 11:20 AM
Is a new Kindle expected anytime soon? ensyed Amazon Kindle 15 07-23-2010 01:49 AM
The Kindle Previewer expected soon Sheikspeare Amazon Kindle 2 07-04-2010 12:34 PM


All times are GMT -4. The time now is 02:45 PM.


MobileRead.com is a privately owned, operated and funded community.