[sword-devel] Comparing Verses

DM Smith dmsmith555 at yahoo.com
Tue Jan 17 21:13:52 MST 2006



Chris Umphress wrote:
> On 1/17/06, Chris Umphress <umphress at gmail.com> wrote:
>   
>> On 1/17/06, DM Smith <dmsmith555 at yahoo.com> 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
>>
>> I haven't been able to compile it yet, but the source should have the algorithm.
>>     
>
> I'd like to take that back. I just had to comment out a couple
> functions (the functions that it complains about during make --
> 'getline' and another one) and it works. Seems like its' algorithm
> should work for a verse comparison:
>
> $ 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 gave,+} that [-whosoever believeth-] {+every one who is
> believing+} in him [-should-] {+may+} not perish, but {+may+} have
> [-everlasting life.
> (KJV)-] {+life age-during.
> (YLT)+}
>
>   
This should be easy to change, substituting, for example,
    <strike>  for [-
    </strike> for -]
    <strong> for {+
    </strong> for +}
to produce a fragment of html.



More information about the sword-devel mailing list