Bible-verse-parserA python parser to parse bible verse references from a text.This was originally created to tag resources for building.The script is now modified for general use.This script is now adapted to become a core utility in. Features:. Search for verse references from text file(s).
Plain Text Format Formatting
Add taggings on verse references. Support books of bible canon and apocrypha. Support tagging on chains of refernces, e.g. Rom 1:2, 3, 5, 8; 9:2, 10. Support books of one chapter only, like Obadiah 2, Jude 3, 3John 4, etc.
Support chapter references references without verse number specified, e.g. Gen 1, 3-4; 8, 9-10. Support standardisation of book abbreviations and verse reference format. Support parsing multiple files in one go.
Support extracting all references in a text. (This feature is especially useful for bulding indexes.). Support tagging on range(s) of versesMain file:written with python version 3.6.5 Usage:Command line: python3 bible-verse-parser.py Format of tagging:e.g.
John 3:16 is tagged as John 3:16e.g. John 3:14-16 is tagged as John 3:14-16e.g. John 3:14-4:3 is tagged as John 3:14-4:3 User Interaction:Prompting question (1) 'Enter a file / folder name here: 'Enter the name of a file, which you want to parse.OREnter the name of a directory containing files, which you want you parse.Prompting question (2) 'Do you want to standardise the format of all bible verse references?
YES/NO 'Enter YES if you want to standardise all verse references with SBL-style-abbreviations and common format like Gen 2:4; Deut 6:4, etc.Any answers other than 'YES' case-insensitive skip the standarisation. Dart VersionThis bible-verse-parser is available in Dart programming language.A practical example:Copy files 'bible-verse-parser.py' and 'dictionary-for-testing.txt' and put in the same folder(Remarks: 'dictionary-for-testing.txt' is the Mounce Concise Greek-English Dictionary in plain text format)(bible-verse-parser.py is used here to add taggings for bible verse references.)Enter command in terminal: python bible-verse-parser.py'Enter a file / folder name here: ' dictionary-for-testing.txt'Do you want to standardise the format of all bible verse references? YES/NO ' YESYou can find the output file in the same folder named as 'outputdictionary-for-testing.txt'Credits of file 'dictionary-for-testing.txt'Source:Attribution:Mounce Concise Greek-English DictionaryCopyright 1993 All Rights Reserved. Petz dogz 5 catz 5 compilation.
I have 2 different versions of the Bible in text files. One is 4.29MB, the other is 4.22MB. As far as text files go, they are highly formatted. One has each chapter and verse number on a line followed by the verse. If the verse is more than 80 characters it breaks onto the next line.
After the end of the verse comes 2 carriage returns/line breaks. The other puts each chapter into a paragraph with each line 80 characters or less.Both files could easily be formatted to take up less space, but they were made for easy reading.
Bible In Plain Text Format Formatting
4MB = 4,194,304bytes is a close estimate.For the record, the number of words isn't helpful in calculating file size. It's the number of characters (including punctuation symbols, spaces, line breaks, etc.).
Bible-verse-parserA python parser to parse bible verse references from a text.This was originally created to tag resources for building.The script is now modified for general use.This script is now adapted to become a core utility in. Features:.
Search for verse references from text file(s). Add taggings on verse references. Support books of bible canon and apocrypha. Support tagging on chains of refernces, e.g. Rom 1:2, 3, 5, 8; 9:2, 10.
Support books of one chapter only, like Obadiah 2, Jude 3, 3John 4, etc. Support chapter references references without verse number specified, e.g. Gen 1, 3-4; 8, 9-10.
Support standardisation of book abbreviations and verse reference format. Support parsing multiple files in one go. Support extracting all references in a text. (This feature is especially useful for bulding indexes.). Support tagging on range(s) of versesMain file:written with python version 3.6.5 Usage:Command line: python3 bible-verse-parser.py Format of tagging:e.g. John 3:16 is tagged as John 3:16e.g.
John 3:14-16 is tagged as John 3:14-16e.g. John 3:14-4:3 is tagged as John 3:14-4:3 User Interaction:Prompting question (1) 'Enter a file / folder name here: 'Enter the name of a file, which you want to parse.OREnter the name of a directory containing files, which you want you parse.Prompting question (2) 'Do you want to standardise the format of all bible verse references? YES/NO 'Enter YES if you want to standardise all verse references with SBL-style-abbreviations and common format like Gen 2:4; Deut 6:4, etc.Any answers other than 'YES' case-insensitive skip the standarisation. Dart VersionThis bible-verse-parser is available in Dart programming language.A practical example:Copy files 'bible-verse-parser.py' and 'dictionary-for-testing.txt' and put in the same folder(Remarks: 'dictionary-for-testing.txt' is the Mounce Concise Greek-English Dictionary in plain text format)(bible-verse-parser.py is used here to add taggings for bible verse references.)Enter command in terminal: python bible-verse-parser.py'Enter a file / folder name here: ' dictionary-for-testing.txt'Do you want to standardise the format of all bible verse references? YES/NO ' YESYou can find the output file in the same folder named as 'outputdictionary-for-testing.txt'Credits of file 'dictionary-for-testing.txt'Source:Attribution:Mounce Concise Greek-English DictionaryCopyright 1993 All Rights Reserved.