Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-08-2017, 02:38 PM   #1
tomcam
Junior Member
tomcam began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2017
Device: Kindle for iOS
Multiple input files for ebook-convert or other Calibre CLI tools?

Goal is to convert set of well-structured input files into an ePub file. In pandoc, the command line for it can be as easy as this:

Code:
# pandoc accepts wildcard designations or list of filenames 
# Convert all .md files into a single ebook file called foo.epub:
$ pandoc -o foo.epub  *.md
Is there any convention for multiple file input with any Calibre ebook creation tools? For example, these command lines don't work as I'd hope:

Code:
# Convert all .md files in current directory to HTML
$ markdown-calibre -v *.md

# Convert all .html files in directory to a single book file called foo.epub
$ ebook-convert *.html foo.epub
Thanks!

Last edited by tomcam; 04-08-2017 at 02:40 PM. Reason: Improved code comment
tomcam is offline   Reply With Quote
Old 04-08-2017, 04:49 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by tomcam View Post
Goal is to convert set of well-structured input files into an ePub file. In pandoc, the command line for it can be as easy as this:

Code:
# pandoc accepts wildcard designations or list of filenames 
# Convert all .md files into a single ebook file called foo.epub:
$ pandoc -o foo.epub  *.md
Is there any convention for multiple file input with any Calibre ebook creation tools? For example, these command lines don't work as I'd hope:

Code:
# Convert all .md files in current directory to HTML
$ markdown-calibre -v *.md

# Convert all .html files in directory to a single book file called foo.epub
$ ebook-convert *.html foo.epub
Thanks!
Yes
Pass the Index.html file instead, calibre will pick up those listed (in order)
It is in the Online Help FAQ
theducks is offline   Reply With Quote
Advert
Reply

Tags
calibre, cli, ebook-convert, markdown-calibre, pandoc


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How does ebook-convert react to plain text input porphyry5 Conversion 7 11-06-2015 07:27 PM
Can I use Calibre's CLI tools for an app? markvb Conversion 5 04-15-2012 10:00 PM
epub to epub conversion problem with regex spanning multiple input files ctop Conversion 2 02-12-2012 01:56 AM
Txt files - Convert to Epub - Multiple files into one book - noob help Cernan Calibre 6 05-18-2010 10:12 AM


All times are GMT -4. The time now is 10:30 AM.


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