-
Notifications
You must be signed in to change notification settings - Fork 0
Various File Information
Kai edited this page Mar 10, 2023
·
8 revisions
diacritical.py
performs the equivalent function of the Center for New Testament Restoration Greek Character Tool programmatically. This tool takes in a document from a given filepath in Greek unicode, removes diacritical marks, lowercases the text, and writes it to a given filepath.
To see what the online CNTR tool does, perform the following steps:
- Upload the source text to the CNTR Greek Character Tool
- Click Symbol+ under the Format category. Hit 'ok' in the popup
- Click Unicode under the Format category. The resulting text is now free of diacritical marks
- Click Download to save the text
The purpose of gword.py
is to simplify and encapsulate Greek word strings and their verse lists. gwords
have 2 attributes:
-
word
: the Greek word which this object is centered around -
verse_occurrences
: a dict with keys as verses, and values being a list[verse, count]
The purpose of gclause.py
is to standardize the containment of clauses and their associated values. gclauses
have 4 attributes:
-
clause
: The actual string clause itself, with prefix and trailing punctuation -
identifier
: the prefix or line number that precedes the clause itself -
words
: a list of Greek word (notgword
) strings that the clause contains -
delimiter
: the postfix punctuation of the clause
The purpose of gresult.py
is to package the full clause and the verse result statistics. gresults
have 3 attributes:
-
clause
: The actual string clause itself, with prefix and trailing punctuation -
identifier
: the prefix or line number that precedes the clause itself -
verses
: a dict with keys as verses, and values as a list of the format[verse, occurrences]