linkture 2.5.4__py3-none-any.whl → 2.5.6__py3-none-any.whl

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.
@@ -26,7 +26,7 @@
26
26
  SOFTWARE.
27
27
  """
28
28
 
29
- VERSION = 'v2.5.4'
29
+ __version__ = 'v2.5.6'
30
30
 
31
31
 
32
32
  import argparse, json, regex, sqlite3
@@ -673,10 +673,10 @@ 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
- parser.add_argument('-v', action='version', version=f"{APP} {VERSION}", help='show version and exit')
679
+ parser.add_argument('-v', action='version', version=f"{APP} {__version__}", help='show version and exit')
680
680
  parser.add_argument('-q', action='store_true', help="don't show errors")
681
681
 
682
682
  function_group = parser.add_argument_group('data source (one required - except for auxiliary functions, which only take command-line arguments)', 'choose between terminal or file input:')
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: linkture
3
- Version: 2.5.4
3
+ Version: 2.5.6
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.py -h
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
- $ ./linkture.py -r "Joh 17:17; 2Ti 3:16, 17" --full -u
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
- $ ./linkture.py -r "Joh 17:17; 2Ti 3:16, 17" --standard
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
- $ ./linkture.py -r "Joh 17:17; 2Ti 3:16, 17" --official
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
- $ ./linkture.py -r "Joh 17:17; 2Ti 3:16, 17" -c
120
+ $ python3 -m linkture -r "Joh 17:17; 2Ti 3:16, 17" -c
125
121
  [('43017017', '43017017'), ('55003016', '55003017')]
126
122
 
127
- $ ./linkture.py -r "[('43017017', '43017017'), ('55003016', '55003017')]" -d --translate German
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
- $ ./linkture.py -r "Joh 17:17; 2Ti 3:16, 17" -l '<a href="https://my.website.com/' '/index.html" class="test">'
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
- $ ./linkture.py -r "Joh 17:17; 2Ti 3:16, 17" --translate Chinese
129
+ $ python3 -m linkture -r "Joh 17:17; 2Ti 3:16, 17" --translate Chinese
134
130
  约翰福音 17:17; 提摩太后书 3:16, 17
135
131
 
136
- $ ./linkture.py -r "约翰福音 17:17; 提摩太后书 3:16, 17" --language Chinese --translate Dutch
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
- $ ./linkture.py -r "{{Jean 17:17}}; 2 Timothée 3:16, 17" --language French --translate Spanish --standard
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
- $ ./linkture.py -r "Mat 17:17; Paul 3:16, 17" --full -x
138
+ $ python3 -m linkture -r "Mat 17:17; Paul 3:16, 17" --full -x
143
139
  ['Matthew 17:17']
144
140
 
145
- $ ./linkture.py -cc 2
141
+ $ python3 -m linkture -cc 2
146
142
  ('01002001', '01002025')
147
143
 
148
- $ ./linkture.py -cv 31091
144
+ $ python3 -m linkture -cv 31091
149
145
  ('66022021', '66022021')
150
146
 
151
- $ ./linkture.py -sv '01001001'
147
+ $ python3 -m linkture -sv '01001001'
152
148
  1
153
149
 
154
- ./linkture.py -sc '66022001'
150
+ python3 -m linkture -sc '66022001'
155
151
  1189
156
152
 
157
- ./linkture.py -r '2Ti 3:16, 17' --full -s '_'
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
- [![RSS of releases](res/rss-36.png)](https://github.com/erykjj/linkture/releases.atom)
217
+ [![RSS of releases](src/res/rss-36.png)](https://github.com/erykjj/linkture/releases.atom)
@@ -0,0 +1,9 @@
1
+ linkture-2.5.6.dist-info/METADATA,sha256=9nwgo8weHqXaLaEXL94dox0MYMxLqF1jBMCNrtoDVg4,11098
2
+ linkture-2.5.6.dist-info/WHEEL,sha256=7sv5iXvIiTVJSnAxCz2tGBm9DHsb2vPSzeYeT7pvGUY,90
3
+ linkture-2.5.6.dist-info/licenses/LICENSE,sha256=kPqKoVmo3Tx1HgQvqfjBZuYkjT1mZXnQ5R0KBbEeFfs,1064
4
+ linkture/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ linkture/__main__.py,sha256=ca0nbx9LqDNeNFT2TsJRrgcDVq7WOfl1z_lo8BAjdXg,29101
6
+ linkture/res/custom.json,sha256=PnCI0N5uBn1ZzEG05V3r8uwrW2uBogCQ_uCQKTHJe4E,1904
7
+ linkture/res/resources.db,sha256=ceXVt21jdJwJCCWsfMPy6aRcHo9yHzyTQk_i22aJZD8,581632
8
+ linkture/res/rss-36.png,sha256=DeZ-xvFxyjeHSNHen3inNFWPm4qHdlNI3MQ1fclu9CQ,1297
9
+ linkture-2.5.6.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- __init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- linkture-2.5.4.dist-info/METADATA,sha256=UkFQ5l0tC-iaDwLz1dgfuW4OMSuQLxX1Rc5_kjFv-wA,11015
3
- linkture-2.5.4.dist-info/WHEEL,sha256=7sv5iXvIiTVJSnAxCz2tGBm9DHsb2vPSzeYeT7pvGUY,90
4
- linkture-2.5.4.dist-info/licenses/LICENSE,sha256=kPqKoVmo3Tx1HgQvqfjBZuYkjT1mZXnQ5R0KBbEeFfs,1064
5
- linkture.py,sha256=yz3C51p9MkZ05lO3HKE8UGQKTugcdU4v64S86H-dq1Y,29080
6
- setup.py,sha256=v9tViRX45y4YBwCxPizWUTnXNu4ZPVTwATbl-9m-bAc,1491
7
- linkture-2.5.4.dist-info/RECORD,,
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