Hi Mathias,

On Thursday, 2011-07-14 14:59:01 +0200, Mathias Bauer wrote:

> For many use cases a simple tool that just reads the text contents in
> ODF documents and compares them would be enough already, IMHO. Perhaps
> we can create one as a start.

As a starter there are xmlpp and xmldiff from
http://software.decisionsoft.com/index.html

I use xmlpp as a quick inspector for ODF content and it does its job
pretty well.

unzip -p "$1" content.xml styles.xml settings.xml | xmlpp.pl | vim -

To diff content one could use for example

unzip -p doc1.odt content.xml > doc1_content.xml
unzip -p doc2.odt content.xml > doc2_content.xml
xmldiff.pl doc1_content.xml doc2_content.xml

xmldiff internally uses xmlpp with appropriate options so no need to
have an extra xmlpp preprocess step.

Hacking some special treatment of Writer paragraphs into xmlpp would
probably be possible.

  Eike

-- 
 PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication.
 Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

Attachment: pgp0M4mRJvdFi.pgp
Description: PGP signature

Reply via email to