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 03-27-2009, 10:45 PM   #1
JeffElkins
PRSCustomizer
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: 773
Karma: 1416
Join Date: Jan 2008
Device: PRS 505 Blue/iPod Touch/Epic 4G/Nook Classic
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: 25,947
Karma: 5036099
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
Old 03-28-2009, 03:06 AM   #3
JeffElkins
PRSCustomizer
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: 773
Karma: 1416
Join Date: Jan 2008
Device: PRS 505 Blue/iPod Touch/Epic 4G/Nook Classic
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:23 AM.


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