linkture 2.5.4__tar.gz → 2.5.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {linkture-2.5.4 → linkture-2.5.5}/PKG-INFO +20 -23
- {linkture-2.5.4 → linkture-2.5.5}/README.md +18 -22
- {linkture-2.5.4 → linkture-2.5.5}/pyproject.toml +2 -1
- linkture-2.5.4/linkture.py → linkture-2.5.5/src/linkture/__main__.py +2 -2
- linkture-2.5.5/src/linkture/res/custom.json +69 -0
- linkture-2.5.5/src/linkture/res/resources.db +0 -0
- linkture-2.5.5/src/linkture/res/rss-36.png +0 -0
- linkture-2.5.4/setup.py +0 -49
- {linkture-2.5.4 → linkture-2.5.5}/LICENSE +0 -0
- {linkture-2.5.4 → linkture-2.5.5/src/linkture}/__init__.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: linkture
|
3
|
-
Version: 2.5.
|
3
|
+
Version: 2.5.5
|
4
4
|
Summary: PARSE and PROCESS BIBLE SCRIPTURE REFERENCES: extract, tag, link, rewrite, translate, BCV-encode and decode
|
5
5
|
Keywords: bible,scriptures,scripture-references,scripture-translation,scripture-parser,scripture-linker
|
6
6
|
Author-Email: "Eryk J." <infiniti@inventati.org>
|
@@ -17,6 +17,7 @@ Classifier: Topic :: Religion
|
|
17
17
|
Classifier: Topic :: Text Processing :: General
|
18
18
|
Classifier: Topic :: Text Processing :: Linguistic
|
19
19
|
Project-URL: Homepage, https://github.com/erykjj/linkture
|
20
|
+
Project-URL: Issues, https://github.com/erykjj/linkture/issues
|
20
21
|
Requires-Python: >=3.9
|
21
22
|
Requires-Dist: setuptools>=59.6.0
|
22
23
|
Requires-Dist: argparse>=1.4.0
|
@@ -52,7 +53,7 @@ ____
|
|
52
53
|
## Command-line usage
|
53
54
|
|
54
55
|
```
|
55
|
-
> python3 linkture
|
56
|
+
> python3 -m linkture -h
|
56
57
|
usage: linkture.py [-h] [-v] [-q] [-f in-file | -r reference] [-o out-file]
|
57
58
|
[--language {Cebuano,Chinese,Danish,Dutch,English,French,German,Greek,Hungarian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Russian,Spanish,Tagalog,Ukrainian}]
|
58
59
|
[--translate {Cebuano,Chinese,Danish,Dutch,English,French,German,Greek,Hungarian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Russian,Spanish,Tagalog,Ukrainian}]
|
@@ -105,56 +106,51 @@ auxiliary functions:
|
|
105
106
|
-cv verse return the BCV code for serial verse number "verse" (integer value)
|
106
107
|
```
|
107
108
|
|
108
|
-
Or, make it executable first and run directly:
|
109
|
-
```
|
110
|
-
$ chmod +x linkture.py
|
111
|
-
```
|
112
|
-
|
113
109
|
Some examples:
|
114
110
|
```
|
115
|
-
$
|
111
|
+
$ python3 -m linkture -r "Joh 17:17; 2Ti 3:16, 17" --full -u
|
116
112
|
JOHN 17:17; 2 TIMOTHY 3:16, 17
|
117
113
|
|
118
|
-
$
|
114
|
+
$ python3 -m linkture -r "Joh 17:17; 2Ti 3:16, 17" --standard
|
119
115
|
John 17:17; 2 Tim. 3:16, 17
|
120
116
|
|
121
|
-
$
|
117
|
+
$ python3 -m linkture -r "Joh 17:17; 2Ti 3:16, 17" --official
|
122
118
|
Joh 17:17; 2Ti 3:16, 17
|
123
119
|
|
124
|
-
$
|
120
|
+
$ python3 -m linkture -r "Joh 17:17; 2Ti 3:16, 17" -c
|
125
121
|
[('43017017', '43017017'), ('55003016', '55003017')]
|
126
122
|
|
127
|
-
$
|
123
|
+
$ python3 -m linkture -r "[('43017017', '43017017'), ('55003016', '55003017')]" -d --translate German
|
128
124
|
['Johannes 17:17', '2. Timotheus 3:16, 17']
|
129
125
|
|
130
|
-
$
|
126
|
+
$ python3 -m linkture -r "Joh 17:17; 2Ti 3:16, 17" -l '<a href="https://my.website.com/' '/index.html" class="test">'
|
131
127
|
<a href="https://my.website.com/43:17:17/index.html" class="test">John 17:17</a>; <a href="https://my.website.com/55:3:16-55:3:17/index.html" class="test">2 Timothy 3:16, 17</a>
|
132
128
|
|
133
|
-
$
|
129
|
+
$ python3 -m linkture -r "Joh 17:17; 2Ti 3:16, 17" --translate Chinese
|
134
130
|
约翰福音 17:17; 提摩太后书 3:16, 17
|
135
131
|
|
136
|
-
$
|
132
|
+
$ python3 -m linkture -r "约翰福音 17:17; 提摩太后书 3:16, 17" --language Chinese --translate Dutch
|
137
133
|
Johannes 17:17; 2 Timotheüs 3:16, 17
|
138
134
|
|
139
|
-
$
|
135
|
+
$ python3 -m linkture -r "{{Jean 17:17}}; 2 Timothée 3:16, 17" --language French --translate Spanish --standard
|
140
136
|
Juan 17:17; 2 Tim. 3:16, 17
|
141
137
|
|
142
|
-
$
|
138
|
+
$ python3 -m linkture -r "Mat 17:17; Paul 3:16, 17" --full -x
|
143
139
|
['Matthew 17:17']
|
144
140
|
|
145
|
-
$
|
141
|
+
$ python3 -m linkture -cc 2
|
146
142
|
('01002001', '01002025')
|
147
143
|
|
148
|
-
$
|
144
|
+
$ python3 -m linkture -cv 31091
|
149
145
|
('66022021', '66022021')
|
150
146
|
|
151
|
-
$
|
147
|
+
$ python3 -m linkture -sv '01001001'
|
152
148
|
1
|
153
149
|
|
154
|
-
|
150
|
+
python3 -m linkture -sc '66022001'
|
155
151
|
1189
|
156
152
|
|
157
|
-
|
153
|
+
python3 -m linkture -r '2Ti 3:16, 17' --full -s '_'
|
158
154
|
2_Timothy_3:16,_17
|
159
155
|
```
|
160
156
|
|
@@ -164,6 +160,7 @@ Of course, you can pass a whole text file to parse and process using the `-f in_
|
|
164
160
|
|
165
161
|
Unless you use `-q`, you will see in the terminal any out-of-range errors encountered while parsing. Of course, these entries will not be processed, but they will not affect the rest of the operation.
|
166
162
|
|
163
|
+
____
|
167
164
|
## Script/import usage
|
168
165
|
|
169
166
|
Assume the text (short string or long document) you want to process is in the variable `txt`. It's in English, but you would like the scriptures to be in Spanish, with the full book name:
|
@@ -217,4 +214,4 @@ ____
|
|
217
214
|
|
218
215
|
Feel free to [get in touch and post any issues and suggestions](https://github.com/erykjj/linkture/issues).
|
219
216
|
|
220
|
-
[](https://github.com/erykjj/linkture/releases.atom)
|
217
|
+
[](https://github.com/erykjj/linkture/releases.atom)
|
@@ -24,7 +24,7 @@ ____
|
|
24
24
|
## Command-line usage
|
25
25
|
|
26
26
|
```
|
27
|
-
> python3 linkture
|
27
|
+
> python3 -m linkture -h
|
28
28
|
usage: linkture.py [-h] [-v] [-q] [-f in-file | -r reference] [-o out-file]
|
29
29
|
[--language {Cebuano,Chinese,Danish,Dutch,English,French,German,Greek,Hungarian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Russian,Spanish,Tagalog,Ukrainian}]
|
30
30
|
[--translate {Cebuano,Chinese,Danish,Dutch,English,French,German,Greek,Hungarian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Russian,Spanish,Tagalog,Ukrainian}]
|
@@ -77,56 +77,51 @@ auxiliary functions:
|
|
77
77
|
-cv verse return the BCV code for serial verse number "verse" (integer value)
|
78
78
|
```
|
79
79
|
|
80
|
-
Or, make it executable first and run directly:
|
81
|
-
```
|
82
|
-
$ chmod +x linkture.py
|
83
|
-
```
|
84
|
-
|
85
80
|
Some examples:
|
86
81
|
```
|
87
|
-
$
|
82
|
+
$ python3 -m linkture -r "Joh 17:17; 2Ti 3:16, 17" --full -u
|
88
83
|
JOHN 17:17; 2 TIMOTHY 3:16, 17
|
89
84
|
|
90
|
-
$
|
85
|
+
$ python3 -m linkture -r "Joh 17:17; 2Ti 3:16, 17" --standard
|
91
86
|
John 17:17; 2 Tim. 3:16, 17
|
92
87
|
|
93
|
-
$
|
88
|
+
$ python3 -m linkture -r "Joh 17:17; 2Ti 3:16, 17" --official
|
94
89
|
Joh 17:17; 2Ti 3:16, 17
|
95
90
|
|
96
|
-
$
|
91
|
+
$ python3 -m linkture -r "Joh 17:17; 2Ti 3:16, 17" -c
|
97
92
|
[('43017017', '43017017'), ('55003016', '55003017')]
|
98
93
|
|
99
|
-
$
|
94
|
+
$ python3 -m linkture -r "[('43017017', '43017017'), ('55003016', '55003017')]" -d --translate German
|
100
95
|
['Johannes 17:17', '2. Timotheus 3:16, 17']
|
101
96
|
|
102
|
-
$
|
97
|
+
$ python3 -m linkture -r "Joh 17:17; 2Ti 3:16, 17" -l '<a href="https://my.website.com/' '/index.html" class="test">'
|
103
98
|
<a href="https://my.website.com/43:17:17/index.html" class="test">John 17:17</a>; <a href="https://my.website.com/55:3:16-55:3:17/index.html" class="test">2 Timothy 3:16, 17</a>
|
104
99
|
|
105
|
-
$
|
100
|
+
$ python3 -m linkture -r "Joh 17:17; 2Ti 3:16, 17" --translate Chinese
|
106
101
|
约翰福音 17:17; 提摩太后书 3:16, 17
|
107
102
|
|
108
|
-
$
|
103
|
+
$ python3 -m linkture -r "约翰福音 17:17; 提摩太后书 3:16, 17" --language Chinese --translate Dutch
|
109
104
|
Johannes 17:17; 2 Timotheüs 3:16, 17
|
110
105
|
|
111
|
-
$
|
106
|
+
$ python3 -m linkture -r "{{Jean 17:17}}; 2 Timothée 3:16, 17" --language French --translate Spanish --standard
|
112
107
|
Juan 17:17; 2 Tim. 3:16, 17
|
113
108
|
|
114
|
-
$
|
109
|
+
$ python3 -m linkture -r "Mat 17:17; Paul 3:16, 17" --full -x
|
115
110
|
['Matthew 17:17']
|
116
111
|
|
117
|
-
$
|
112
|
+
$ python3 -m linkture -cc 2
|
118
113
|
('01002001', '01002025')
|
119
114
|
|
120
|
-
$
|
115
|
+
$ python3 -m linkture -cv 31091
|
121
116
|
('66022021', '66022021')
|
122
117
|
|
123
|
-
$
|
118
|
+
$ python3 -m linkture -sv '01001001'
|
124
119
|
1
|
125
120
|
|
126
|
-
|
121
|
+
python3 -m linkture -sc '66022001'
|
127
122
|
1189
|
128
123
|
|
129
|
-
|
124
|
+
python3 -m linkture -r '2Ti 3:16, 17' --full -s '_'
|
130
125
|
2_Timothy_3:16,_17
|
131
126
|
```
|
132
127
|
|
@@ -136,6 +131,7 @@ Of course, you can pass a whole text file to parse and process using the `-f in_
|
|
136
131
|
|
137
132
|
Unless you use `-q`, you will see in the terminal any out-of-range errors encountered while parsing. Of course, these entries will not be processed, but they will not affect the rest of the operation.
|
138
133
|
|
134
|
+
____
|
139
135
|
## Script/import usage
|
140
136
|
|
141
137
|
Assume the text (short string or long document) you want to process is in the variable `txt`. It's in English, but you would like the scriptures to be in Spanish, with the full book name:
|
@@ -189,4 +185,4 @@ ____
|
|
189
185
|
|
190
186
|
Feel free to [get in touch and post any issues and suggestions](https://github.com/erykjj/linkture/issues).
|
191
187
|
|
192
|
-
[](https://github.com/erykjj/linkture/releases.atom)
|
188
|
+
[](https://github.com/erykjj/linkture/releases.atom)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "linkture"
|
3
|
-
version = "2.5.
|
3
|
+
version = "2.5.5"
|
4
4
|
description = "PARSE and PROCESS BIBLE SCRIPTURE REFERENCES: extract, tag, link, rewrite, translate, BCV-encode and decode"
|
5
5
|
authors = [
|
6
6
|
{ name = "Eryk J.", email = "infiniti@inventati.org" },
|
@@ -42,6 +42,7 @@ text = "MIT"
|
|
42
42
|
|
43
43
|
[project.urls]
|
44
44
|
Homepage = "https://github.com/erykjj/linkture"
|
45
|
+
Issues = "https://github.com/erykjj/linkture/issues"
|
45
46
|
|
46
47
|
[build-system]
|
47
48
|
requires = [
|
@@ -26,7 +26,7 @@
|
|
26
26
|
SOFTWARE.
|
27
27
|
"""
|
28
28
|
|
29
|
-
VERSION = 'v2.5.
|
29
|
+
VERSION = 'v2.5.5'
|
30
30
|
|
31
31
|
|
32
32
|
import argparse, json, regex, sqlite3
|
@@ -673,7 +673,7 @@ def _main(args):
|
|
673
673
|
|
674
674
|
if __name__ == "__main__":
|
675
675
|
PROJECT_PATH = Path(__file__).resolve().parent
|
676
|
-
APP = Path(__file__).stem
|
676
|
+
APP = 'linkture' # Path(__file__).stem
|
677
677
|
parser = argparse.ArgumentParser(description="PARSE and PROCESS BIBLE SCRIPTURE REFERENCES: extract, tag, link, rewrite, translate, BCV-encode and decode. See README for more information")
|
678
678
|
|
679
679
|
parser.add_argument('-v', action='version', version=f"{APP} {VERSION}", help='show version and exit')
|
@@ -0,0 +1,69 @@
|
|
1
|
+
{
|
2
|
+
"English": [
|
3
|
+
[2, "Exo, Exod"],
|
4
|
+
[3, "Levit"],
|
5
|
+
[4, "Numb"],
|
6
|
+
[5, "Deu"],
|
7
|
+
[7, "Jdg"],
|
8
|
+
[8, "Rth"],
|
9
|
+
[9, "1st Samuel, I Samuel"],
|
10
|
+
[10, "2nd Samuel, II Samuel"],
|
11
|
+
[11, "1Kgs, 1st Kings, 1 King, I Kings"],
|
12
|
+
[12, "2Kgs, 2nd Kings, 2 King, II Kings"],
|
13
|
+
[13, "1 Chr, 1st Chronicles, I Chronicles"],
|
14
|
+
[14, "2 Chr, 2nd Chronicles, II Chronicles"],
|
15
|
+
[16, "Nehem"],
|
16
|
+
[17, "Est, Esth"],
|
17
|
+
[19, "Psalm, Psal, Pss, Psa"],
|
18
|
+
[20, "Pro"],
|
19
|
+
[21, "Ecc, Eccles, Qoh"],
|
20
|
+
[22, "Cant, Son, Sng"],
|
21
|
+
[30, "Amo"],
|
22
|
+
[31, "Oba"],
|
23
|
+
[35, "Habaccuc"],
|
24
|
+
[38, "Zachariah"],
|
25
|
+
[40, "Mat, Matth"],
|
26
|
+
[41, "Mar"],
|
27
|
+
[42, "Luk"],
|
28
|
+
[43, "Jn, Jhn"],
|
29
|
+
[44, "Act"],
|
30
|
+
[45, "Roma"],
|
31
|
+
[48, "Galat"],
|
32
|
+
[49, "Ephes"],
|
33
|
+
[50, "Phi, Phili, Phl"],
|
34
|
+
[51, "Colos"],
|
35
|
+
[52, "1Thes, 1st Thessalonians, I Thessalonians"],
|
36
|
+
[53, "2Thes, 2nd Thessalonians, II Thessalonians"],
|
37
|
+
[54, "1st Timothy, I Timothy"],
|
38
|
+
[55, "2nd Timothy, II Timothy"],
|
39
|
+
[57, "Phile"],
|
40
|
+
[58, "Hebre"],
|
41
|
+
[59, "Jam"],
|
42
|
+
[60, "1st Peter, I Peter"],
|
43
|
+
[61, "2nd Peter, II Peter"],
|
44
|
+
[62, "1st John, I John"],
|
45
|
+
[63, "2nd John, II John"],
|
46
|
+
[64, "3rd John, III John"],
|
47
|
+
[65, "Jud, Jde"],
|
48
|
+
[66, "Revel, Apoc"]
|
49
|
+
],
|
50
|
+
"Spanish": [
|
51
|
+
[9, "1ro Samuel, I Samuel"],
|
52
|
+
[10, "2do Samuel, II Samuel"],
|
53
|
+
[11, "1ro Reyes, I Reyes"],
|
54
|
+
[12, "2do Reyes, II Reyes"],
|
55
|
+
[13, "1ro Crónicas, I Crónicas"],
|
56
|
+
[14, "2do Crónicas, II Crónicas"],
|
57
|
+
[22, "Cantar de los Cantares, Cantar"],
|
58
|
+
[52, "1ra Tesalonicenses, I Tesalonicenses"],
|
59
|
+
[53, "2da Tesalonicenses, II Tesalonicenses"],
|
60
|
+
[54, "1ra Timoteo, I Timoteo"],
|
61
|
+
[55, "2da Timoteo, II Timoteo"],
|
62
|
+
[60, "1ra Pedro, I Pedro"],
|
63
|
+
[61, "2da Pedro, II Pedro"],
|
64
|
+
[62, "1ra Juan, I Juan"],
|
65
|
+
[63, "2da Juan, II Juan"],
|
66
|
+
[64, "3ra Juan, III Juan"],
|
67
|
+
[66, "Revelación, Rev, Re"]
|
68
|
+
]
|
69
|
+
}
|
Binary file
|
Binary file
|
linkture-2.5.4/setup.py
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
import setuptools
|
2
|
-
from pathlib import Path
|
3
|
-
|
4
|
-
work_dir = Path(__file__).parent
|
5
|
-
long_description = (work_dir / 'README.md').read_text()
|
6
|
-
|
7
|
-
|
8
|
-
setuptools.setup(
|
9
|
-
|
10
|
-
name='linkture',
|
11
|
-
version='2.5.4',
|
12
|
-
author='Eryk J.',
|
13
|
-
author_email='infiniti@inventati.org',
|
14
|
-
url='https://github.com/erykjj/linkture',
|
15
|
-
license='MIT',
|
16
|
-
|
17
|
-
description='PARSE and PROCESS BIBLE SCRIPTURE REFERENCES: extract, tag, link, rewrite, translate, BCV-encode and decode',
|
18
|
-
long_description=long_description,
|
19
|
-
long_description_content_type='text/markdown',
|
20
|
-
keywords=[
|
21
|
-
'bible', 'scriptures', 'scripture-references', 'scripture-translation',
|
22
|
-
'scripture-parser', 'scripture-linker'
|
23
|
-
],
|
24
|
-
|
25
|
-
packages=setuptools.find_packages(),
|
26
|
-
classifiers=[
|
27
|
-
'License :: OSI Approved :: MIT License',
|
28
|
-
'Operating System :: OS Independent',
|
29
|
-
'Programming Language :: Python :: 3.9',
|
30
|
-
'Programming Language :: Python :: 3.10',
|
31
|
-
'Programming Language :: Python :: 3.11',
|
32
|
-
'Programming Language :: Python :: 3.12',
|
33
|
-
'Development Status :: 5 - Production/Stable',
|
34
|
-
'Environment :: Console',
|
35
|
-
'Topic :: Religion',
|
36
|
-
'Topic :: Text Processing :: General',
|
37
|
-
'Topic :: Text Processing :: Linguistic'
|
38
|
-
],
|
39
|
-
python_requires='>=3.9',
|
40
|
-
install_requires=[
|
41
|
-
'setuptools>=59.6.0',
|
42
|
-
'argparse>=1.4.0',
|
43
|
-
'regex>=2023.8.8',
|
44
|
-
'unidecode>=1.3.8',
|
45
|
-
'pathlib>=1.0.1',
|
46
|
-
'pandas==2.2.2'
|
47
|
-
]
|
48
|
-
|
49
|
-
)
|
File without changes
|
File without changes
|