Re: [tw5] Re: Issues with the Difference Engine

2019-03-24 Thread @TiddlyTweeter
Thanks Mohammad Its great the user can set the Diff settings without having to hack commander code! FYI, a lot of the time the user won't see much difference between the "cleanup" settings. But sometimes they will really help. I'm now working on a "Tutor" module for snr that is

Re: [tw5] Re: Issues with the Difference Engine

2019-03-24 Thread Mohammad
Hi Josiah! Commander now accepts the cleanup option in Setting tab! Have a look at the latest update. --Mohammad On Saturday, March 23, 2019 at 2:14:14 AM UTC+4:30, @TiddlyTweeter wrote: > > Thanks Mohammad > > I enjoy it as I really like regular expressions. > > Today I experimented with the

Re: [tw5] Re: Issues with the Difference Engine

2019-03-22 Thread @TiddlyTweeter
Thanks Mohammad I enjoy it as I really like regular expressions. Today I experimented with the DiffTextWidget attributes and think for SNR that attribute *cleanup="none"* is likely best default. In a few days I'll make a demo so we can look at it closer. Best wishes Josiah On Friday, 22

Re: [tw5] Re: Issues with the Difference Engine

2019-03-21 Thread Mohammad
Hi Josiah, Many thanks for your efforts. It is possible to set cleanup parameter of diff-text to other value or add settings to lets user choose among them. --Mohammad On Friday, March 22, 2019 at 3:31:32 AM UTC+4:30, @TiddlyTweeter wrote: > > Ciao Jeremy, Mohammad and all interested > > I

Re: [tw5] Re: Issues with the Difference Engine

2019-03-21 Thread @TiddlyTweeter
Ciao Jeremy, Mohammad and all interested I spent a day trying to get my head round this to get clearer. It was productive. I realised after a few hours of noodling about that the default in TW for the diff engine--as well documented in DiffTextWidget

Re: [tw5] Re: Issues with the Difference Engine

2019-03-19 Thread @TiddlyTweeter
Jeremy I do see its "accurate" as a representation of a kind. Though some of the *colouration is not logical--that is a compounded styling fault* I think--but important to note as it might be addressed? The problem is the demands on the user to 1, grasp its just a representation, not what

Re: [tw5] Re: Issues with the Difference Engine

2019-03-19 Thread Jeremy Ruston
Hi Josiah To explain it another way, the example diff you quoted earlier was "correct", in that it is an accurate depiction of a set of modifications which will turn the first string into the second. The problem is that what an algorithm sees as a reasonable way to display the differences may

Re: [tw5] Re: Issues with the Difference Engine

2019-03-19 Thread @TiddlyTweeter
Jeremy I definitely think access to change parameters could be helpful. In the case of SNR one needs a logical consistent representation. It doesn't matter if its very long--so long as its consistent. The biggest problem at the moment is the Diff. Engine creates a mix of representations that

Re: [tw5] Re: Issues with the Difference Engine

2019-03-19 Thread @TiddlyTweeter
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,

Re: [tw5] Re: Issues with the Difference Engine

2019-03-19 Thread Jeremy Ruston
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

[tw5] Re: Issues with the Difference Engine

2019-03-19 Thread Mohammad
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

[tw5] Re: Issues with the Difference Engine

2019-03-19 Thread @TiddlyTweeter
Repeat for email users ... On Tuesday, 19 March 2019 14:38:54 UTC+1, @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