Jeremy On this I can specify where it breaks down by examples in detail if you want.
I don't understand the code but I can see what it is doing. Let me know if it would be helpful and I will.. Best Josiah On Tuesday, 19 March 2019 20:45:00 UTC+1, Jeremy Ruston wrote: > > Hi Josiah, Mohammad, > > The core uses Google's Diff-Match-Patch library by Neil Fraser: > > https://github.com/google/diff-match-patch > > It turns out that reliably creating human-readable diffs is one of those > tricky problems in computer science that doesn't have a clean solution. The > docs for the library discuss some parameters that can be tweaked to control > things: > > https://github.com/google/diff-match-patch/wiki/API > > Maybe we should expose all of the parameters as attributes on the > DiffTextWidget, making it easier for people to experiment with different > settings. > > Best wishes > > Jeremy > > -- > Jeremy Ruston > jer...@jermolene.com <javascript:> > https://jermolene.com > > On 19 Mar 2019, at 15:13, Mohammad <mohammad...@gmail.com <javascript:>> > wrote: > > What Josiah said can be tested on SNR at > > https://kookma.github.io/TW-Commander/ > > It seems the Tiddlywiki diff-text works fine for simple cases like > alphanumeric but working with more complex cases like regexp, it encounter > difficulties. > > --Mohammad > > On Tuesday, March 19, 2019 at 5:08:54 PM UTC+3:30, @TiddlyTweeter wrote: >> >> The Difference Engine is an incredibly useful feature of TW. For writers, >> for coders, for versioning systems that are now commonly used. And, more >> recently, in tools like Mohammad's regular expressions based >> Search-n-Replace. >> >> The problem is its visual presentation (it does not harm the writing, it >> just) under some circumstances is extremely misleading. >> >> For instance ... Actually the edit here was only to remove *<* & > but >> the differences shown are very confusing with many items in green and pink >> that should not be, and with inconsistent presentation that is even more >> confusing. >> >> I wonder if it can be made more accurate? >> >> [image: diff-view-5.jpg] >> >> >> Best wishes >> Josiah >> >> >> -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to tiddlywiki+...@googlegroups.com <javascript:>. > To post to this group, send email to tiddl...@googlegroups.com > <javascript:>. > Visit this group at https://groups.google.com/group/tiddlywiki. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/f66e485c-50c8-4ca0-9c92-47c1363c9ca3%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/f66e485c-50c8-4ca0-9c92-47c1363c9ca3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b555b8c0-785e-4b7a-906e-02f856fe461d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.