Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech
HTML/Inline/Visual Diff
 

Index | Next | Previous | View Flat


guyvdb at gmail

Aug 17, 2008, 5:39 PM


Views: 734
Permalink
HTML/Inline/Visual Diff

Hi,

I think the HTML diff page I've been developing for the Google Summer
of Code is ready to be tested as an experimental feature. You enable
it by setting $wgEnableHtmlDiff to true in r39564. What you'll see is
a rendered version of the diff page with indications where words were
added or removed. Image edits are supported too. Words that got a
different style are underlined and you get an English (only, for now)
explanation of what happened.

The interface is pretty basic and needs work. I'm not very good with
cross browser stuff though. I can provide meta data in the HTML such
as descriptions, id's, pointers to the previous and next change, etc.
Usability can be enhanced by adding links that take you to the first
or last change on the page, tool tips that open when clicking a
change, or keyboard shortcuts that scroll through the changes. Help is
appreciated in this department.

I spent a lot of time optimizing the code (include/HTMLDiff.php) for
speed which makes the code less readable but performance is an issue.
PHP is not my native tongue and the code would probably run faster if
an expert took a look at it. I think the performance is pretty decent
as it is (what do you expect from code that needs to parse 2 pages,
diff every single word and keep everything in memory). The algorithm
will probably choke on big pages (set your available memory high!).

Huge changes make the page look messy but that can't be avoided. In my
biased opinion the results look very good for reasonably sized pages
and versions that are not too distant.

So here is where your feedback and bug reports kick in.

Cheers,

Guy

_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Subject User Time
HTML/Inline/Visual Diff guyvdb at gmail Aug 17, 2008, 5:39 PM
    Re: HTML/Inline/Visual Diff roan.kattouw at home Aug 18, 2008, 6:56 AM
        Re: HTML/Inline/Visual Diff guyvdb at gmail Aug 18, 2008, 7:51 AM
        Re: HTML/Inline/Visual Diff Simetrical+wikilist at gmail Aug 18, 2008, 10:56 AM
    Re: HTML/Inline/Visual Diff roan.kattouw at home Aug 18, 2008, 10:58 AM
    Re: HTML/Inline/Visual Diff guyvdb at gmail Aug 20, 2008, 5:48 AM
    Re: HTML/Inline/Visual Diff brion at wikimedia Aug 20, 2008, 9:00 AM
        Re: HTML/Inline/Visual Diff roan.kattouw at home Aug 20, 2008, 10:51 AM
            Re: HTML/Inline/Visual Diff dan_the_man at telus Aug 22, 2008, 1:34 AM
                Re: HTML/Inline/Visual Diff guyvdb at gmail Aug 22, 2008, 1:54 AM
    Re: HTML/Inline/Visual Diff dan_the_man at telus Aug 22, 2008, 2:40 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.