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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-25-2013, 09:56 AM   #1
xrm0
Member
xrm0 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2013
Location: Argentina
Device: Kindle
[tool] ExplodeImplodeEpub

I've been converting a book to ePub and found myself doing these steps very often:
  1. Uncompress epub
  2. Make modifications
  3. Compress epub
  4. Test it on a device
  5. Repeat 2-4 several times

For the uncompress/compress steps I've first used (un)zip, later changed to ePub Zip/Unzip AppleScript application but still wanted to do it with less keystrokes/clicks.

So I've written a small application to do that (ExplodeImplodeEpub). It runs on OS X, Windows and Linux.

You can find the download link and how to use it on http://libresque.com/software
xrm0 is offline   Reply With Quote
Old 01-25-2013, 12:19 PM   #2
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: 38,746
Karma: 19643753
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
I have not yet had a chance to test this, but it does sound like a very useful tool. Thank you.
JSWolf is offline   Reply With Quote
Old 01-25-2013, 04:13 PM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,563
Karma: 44355222
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I just use something like 7zip that lets you edit/save files inside the archive directly. No uncompressing/recompressing at all.

I'll definitely check this out, though. Thanks for sharing!
DiapDealer is offline   Reply With Quote
Old 01-25-2013, 04:29 PM   #4
derangedhermit
Addict
derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.
 
Posts: 233
Karma: 1262174
Join Date: Oct 2010
Location: USA
Device: None
How does it compare to tweak_epub?

http://www.mobileread.com/forums/showthread.php?t=84692
derangedhermit is offline   Reply With Quote
Old 01-25-2013, 07:34 PM   #5
xrm0
Member
xrm0 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2013
Location: Argentina
Device: Kindle
Quote:
Originally Posted by derangedhermit View Post
How does it compare to tweak_epub?
Didn't know it. Looks nice.
By reading tweak_epub's docs seems they are pretty similar. tweak_epub have some basic metadata editor, and it gives you a list of the files inside the epub. ExplodeImplodeEpub just presents you the uncompressed folder.
But it seems tweak_epub only runs on Windows, though.
xrm0 is offline   Reply With Quote
Old 01-25-2013, 08:13 PM   #6
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 9,563
Karma: 44355222
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by xrm0 View Post
Didn't know it. Looks nice.
By reading tweak_epub's docs seems they are pretty similar. tweak_epub have some basic metadata editor, and it gives you a list of the files inside the epub. ExplodeImplodeEpub just presents you the uncompressed folder.
But it seems tweak_epub only runs on Windows, though.
The Tweak Book feature (used to be Tweak ePub) of calibre does something very similar: explode ... present you with the uncompressed folder for editing ... rebuild the archive when done. But it's nice to have stand-alone options.
DiapDealer is offline   Reply With Quote
Old 01-25-2013, 08:24 PM   #7
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,086
Karma: 1444487
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
It requires Java, though, which is a security issue. Java is not on my computer, or likely to be. But then I run Windows.
mrmikel is offline   Reply With Quote
Old 01-25-2013, 09:04 PM   #8
xrm0
Member
xrm0 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2013
Location: Argentina
Device: Kindle
Quote:
Originally Posted by DiapDealer View Post
The Tweak Book feature (used to be Tweak ePub) of calibre does something very similar: explode ... present you with the uncompressed folder for editing ... rebuild the archive when done. But it's nice to have stand-alone options.
That's the inspiration for ExplodeImplodeEpub! I wanted a small application which did just that.
xrm0 is offline   Reply With Quote
Old 01-25-2013, 10:09 PM   #9
derangedhermit
Addict
derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.
 
Posts: 233
Karma: 1262174
Join Date: Oct 2010
Location: USA
Device: None
Quote:
Originally Posted by mrmikel View Post
It requires Java, though, which is a security issue. Java is not on my computer, or likely to be. But then I run Windows.
Java is not allowed on computers in this house, for that very reason. DHS, in an unusual step, recently issued a warning about Java, triggered by yet another 0-day exploit, saying it would take a minimum of 2 years for Oracle to fix all the security problems.

And that seems strange to me, since the original idea IIRC was to provide a "sandbox" that would provide an environment for running programs in a secure and safe way. I guess that was lost sight of, years ago.
derangedhermit is offline   Reply With Quote
Old 01-25-2013, 10:12 PM   #10
derangedhermit
Addict
derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.derangedhermit ought to be getting tired of karma fortunes by now.
 
Posts: 233
Karma: 1262174
Join Date: Oct 2010
Location: USA
Device: None
Quote:
Originally Posted by xrm0 View Post
Didn't know it. Looks nice.
By reading tweak_epub's docs seems they are pretty similar. tweak_epub have some basic metadata editor, and it gives you a list of the files inside the epub. ExplodeImplodeEpub just presents you the uncompressed folder.
But it seems tweak_epub only runs on Windows, though.
It also lets you associate an external editor to be invoked to edit files - default is Notepad, I use Notepad++. It seems to be small, fast, and work well.

My usage so far indicates that it is a useful option for Windows users.
derangedhermit is offline   Reply With Quote
Old 01-30-2013, 03:54 PM   #11
xrm0
Member
xrm0 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2013
Location: Argentina
Device: Kindle
There's an update available:

v1.1
  • Fixed a bug when exploding epubs containing directories entries
  • __MACOSX/ added to the exclusions list

Download ExplodeImplodeEpub v1.1
xrm0 is offline   Reply With Quote
Old 01-30-2013, 08:11 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: 38,746
Karma: 19643753
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by xrm0 View Post
There's an update available:

v1.1
  • Fixed a bug when exploding epubs containing directories entries
  • __MACOSX/ added to the exclusions list

Download ExplodeImplodeEpub v1.1
Don't forget to exclude .ds_store, thumbs.db and iTunesMetadata.plist.

Thanks.
JSWolf is offline   Reply With Quote
Old 01-31-2013, 07:26 AM   #13
xrm0
Member
xrm0 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jan 2013
Location: Argentina
Device: Kindle
Quote:
Originally Posted by JSWolf View Post
Don't forget to exclude .ds_store, thumbs.db and iTunesMetadata.plist.
Thanks.
.DS_Store and Thumbs.db was already on the exclusions list (along with *.swp)

I don't know if iTunesMetadata.plist should be excluded always, maybe someone really wants to keep it on the epub? Perhaps I can add another option, to automatically remove iTunesMetada.plist from the epub (or let the user edit the exclusion list).
xrm0 is offline   Reply With Quote
Old 01-31-2013, 04:49 PM   #14
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: 38,746
Karma: 19643753
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by xrm0 View Post
.DS_Store and Thumbs.db was already on the exclusions list (along with *.swp)

I don't know if iTunesMetadata.plist should be excluded always, maybe someone really wants to keep it on the epub? Perhaps I can add another option, to automatically remove iTunesMetada.plist from the epub (or let the user edit the exclusion list).
iTunesMetada.plist is not needed. It's put there by iTunes and should be removed whenever found. It causes more issues then it's worth.
JSWolf 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
The right tool? SleepyBob Sigil 4 01-25-2011 10:03 PM
Tool: ISBN to Name MarkDXG Kindle Developer's Corner 2 10-04-2010 10:15 AM
New tool? cloggy Reading and Management 2 08-27-2010 06:13 PM


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


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