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.
Note on this function :
- it 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. κϲ).
- it is made to delete any character used to encode nomina sacras (e.g., ‘|’, or ‘(’ and ‘)’), hence |κς| will give κϲ.
§Example :
use gnt_tools::core_text;
let s = "16 Εἶπεν δὲ παραβολὴν πρὸς αὐτοὺς λέγων·
ἀνθρώπου τινὸς πλουσίου εὐφόρησεν ἡ χώρα. 17
καὶ διελογίζετο ἐν ἑαυτῷ λέγων· τί ποιήσω, ὅτι
οὐκ ἔχω ποῦ συνάξω τοὺς καρπούς μου; ";
let s2 = "ειπενδεπαραβοληνπροϲαυτουϲλεγωνανθρωπουτ\
ινοϲπλουϲιουευφορηϲενηχωρακαιδιελογιζετοενεαυτω\
λεγωντιποιηϲωοτιουκεχωπουϲυναξωτουϲκαρπουϲμου";
assert_eq!(core_text(String::from(s)), String::from(s2));