View Single Post
Old 04-21-2020, 06:08 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,784
Karma: 169712580
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by rmichael View Post
Hello,

I am on macOS 10.14.6, learning Calibre 4.13.0.

I have extracted an EPUB for a folder and opened it with `ebook-edit`, on the command line, as follows:

`unzip -d source The_book.epub`
`ebook-edit path/to/source`

I have made changes to the files, saved the book, and I see the changes in the source files.

How do I (re)build a new EPUB and PDF file?


If I start Calibre itself, the "source" book I opened via `ebook-edit` on the command line is not in the Library, so I cannot use "Convert Book" in Calibre.

I also do not see an option in Calibre to open a "source folder" as a book, as "Edit Book" (`ebook-edit`) can do.



As background:

I am working this way so that I can keep the source files in git and make commits as I adjust them. I am editing technical material on programming, and I want to send a patch to the original author.

I found that if I open the EPUB itself (not extracted) in Calibre, then used Edit Book, I was not able to tell Calibre about extracting the EPUB files to a folder so that I could stage and commit changes. Calibre only seemed to keep the extracted files in the Cache, and only while it was running.


Thank you
You may want to check the ePub Zip/Unzip AppleScript application for Mac OS X thread.

There is also the [Plugin] FolderIn and FolderOut - Folder input and output plugins for Sigi if you don't mind using an alternate epub editor.
DNSB is offline   Reply With Quote