Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-27-2009, 11:45 PM   #1
JeffElkins
Guru
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
conversion script

I'm a bit unix stupid tonight. I'd like to recurse through a directory tree starting at the top and apply:

Code:
any2epub --base-font-size=14  filename
to each file. (All files are already epub format).

Can someone jog my memory?
JeffElkins is offline   Reply With Quote
Old 03-28-2009, 02:54 AM   #2
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: 44,565
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
From the Because I Can Dept.

Code:
calibre-debug -c "from calibre import walk; import os; os.system('any2epub ' + f) for f in walk('.') if f.endswith('.prc')]"
That will run any2epub on all PRC files. Ofcourse, you're probably going to want to specify the -o option to any2epub as well
kovidgoyal is offline   Reply With Quote
Advert
Old 03-28-2009, 04:06 AM   #3
JeffElkins
Guru
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
Quote:
Originally Posted by kovidgoyal View Post
From the Because I Can Dept.

Code:
calibre-debug -c "from calibre import walk; import os; os.system('any2epub ' + f) for f in walk('.') if f.endswith('.prc')]"
That will run any2epub on all PRC files. Ofcourse, you're probably going to want to specify the -o option to any2epub as well
Thanks, Kovid.
JeffElkins is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Import ebook conversion in python script erollisi Calibre 1 08-19-2010 10:43 PM
Simple Esperanto ePub conversion script? amuzulo ePub 10 03-06-2010 03:54 PM
Search Script Gibbo Lounge 7 03-30-2009 05:36 PM
iLiad Can't run my first script ragdoll iRex Developer's Corner 4 01-28-2008 07:40 AM
Would anyone be interested in this script... coleman Sony Reader 2 07-26-2007 12:30 PM


All times are GMT -4. The time now is 11:36 AM.


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