Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 10-15-2012, 07:24 AM   #61
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,495
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
The ePub Zip AppleScript application is now the ePub Zip/Unzip AppleScript application!

A shiny new version of the application is available in the first post of this thread.

Bug reports, feedback, additional translations are all welcome.
pdurrant is offline   Reply With Quote
Old 10-16-2012, 08:03 AM   #62
PageLab
Connoisseur
PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.PageLab ought to be getting tired of karma fortunes by now.
 
PageLab's Avatar
 
Posts: 70
Karma: 515184
Join Date: Sep 2011
Location: Brasília
Device: Kindle3, iPad, Nook, Kobo, Positivo Alfa
Thanks for this!
PageLab is offline   Reply With Quote
Advert
Old 10-19-2012, 10:07 AM   #63
amarie0
Enthusiast
amarie0 doesn't litteramarie0 doesn't litter
 
Posts: 27
Karma: 110
Join Date: Dec 2010
Location: Chicago, IL
Device: iPad, Kindle
Paul, this is fantastic. Thank you! And thanks for updating the first post too. I keep sending people over here in my training videos and seminars, so this keeps them up to date, too!

AM
amarie0 is offline   Reply With Quote
Old 10-22-2012, 12:55 AM   #64
Aerys
Connoisseur
Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.Aerys is faster than slow light.
 
Aerys's Avatar
 
Posts: 51
Karma: 29994
Join Date: Nov 2011
Location: Manila, Philippines
Device: iPad 2 & Nexus 7
thanks!
Aerys is offline   Reply With Quote
Old 10-22-2012, 12:34 PM   #65
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,495
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Just uploaded version 2.0.1 with German translation by shorshe added.
pdurrant is offline   Reply With Quote
Advert
Old 10-24-2012, 05:43 PM   #66
danrodney
All Around Nice Guy
danrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of itdanrodney has read War And Peace ... all of it
 
Posts: 21
Karma: 66666
Join Date: Oct 2010
Location: New York City
Device: iPad, iPhone, Kindle Keyboard, Kindle Fire, Nook 1st Gen, Nook Color
Feature Request

You know how iTunes adds an iTunesMetadata.plist in the root directory of the ePub file when dragging an ePub onto iTunes? Sometimes I unzip an ePub to find that nasty file (which invalidates your ePub).

If this Zip-Unzip script excludes .DS_Store files, how about it also exclude the iTunesMetadata.plist file? That way if it ever exists, you know it will be removed when rezipping. Could be nice, right?
danrodney is offline   Reply With Quote
Old 10-24-2012, 06:22 PM   #67
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,495
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by danrodney View Post
You know how iTunes adds an iTunesMetadata.plist in the root directory of the ePub file when dragging an ePub onto iTunes? Sometimes I unzip an ePub to find that nasty file (which invalidates your ePub).

If this Zip-Unzip script excludes .DS_Store files, how about it also exclude the iTunesMetadata.plist file? That way if it ever exists, you know it will be removed when rezipping. Could be nice, right?
I'm not sure I want to go that route myself. There may be people who want their iTunesMetadata.plist kept.

However, you could do quite easily for your copy. Open the script with AppleScript Editor, find the line containing

-x mimetype

change that bit to

-x mimetype -x iTunesMetadata.plist

and save. (Make sure you don't delete the " either side, or the space before the first -x)
pdurrant is offline   Reply With Quote
Old 11-02-2012, 05:13 AM   #68
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,495
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Just uploaded version 2.1. Now, when unzipping an ePub, the script first makes sure that there aren't any problems with the zip structure of the ePub.
pdurrant is offline   Reply With Quote
Old 11-02-2012, 08:39 AM   #69
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,495
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Just uploaded version 2.1.1. Now with a Portugese translation by PageLab.

More translations (or improvements to existing translations) are most welcome.
pdurrant is offline   Reply With Quote
Old 07-17-2013, 11:30 AM   #70
JGSTYLE
Junior Member
JGSTYLE began at the beginning.
 
JGSTYLE's Avatar
 
Posts: 6
Karma: 10
Join Date: Apr 2012
Device: iPhone 4
Thanks for this, I've been using it successfully for over a year now.

I just ran into an issue, and I'm not sure if there's anything ePub Zip can do about it.

When I was submitting my epub file to Smashwords Direct, I received this error:

Quote:
The book file you uploaded is in a format we do not support, or it has a filename extension we do not recognize. Your file appears to be a "application/zip" file, and has a ".epub" filename extension.
I never have this issue with Apple, Lulu, or Amazon.

The epub has a mimetype file which has the "application/epub+zip" line in it, but Smashwords doesn't acknowledge this.

Has anyone seen this and figured out a solution? Or does anyone have any ideas?
JGSTYLE is offline   Reply With Quote
Old 07-17-2013, 11:44 AM   #71
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,515
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Is that "mimetype" file the first in the archive and is it uncompressed?
Jellby is offline   Reply With Quote
Old 07-17-2013, 11:49 AM   #72
JGSTYLE
Junior Member
JGSTYLE began at the beginning.
 
JGSTYLE's Avatar
 
Posts: 6
Karma: 10
Join Date: Apr 2012
Device: iPhone 4
The mimetype file is uncompressed as far as I can tell. It's in the root directory next to the "META-INF" and "OEBPS" directories.
JGSTYLE is offline   Reply With Quote
Old 07-17-2013, 03:28 PM   #73
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,495
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by JGSTYLE View Post
When I was submitting my epub file to Smashwords Direct, I received this error:
Have you successfully submitted to Smashwords before? I know they used to only accept Word/RTF files. While I think I heard something about them accepting ePubs recently, I'm not sure if that's out of beta yet.

In short: Are you sure the bit of Smashwords you uploaded to will accept an ePub?
pdurrant is offline   Reply With Quote
Old 07-17-2013, 05:41 PM   #74
JGSTYLE
Junior Member
JGSTYLE began at the beginning.
 
JGSTYLE's Avatar
 
Posts: 6
Karma: 10
Join Date: Apr 2012
Device: iPhone 4
Quote:
Originally Posted by pdurrant View Post
Have you successfully submitted to Smashwords before? I know they used to only accept Word/RTF files. While I think I heard something about them accepting ePubs recently, I'm not sure if that's out of beta yet.

In short: Are you sure the bit of Smashwords you uploaded to will accept an ePub?
Hi there, actually this is the first time I've ever uploaded to Smashwords because they previously only took the Words files.

Smashwords does now accept epubs as seen here:

https://www.smashwords.com/swdirect

The caveat being that they won't then reformat your file to all the other ones they usually do.

So far it's not a banner experience. They same epub that validates and works on every other service is rejected.

Like I said originally, I highly doubt this is the fault of ePub Zip, but I was hoping you or someone might know of a way to circumvent this error. I've been trying to find a way to manually adjust the mime type of the file, but no dice so far...
JGSTYLE is offline   Reply With Quote
Old 07-17-2013, 09:50 PM   #75
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by JGSTYLE View Post
The mimetype file is uncompressed as far as I can tell. It's in the root directory next to the "META-INF" and "OEBPS" directories.
That doesn't matter.

In windows open a cmd window and cd to wherever your ePub file is.
on the command line enter: type <filename> where filename is the name of your ePub file. Does it look like:
PK♥♦
yYª8íÅr╠▬ ▬ mimetypeapplication/epub+zip
PK♥♦
Ignore the leading garbage characters on the second line. The second PK may appear just after the mimetype info instead of on a different line. Ignore anything after the second PK.

If it does not then the ePub is not built correctly.

Dale

Last edited by DaleDe; 07-17-2013 at 09:53 PM.
DaleDe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Applescript Wrapper Application for Kindlegen pdurrant Kindle Formats 50 02-18-2020 01:16 AM
How to unzip a Calibre ZIP file on a Mac? webfolk Calibre 15 06-03-2012 06:01 PM
Useful Applescript for Mac OS X users pdurrant Kindle Formats 11 07-23-2011 05:00 AM
Mobiperl mobi2html changesetR84.zip won't unzip cyberbaffled Kindle Formats 0 06-15-2010 10:25 PM
Mac OS X lit2rtf AppleScript thingy FourOhFour Sony Reader 11 08-11-2007 12:02 AM


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


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