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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-01-2011, 02:17 PM   #1
sparkletown
Member
sparkletown began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Mar 2011
Device: none
How do I fix my epub file to upload on lulu?

Hello

I am having problems, just like some others I have seen on here, with uploading my epub file to lulu.

My process has been - word pdf - convert in Calibre - edit, add pics and toc in Sigil and verified on threepress.

Then I've gone back a few times into Sigil to correct my mistakes as indicated by threepress.

Today, threepress say my file is acceptable - there are no errors - horrah!

BUT: lulu are still not accepting the file due to 'permission errors'.

Any pointers for what I can do now?

Really want to get my ebook up and start promoting it!

Many 's
sparkletown is offline   Reply With Quote
Old 03-01-2011, 03:51 PM   #2
sparkletown
Member
sparkletown began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Mar 2011
Device: none
I have some clearer information, sent back from the guy at lulu - great - now I can be more specific.

Here are the basic errors:

ERROR: Unmanifested file: META-INF/calibre_bookmarks.txt

ERROR: assertion failed: different playOrder values for navPoint/navTarget/pageTarget
that refer to same target in OEBPS/toc.ncx on line 33

ERROR: could not parse OEBPS/Text/Section0002.xhtml: duplicate id: heading_id_5

ERROR: 'heading_id_6': fragment identifier is not defined in 'OEBPS/Text/Section0002.xhtml' in OEBPS/toc.ncx on line 55

ERROR: Invalid file permissions: mimetype
ERROR: Invalid file permissions: META-INF/container.xml
ERROR: Invalid file permissions: OEBPS/content.opf
ERROR: Invalid file permissions: OEBPS/toc.ncx
ERROR: Invalid file permissions: META-INF/calibre_bookmarks.txt

Its helpful being told what line the error is on and I presume the heading are to do with the TOC, but aside from that I cannot understand each error and moreover, how to fix them.

Is there some kind of document or manual online that outlines each error and how to fix? That would be great.

Help VERY much appreciated.
sparkletown is offline   Reply With Quote
Old 03-01-2011, 08:14 PM   #3
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,691
Karma: 54369090
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 sparkletown View Post
I have some clearer information, sent back from the guy at lulu - great - now I can be more specific.

Here are the basic errors:

ERROR: Unmanifested file: META-INF/calibre_bookmarks.txt

ERROR: assertion failed: different playOrder values for navPoint/navTarget/pageTarget
that refer to same target in OEBPS/toc.ncx on line 33

ERROR: could not parse OEBPS/Text/Section0002.xhtml: duplicate id: heading_id_5

ERROR: 'heading_id_6': fragment identifier is not defined in 'OEBPS/Text/Section0002.xhtml' in OEBPS/toc.ncx on line 55

ERROR: Invalid file permissions: mimetype
ERROR: Invalid file permissions: META-INF/container.xml
ERROR: Invalid file permissions: OEBPS/content.opf
ERROR: Invalid file permissions: OEBPS/toc.ncx
ERROR: Invalid file permissions: META-INF/calibre_bookmarks.txt

Its helpful being told what line the error is on and I presume the heading are to do with the TOC, but aside from that I cannot understand each error and moreover, how to fix them.

Is there some kind of document or manual online that outlines each error and how to fix? That would be great.

Help VERY much appreciated.
Fligtcrew is easier to understand (and takes you to the error in many cases)
The first one is caused by Calibre-viewer marking where yo read.
(it probably will appear under Misc in Sigil)

#2 did you hand edit/remove files from the EPUB outside of Sigil?
#3 there is a second (or more) line with the same id=...
#4

The rest (permissions) not sure were they read only.
In Calibre: T (tweak epub: examine the properties of each. Fix as needed, then 'Rebuild'
theducks is offline   Reply With Quote
Old 03-02-2011, 04:14 AM   #4
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Your process seems.... cumbersome.

You are using this path: Word --> PDF --> Calibre --> Sigil --> Treepress

You can better do the following: Word --> filtered HTML --> Sigil (with Flightcrew) --> Treepress (if you must...)

That will yield better results, since no conversion from PDF has to be made. That will always results in less than perfect conversions. If you use styles in Word, that will make your life a lot easier. You can remove a whole lot of crap from the filtered HTML, but it will result in a better file.

If you insist on use Calibre, you can better use the following path: Word --> RTF --> Calibre --> Sigil. That should yield to better results.
Toxaris is offline   Reply With Quote
Old 03-02-2011, 05:02 AM   #5
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: 73,668
Karma: 127838212
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Actually, stay the heck away from Word. Even filtered HTML can be full of garbage. You will be spending a good amount of time cleaning up the mess Word puts in.

That said, never ever use PDF as a source format. You cannot convert it without errors.
JSWolf is offline   Reply With Quote
Old 03-02-2011, 06:06 AM   #6
sparkletown
Member
sparkletown began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Mar 2011
Device: none
Quote:
Originally Posted by Toxaris View Post
Your process seems.... cumbersome.

You are using this path: Word --> PDF --> Calibre --> Sigil --> Treepress

You can better do the following: Word --> filtered HTML --> Sigil (with Flightcrew) --> Treepress (if you must...)

That will yield better results, since no conversion from PDF has to be made. That will always results in less than perfect conversions. If you use styles in Word, that will make your life a lot easier. You can remove a whole lot of crap from the filtered HTML, but it will result in a better file.

If you insist on use Calibre, you can better use the following path: Word --> RTF --> Calibre --> Sigil. That should yield to better results.
This is a great idea, thank you. Makes so much more sense. First time doing this, so I wasn't sure of the best way to go about it. Felt a bit long-winded!

Thanks guys, appreciating you and this forum big time!
sparkletown is offline   Reply With Quote
Old 03-02-2011, 11:21 AM   #7
sparkletown
Member
sparkletown began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Mar 2011
Device: none
OK, I'm still getting a load of errors - this time all to do with my images. I think I should have mentioned this before - My EBook contains a lot of images. The first attempt I had inserted all the images in at sigil stage. For this attempt the images were in put in in word and the document saved as htm. (I couldn't save as filtered html as this wasn't an option or am I missing something?)

These are my errors now:

attribute '{urn:schemas-microsoft-com:vml}shapes' is not declared for element 'img'
attribute 'border' is not declared for element 'img'

for every image I have in there.

I still feel a million miles away from getting this sorted. Please tell me I am wrong and that these errors are easily rectified!

Thanks guys.
sparkletown is offline   Reply With Quote
Old 03-03-2011, 05:34 AM   #8
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
There should be a filtered HTML and you definitely want it. Word is not the best for saving HTML, but filtered HTML helps to keep the garbage level to acceptable.

You need to clean the code from Word, there is no way around that unfortunately. It seems that some of the Word garbage is messing with you here. There are references to attributes which are not in the internal or external CSS file. If they are not required, remove them for all images. Normally that can be done with a replace all command rather quickly.
Toxaris is offline   Reply With Quote
Old 03-03-2011, 05:36 AM   #9
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by JSWolf View Post
Actually, stay the heck away from Word. Even filtered HTML can be full of garbage. You will be spending a good amount of time cleaning up the mess Word puts in.

That said, never ever use PDF as a source format. You cannot convert it without errors.
I agree to a certain level. It is still garbage, but I still use it for most parts. If you use styles in Word, cleaning could be quick. I usually clean a Word file in Sigil between 1 to 15 minutes. For me that is a small price for the added features in Word that I use.

PDF I really dislike. With PDFReflow the results are usually acceptable, but even then rework is required.
Toxaris is offline   Reply With Quote
Old 03-03-2011, 09:32 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: 73,668
Karma: 127838212
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Toxaris View Post
There should be a filtered HTML and you definitely want it. Word is not the best for saving HTML, but filtered HTML helps to keep the garbage level to acceptable.

You need to clean the code from Word, there is no way around that unfortunately. It seems that some of the Word garbage is messing with you here. There are references to attributes which are not in the internal or external CSS file. If they are not required, remove them for all images. Normally that can be done with a replace all command rather quickly.
No way is filtered HTML from Word even close to acceptable. It still full of garbage.

But as far as cleaning things up, I find that if you convert the HTML from Word into ePub, then it will be easier to clean it up to be decent code.
JSWolf is offline   Reply With Quote
Old 03-07-2011, 04:08 PM   #11
sparkletown
Member
sparkletown began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Mar 2011
Device: none
I'm using Word 2008 - I can't save as filtered HTML, (as much as I'd like to not have to use Calibre and jump straight into Sigil) - so I've saved as HTM, converted in Calibre and now editing in Sigil.

I don't know which attributes to remove from the images to be honest, as I dont know enough about it. I have 2 issues:

1- Image errors:
attribute '{urn:schemas-microsoft-com:vml}shapes' is not declared for element 'img'
attribute 'border' is not declared for element 'img'

The code looks like this for each image:

<p class="MsoNormal"><span class="calibre15" xml:lang="EN-US" xmlns:xml="http://www.w3.org/XML/1998/namespace"><!--[if gte vml 1]><v:shape
id="Picture_x0020_1" o:spid="_x0000_i1053" type="#_x0000_t75" alt=":jpgs -full:makeyourownwallart.jpg"
style='width:300pt;height:228pt;visibility:visible ;mso-wrap-style:square'>
<v:imagedata src="50_Art_and_Crafts_Projects_files/image003.jpg" o:title="makeyourownwallart.jpg"/>
<v:textbox style='mso-rotate-with-shape:t'/>
</v:shape><![endif]--><img alt=":jpgs -full:makeyourownwallart.jpg" border="0" class="calibre16" src="../Images/image004.jpg" v:shapes="Picture_x0020_1" /></span></p>

Which bits should I edit out to prevent the errors?

2- Misc error:

OEBPS/Text/50_Art_and_Crafts_Projects_files/editdata.mso
This resource is reachable but not present in the OPF <manifest>.

"Reachable" means that a reference of some kind that points to this resource exists in the epub.


Thanks for your time guys.
sparkletown is offline   Reply With Quote
Old 03-08-2011, 03:20 AM   #12
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Replace:

Code:
<img alt=":jpgs -full:makeyourownwallart.jpg" border="0" class="calibre16" src="../Images/image004.jpg" v:shapes="Picture_x0020_1" />
with:

Code:
<img alt=":jpgs -full:makeyourownwallart.jpg" class="calibre16" src="../Images/image004.jpg" />
The second error says some file points to "editdata.mso", but that file does not exist. You'll have to find where this file is mentioned, and remove the reference (because the file is probably useless).
Jellby is offline   Reply With Quote
Old 03-09-2011, 02:53 PM   #13
sparkletown
Member
sparkletown began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Mar 2011
Device: none
Jellby, you are a star, thank you very much. I have now successfully edited out the border and shapes attributes.

Regarding the second error, I have located the code but when deleting it, a whole host of new errors come up pointing to my images.

So the error reads:
OEBPS/Text/50_Art_and_Crafts_Projects_files/editdata.mso
This resource is reachable but not present in the OPF <manifest>.

And the code is right up the top in line 13:
<link href="../Text/filelist.xml" rel="File-List" />
<link href="50_Art_and_Crafts_Projects_files/editdata.mso" rel="Edit-Time-Data" /><!--[if !mso]>

I have tried a few things but really I'm just stabbing in the dark. Any thoughts?
sparkletown is offline   Reply With Quote
Old 03-09-2011, 04:01 PM   #14
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,691
Karma: 54369090
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 sparkletown View Post
Jellby, you are a star, thank you very much. I have now successfully edited out the border and shapes attributes.

Regarding the second error, I have located the code but when deleting it, a whole host of new errors come up pointing to my images.

So the error reads:
OEBPS/Text/50_Art_and_Crafts_Projects_files/editdata.mso
This resource is reachable but not present in the OPF <manifest>.

And the code is right up the top in line 13:
<link href="../Text/filelist.xml" rel="File-List" />
<link href="50_Art_and_Crafts_Projects_files/editdata.mso" rel="Edit-Time-Data" /><!--[if !mso]>

I have tried a few things but really I'm just stabbing in the dark. Any thoughts?
Is the file listed In any section of the browser? Then it won't appear in the maifest. IMHO delete the line that is calling for it (that is what the message means: You say 'Use file' and there is NO FILE to use.)
theducks is offline   Reply With Quote
Old 03-10-2011, 04:33 AM   #15
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Is the <!--[if !mso]> right? As is, it's interpreted as a comment start (<!--), and the comment end (-->) should be further down, in that case don't delete the start.

If it's <!--[if !mso]--> instead, that's a full comment, and can be safely deleted.
Jellby is offline   Reply With Quote
Reply

Tags
calibre, epub, fix, lulu, sigil

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
EPUB & LULU -- Again with details CGPGrey Calibre 15 11-22-2010 05:22 PM
Calibre won't upload epub file to PRS-505. Sarahb69 Calibre 2 09-12-2010 09:56 AM
How to upload a eb1150 file? DaleDe Upload Help 11 09-01-2007 07:26 PM


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


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