This commit is contained in:
Andley 2021-09-07 14:44:39 +08:00
parent cf83134bdc
commit ac9be90d9c
5 changed files with 62 additions and 15 deletions

23
2Ruby.py Normal file
View File

@ -0,0 +1,23 @@
#
import re
import code
#
inputFile = 'sample.txt'
outputFile = 'OGNTa.ruby'
# loading data
f = open(inputFile,'r',encoding="utf-8")
newData = f.read()
f.close()
# processing
newData = re.sub("(.*?)\t(.*?)\t(.*?)\t(.*?)\t(.*?)\t(.*?)\t(.*?)\t(.*?)\t(.*?)\t(.*?)\t(.*?)\n", r"<rt>\2 \3:\4</rt> <RUBY><ruby><ruby>\10 \5 \11<rt>\8</rt></ruby><rt>\6</rt></ruby><rt>\7</rt></RUBY>", newData)
print (newData)
# save file
f = open(outputFile,'w',encoding='utf-8')
f.write(newData)
f.close()

10
OGNTa.ruby Normal file
View File

@ -0,0 +1,10 @@
<rt>Book Chapter:Verse</rt> <RUBY><ruby><ruby>PMpWordOGNTPMfWord<rt>TBESG</rt></ruby><rt>lexeme</rt></ruby><rt>rmac</rt></RUBY>
<rt>40 1:1</rt> <RUBY><ruby><ruby>Βίβλος<rt>book</rt></ruby><rt>βίβλος</rt></ruby><rt>N-NSF</rt></RUBY>
<rt>40 1:1</rt> <RUBY><ruby><ruby>γενέσεως<rt>origin</rt></ruby><rt>γένεσις</rt></ruby><rt>N-GSF</rt></RUBY>
<rt>40 1:1</rt> <RUBY><ruby><ruby>Ἰησοῦ<rt>Jesus/Joshua</rt></ruby><rt>Ἰησοῦς</rt></ruby><rt>N-GSM-P</rt></RUBY>
<rt>40 1:1</rt> <RUBY><ruby><ruby>Χριστοῦ<rt>Christ</rt></ruby><rt>Χριστός</rt></ruby><rt>N-GSM-T</rt></RUBY>
<rt>40 1:1</rt> <RUBY><ruby><ruby>υἱοῦ<rt>son</rt></ruby><rt>υἱός</rt></ruby><rt>N-GSM</rt></RUBY>
<rt>40 1:1</rt> <RUBY><ruby><ruby>Δαυὶδ<rt>David</rt></ruby><rt>Δαυείδ, Δαυίδ, Δαβίδ</rt></ruby><rt>N-GSM-P</rt></RUBY>
<rt>40 1:1</rt> <RUBY><ruby><ruby>υἱοῦ<rt>son</rt></ruby><rt>υἱός</rt></ruby><rt>N-GSM</rt></RUBY>
<rt>40 1:1</rt> <RUBY><ruby><ruby>Ἀβραάμ.¶<rt>Abraham</rt></ruby><rt>Ἀβραάμ</rt></ruby><rt>N-GSM-P</rt></RUBY>
<rt>40 1:2</rt> <RUBY><ruby><ruby>Ἀβραὰμ<rt>Abraham</rt></ruby><rt>Ἀβραάμ</rt></ruby><rt>N-NSM-P</rt></RUBY>

BIN
OGNTa.txt

Binary file not shown.

View File

@ -6,25 +6,29 @@ This is an abridged and updated version of OpenGNT Version 3 [OGNT 3.3 Base Text
- OGNT3.3 abridged to the following tab-separated columns:
- OGNTsort = sort numbers of all words of the base text of OGNT.
- Book = Book number, ranging from 40 to 66.
- Chapter = Chapter number.
- Verse = verse number.
- OGNT = Greek word of OGNT in accented form.
- Lemma = Greek word of OGNT in lexical form.
- RMAC = Robinson's Morphological Analysis Codes.
- Book-Chapter:Verse = scripture reference.
- PMpWord-OGNT-PMfWord = OGNT and punctuation marks.
- PMpWord = punctuation mark(s) preceding the main word.
- [[ changed to ⟦
- ]] changed to ⟧
- OGNT = Greek word of OGNT in accented form.
- PMfWord = punctuation mark(s) following the main word.
- lexeme = Greek word of OGNT in lexical form.
- rmac = Robinson's Morphological Analysis Codes.
- TBESG = context-insensitive glosses (from Tyndale House's TAGNT).
- IT = context-sensitive glossess (from Berean Interlinear Bible)
- PMpWord = punctuation mark(s) preceding the main word.
- [[ changed to ⟦
- ]] changed to ⟧
- PMfWord = punctuation mark(s) following the main word.
| OGNTsort | Book-Chapter:Verse | PMpWord OGNTa PMfWord | lexeme | rmac | TBESG | IT |
|----------|--------------------|-----------------------|----------------------|---------|--------------|--------------------|
| 000001 | 40-1:1 | Βίβλος | βίβλος | N-NSF | book | [The] book |
| 000002 | 40-1:1 | γενέσεως | γένεσις | N-GSF | origin | of [the] genealogy |
| 000003 | 40-1:1 | Ἰησοῦ | Ἰησοῦς | N-GSM-P | Jesus/Joshua | of Jesus |
| 000004 | 40-1:1 | Χριστοῦ | Χριστός | N-GSM-T | Christ | Christ, |
| 000005 | 40-1:1 | υἱοῦ | υἱός | N-GSM | son | son |
| 000006 | 40-1:1 | Δαυὶδ | Δαυείδ, Δαυίδ, Δαβίδ | N-GSM-P | David | of David, |
| 000007 | 40-1:1 | υἱοῦ | υἱός | N-GSM | son | son |
| 000008 | 40-1:1 | Ἀβραάμ . ¶ | Ἀβραάμ | N-GSM-P | Abraham | of Abraham: |
| OGNTsort | Book | Chapter | Verse | OGNTa | lexeme | rmac | TBESG | IT | PMpWord | PMfWord |
|----------|------|---------|-------|----------|----------|------------|----------|--------------|:-------:|:-------:|
| 000001 | 40 | 1 | 1 | Βίβλος | βίβλος | N-NSF | book | [The] book | | |
| 000008 | 40 | 1 | 1 | Ἀβραάμ | Ἀβραάμ | N-GSM-P | Abraham | of Abraham: | | .¶ |
| 029446 | 41 | 16 | 9 | Ἀναστὰς | ἀνίστημι | V-2AAP-NSM | to arise | Having risen | ⟦ | |
## Content changes

10
sample.txt Normal file
View File

@ -0,0 +1,10 @@
OGNTsort Book Chapter Verse OGNT lexeme rmac TBESG IT PMpWord PMfWord
000001 40 1 1 Βίβλος βίβλος N-NSF book [The] book
000002 40 1 1 γενέσεως γένεσις N-GSF origin of [the] genealogy
000003 40 1 1 Ἰησοῦ Ἰησοῦς N-GSM-P Jesus/Joshua of Jesus
000004 40 1 1 Χριστοῦ Χριστός N-GSM-T Christ Christ,
000005 40 1 1 υἱοῦ υἱός N-GSM son son
000006 40 1 1 Δαυὶδ Δαυείδ, Δαυίδ, Δαβίδ N-GSM-P David of David,
000007 40 1 1 υἱοῦ υἱός N-GSM son son
000008 40 1 1 Ἀβραάμ Ἀβραάμ N-GSM-P Abraham of Abraham: .¶
000009 40 1 2 Ἀβραὰμ Ἀβραάμ N-NSM-P Abraham Abraham