I have two ODT documents, they have very close contents, I want to compare them to see how similar they are.

The best would be to have a similarity percentage, if not possible, an alternative would be at least to have some sort of diff.

I am running Ubuntu Lucid.


Solution:

I used odt2txt to convert the files to text, then used wdiff -i --statistics one.txt two.txt to have a diff along with statistics which gave me the percentage of common words (similarity).

link|improve this question
feedback

3 Answers

up vote 2 down vote accepted

I haven't tried them myself but this pair of tools - odt2txt and oodiff - looks promising.

link|improve this answer
I used odt2txt to convert them to text, and then used wdiff which gives a diff by word. – Weboide Jul 13 '10 at 10:36
feedback

If you don't care about text formatting, you may as well copy the contents to plaintext files and use good old diff.

ps: Are you a teacher looking for possible cheaters ? :p

link|improve this answer
lol no I'm not a teacher but yeah this would be a good way to look for cheaters :) – Weboide Jul 11 '10 at 17:16
feedback

Did you try the built-in compare functionality? Edit / Compare Document...

If you just want a textual diff, your best bet is probably to convert both documents to plain text, then run a regular diff on them. You will have to figure out how to normalize linebreaks though, otherwise the diff will not be very useful.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.