Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-18-2010, 12:56 PM   #1
Tomte
Member
Tomte began at the beginning.
 
Tomte's Avatar
 
Posts: 10
Karma: 10
Join Date: Aug 2010
Device: iPad 2, iPod Touch (2G), Nokia N800
Auto-generate multiple formats

Using Calibre .7.14 I can currently download news recipes in the selected default format (for me, mobi.)

However I'd also like to have the news in ePub.

Is there any way to automate the conversion to ePub? I know I can manually convert it. Maybe some command line intervention that I could schedule to run the appropriate time?

The goal is to have the file in the correct format when I access remotely via the content server from either my Kindle 2 or the iPhone iBooks reader.

Any ideas would be much appreciated.

Thanks!
Tomte is offline   Reply With Quote
Old 08-18-2010, 05:16 PM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Quote:
Originally Posted by Tomte;

The goal is to have the file in the correct format when I access remotely via the content server from either my Kindle 2 or the iPhone iBooks reader.!
As far as I know iBooks cannot access the Calibre content server (although I wish it could). If you want to this you would need to use an alternative ebook reader that understands the OPDS catalog format. The ones that spring to mind for the iPhone are Stanza and QuickReader.
itimpi is offline   Reply With Quote
Advert
Old 08-19-2010, 10:04 AM   #3
Tomte
Member
Tomte began at the beginning.
 
Tomte's Avatar
 
Posts: 10
Karma: 10
Join Date: Aug 2010
Device: iPad 2, iPod Touch (2G), Nokia N800
I can access Calibre on the iPhone using the web browser, then open the file using iBooks.

The real issue is getting Calibre to automatically create an ePub version in addition to my default format of .Mobi.

There doesn't appear to be a way to set Calibre to create two formats automatically. I've done a little bit of investigating into doing a conversion at the command line, but I don't know yet if this is really a viable option.
Tomte is offline   Reply With Quote
Old 08-19-2010, 12:54 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to use the ebook-convert command line tool to downlaod each news recipe twice, once per output format.
kovidgoyal is offline   Reply With Quote
Old 08-21-2010, 01:23 PM   #5
Tomte
Member
Tomte began at the beginning.
 
Tomte's Avatar
 
Posts: 10
Karma: 10
Join Date: Aug 2010
Device: iPad 2, iPod Touch (2G), Nokia N800
Thanks for pointing me in the right direction! I have my batch file for Windows XP Home written and working; it may not be the most elegant, but I post it here in case others are interested:

REM --------------------------------------------
REM Set a variable called TODAY with today's date
REM --------------------------------------------
REM
for /f "tokens=2-4 delims=/ " %%a in ('date /T') do set year=%%c
for /f "tokens=2-4 delims=/ " %%a in ('date /T') do set month=%%a
for /f "tokens=2-4 delims=/ " %%a in ('date /T') do set day=%%b
set TODAY=%year%-%month%-%day%
REM
REM --------------------------------------------
REM Change directories
REM --------------------------------------------
REM
cd "C:\Program Files\Calibre2\resources\recipes"
REM
REM --------------------------------------------
REM Grab all the recipes for today
REM --------------------------------------------
REM
start /wait ebook-convert usatoday.recipe "C:\Program Files\Calibre2\resources\mynews\usatoday\%today%.u satoday.mobi"
start /wait ebook-convert usatoday.recipe "C:\Program Files\Calibre2\resources\mynews\usatoday\%today%.u satoday.epub"
REM
REM --------------------------------------------
REM List the Database contents and add new files
REM --------------------------------------------
REM
start /wait calibredb list
start /wait calibredb add -1 -d "C:\Program Files\Calibre2\resources\mynews\usatoday"
REM
REM --------------------------------------------
REM Make a backup and clean working directory
REM --------------------------------------------
REM
copy "C:\Program Files\Calibre2\resources\mynews\usatoday\*.*" "E:\files\eBooks\originals\News\*.*"
del/q "C:\Program Files\Calibre2\resources\mynews\usatoday\*.*"
REM
REM --------------------------------------------
REM Exit Gracefully
REM --------------------------------------------
REM
exit
Tomte is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
<Command Line> Add multiple books in multiple formats himitsu Calibre 8 09-25-2010 11:07 PM
Bug: entries with multiple formats trigger multiple conversions flinx1 Calibre 12 05-21-2010 06:23 AM
How not to auto-generate TOC in Calibre -setting? Jundle Calibre 0 05-05-2010 02:53 AM
Multiple formats - What gets sent edbro Calibre 2 01-20-2010 08:38 PM
The Grove for $.99, now in multiple formats jrector Writers' Corner 1 08-07-2009 10:15 AM


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


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