linkture 2.5.6__py3-none-any.whl → 2.6.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: linkture
3
- Version: 2.5.6
3
+ Version: 2.6.1
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>
@@ -23,13 +23,9 @@ Requires-Dist: setuptools>=59.6.0
23
23
  Requires-Dist: argparse>=1.4.0
24
24
  Requires-Dist: regex>=2023.8.8
25
25
  Requires-Dist: unidecode>=1.3.8
26
- Requires-Dist: pathlib>=1.0.1
27
26
  Requires-Dist: pandas==2.2.2
28
27
  Description-Content-Type: text/markdown
29
28
 
30
- # linkture
31
-
32
-
33
29
  ## Purpose
34
30
 
35
31
  This module contains functions to parse and process Bible scripture references.
@@ -117,15 +113,18 @@ John 17:17; 2 Tim. 3:16, 17
117
113
  $ python3 -m linkture -r "Joh 17:17; 2Ti 3:16, 17" --official
118
114
  Joh 17:17; 2Ti 3:16, 17
119
115
 
116
+
120
117
  $ python3 -m linkture -r "Joh 17:17; 2Ti 3:16, 17" -c
121
118
  [('43017017', '43017017'), ('55003016', '55003017')]
122
119
 
123
120
  $ python3 -m linkture -r "[('43017017', '43017017'), ('55003016', '55003017')]" -d --translate German
124
121
  ['Johannes 17:17', '2. Timotheus 3:16, 17']
125
122
 
123
+
126
124
  $ python3 -m linkture -r "Joh 17:17; 2Ti 3:16, 17" -l '<a href="https://my.website.com/' '/index.html" class="test">'
127
125
  <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>
128
126
 
127
+
129
128
  $ python3 -m linkture -r "Joh 17:17; 2Ti 3:16, 17" --translate Chinese
130
129
  约翰福音 17:17; 提摩太后书 3:16, 17
131
130
 
@@ -138,6 +137,7 @@ Juan 17:17; 2 Tim. 3:16, 17
138
137
  $ python3 -m linkture -r "Mat 17:17; Paul 3:16, 17" --full -x
139
138
  ['Matthew 17:17']
140
139
 
140
+
141
141
  $ python3 -m linkture -cc 2
142
142
  ('01002001', '01002025')
143
143
 
@@ -150,6 +150,7 @@ $ python3 -m linkture -sv '01001001'
150
150
  python3 -m linkture -sc '66022001'
151
151
  1189
152
152
 
153
+
153
154
  python3 -m linkture -r '2Ti 3:16, 17' --full -s '_'
154
155
  2_Timothy_3:16,_17
155
156
  ```
@@ -163,12 +164,14 @@ Unless you use `-q`, you will see in the terminal any out-of-range errors encoun
163
164
  ____
164
165
  ## Script/import usage
165
166
 
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:
167
+ Assume the text (short string or long document) you want to process is in the variable `txt`.
168
+
167
169
  ```
168
170
  from linkture import Scriptures
169
171
 
170
172
  s = Scriptures(language="English", translate="Spanish", form="full")
171
173
 
174
+
172
175
  lst = s.list_scriptures(txt)
173
176
  # returns a list of (valid) extracted scriptures in the desired language and format
174
177
 
@@ -181,19 +184,20 @@ html = s.link_scriptures(txt, prefix='<a href="http://mywebsite.com/', suffix='"
181
184
  tagged = s.tag_scriptures(txt)
182
185
  # tagged will contain your document with the translated references enclosed within double braces
183
186
 
184
- txt = s.rewrite_scriptures(txt)
187
+ new_txt = s.rewrite_scriptures(txt)
185
188
  # the references will simply be rewritten in the desired language and format
186
189
 
187
- i = s.serial_chapter_number(txt)
190
+
191
+ i = s.serial_chapter_number(ch_bcv)
188
192
  # returns the serial number (1-1189) of the chapter identified by the provided BCV-format string; verse digits irrelevant
189
193
 
190
- i = s.serial_verse_number(txt)
194
+ i = s.serial_verse_number(vs_bcv)
191
195
  # returns the serial number (1-31091) of the verse identified by the provided BCV-format string
192
196
 
193
- txt = s.code_chapter(i)
197
+ ch_bcv = s.code_chapter(i)
194
198
  # returns a BCV-format range string for the whole chapter indicated by the provided integer (1-1189)
195
199
 
196
- txt = s.code_verse(i)
200
+ vs_bcv = s.code_verse(i)
197
201
  # returns a BCV-format range string for the verse indicated by the provided integer (1-31091)
198
202
  ```
199
203
 
@@ -0,0 +1,10 @@
1
+ linkture-2.6.1.dist-info/METADATA,sha256=AY9IhBRUtXz12W733RThzPzF4v8mKCVg_9hbEB3gPFQ,10985
2
+ linkture-2.6.1.dist-info/WHEEL,sha256=7sv5iXvIiTVJSnAxCz2tGBm9DHsb2vPSzeYeT7pvGUY,90
3
+ linkture-2.6.1.dist-info/licenses/LICENSE,sha256=kPqKoVmo3Tx1HgQvqfjBZuYkjT1mZXnQ5R0KBbEeFfs,1064
4
+ linkture/__init__.py,sha256=-CsRDvXLUig8T6RvwkktRP8e8DWrpjlyqBcw26kOv1E,47
5
+ linkture/__main__.py,sha256=K1TDrBlT-_N_-iWpjOK_XW2rdm_IRiI7aWyKbFcdFxg,6478
6
+ linkture/linkture.py,sha256=RMuAMkzho5y77nQtnmYMr-c8YDClagQ4i7sh2q5u7bc,23701
7
+ linkture/res/custom.json,sha256=PnCI0N5uBn1ZzEG05V3r8uwrW2uBogCQ_uCQKTHJe4E,1904
8
+ linkture/res/resources.db,sha256=ceXVt21jdJwJCCWsfMPy6aRcHo9yHzyTQk_i22aJZD8,581632
9
+ linkture/res/rss-36.png,sha256=DeZ-xvFxyjeHSNHen3inNFWPm4qHdlNI3MQ1fclu9CQ,1297
10
+ linkture-2.6.1.dist-info/RECORD,,
@@ -1,9 +0,0 @@
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,,