Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 09-04-2009, 10:59 AM   #1
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: 72,511
Karma: 309063598
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
epubcheck for Mac OS X

There's this great epubcheck tool over at http://code.google.com/p/epubcheck/
but it comes as a java application or for a web server. I wanted a drag&drop application for Mac OS X.

So I wrapped the java app in an AppleScript. Here it is. Just drag & drop ePub files onto the AppleScript, and the script will run epubcheck and report back on errors. If there are no errors, you'll also get a small dialog saying so.

I beleive it will work on Mac OS X 10.4 and later.

Feedback welcome.

[EDIT] Updated to use epubcheck 1.0.5

[EDIT] Updated to make the error dialog a bit wider, and to save an error report when there are errors. The error report will be in the same folder as the ePub and with the same name, but with '.txt' appended.

[EDIT] Updated to use epubcheck 1.1. I've left the 1.05 version here in case anyone still needs it.

[EDIT] Updated to use epubcheck 1.2. I've left the previous versions, even though I can't think why anyone would want to use them.

[EDIT] Updated to use epubcheck 3.0b5. Now has a pretty icon and also a translation into French. Thanks to Diegnum for the French translation. Any error in the French will be mine, as I adapted their text slightly. Please do report any errors in the dialogs. Further translations will be added if there is demand, and someone supplies me with the translated text!

[EDIT] Updated to use epubcheck 3.0RC1.

[EDIT] Updated to use epubcheck 3.0.

[EDIT] Updated to use epubcheck 3.0.1. Now a working version of 3.0.1!
Attached Files
File Type: zip epubcheck 1.0.5.app.zip (1.27 MB, 1623 views)
File Type: zip epubcheck 1.1.app.zip (2.21 MB, 1357 views)
File Type: zip epubcheck 1.2.app.zip (1.37 MB, 1754 views)
File Type: zip epubcheck 3.0b5.app.zip (3.36 MB, 895 views)
File Type: zip epubcheck 3.0RC1.app.zip (4.78 MB, 871 views)
File Type: zip epubcheck 3.0.app.zip (4.80 MB, 1112 views)
File Type: zip epubcheck 3.0.1.app.zip (5.76 MB, 2394 views)

Last edited by pdurrant; 06-04-2013 at 03:22 PM. Reason: New version
pdurrant is offline   Reply With Quote
Old 09-04-2009, 12:08 PM   #2
Abecedary
Exwyzeeologist
Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.
 
Abecedary's Avatar
 
Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
Thanks! I was usually already in Terminal.app after zipping up a file, so typing in another command to fire up epubcheck wasn't a problem. But this just makes everything that much easier! And it seems to work fine on 10.4.11.
Abecedary is offline   Reply With Quote
Advert
Old 09-04-2009, 06:01 PM   #3
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: 72,511
Karma: 309063598
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
What is the magic incantation required in terminal to zip up a folder of files into the correct zip format?

None of my GUI zip utilities will do it right.

Perhaps I could make an AppleScript that you could just a folder on and it would do the zipping. I much prefer small drag&drop apps to remembering and typing terminal commands.

Quote:
Originally Posted by Abecedary View Post
Thanks! I was usually already in Terminal.app after zipping up a file, so typing in another command to fire up epubcheck wasn't a problem. But this just makes everything that much easier! And it seems to work fine on 10.4.11.
pdurrant is offline   Reply With Quote
Old 09-04-2009, 06:42 PM   #4
Abecedary
Exwyzeeologist
Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.Abecedary could sell banana peel slippers to a Deveel.
 
Abecedary's Avatar
 
Posts: 535
Karma: 3261
Join Date: Jun 2009
Device: :PRS-505::iPod touch:
I've been thinking about simplifying this in some way, but if you want to make a drag'n'drop script it'll be that much easier on me.

The terminal commands to do it are:
Code:
zip -X0 bookname.epub mimetype
zip -rX9 bookname.epub * -x mimetype
The first line makes the zip file (with epub extension) with only the mimetype and no compression (the -0 switch). The second line recursively goes through the directory (-r) and adds everything else (the *) to the zip file at maximum compression (-9) while excluding the mimetype file (-x). The -X switch ignores any extra file attributes.

It's not a bad idea to precede the whole thing with this command to clear out the .DS_Store files first:
Code:
find . -name '*.DS_Store' -type f -delete
(I have that aliased to 'rmds' in my .profile for typing simplicity.)
Abecedary is offline   Reply With Quote
Old 09-05-2009, 05:55 AM   #5
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,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I add the "-D" option too (do not create entries in the zip archive for directories), and remove the .epub file before zipping.
Jellby is offline   Reply With Quote
Advert
Old 09-05-2009, 02:12 PM   #6
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: 72,511
Karma: 309063598
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
The AppleScript is ready for testing

https://www.mobileread.com/forums/showthread.php?t=55681
pdurrant is offline   Reply With Quote
Old 05-28-2010, 04:32 AM   #7
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: 72,511
Karma: 309063598
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Now updated to use epubcheck 1.0.5
pdurrant is offline   Reply With Quote
Old 05-28-2010, 06:06 PM   #8
kjk
.
kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.
 
Posts: 3,408
Karma: 5647231
Join Date: Oct 2008
Device: never enough
Will definitely try this out this weekend, thanks!
kjk is offline   Reply With Quote
Old 06-12-2010, 11:29 AM   #9
JAGINAZ
Junior Member
JAGINAZ began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2010
Location: AZ
Device: none
This seems to be what I am looking for. I appreciate the knowledge and the technical expertise that you all have acquired, but I am 'geek speak' illiterate. I have no idea what AppleScript is. Simply stated...I need to run a file through EpubCheck 1.0.5...I have a brand new iMac. When I click on your linc, pdurrant - it downloads but then it is just a file in a list of downloads. Anyone game enough to walk this infant through the rest of the process? Sorry to be so needy.
JAGINAZ is offline   Reply With Quote
Old 06-12-2010, 03:25 PM   #10
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: 72,511
Karma: 309063598
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by JAGINAZ View Post
This seems to be what I am looking for. I appreciate the knowledge and the technical expertise that you all have acquired, but I am 'geek speak' illiterate. I have no idea what AppleScript is. Simply stated...I need to run a file through EpubCheck 1.0.5...I have a brand new iMac. When I click on your linc, pdurrant - it downloads but then it is just a file in a list of downloads. Anyone game enough to walk this infant through the rest of the process? Sorry to be so needy.
The file you download is a .zip (compressed) file. Double-click it and Mac OS X will expand it back to the original size. You now have an application*.

Drag & Drop your ePub onto the application, and it will check it, and display the results in a dialog.

HTH

*The application is written in AppleScript. This is a neat way to get other programs to do things, and ties it up nicely into a simple application. In your Applications folder you probably have an AppleScript folder, inside which is the Script Editor application. You can use this to look at the script used in the epubcheck applescript program if you like. But there's no need unless you're interested.
pdurrant is offline   Reply With Quote
Old 08-17-2010, 09:37 PM   #11
Basil Bourque
Junior Member
Basil Bourque began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Aug 2010
Device: Kindle
"ePubChecker" is a free easy-to-use program that runs your EPUB file through "epubcheck". Just drag and drop your book file, and click "Check".

Faster than uploading to a web site and more private as you keep your book on your own computer. Runs on Mac OS X 10.4, 10.5, and 10.6.

See the screenshot:
http://www.rainwater-soft.com/epubchecker/

This app is built by my company, but uses the "epubcheck" v1.0.5 checking engine from Google/Adobe as required by Apple when submitting an iBook.

--Basil Bourque

Last edited by Basil Bourque; 08-17-2010 at 09:40 PM.
Basil Bourque is offline   Reply With Quote
Old 08-18-2010, 01:21 AM   #12
Almiel
regrets buying PocketBook
Almiel ought to be getting tired of karma fortunes by now.Almiel ought to be getting tired of karma fortunes by now.Almiel ought to be getting tired of karma fortunes by now.Almiel ought to be getting tired of karma fortunes by now.Almiel ought to be getting tired of karma fortunes by now.Almiel ought to be getting tired of karma fortunes by now.Almiel ought to be getting tired of karma fortunes by now.Almiel ought to be getting tired of karma fortunes by now.Almiel ought to be getting tired of karma fortunes by now.Almiel ought to be getting tired of karma fortunes by now.Almiel ought to be getting tired of karma fortunes by now.
 
Almiel's Avatar
 
Posts: 44
Karma: 2144500
Join Date: Dec 2009
Location: Texas
Device: CoolReader (Android), Pocketbook 360 Ivory
zipping on mac

Quote:
What is the magic incantation required in terminal to zip up a folder of files into the correct zip format?
I use this method in terminal:

Code:
zip -X MyNewEbook.epub mimetype

zip -rg MyNewEbook.epub META-INF -x \*.DS_Store

zip -rg MyNewEbook.epub OEBPS -x \*.DS_Store
I got it from http://www.webvivant.com/zipping-epub-files.html.
Almiel is offline   Reply With Quote
Old 08-18-2010, 03:11 AM   #13
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: 72,511
Karma: 309063598
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by Almiel View Post
I use this method in terminal:

Code:
zip -X MyNewEbook.epub mimetype

zip -rg MyNewEbook.epub META-INF -x \*.DS_Store

zip -rg MyNewEbook.epub OEBPS -x \*.DS_Store
I got it from http://www.webvivant.com/zipping-epub-files.html.
Thanks. I no longer use Terminal, but a drag&drop Applescript I wrote. See https://www.mobileread.com/forums/showthread.php?t=55681
pdurrant is offline   Reply With Quote
Old 08-18-2010, 03:12 AM   #14
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: 72,511
Karma: 309063598
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by Basil Bourque View Post
"ePubChecker" is a free easy-to-use program that runs your EPUB file through "epubcheck". Just drag and drop your book file, and click "Check".

Faster than uploading to a web site and more private as you keep your book on your own computer. Runs on Mac OS X 10.4, 10.5, and 10.6.

See the screenshot:
http://www.rainwater-soft.com/epubchecker/

This app is built by my company, but uses the "epubcheck" v1.0.5 checking engine from Google/Adobe as required by Apple when submitting an iBook.

--Basil Bourque
Any advantages over my free Applescript?
pdurrant is offline   Reply With Quote
Old 08-18-2010, 03:44 AM   #15
Adjust
Addict
Adjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel isAdjust really knows where his or her towel is
 
Adjust's Avatar
 
Posts: 351
Karma: 70000
Join Date: Jul 2010
Location: Australia
Device: ADE, iPad
Quote:
Originally Posted by pdurrant View Post
Any advantages over my free Applescript?
The major problem I have with it is that the error window is way to narrow.

If you can widen the error window so that each error fits on one line, then I will go back to using it.
Adjust is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
epub date error fails epubcheck 1.05 dkata Calibre 2 09-13-2010 05:21 AM
epubcheck bugs? capidamonte ePub 2 06-13-2010 08:38 AM
Web-based epubcheck upgraded to epubcheck 1.0.5 kjk ePub 4 02-09-2010 10:53 PM
epubcheck GeoffC ePub 3 11-03-2009 05:26 AM
Adobe EpubCheck to validate Epub documents Alexander Turcic News 11 12-29-2007 09:07 PM


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


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