Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 10-12-2013, 01:59 PM   #1
epubfan
Member
epubfan began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2013
Device: kobo touch
ebook-convert: set epub-name automatically?

hello,

i convert a lot of books via script/CLI.
is there a way to tell "ebook-convert" setting the name of the generated epub automatically (e.g. generating from book.xhtml-metadata or from file-name) so i must not set the epub-name manually?

thanks a lot
epubfan is offline   Reply With Quote
Old 10-12-2013, 03:53 PM   #2
signum
Zealot
signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.
 
Posts: 119
Karma: 64428
Join Date: Aug 2011
Device: none
Quote:
Originally Posted by epubfan View Post
hello,

i convert a lot of books via script/CLI.
is there a way to tell "ebook-convert" setting the name of the generated epub automatically (e.g. generating from book.xhtml-metadata or from file-name) so i must not set the epub-name manually?

thanks a lot
From the documentation:

---------------------------------------------------------------------

Usage: ebook-convert input_file output_file [options]

Convert an ebook from one format to another.

input_file is the input and output_file is the output. Both must be specified as the first two arguments to the command.

The output ebook format is guessed from the file extension of output_file. output_file can also be of the special format .EXT where EXT is the output file extension. In this case, the name of the output file is derived the name of the input file. Note that the filenames must not start with a hyphen. Finally, if output_file has no extension, then it is treated as a directory and an "open ebook" (OEB) consisting of HTML files is written to that directory. These files are the files that would normally have been passed to the output plugin.

-------------------------------------------------------------------

So, you should be able to just enter the command "ebook-convert SomeName.pdf .epub" and it would produce "SomeName.epub".
signum is offline   Reply With Quote
Old 10-12-2013, 04:11 PM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,174
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
But remember, PDF is crap for converting from.
JSWolf is offline   Reply With Quote
Old 10-13-2013, 02:38 PM   #4
signum
Zealot
signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.
 
Posts: 119
Karma: 64428
Join Date: Aug 2011
Device: none
Quote:
Originally Posted by JSWolf View Post
But remember, PDF is crap for converting from.
I agree with you completely. However, the sad fact is that, over the last couple|three years, that's where I usually find myself in regards to Calibre, so it was the first thing I came up with. In another thread, there was a distinction made as to whether Calibre users were "creators" or "fixers." I'm one step below a fixer and consider myself a salvager of very poorly done PDFs.

Any calibre-valid file extension would work in the "ebook-convert" command, subject to the documented syntax above.
signum is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Set (user defined) metadata for downloaded news automatically mjost Library Management 0 03-10-2013 11:45 AM
Automatically set custom column when fetching news bork Library Management 1 04-14-2012 03:20 AM
Can recipes be set to automatically retry if they fail on 1st attempt? BobbyVan Recipes 1 03-16-2012 10:48 AM
Automatically convert file to EPUB upon import into library astrodad Calibre 6 07-23-2010 12:22 PM
set meta data with ebook-meta and ebook-convert krischik Calibre 6 01-19-2010 11:40 AM


All times are GMT -4. The time now is 10:24 PM.


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