Closed shadoof closed 3 years ago
issues with animateSurroundings()
after:
https://github.com/shadoof/rtwtr/blob/viajsdiff/js/animation.js#L203
The issues I see are following:
<br>
to spaces, shall we integrate that? In this case, though it actually has enough place for the replacement text, the context analysis doesn't see it.Hi Sally, Thanks for getting back to rtwtr. Here, I'm fielding more stupid crises ;) See below:
. . . . . . . . John Cayley Professor and Chair of Literary Arts, Brown University iPhone: +1 (401) 368 3002 email: @.*** personal zoom: https://brown.zoom.us/my/johncayley/ . . . . . . . .
On March 17, 2021 at 1:06:57 PM, cqx931 @.***) wrote:
The issues I see are following:
The current context report doesn't translate to spaces, shall we integrate that? In this case, though it actually has enough place for the replacement text, the context analysis doesn't see it. Yes, ultimately we much treat spaces as first class entities, real things, not white space. I'm inclined, for example, to be consistent in using Diff.wordDiffWithSpace() rather than wordDiff() (if I've remember those method names right).
Shall we try to avoid 'lines moving down to make space' in verse mode? To me, this makes more sense in the normal context, while not so much for verses. Yes. There are extremely rare edge cases but we need not account for these in what we have for the moment.
In haste and all best,
John
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
reproduce with
a_
andb_via_test.txt
in place, then hover over "the" in first line:If something is we should strenuously avoid shifting replacement text up or down: should only happen in extreme cases, and if it does, there should be word wrapping to indicate why it is happening