Keka icon indicating copy to clipboard operation
Keka copied to clipboard

ePub extraction

Open jerryevo opened this issue 9 years ago • 14 comments

ePub are in fact ZIP files. When extracting them using KEKA instead of folder user gets bundle. This is not convenient.

jerryevo avatar Oct 18 '17 09:10 jerryevo

I'm not sure what you mean. If I extract an ePub, the result will be a folder with all it's contents. What do you mean with "user gets bundle"?

aonez avatar Oct 18 '17 09:10 aonez

For example if you extract this randomly selected ePub (ePub with or without images), what you get?

aonez avatar Oct 18 '17 09:10 aonez

Bundle, like APP bundle. To get into I need to rightclick it and use option "show bundle content". The same ePub extracted with , for example "The Unarchiver" will get standard folder.

jerryevo avatar Oct 18 '17 09:10 jerryevo

So you're getting a folder with extension? What extension is that? Can your share an ePub that causes this issue?

aonez avatar Oct 18 '17 14:10 aonez

I've made some tests and adding epub extension to a folder makes it a bundle. So I suppose you extracted an ePub and it retained the extension, ain't it?

aonez avatar Oct 18 '17 16:10 aonez

Example ePub you can find here: http://www.gutenberg.org/ebooks/55764.epub.images Download it Then extract with Keka - you will get bundle Delete bundle and extract with The Unarchiver - you will get Folder

jerryevo avatar Oct 19 '17 06:10 jerryevo

Can't really reproduce this. What version of Keka are you using? Any special configuration?

untitled mov

aonez avatar Oct 19 '17 08:10 aonez

I'm using 1.1.0-beta.4 (2296), but problem exists for long time and in previous versions too. There is inconsistent behaviour. When extracting as you show it above it works ok. But change .epub to .epub.zip, Keka as app to open ZIP files and then double click ZIP.

jerryevo avatar Oct 19 '17 09:10 jerryevo

But the premise of adding .zip extension is incorrect since .epub already implies it is a zip.

Maybe the way to go with this is adding .epub to the recognised extraction formats, so the default action using Keka will be extract it, therefore you don't need to change the ePub extension to .zip or drop it in the extraction zone.

Will this make sense to you?

aonez avatar Oct 19 '17 09:10 aonez

Default handler for epub files is iBooks for many Mac users, I think. It is much easier to add .zip at the end of file name and then open it with default handler for ZIP files, which is Keka in my case. For me it is logical. But despite of this: there is difference in behaviour when epub is opened in Keka app (as handler) or dropped on Keka dialog to extract.

jerryevo avatar Oct 19 '17 09:10 jerryevo

I don't mean set Keka as the default handler, just add the extension to the recognised list so it gets extracted by default if you open it with Keka. But this might be inconsistent too, since dropping a bunch of epub files to pack them, will instead extract them all.

But despite of this: there is difference in behaviour when epub is opened in Keka app (as handler) or dropped on Keka dialog to extract.

If you drop the ePub it will be compressed, no matter if you drop it in the window, dock icon or even using the context menu service. Note that in the gif animation I've dropped it in the lower alternative action, with is not the default.

Just as a tip, with the beta you're using you also can use the context menu item, so no need at all of changing any extension:

untitled

Sure I can add a check to see if the extracted folder has the .epub suffix, let me think on that.

aonez avatar Oct 19 '17 09:10 aonez

I was surprised to find Keka is not registered to handle .epub (zip) files.

So I used the "Extract using Keka" workaround.

gingerbeardman avatar Dec 07 '21 12:12 gingerbeardman

Added them (as well as a bunch more e-book zip extensions). Also with bundle/framework detection enhancements in the current Keka version @jerryevo issue (.epub.zip) will not be present anymore.

So properly fixing this issue.

aonez avatar Dec 08 '21 12:12 aonez

Fixed in 1.2.51 😊

aonez avatar Jan 17 '22 16:01 aonez