View Single Post
Old 10-13-2015, 12:51 PM   #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)
Sounds like a good candidate for an Import plugin.


But you could also use a pre-commit hook to wipe the working tree and extract the EPUB:

Code:
git ls-tree --name-only -z HEAD | grep -zvE "*.epub$" | xargs -0 rm -r
unzip -qqo *.epub
git add .
Then a git commit will fetch and commit any changes from the EPUB.


Sigil includes a feature to save files outside Sigil, open them in an external editor, and read back changes.



You could also make use of calibre's Unpack/Explode Book (available through the CLI as `calibre-debug -x /path/to/ebook`).
eschwartz is offline   Reply With Quote