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 04-18-2010, 11:31 PM   #1
Riiyachan
Member
Riiyachan began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Apr 2010
Location: VIC Australia
Device: Purple EZ Reader Pocket Pro
Question using wildcards for conversion ?

newbie question here,

im trying to convert alot of ebooks using command line with wildcards, but it giving me error messages, so i have to do it one by one.

i used this command for to convert a bulk of .lit files

ebook-convert *.lit *.epub

am i doing something wrong? is it just simply impossible & i have to do it via the GUI? to be honest i prefer to use the command line as the GUI is running pretty slow in my laptop.
Riiyachan is offline   Reply With Quote
Old 04-19-2010, 12:13 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: 26,436
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
ebook-convert doesn't support wildcards, just write a simple batch file/shell script to wrap calls to ebook-convert
kovidgoyal is offline   Reply With Quote
 
Advertisement
Old 04-19-2010, 02:03 AM   #3
Riiyachan
Member
Riiyachan began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Apr 2010
Location: VIC Australia
Device: Purple EZ Reader Pocket Pro
Talking

why didnt i think of that? thanks
Riiyachan is offline   Reply With Quote
Old 04-19-2010, 11:48 AM   #4
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by Riiyachan View Post
why didnt i think of that? thanks
I don't recall if it applies to ebook-convert, but several of Calibre's command line utilities don't play well with the Windows command processor when invoked in a batch file. If you're on Windows and have problems with the batch file stopping after one line, come back here for more advice. I usually wrap a "for" loop around the Calibre utility to operate on a single batch line, or use "start" in front of the lines in the batch file, but there are some other workarounds if you have trouble.
Starson17 is offline   Reply With Quote
Old 04-19-2010, 03:17 PM   #5
Riiyachan
Member
Riiyachan began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Apr 2010
Location: VIC Australia
Device: Purple EZ Reader Pocket Pro
Quote:
Originally Posted by Starson17 View Post
I don't recall if it applies to ebook-convert, but several of Calibre's command line utilities don't play well with the Windows command processor when invoked in a batch file. If you're on Windows and have problems with the batch file stopping after one line, come back here for more advice. I usually wrap a "for" loop around the Calibre utility to operate on a single batch line, or use "start" in front of the lines in the batch file, but there are some other workarounds if you have trouble.

ooh thanks Starson17 for the offer, I used this command line

Quote:
for %%I in (*.lit) do "C:\Program Files\Calibre2\ebook-convert.exe" "%%I" "%%~nI.epub"
and it works just fine for converting .lit to epub in windows, but i got another question , how can i convert .doc to html? whats the equivalent of convert in microsoft word? i was thinking of converting my .doc files to epub. ...as calibre dont do .doc. i thought i should do .doc->html->epub .
Riiyachan is offline   Reply With Quote
Old 04-19-2010, 03:45 PM   #6
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by Riiyachan View Post
ooh thanks Starson17 for the offer, I used this command line
That's pretty close to how I do it. The for loop works great.

Quote:
but i got another question , how can i convert .doc to html? whats the equivalent of convert in microsoft word? i was thinking of converting my .doc files to epub. ...as calibre dont do .doc. i thought i should do .doc->html->epub .
I've heard of .doc converters, but haven't used them. Some searches here might help, as I vaguely recall a discussion of .doc conversion here.
Starson17 is offline   Reply With Quote
Old 04-19-2010, 10:30 PM   #7
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,908
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by Riiyachan View Post
and it works just fine for converting .lit to epub in windows, but i got another question , how can i convert .doc to html? whats the equivalent of convert in microsoft word? i was thinking of converting my .doc files to epub. ...as calibre dont do .doc. i thought i should do .doc->html->epub .
To convert .doc to html to epub check out this thread, specifically posts 23, 47, 49 and 56.
DoctorOhh is offline   Reply With Quote
Old 04-20-2010, 11:16 PM   #8
Riiyachan
Member
Riiyachan began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Apr 2010
Location: VIC Australia
Device: Purple EZ Reader Pocket Pro
Quote:
Originally Posted by dwanthny View Post
To convert .doc to html to epub check out this thread, specifically posts 23, 47, 49 and 56.
oh what a great thread!!! thanks for pointing me to the right direction, will check those tricks out .
Riiyachan is offline   Reply With Quote
Reply

Tags
wildcards

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
More fun with regex / wildcards zelda_pinwheel Sigil 28 01-06-2013 10:57 AM
Need some conversion help Ticallion Fictionwise eBookwise 9 01-09-2010 08:45 PM
wildcards in sigil bobcdy Sigil 2 12-18-2009 11:19 PM
Conversion Help crotalus99 Amazon Kindle 2 03-09-2009 05:34 PM
the conversion mastermx Sony Reader 9 08-18-2007 08:05 AM


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


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