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, 10: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, 01: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: 43,843
Karma: 22666666
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, 03: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 09:43 PM
Simple Esperanto ePub conversion script? amuzulo ePub 10 03-06-2010 02:54 PM
Search Script Gibbo Lounge 7 03-30-2009 04:36 PM
iLiad Can't run my first script ragdoll iRex Developer's Corner 4 01-28-2008 06:40 AM
Would anyone be interested in this script... coleman Sony Reader 2 07-26-2007 11:30 AM


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


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