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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-31-2010, 04:41 PM   #1
rrosenwald
OS/2 forever
rrosenwald began at the beginning.
 
rrosenwald's Avatar
 
Posts: 12
Karma: 10
Join Date: Aug 2009
Location: Scottsdale, AZ
Device: none
Validation error

Using epubcheck 1.0.5 as provided at:

http://www.threepress.org/document/epub-validate/

I get the following error for all FileName.epub:

# ERROR: FileName.epub/titlepage.xhtml(13): bad value for attribute "preserveAspectRatio"

If I edit the line in titlepage.xhtml file which reads:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 323 500" preserveAspectRatio="none">

and remove the part that reads: viewBox="0 0 323 500" preserveAspectRatio="none" or just remove the: preserveAspectRatio="none" I am able to eliminate the error. Can anyone tell me what the effect of this is edit is?

Is there a way to stop Calibre from writing the preserveAspectRatio="none"?
rrosenwald is offline   Reply With Quote
Old 08-31-2010, 09:14 PM   #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: 26,120
Karma: 5101571
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
this is a bug in epubcheck. If you want to work around it, turn on the preserve aspect ration setting in the epub output conversion settings.
kovidgoyal is offline   Reply With Quote
Old 09-03-2010, 12:54 PM   #3
rrosenwald
OS/2 forever
rrosenwald began at the beginning.
 
rrosenwald's Avatar
 
Posts: 12
Karma: 10
Join Date: Aug 2009
Location: Scottsdale, AZ
Device: none
Thanks Kovid, you've done a great job with Calibre.

Is there any way to get Calibre to just output YYYY-MM-DD without the timestamp to avoid the erroneous error epubcheck reports:

ERROR ... .epub/content.opf(12): date value '2010-06-09 00:00:00-04:00' is not valid, YYYY[-MM[-DD]] expected
rrosenwald is offline   Reply With Quote
Old 09-03-2010, 12:55 PM   #4
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: 26,120
Karma: 5101571
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
use the epub-fix command that comes with calibre
kovidgoyal is offline   Reply With Quote
Old 09-27-2010, 08:36 PM   #5
mrbillb
Member
mrbillb began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Aug 2010
Device: iPad
epub-fix

Quote:
Originally Posted by kovidgoyal View Post
use the epub-fix command that comes with calibre
How do I use it?
mrbillb is offline   Reply With Quote
Old 09-27-2010, 10:29 PM   #6
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,861
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by mrbillb View Post
How do I use it?
Epub fix is a command line tool, read up on it here.
DoctorOhh is offline   Reply With Quote
Old 09-30-2010, 09:02 AM   #7
K-Thom
Wizard
K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.
 
Posts: 3,302
Karma: 535819
Join Date: Oct 2008
Location: Berlin, Germany
Device: yup!
Is there any possibility to use/run epub fix in the GUI and not from the command line? Which gets quite tedious if you've got to fix dozens of files ...
K-Thom is offline   Reply With Quote
Old 09-30-2010, 09:05 AM   #8
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: 80520
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Quote:
Originally Posted by K-Thom View Post
Is there any possibility to use/run epub fix in the GUI and not from the command line? Which gets quite tedious if you've got to fix dozens of files ...
You can write a shell script or a batch file, depending on your OS, to automate that. Look for documentation on using the for- loop in your OS' CLI.
Manichean is offline   Reply With Quote
Old 09-30-2010, 12:02 PM   #9
K-Thom
Wizard
K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.
 
Posts: 3,302
Karma: 535819
Join Date: Oct 2008
Location: Berlin, Germany
Device: yup!
Sorry, usually I write novels, but not batch files.
K-Thom is offline   Reply With Quote
Old 09-30-2010, 05:21 PM   #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: 80520
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Quote:
Originally Posted by K-Thom View Post
Sorry, usually I write novels, but not batch files.
Are you running windows?
Manichean is offline   Reply With Quote
Old 10-01-2010, 11:12 AM   #11
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: 80520
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
I'll post this regardless of your answer for future reference:
On windows, paste this into a new text file:
Code:
@echo off
for /r . %%f in (*.epub) do <command>
and replace <command> with whatever command you want to run. Save with extension .bat in directory containing epubs, run from command line.
This will recurse through all subdirectories and run the command on all epubs it finds. If you only want to check/fix the ones in the current directory, use this instead:
Code:
@echo off
for %%f in (*.epub) do <command>
Manichean 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
What's this validation error and how to fix it. Adjust ePub 9 06-28-2011 10:45 PM
epub validation error sassanik Sigil 19 12-08-2010 05:46 AM
Error during validation macdafydd ePub 19 12-01-2010 06:07 PM
ePub validation error sk19.gupta Introduce Yourself 6 10-19-2010 10:53 PM
Validation error new with Calibre 0.7.6 JrBashi Calibre 7 06-28-2010 09:56 PM


All times are GMT -4. The time now is 11:25 PM.


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