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 11-22-2010, 10:44 AM   #1
CGPGrey
Junior Member
CGPGrey began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2010
Device: iPad
Question EPUB & LULU -- Again with details

Hello,

I'm having trouble converting a HTML file into ePUB format for Lulu.com. I've been on the forum a bunch and found the epub-fix command line tool and have been using it on my output. Even still, lulu won't accept it.

I've been checking validation with threepress and have been able to fix a few errors by hand, but here are the final few I can't kill:

ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(8): attribute "file-as" from namespace "http://www.idpf.org/2007/opf" not allowed at this point; ignored

ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/30-days-to-a-more-organized-life.org_split_000.html(2): attribute "lang" not allowed at this point; ignored

ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/30-days-to-a-more-organized-life.org_split_001.html(2): attribute "lang" not allowed at this point; ignored

Check finished with warnings or errors!


If anyone can provide any help, it would be much appreciated.
CGPGrey is offline   Reply With Quote
Old 11-22-2010, 12:00 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: 25,260
Karma: 4961457
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
remove the file-as and lang attributes from the opf and html files respectively using calibre's tweak epub feature.
kovidgoyal is online now   Reply With Quote
Old 11-22-2010, 12:14 PM   #3
CGPGrey
Junior Member
CGPGrey began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2010
Device: iPad
Hi kovidgoyal,

First, let me say thanks for making this application and for all the support I see you giving people on the forums.

Here's what I'm trying to do:

After exploding the files I'm changing these lines in the relevant files:

<package xmlns="http://www.idpf.org/2007/opf" version="2.0" unique-identifier="uuid_id">
<metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlnspf="http://www.idpf.org/2007/opf" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata" xmlns:dc="http://purl.org/dc/elements/1.1/">

to

<package version="2.0" unique-identifier="uuid_id">
<metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata" xmlns:dc="http://purl.org/dc/elements/1.1/">

and

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

to

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


So I'm trying to get rid of the errors lulu is complaning about. Then I run your epub-fix on the file. However, this just leads to more errors than before.

ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(2): element "package" not allowed in this context
WARNING: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(2): OPF file is using OEBPS 1.2 syntax allowing backwards compatibility
ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(4): element "creator" from namespace "http://purl.org/dc/elements/1.1/" not allowed in this context
ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(6): element "language" from namespace "http://purl.org/dc/elements/1.1/" not allowed in this context
ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(8): element "title" from namespace "http://purl.org/dc/elements/1.1/" not allowed in this context
ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(8): attribute "file-as" from namespace "http://www.idpf.org/2007/opf" not allowed at this point; ignored
ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(10): element "date" from namespace "http://purl.org/dc/elements/1.1/" not allowed in this context
ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(11): element "contributor" from namespace "http://purl.org/dc/elements/1.1/" not allowed in this context
ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(11): attribute "role" not allowed at this point; ignored
ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(12): element "identifier" from namespace "http://purl.org/dc/elements/1.1/" not allowed in this context
ERROR: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(12): attribute "scheme" not allowed at this point; ignored
WARNING: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(15): use of OPS media-type 'application/xhtml+xml' in OEBPS 1.2 context; use text/x-oeb1-document instead
WARNING: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(16): use of OPS media-type 'application/xhtml+xml' in OEBPS 1.2 context; use text/x-oeb1-document instead
WARNING: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(57): use of OPS media-type 'text/css' in OEBPS 1.2 context; use text/x-oeb1-css instead
WARNING: 30 Days to a More Organized Life - C. G. P. Grey.epub/content.opf(59): use of OPS media-type 'application/xhtml+xml' in OEBPS 1.2 context; use text/x-oeb1-document instead


Am I missing something obvious?

Thanks in advance
CGPGrey is offline   Reply With Quote
Old 11-22-2010, 02:00 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: 25,260
Karma: 4961457
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Your lulu specific errors i can't help you with you will have to ask lulu about them.

In your original post you said you had three errors. At that point take your epub file put it in calibre and use the twek calibre feature to:

1) edit the opf file, removing whatever file-as attribute it is complaining about

2) edit the two html files to remove the lang attributes

do not run anything else on the epub at this point.
kovidgoyal is online now   Reply With Quote
Old 11-22-2010, 02:32 PM   #5
CGPGrey
Junior Member
CGPGrey began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2010
Device: iPad
Thanks again. I understand that you cannot help me with lulu specific problems.

I've gotten it down to just the one error which says "file-as" but I can't eliminate that last one. I've taken out all references to "file-as" in the file, but I just can't find the error.

This is the top bit of my file. Any ideas? No problem if you can't, I appreciate all your help.

<?xml version='1.0' encoding='utf-8'?>
<package xmlns="http://www.idpf.org/2007/opf" version="2.0" unique-identifier="uuid_id">
<metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlnspf="http://www.idpf.org/2007/opf" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata" xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:creator opf:role="aut">C. G. P. Grey</dc:creator>
<meta name="calibre:series_index" content="1"/>
<dc:language>en</dc:language>
<meta name="calibre:timestamp" content="2010-11-22T19:01:21.259743+00:00"/>
<dc:title>30 Days to a More Organized Life</dc:title>
<meta name="cover" content="cover_image"/>
<dc:date>2010-11-22</dc:date>
<dc:contributor opf:role="bkp">calibre (0.7.29) [http://calibre-ebook.com]</dc:contributor>
<dc:identifier id="uuid_id" opf:scheme="uuid">80ccb06e-eb84-4731-aea9-40de7c39af08</dc:identifier>
</metadata>
CGPGrey is offline   Reply With Quote
Old 11-22-2010, 03:04 PM   #6
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,260
Karma: 4961457
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
dont see anything in that OPF file. It's weird that you'd get a file-as error if you have no file-as attributes in the OPF at all.
kovidgoyal is online now   Reply With Quote
Old 11-22-2010, 03:21 PM   #7
CGPGrey
Junior Member
CGPGrey began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2010
Device: iPad
Well, thank you for your help. At least I now know I'm not missing anything obvious if you don't see it : )

Thanks again.
CGPGrey is offline   Reply With Quote
Old 11-22-2010, 03:25 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 35,953
Karma: 17041886
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
I do have a suggestion... give FlightCrew a go. It gives error messages in plainer English and once it says everyone is correct, ePubcheck also says it's fine.

http://www.mobileread.com/forums/sho...ght=flightcrew
JSWolf is offline   Reply With Quote
Old 11-22-2010, 03:43 PM   #9
CGPGrey
Junior Member
CGPGrey began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2010
Device: iPad
Thanks JSWolf, I've just run flightcrew and it give this error for line 7:

The "opf:file-as" attribute is not an allowed attribute of the <title> element.

Which is the same as above. I been messing around with this part of my epub pasted below. I've bee trying to test it out my removing a line at a time and I either get the same error or a new error saying that whatever I took out is not missing.

<?xml version='1.0' encoding='utf-8'?>
<package xmlns="http://www.idpf.org/2007/opf" version="2.0" unique-identifier="uuid_id">
<metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlnspf="http://www.idpf.org/2007/opf" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata" xmlns:dc="http://purl.org/dc/elements/1.1/">
<meta name="calibre:series_index" content="1"/>
<dc:language>en</dc:language>
<dc:title>30-days-to-a-more-organized-life.org</dc:title>
<meta name="calibre:timestamp" content="2010-11-22T20:40:04.130070+00:00"/>
<dc:creator opf:role="aut">Unknown</dc:creator>
<meta name="cover" content="cover_image"/>
<dc:date>2010-11-22T20:40:04.130091+00:00</dc:date>
<dc:contributor opf:role="bkp">calibre (0.7.29) [http://calibre-ebook.com]</dc:contributor>
<dc:identifier id="uuid_id" opf:scheme="uuid">6d4b5450-2ff2-4452-823d-6f596ee3f7c3</dc:identifier>
</metadata>
<manifest>
CGPGrey is offline   Reply With Quote
Old 11-22-2010, 03:45 PM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 35,953
Karma: 17041886
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Is this the same ePub that you posted in the ZIP file? If not, please post the entire ePub so someone can take a look.
JSWolf is offline   Reply With Quote
Old 11-22-2010, 03:48 PM   #11
CGPGrey
Junior Member
CGPGrey began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2010
Device: iPad
OK, here is the whole file.
CGPGrey is offline   Reply With Quote
Old 11-22-2010, 04:00 PM   #12
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 35,953
Karma: 17041886
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
That is the line with the error in the OPF file. This is line 7 in the OPF.

Code:
<dc:title opf:file-as="30-days-to-a-more-organized-life.org">30-days-to-a-more-organized-life.org</dc:title>

Here is the same line fixed.

Code:
<dc:title>30 Days to a More Organized Life</dc:title>
FlightCrew is now happy.

Last edited by JSWolf; 11-22-2010 at 04:02 PM.
JSWolf is offline   Reply With Quote
Old 11-22-2010, 04:25 PM   #13
CGPGrey
Junior Member
CGPGrey began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2010
Device: iPad
Hmmmm... now I'm going crazy. When I open the epub file in calibre, it does not have that file-as bit in the title, but when I save it out of calibre, flightdeck still gives me that same error.

I'm not trusting the export -- how do I crack this epub file open and look for myself on a mac?
CGPGrey is offline   Reply With Quote
Old 11-22-2010, 04:32 PM   #14
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,735
Karma: 12488297
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by CGPGrey View Post
I'm not trusting the export -- how do I crack this epub file open and look for myself on a mac?
Right click on it in calibre and select tweak epub.

Last edited by DoctorOhh; 11-22-2010 at 04:37 PM.
DoctorOhh is offline   Reply With Quote
Old 11-22-2010, 04:34 PM   #15
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by CGPGrey View Post
Hmmmm... now I'm going crazy. When I open the epub file in calibre,
How are you opening it? Calibre does not update the metadata in books stored in its own library.
Quote:
when I save it out of calibre, flightdeck still gives me that same error.
Calibre does update when an EPUB is saved out.
Quote:
I'm not trusting the export -- how do I crack this epub file open and look for myself on a mac?
rename the extension of .epub to .ziip and open with a zip program.
Starson17 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
Threepress Valid ePub won't load on Lulu best3175 ePub 9 02-19-2011 11:32 AM
Official Pocket eDGe Details & Specs borisb enTourage eDGe 9 01-16-2011 08:47 AM
Calibre epub output details and Nook squidward Calibre 6 11-24-2010 03:21 PM
Problem converting LRF -> EPUB (Error Details included) irishtexmex Calibre 0 08-04-2010 05:08 PM
Cybook & Sony... Wait! Bizarre details included! agari Which one should I buy? 17 08-11-2009 05:40 AM


All times are GMT -4. The time now is 07:28 AM.


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