View Single Post
Old 11-09-2015, 11:21 AM   #4
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)
Yeah, should work.

Rezipping an EPUB is tricky, of course, because you have to deal with the mimetype file -- "can't be compressed, multiple passes to zip" garbage.
That's why I like calibre-debug --explode-book or alternatively the Editor, but they are geared toward human oversight not scripting.
I'm not really sure how you'd find the exploded ebook directory via a script in order to modify it. Usually it pops up the File Browser. Or opens vim of course.

That's why I suggested a vimscript, you could probably load it automatically via a filetype plugin, apply the changes, save and exit without touching a single key...
... or maybe I enjoy making things harder, because it's more fun.
eschwartz is offline   Reply With Quote