Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-27-2011, 09:08 AM   #1
Brianigoe
Junior Member
Brianigoe began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2011
Location: Hereford, UK
Device: None
Question Validation

I'm new to conversion and am trying to convert my books into Epub. Am using Calibre to do the job, thought I was doing fine as the result seemed legible to me, ran a Validation check using the facility in Sigil, and found a host of problems. May of them read "attribute 'clear' is not declared for element 'br'", some read "hspace" instead of "Clear", one reads "value 'Picture 2' is invalid NCName" and one "The <language> element is missing.". I have absolutely no idea what any of that means. Can anyone tell me if it's fixable, or should I give up and pay someone like Lulu to do it?
Brianigoe is offline   Reply With Quote
Old 01-27-2011, 10:38 AM   #2
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: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to post in the epub forum to find out how to create valid epub files. calibre will only produce valid output if you give it valid input
kovidgoyal is offline   Reply With Quote
Old 01-27-2011, 10:38 AM   #3
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Those are all fixable, but if you don't understand html it's not trivial to fix them.

In many cases Sigil will let you double click on the error in question and it will take you to the source of the error so you can fix it. The 'clear' example is most likely a line in your css that says 'clear' - you can simply delete the line and it will get rid of the error, but it may change your formatting in some areas of the book, you'd need to review it. Similar for hspace.

You might have more luck on the Sigil or epub forum for individual errors - Calibre won't be able to fix these automatically generally speaking, though you could try to do an epub to epub conversion to see if it could eliminate some of them.
ldolse is offline   Reply With Quote
Old 01-27-2011, 11:10 AM   #4
theducks
Well trained by Cats
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: 29,782
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by ldolse View Post
Those are all fixable, but if you don't understand html it's not trivial to fix them.

In many cases Sigil will let you double click on the error in question and it will take you to the source of the error so you can fix it. The 'clear' example is most likely a line in your css that says 'clear' - you can simply delete the line and it will get rid of the error, but it may change your formatting in some areas of the book, you'd need to review it. Similar for hspace.

You might have more luck on the Sigil or epub forum for individual errors - Calibre won't be able to fix these automatically generally speaking, though you could try to do an epub to epub conversion to see if it could eliminate some of them.
I have see it in the body(file): The line reads <br clear="all" />
I simply replace that with a <br /> to make FC happy
clear="all" is valid HTML4.01 , but I have no idea about a valid EPUB?
theducks is online now   Reply With Quote
Old 01-28-2011, 02:17 AM   #5
Brianigoe
Junior Member
Brianigoe began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2011
Location: Hereford, UK
Device: None
I'm getting there, which would have been impossible without all the help from this forum. VERY many thanks indeed.
Brianigoe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation issues Alda Sigil 18 01-30-2011 01:42 PM
Error during validation macdafydd ePub 19 12-01-2010 06:07 PM
Validation tools LGN Sigil 9 11-20-2010 01:40 AM
Validation error rrosenwald Calibre 10 10-01-2010 11:12 AM
Validation Errors luthar28 ePub 13 08-10-2010 12:24 PM


All times are GMT -4. The time now is 03:31 PM.


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