Introduction
This piece of software converts from Open Office files (.odt) into emacs org-mode files (.org).
Download
Installation
Windows
1. Install python: I have been using python 2.6.x
2. Install lxml.
3. Install OleFileIO
If you use linux, you probably already know how to install python libraries. The idea is:
- Unzip/Untar the library
- Go to the directory where there is a file called: setup.py
- Install using a line like:
C:\python26\python setup.py install
Linux
Very similar to windows way. (Sorry for being lazy)
Usage
It is very easy to convert files:
C:\python26\python.exe odt2org.py -i filename.odt -o filename.org
(you will have to adjust the paths to your taste)
Features
- It is use level information to create the outline structure.
- It converts tables into org-mode way. It always use first line always as a header.
- It extracts files such: images, .pdf, .doc, .xls that may be attached as object. The files are extracted to the same directory where the output file is created.
- It creates links to those files.
Note that despite this is not a doc2org converter, that was the original purpose. You will have to use OpenOffice to convert from .doc to .odt and afterwards this little piece of software to convert from .odt to .doc.
Note that the outline structure has to be provided by the original file (level information). The software does not create an structure based on format information (yet ;oP).
Disclaimer
I am not a developer and I didn't spend too much time (actually two days) creating the software. I am sharing it hoping it becames useful to you. Or if you are a more serious developer…. you know.
Use it at your own risk.
Comments, bugs, etc are welcomed. Send them via: contact me
History
- 2009-08-12: first version with main functionality.






