No description
Find a file
loadi 7d89364ebd
All checks were successful
Build and deploy application / default (push) Successful in 10m47s
.forgejo/workflows/default.yml aktualisiert
2025-11-27 21:42:51 +01:00
.forgejo/workflows .forgejo/workflows/default.yml aktualisiert 2025-11-27 21:42:51 +01:00
css Initial commit: forked from http://daisydiff.googlecode.com/svn/tags/v1.2/ 2012-05-03 18:53:20 +02:00
images Initial commit: forked from http://daisydiff.googlecode.com/svn/tags/v1.2/ 2012-05-03 18:53:20 +02:00
js Initial commit: forked from http://daisydiff.googlecode.com/svn/tags/v1.2/ 2012-05-03 18:53:20 +02:00
src #1 Fix and enable tests 2025-05-25 17:26:00 +02:00
.gitignore Mavenize project 2012-05-03 19:27:51 +02:00
LICENSE.txt Initial commit: forked from http://daisydiff.googlecode.com/svn/tags/v1.2/ 2012-05-03 18:53:20 +02:00
nb-configuration.xml #1 Fix a bunch of tests -> Table related features seemingly don't work 2023-07-28 14:38:49 +02:00
nbactions.xml Increase version 2024-01-04 17:55:40 +01:00
NOTICE.txt Initial commit: forked from http://daisydiff.googlecode.com/svn/tags/v1.2/ 2012-05-03 18:53:20 +02:00
pom.xml Update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.5.4 (#51) 2025-09-17 10:28:51 +02:00
pom.xml.versionsBackup Increase version 2024-01-04 17:55:40 +01:00
README.md Add no-more-maintained section in the README 2020-08-05 12:44:39 +02:00
renovate.json Configure Renovate (#39) 2024-05-01 10:18:25 +02:00

This is a maintenance project of DaisyDiff in Java. The initial commit is a checkout of version 1.2 of old DaisyDiff project.

For more documentation see daisydiff.github.io.

WARNING The maintenance of this repository by the Nuxeo organization is now strictly limited to critical security fixes. If you need some other kind of maintenance, please check the repository's forks or fork it yourself.

Standalone usage

java -jar daisydiff-1.2-NX4-SNAPSHOT-jar-with-dependencies.jar [oldHTML] [newHTML] [optional arguments]

Optional Arguments:

  • --file=[filename] - Write output to the specified file.
  • --type=[html/tag] - Use the html (default) diff algorithm or the tag diff.
  • --css=[cssfile1;cssfile2;cssfile3] - Add external CSS files.
  • --output=[html/xml] - Write html (default) or xml output.
  • --q - Generate less console output.

Example:

java -jar daisydiff-1.2-NX4-SNAPSHOT-jar-with-dependencies.jar http://web.archive.org/web/20070107145418/http://news.bbc.co.uk/ http://web.archive.org/web/20070107182640/http://news.bbc.co.uk/ --css=http://web.archive.org/web/20070107145418/http://news.bbc.co.uk/nol/shared/css/news_r5.css

Requirements: Java 1.5 or 6

Embedded usage

org.outerj.daisy.diff.DaisyDiff{

/**
 * Diffs two html files, outputting the result to the specified consumer.
 */
public static void diffHTML(InputSource oldSource, InputSource newSource, ContentHandler consumer, String prefix, Locale locale) throws SAXException, IOException;

/**
 * Diffs two html files word for word as source, outputting the result to
 * the specified consumer.
 */            
public static void diffTag(String oldText, String newText, ContentHandler consumer) throws Exception;

}

Requirements: Java 1.5 or 6

To run Daisy Diff embedded in your application, you don't need the entire Jar file. A much smaller Jar file without Xerces and NekoHtml will suffice.

PHP

The DaisyDiff algorithm has been integrated in MediaWiki. However, it had major errors and has been pulled out. More info at www.mediawiki.org/wiki/Visual_Diff. See also github.com/cdauth/htmldiff.

Acknowledgements

  • Guy Van den Broeck guy@guyvdb.eu
  • Daniel Dickison
  • Antoine Taillefer
  • Thomas Roger