Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-05-2011, 06:32 PM   #1
Artiach
Junior Member
Artiach began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2011
Device: kindle
Let's add DOC support

I'm in need of doc support in Calibre, to convert a bunch of docs for my mother. I thought this wouldn't be so hard to add so I want to contribute a patch.

First, of course, I would like to hear from the authors about why Calibre doesn't support DOC already (I'm assuming there's a reason) and if they have pointers on how to go about it.

To get the ball rolling, for DOCX we have this:
http://openxmlviewer.codeplex.com/releases/view/25391

And for normal docs I found antiword http://www.winfield.demon.nl/
Antiword is not a proper solution I know, does anyone know anything better?

EDIT: There's also this I didn't mention it cause it's java but maybe that's acceptable:
http://www.artofsolving.com/opensource/jodconverter

Last edited by Artiach; 05-05-2011 at 06:55 PM.
Artiach is offline   Reply With Quote
Old 05-05-2011, 07:32 PM   #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: 45,261
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No converter for docx exists because no one has written one. It's on my TODO list, but then so are about 300 other things.

There's never going to be a converter for doc as opposed to docx as doc is Gods own nightmare and I have no desire whatsoever to support it.

If you do want to write an input plugin for docx, I'd estimate it would be a few days work to support basic docx features. For me to merge your plugin into calibre it must be in python and not depend on external utilities as otherwise supporting it becomes too much of a headache.
kovidgoyal is offline   Reply With Quote
Advert
Old 05-05-2011, 07:33 PM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,479
Karma: 145863170
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Save as RTF and convert from there.
JSWolf is offline   Reply With Quote
Old 05-05-2011, 08:01 PM   #4
Artiach
Junior Member
Artiach began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2011
Device: kindle
Ooh! Ok. I was under the impression that you relied on open source command line utilities or libraries that you built for every platform and then you'd invoke them. I had no idea converters where in Python too (I wondered why Calibre conversion was so slow).

So yeah, doing a 100% native python solution is too much work unfortunately. I'll look for some kind of batch converter to convert my docs to rtf or html.
Artiach is offline   Reply With Quote
Old 05-05-2011, 08:24 PM   #5
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: 45,261
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Nope the only conversion that uses a non python library is PDF.
kovidgoyal is offline   Reply With Quote
Advert
Old 05-05-2011, 10:44 PM   #6
Artiach
Junior Member
Artiach began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2011
Device: kindle
Quote:
Originally Posted by kovidgoyal View Post
Nope the only conversion that uses a non python library is PDF.
Ah, so can't we do the same for docs?
Artiach is offline   Reply With Quote
Old 05-05-2011, 11:29 PM   #7
Artiach
Junior Member
Artiach began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2011
Device: kindle
Sorry to double post. I just discovered that Calibre supports ODT. That means I can use the batch conversion wizard in OpenOffice Writer (File->Wizards->Document converter) to convert mass amounts of docs to odt and then use that in Calibre. So yeah, doc support isn't really needed in light of this. Thanks for the answers anyway.
Artiach is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Doc Splitter-Macro or Add-in For Word 2003 konrad Workshop 0 03-08-2011 03:43 PM
Why not five level zoom support for .doc and .txt files? aegeus Astak EZReader 5 10-01-2009 03:08 AM
Any Chance Calibre Will Support Direct DOC Conversion? sirbruce Calibre 1 03-22-2009 05:14 AM
please add unicode support on kindle theinv Kindle Developer's Corner 6 06-30-2008 03:57 PM
Manybooks first to add support for iRex iLiad emkay iRex 23 08-30-2006 01:58 AM


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


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