Re: [sword-devel] Comparing Verses

2006-01-18 Thread DM Smith
Chris Little wrote: DM Smith wrote: Someone has ported the GNU diff algorithm to Java (see http://www.bmsi.com/java/Diff.java) It is written as the diff of two arrays. I compared the code against analyze.c in GNU's diffutils and it looks like a straightforward port. I think it would be triv

Re: [sword-devel] Comparing Verses

2006-01-18 Thread Jeremy Erickson
The code from BibleMemorizer I mentioned earlier is released under an MIT license. Like I said, the algorithm is quite a bit simpler than the algorithm used by actual diff, but it might be good enough. A simpler algorithm might also make for simpler coding to make changes. I'm

Re: [sword-devel] Comparing Verses

2006-01-18 Thread Chris Little
DM Smith wrote: Someone has ported the GNU diff algorithm to Java (see http://www.bmsi.com/java/Diff.java) It is written as the diff of two arrays. I compared the code against analyze.c in GNU's diffutils and it looks like a straightforward port. I think it would be trivial to port it to C++

Re: [sword-devel] Comparing Verses

2006-01-18 Thread DM Smith
Chris Little wrote: DM Smith wrote: I think it would be good to have it be an api feature of Sword. What's the possibility of getting it into the Sword API? (I know we are all busy and I am not a C++ coder anymore. It's been too long.) There's a little complexity in that wdiff is a frontend to

Re: [sword-devel] Comparing Verses

2006-01-18 Thread Chris Little
DM Smith wrote: I'm not familiar with Sword's filters. Can someone give a quick overview? When the Sword API reads text, does it filter it from its internal format (e.g. ThML, GBF) into a consistent one (e.g. OSIS)? or is it more than one? If so which? And then render that into the delivery

Re: [sword-devel] Comparing Verses

2006-01-18 Thread DM Smith
Chris Little wrote: DM Smith wrote: This should be easy to change, substituting, for example, for [- for -] for {+ for +} to produce a fragment of html. Or... OSIS has the tag, with types: {'added'|'amplified'|'changed'|'deleted'|'moved'|'tenseChange'} It would be fairly sim

Re: [sword-devel] Comparing Verses

2006-01-18 Thread Chris Umphress
On 1/17/06, DM Smith <[EMAIL PROTECTED]> wrote: > This should be easy to change, substituting, for example, > for [- > for -] > for {+ > for +} > to produce a fragment of html. Nothing too fancy, but here's a sample page: http://daga.dyndns.org/god/bible/wdiff.php You're al

Re: [sword-devel] Comparing Verses

2006-01-17 Thread Jeremy Erickson
I actually developed a quiz feature for use in my own BibleMemorizer, using an algorithm that does just this. It's a fairly simple algorithm I developed myself (wdiff is probably better), but it worked reasonably well with the test cases I gave it. See the "correctText" function in th

Re: [sword-devel] Comparing Verses

2006-01-17 Thread Chris Little
DM Smith wrote: This should be easy to change, substituting, for example, for [- for -] for {+ for +} to produce a fragment of html. Or... OSIS has the tag, with types: {'added'|'amplified'|'changed'|'deleted'|'moved'|'tenseChange'} It would be fairly simple to plug a fil

Re: [sword-devel] Comparing Verses

2006-01-17 Thread Chris Umphress
On 1/17/06, DM Smith <[EMAIL PROTECTED]> wrote: > > $ diatheke -b KJV -k John3:16 >1; diatheke -b YLT -k John3:16 > > >2;./src/wdiff 1 2 > > John 3:16: [-For-] {+for+} God {+did+} so [-loved-] {+love+} the > > world, that [-he gave his-] {+His Son--the+} only [-begotten Son,-] > > {+begotten--He

Re: [sword-devel] Comparing Verses

2006-01-17 Thread DM Smith
Chris Umphress wrote: On 1/17/06, Chris Umphress <[EMAIL PROTECTED]> wrote: On 1/17/06, DM Smith <[EMAIL PROTECTED]> wrote: "Is there any open source software that can be used to create a visually pleasant markup of the comparison of two verses?" http://wdiff.progiciels-bpi.c

Re: [sword-devel] Comparing Verses

2006-01-17 Thread DM Smith
Chris Umphress wrote: On 1/17/06, DM Smith <[EMAIL PROTECTED]> wrote: When Chris Umphress included the link http://kohl.wikimedia.org/~avar/gpl3/wdiff.html regarding the differences between GPL v2 and v3 (proposed) it got me thinking: "Is there any open source software that can be used to

Re: [sword-devel] Comparing Verses

2006-01-17 Thread Chris Umphress
On 1/17/06, Chris Umphress <[EMAIL PROTECTED]> wrote: > On 1/17/06, DM Smith <[EMAIL PROTECTED]> wrote: > > "Is there any open source software that can be used to create a visually > > pleasant markup of the comparison of two verses?" > http://wdiff.progiciels-bpi.ca/showfile.html?mode=archives >

Re: [sword-devel] Comparing Verses

2006-01-17 Thread Chris Umphress
On 1/17/06, DM Smith <[EMAIL PROTECTED]> wrote: > When Chris Umphress included the link > > http://kohl.wikimedia.org/~avar/gpl3/wdiff.html > > regarding the differences between GPL v2 and v3 (proposed) it got me thinking: > > "Is there any open source software that can be used to create a visually

[sword-devel] Comparing Verses

2006-01-17 Thread DM Smith
When Chris Umphress included the link http://kohl.wikimedia.org/~avar/gpl3/wdiff.html regarding the differences between GPL v2 and v3 (proposed) it got me thinking: "Is there any open source software that can be used to create a visually pleasant markup of the comparison of two verses?" Does