||Compares documents and outputs html highlighting differences
||2003-07-10 04:03:27 GMT
(Projects of this owner)
What's new: Documents to be compared can be html, pdf, text, rtf, MS word or PostScript and do not have to be in the same format. Some refactoring.
What's was new: some refactoring
Usage: ruby compare.rb <original file> <modified file>
Input: two files, each in html, text, MS word, rtf, pdf or PostScript format.
Output: <modified file>.html.
Deletions are shown with strike-through and in red. Additions are shown underlined and in blue.
Uses wdiff, available at
and txt2html, a perl program, available at
txt2html installation instructions are at
Installation: Add #!/path/to/ruby to compare.rb. Copy compare.rb to desired directory (e.g., /usr/local/bin). Make compare.rb executable. Copy compare_model.rb and document_convert_model.rb to ruby library (e.g., /usr/local/lib/ruby/site_ruby/1.8/). document_convert_model.rb is the same file included with doc_convert, also available on the RAA.