Jump to content

User:PerfektesChaos/WikidiffLX/October 2011 Coding Challenge

From mediawiki.org

Making Wikipedia More Alive: I would like to make diffpages more comprehensive.

Significant changes are to be made distinct from whitespace change. Currently, a simple line break insertion/deletion is mixing up the entire picture, since the unchanged paragraphs are no longer compared.

The following issues are addressed by my submission:

  1. Avoid confusion by empty lines
  2. Improve modified consecutive lines
  3. Improve visualization of context lines
  4. Visualize space-only differences
  5. Visualize non-ASCII spaces
  6. Visualize zero-width differences

Details are explained on top of this subpage; the code is linked here.


The code has been tested and is already working on basic test cases. To be quite honest, I have not created the story last night, but developed requirements and solution since summer, mentioning on bugzilla:29385#c3 and depositing into the drawer for the moment.

Further work to establish a testwiki environment and exhaustive testing on real pages may be done if the proposal is taken into account for usage by WMF.