login/register

Snip!t from collection of Alan Dix

see all channels for Alan Dix

Snip
summary

Command-line tools to manipulate OpenDocument files
OpenOffice itself can convert between a lot of different ...
I found out the two following projects:
* Unoconv: a command-line program which uses the Ope ...
... nt files. It works recursively if cal

OpenDocument, diff, and revision-control
http://www-verimag.imag.fr/~moy/opendocument/

Categories

/Channels/techie/desktop

[ go to category ]

For Snip

loading snip actions ...

For Page

loading url actions ...

Command-line tools to manipulate OpenDocument files

OpenOffice itself can convert between a lot of different file formats, but you have to use the GUI, while a command-line facitily would help batch-processing (Makefiles, scripts, ...).

I found out the two following projects:

  • Unoconv: a command-line program which uses the OpenOffice API to do any conversion that OpenOffice itself is able to do.
  • Odt2txt: a simple stand-alone program that converts OpenDocument files into text (with a minimal formatting). Its webpage claims it converts odt files only, but it aclually works on presentations (.odp) and spreadsheets (.ods) too.

diff-ing OpenDocument files

odt2txt allows one to diff two opendocument files like text files. Install odt2txt and download this (trivial) shell-script and put it in your $PATH (no idea on how to run this on windows :-():

  • oodiff: a shell-script to diff OpenDocument files. It works recursively if called on directories.

HTML

<h2 xmlns="http://www.w3.org/1999/xhtml">Command-line tools to manipulate OpenDocument files</h2> <p xmlns="http://www.w3.org/1999/xhtml">OpenOffice itself can convert between a lot of different file formats, but you have to use the GUI, while a command-line facitily would help batch-processing (Makefiles, scripts, ...).</p> <p xmlns="http://www.w3.org/1999/xhtml">I found out the two following projects:</p> <ul xmlns="http://www.w3.org/1999/xhtml"> <li><a href="http://dag.wieers.com/home-made/unoconv/">Unoconv</a>: a command-line program which uses the OpenOffice API to do any conversion that OpenOffice itself is able to do.</li> <li><a href="http://stosberg.net/odt2txt/">Odt2txt</a>: a simple stand-alone program that converts OpenDocument files into text (with a minimal formatting). Its webpage claims it converts odt files only, but it aclually works on presentations (.odp) and spreadsheets (.ods) too. </li> </ul> <h2 xmlns="http://www.w3.org/1999/xhtml">diff-ing OpenDocument files</h2> <p xmlns="http://www.w3.org/1999/xhtml">odt2txt allows one to diff two opendocument files like text files. Install odt2txt and download this (trivial) shell-script and put it in your <tt>$PATH</tt> (no idea on how to run this on windows :-():</p> <ul xmlns="http://www.w3.org/1999/xhtml"> <li><a href="oodiff">oodiff</a>: a shell-script to diff OpenDocument files. It works recursively if called on directories.</li></ul>