Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-05-2016, 02:42 AM   #1
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Extracting files from ePub on iPad/iMac

I've got a Mac-centric client that I make ePubs for.

It would be useful if he could extract the html files and images for his website as he needs them. I could do it for him, but is there a simple way he can do this on an iPad or iMac?
I know how fussy Macs are about filetypes so I don't know if an unzipper would work easily.

I guess Sigil or Calibre would work, but I'd rather not complicate things.
AlanHK is offline   Reply With Quote
Old 05-05-2016, 03:04 AM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Rename the *.epub to *.zip and you can use any unzipper to open it up.

Some unzippers don't like the renamed file -- it's not just Mac, Linux's file-roller program (part of Gnome) at least used to choke on it for no good reason.
But the command-line `unzip` utility can definitely handle any file extension whatsoever.
eschwartz is offline   Reply With Quote
Old 05-05-2016, 04:06 AM   #3
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by eschwartz View Post
Rename the *.epub to *.zip and you can use any unzipper to open it up.
That's the kind of hack I was looking to avoid. Then he has to change it back. (Would the system or iTunes try to stop him or give a warning?) And I thought that filetypes on Mac weren't that easy to change -- it's been a long time since I used Macs much, but it needed a special utility.

Ideally I was hoping for an unzipper that will work regardless of nominal filetype.
AlanHK is offline   Reply With Quote
Old 05-05-2016, 04:33 AM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by AlanHK View Post
Ideally I was hoping for an unzipper that will work regardless of nominal filetype.
There's a free 7Zip clone for Macs that'll do the trick.

Tell your client to try the following:

Quote:
  1. Install and run Keka.
  2. Select Preferences > General > Actions > Always extract.
  3. Select Preferences > Extraction > Extract to location > Next to original file.
  4. Close Keka.

Once these preferences have been selected you can unpack ePubs by right-clicking the ePub and selecting Open with > Other > Keka > Open.
Doitsu is offline   Reply With Quote
Old 05-05-2016, 10:01 AM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by AlanHK View Post
That's the kind of hack I was looking to avoid. Then he has to change it back. (Would the system or iTunes try to stop him or give a warning?) And I thought that filetypes on Mac weren't that easy to change -- it's been a long time since I used Macs much, but it needed a special utility.

Ideally I was hoping for an unzipper that will work regardless of nominal filetype.
Well, I don't know what options there are for OSX, so I can't help you with finding a sane unzipper.
But changing fixing a filetype really is as easy as renaming it -- an EPUB is a renamed ZIP to begin with, so renaming it back ensures that applications will recognize it as a ZIP.

And as I said, the command-line unzip utility can handle arbitrary filenames.
You could also use pdurrant's ePub Zip/Unzip AppleScript application for Mac OS X. It is a drag-and-drop AppleScript which simply acts as a wrapper around `unzip`.

Last edited by eschwartz; 05-05-2016 at 10:05 AM.
eschwartz is offline   Reply With Quote
Old 05-05-2016, 10:16 AM   #6
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: 30,897
Karma: 60358908
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 AlanHK View Post
I've got a Mac-centric client that I make ePubs for.

It would be useful if he could extract the html files and images for his website as he needs them. I could do it for him, but is there a simple way he can do this on an iPad or iMac?
I know how fussy Macs are about filetypes so I don't know if an unzipper would work easily.

I guess Sigil or Calibre would work, but I'd rather not complicate things.
Complicated
Oh! Right! MAC
"Simple enough, even a Manager can use one" -- Me (1988)

e-book viewer (the Calibre CLI tool) allows copy (and paste...someplace else )
theducks is online now   Reply With Quote
Old 05-05-2016, 10:38 AM   #7
BryanK
Connoisseur
BryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterBryanK can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 66
Karma: 12538
Join Date: Oct 2011
Device: Kobo Wifi, Kobo Glo HD
Fwiw, unzip works just fine on .epub files from the Terminal. But that would be *scary*.
BryanK is offline   Reply With Quote
Old 05-05-2016, 11:02 AM   #8
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by eschwartz View Post
You could also use pdurrant's ePub Zip/Unzip AppleScript application for Mac OS X. It is a drag-and-drop AppleScript which simply acts as a wrapper around `unzip`.
Thanks, that sounds like the best option (i.e., that will require the least amount of explanation from me).
AlanHK is offline   Reply With Quote
Old 05-05-2016, 11:15 AM   #9
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Quote:
Originally Posted by AlanHK View Post
That's the kind of hack I was looking to avoid. ...
Not the case if you modify eschwartz' method slightly.

Simply make a copy of the ePub first and change the extension on the copy only. Unzip the copy, extract the needed images, and delete the copy and left over extracted contents. That way there is no need to reassemble the ePub afterward.
dwig is offline   Reply With Quote
Old 05-05-2016, 09:14 PM   #10
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,616
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@AlanHK - Assuming the epub is not ridiculously large and your client knows how to unpack a zip archive on his/her Mac, why not send two files, 'whatever.epub' and 'what's-in-whatever.zip'. The fact that the second is a rebadged copy of the first is hardly likely to be here or there. It would also deter your client from tinkering with the epub - a'la Hitch's recent 'Anyone here ever seen..." thread.

You could even remove the components that make it an epub -- mimetype, opf etc --- from the zip.

BR

Last edited by BetterRed; 05-05-2016 at 09:18 PM.
BetterRed is offline   Reply With Quote
Old 05-11-2016, 12:14 AM   #11
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by BetterRed View Post
@AlanHK - Assuming the epub is not ridiculously large and your client knows how to unpack a zip archive on his/her Mac, why not send two files, 'whatever.epub' and 'what's-in-whatever.zip'. The fact that the second is a rebadged copy of the first is hardly likely to be here or there. It would also deter your client from tinkering with the epub - a'la Hitch's recent 'Anyone here ever seen..." thread.

You could even remove the components that make it an epub -- mimetype, opf etc --- from the zip.

BR
Indeed. My initial question on seeing this thread is: why the hell does he have to zip it BACK? Why not just copy the ePUB, and unzip it? Or, hell, for that matter, just copy it, unzip it, and send him the folder? No?

Hitch
Hitch is offline   Reply With Quote
Old 05-11-2016, 12:27 AM   #12
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by Hitch View Post
Indeed. My initial question on seeing this thread is: why the hell does he have to zip it BACK? Why not just copy the ePUB, and unzip it? Or, hell, for that matter, just copy it, unzip it, and send him the folder? No?

Hitch
I don't appreciate the insulting tone.
Especially as it's predicated by you clearly not bothering to read my initial post, which explained exactly what I wanted to do and why.

Find something better to do than skimming old threads to look for opportunities to inject unhelpful sneering remarks.
AlanHK is offline   Reply With Quote
Old 05-11-2016, 02:24 AM   #13
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by AlanHK View Post
I don't appreciate the insulting tone.
Especially as it's predicated by you clearly not bothering to read my initial post, which explained exactly what I wanted to do and why.

Find something better to do than skimming old threads to look for opportunities to inject unhelpful sneering remarks.
First, I wasn't being snide, or insulting, and I didn't particularly think it was unhelpful. I genuinely don't understand, if your client is exceedingly unlikely to be able to do what you tell him, why it wouldn't be easier for you, and of course, for him, if you simply give him two ePUBs, or, to be explicit, one "real" ePUB and one "folder" ePUB that's now an unzipped folder.

NOR did I particularly think that a thread started 5 days ago was "old."

I deal with excruciatingly non-tech clients all day long. YES, I would by far rather that they manage their needs themselves, but half the time, no matter how much I try to foster independence, for their own sakes, not mine, it almost inevitably ends up causing more grief than it saves and twice the time.

I read your initial post, and eschwartz' response to you, AND this line, particularly:

Quote:
That's the kind of hack I was looking to avoid. Then he has to change it back.
Given that that's not even a "hack," yes, of course, I wondered why he had to "change it back." Isn't that simply over-thinking it? Creating obstacles where none do exist?

I'm surprised that he can't copy an ePUB on a Mac, and change the file extension. Yes, I know that many Mac users don't display file extensions, and thus don't understand them, but this is rote stuff. One simple Screencast, saying "copy this, change that, and unzip it," and I'd think it would solve the issues. OR, as suggested elsewhere, send him both.

Of course--obviously--you know your client best. If it's too much for him, it's too much.

I'll simply point out that several different flavors of browser will, fairly routinely, save down an ePUB as a zipped archive. I know that Exploder does it, and I've been told, but not witnessed first-hand, that Safari will. That's one of the thoughts that I had, when asking what I thought was a perfectly reasonable question: WHY?

But, as you patently have all the feedback you want now, I'll leave you to it.



Hitch
Hitch is offline   Reply With Quote
Reply


Forum Jump


All times are GMT -4. The time now is 03:57 PM.


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