I have been playing a bit with wdiff 
  http://www.iro.umontreal.ca/~pinard/wdiff/HTML/
to see whether we can compare two versions of the same file. It turns
out that this is possible, although a lot of work still has to be
done.

I took revision 1.23 of BUGS.lyx from cvs, along with latest version.
I edited the language of the former because preambles were different.
Then running

wdiff -w'\color red ' -x'\color default ' -y'\color green ' -z'\color default ' 
BUGS-1.23.lyx BUGS.lyx >BUGS-diff.lyx

I get the following file:
  http://www-rocq.inria.fr/~lasgoutt/lyx/BUGS-diff.lyx

Of course, this is not usable for real work now:

- we should have real markers for deleted/added entries, not color
  change as we have now. And then support for accepting/rejecting
  modifcations, like in word.

- currently, if there is a change in a math formula, for example, ugly
  things will happen. We should have a (perl?) postprocessor to fix
  those marks.

However, I find the result to be rather interesting.

JMarc

Reply via email to