pub fn core_text(s: String) -> StringExpand description
The function gives the core text of a greek new testament critical edition.
It might be useful for comparing greek new testament critical editions by gettig their “core” differences/concordances.
In concrete terms, it remove diacritic signs, remove any character that is not in the greek alphabet, change all sigmas to lunar sigma, and puts all greek letters in lowercase.
So this function :
- does not replace nomina sacras (e.g., κϲ) by their non-abreviated form (resp. κυριοϲ), nor words (e.g., κύριος) by their nomina sacras form (when a nomina sacra form exists) (resp. κϲ).
- is made to delete any character used to encode nomina sacras (e.g., ‘|’, or ‘(’ and ‘)’), hence |κς| will give κϲ.
- does delete all ‘ˉ’ characters (so παραβολὴˉ becomes παραβολη, not παραβολην)
§Example :
use gnt_tools::core_text;
let s = "16 Εἶπεν δὲ παραβολὴν πρὸς αὐτοὺς λέγων·
ἀνθρώπου τινὸς πλουσίου εὐφόρησεν ἡ χώρα. 17
καὶ διελογίζετο ἐν ἑαυτῷ λέγων· τί ποιήσω, ὅτι
οὐκ ἔχω ποῦ συνάξω τοὺς καρπούς μου; ";
let s2 = "ειπενδεπαραβοληνπροϲαυτουϲλεγωνανθρωπουτ\
ινοϲπλουϲιουευφορηϲενηχωρακαιδιελογιζετοενεαυτω\
λεγωντιποιηϲωοτιουκεχωπουϲυναξωτουϲκαρπουϲμου";
assert_eq!(core_text(String::from(s)), String::from(s2));