[pmwiki-users] compare revisions down to single letters
Martin Fick
fick at fgm.com
Thu Jun 9 16:29:11 CDT 2005
Take any line that has changed, output every character to a
sperate line in a file. You end up with 2 files, one for
the original line and one for the changed line. Run a
regular diff on the two files,interpret output as character
positions instead of lines and voila you have character
diffs.
Very crude, but it works. :) I might even have a sample
hidden somewhere if someone is really interested, but I
assume that Pm would want to write it in PHP, not using the
diff program. Also, there is program called wdiff that
might provide what you need,
-Martin
On Thu, Jun 09, 2005 at 03:51:07PM -0500, Patrick R. Michaud wrote:
> On Thu, Jun 09, 2005 at 10:27:30PM +0200, Stephan Schildberg wrote:
> > Hello,
> >
> > do you know a way how to compare two revisions by the resolution down to
> > single letters?
> > I've been told that phpwiki has such a function which helps a lot while
> > correcting copies.
> >
> > Is a there a recipe I might have overseen or are someone planning to
> > build that kind?
>
> I haven't found a good algorithm for doing this -- if one can
> point me to one then I'll be glad to see about incorporating it
> into PmWiki.
>
> Pm
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users
More information about the pmwiki-users
mailing list