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 09-29-2009, 03:25 AM   #1
booksonthemove
Connoisseur
booksonthemove began at the beginning.
 
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
Conversion of DOC to EPUB under Linux (Ubuntu 9.10), and a couple of other questions

I have quite a few DOC books. Is there a neat CLI solution or do i have to load it into openoffice and save to RTF then convert to EPUB ?

I've also a load of CHM stuff, almost all of it technical manuals. I've seen a way to do this involving decompiling but it was from a while ago and also it involved using the hh utility which is not present under Linux. What is the best method to convert to something my PRS-600 can use? Would EPUB still be the best output format?

thanks
booksonthemove is offline   Reply With Quote
Old 02-21-2010, 06:57 AM   #2
booksonthemove
Connoisseur
booksonthemove began at the beginning.
 
Posts: 72
Karma: 16
Join Date: Sep 2009
Location: UK
Device: Sony PRS-600 with latest Calibre and Linux Ubuntu-9.10
The first bit has been answered here
booksonthemove is offline   Reply With Quote
Old 02-21-2010, 09:05 AM   #3
frabjous
Wizard
frabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
frabjous's Avatar
 
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
I would prefer HTML over RTF as your intermediary format, especially if going to ePub (which is just zipped HTML).

You can use OpenOffice to convert to HTML or RTF certainly. I think there's a way of making it do on the commandline, but I've never managed to get it to work. However, it's fairly easy with AbiWord (Ubuntu package abiword).

The following shell command will batch convert every .doc and .docx in a given folder to .epub (with AbiWord and calibe installed):

(Be careful of files ending in .html or .epub with the same names already in the same folder; I haven't bothered watching for them.)

Quote:
for i in *.doc ; do abiword --to=html "$i" ; ebook-convert "${i%.doc}.html" "${i%.doc}.epub" --output-profile="sony" ; done
I don't know much about *.chm files, but if AbiWord can open them (likely), changing *.doc to *.chm in the above will do the trick.

Last edited by frabjous; 02-21-2010 at 09:11 AM.
frabjous is offline   Reply With Quote
Old 02-21-2010, 01:26 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: 25,991
Karma: 5036765
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
CHM support is in the works.
kovidgoyal 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
New conversion questions: Getting rid of huge left margin Epub to Mobi geekgeek Calibre 2 08-31-2010 11:00 PM
doc conversion under Linux booksonthemove Calibre 8 03-25-2010 12:50 PM
Install problem on Linux (Ubuntu 9.10) hmonster Calibre 8 03-25-2010 05:08 AM
PRS-300 Any problems with Linux (Ubuntu) ? Aristée Sony Reader 8 11-07-2009 10:20 AM
Linux Ubuntu rockingrector Calibre 4 01-23-2009 04:00 AM


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


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