tischendorf icon indicating copy to clipboard operation
tischendorf copied to clipboard

Add JSON version

Open scruffian opened this issue 5 years ago • 5 comments

This adds a JSON version of the text for use in JS bibles like javascripture.org. To test, run python main.py in the code directory.

There are some syntax errors, which I think are caused by this issue: https://github.com/morphgnt/tischendorf/issues/3

scruffian avatar Feb 05 '20 02:02 scruffian

@emg Any thoughts on this...

scruffian avatar May 15 '20 06:05 scruffian

There are some issues with this. There are some instance where the Chapter and verse breaks in this text don't line up with the numbers. This results in output like [, at the start of a verse or ][ inside a verse, both of which are invalid.

For my purposes I just fix these with a find and replace but it would be better to fix it in the code.

In addition the first verse of Mark 9 gets moved to be the last verse of Mark 8, which I also fix manually. The versification in Acts 24:2/3 is also misaligned.

Also to note that the book names used by this text don't match the OSIS standard, so if you're working with those names you need to map them like this:

1 Corinthians -> I Corinthians 2 Corinthians -> II Corinthians 1 Thessalonians -> I Thessalonians 2 Thessalonians -> II Thessalonians 1 Timothy -> I Timothy 2 Timothy -> II Timothy 1 Peter -> I Peter 2 Peter -> II Peter 1 John -> I John 2 John -> II John 3 John -> III John Revelation -> Revelation of John

scruffian avatar Oct 24 '20 15:10 scruffian

I added a couple of commits to address all the issues above. There is still one outstanding item which is that there seem to be some duplicated verses in the middle of John 8. I have just removed these manually from the generated file.

scruffian avatar May 13 '21 22:05 scruffian

There is also an additional verse break John 1:38, which the KJV doesn't follow. I am fixing my files manually.

scruffian avatar Nov 08 '21 21:11 scruffian

There should also be a verse break at the end of 2 Corinthians 13:12 that was missing.

scruffian avatar Nov 09 '21 16:11 scruffian