Page MenuHomePhabricator

Implement diff on sentence level (instead of per paragraph block)
Open, LowPublic

Description

Author: stvrtg

Description:
For example, in the diff:
http://en.wikipedia.org/w/index.php?title=Undeciphered_writing_systems&diff=375671540&oldid=372821363

The edit separated the second sentence as the start of a new paragraph and inserted the text, shown at the beginning of the green field, as part of the first paragraph. The second sentence and after, now a separate paragraph, is still shown highlighted in green.

A search/comparison function inserted after the diff is formed which compares the pre-existing version and the diff output text, could unmark the pre-existing text from green to a nominal yellow color. This helps to distinguish text which has added from pre-existing text which has simply been shifted, moved, or transplanted.

-SC


Version: unspecified
Severity: enhancement

Details

Reference
bz24617

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:11 PM
bzimport added a project: MediaWiki-Page-Diffs.
bzimport set Reference to bz24617.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.Aug 1 2010, 2:48 AM

MediaWiki supports using different diff-algorithm programs. So if you find a diff algorithm that can do this, it may be possible to try that on a wiki (or your own (test) wiki) without having to change MediaWiki core.

Would be nice if could have this by default! There are a lot of other bugs about issues and lackings in the default diff algorithm.

  • Bug 69097 has been marked as a duplicate of this bug. ***
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 23 2015, 6:10 PM
cscott added a subscriber: cscott.Apr 26 2016, 4:00 PM

Sentence-level selser for Parsoid would also help with editing pages which use languageconverter.

The way the diff viewer currently works, it can make it difficult to spot vandalism sometimes with this problem. I hope it does get fixed someday soon.

He7d3r added a subscriber: He7d3r.Nov 8 2017, 12:09 AM