in reply to Comparing two text files and marking differences

I am ignorant of version control systems but isn't what you want to achieve similar? A computer programmer makes a change to the code and the vcs records that and graphically shows the history of all edits, even by different users. Probably the algorithms for doing this are in some free library and you can call them from your scripts if you don't want to force the users to use a specific environment.

Creating a specific environment in which edits are made is another approach if your setup permits: you provide the editor environment within which these changes are made by the reviewer. Because all the changes are made within this editor, it will know what changed, when, by whom and to what, marking these appropriately.

The vcs does not necessarily need fresh texts. If you have the progression of a text: T0->T1->T2 then it can probably still work as it does not. I think, tracks user keystrokes but it diffs text as you want.

bw, bliako

  • Comment on Re: Comparing two text files and marking differences

Replies are listed 'Best First'.
Re^2: Comparing two text files and marking differences
by Polyglot (Chaplain) on Jan 31, 2021 at 15:40 UTC

    Well, my comparison is of two separate books. The original was published in 1897, and then it was dramatically edited and altered in 1944--not by the original author. The changes have not been widely publicized, but they are rather extensive, and entirely change the meaning at times (sometimes fully opposite the original meaning). My goal is simply to apprise people of the changes in a way that they can visualize them more easily and grasp their significance. One of the books, coming from OCR, seems to have more OCR-related artifacts than the other, and I may end up consulting with a hard-copy version of that book which I happen to have in hand to fix some of those. Seeing the discrepancies will help me locate them more quickly myself.

    I'm unfamiliar with software versioning systems as well, having never used them.

    Blessings,

    ~Polyglot~