linkture 4.0.0__py3-none-any.whl → 4.1.0__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.
- linkture/__main__.py +26 -19
- linkture/linkture.py +1 -1
- linkture/res/custom.json +1 -1
- {linkture-4.0.0.dist-info → linkture-4.1.0.dist-info}/METADATA +1 -1
- linkture-4.1.0.dist-info/RECORD +10 -0
- linkture-4.0.0.dist-info/RECORD +0 -10
- {linkture-4.0.0.dist-info → linkture-4.1.0.dist-info}/WHEEL +0 -0
- {linkture-4.0.0.dist-info → linkture-4.1.0.dist-info}/entry_points.txt +0 -0
- {linkture-4.0.0.dist-info → linkture-4.1.0.dist-info}/licenses/LICENSE +0 -0
linkture/__main__.py
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
SOFTWARE.
|
27
27
|
"""
|
28
28
|
|
29
|
-
import argparse
|
29
|
+
import argparse, sys, traceback
|
30
30
|
from .linkture import _available_languages, __app__, __version__, Scriptures
|
31
31
|
from ast import literal_eval
|
32
32
|
|
@@ -34,24 +34,31 @@ from ast import literal_eval
|
|
34
34
|
def main(args):
|
35
35
|
|
36
36
|
def switchboard(text):
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
37
|
+
try:
|
38
|
+
if args['l'] is not None:
|
39
|
+
prefix = '<a href="'
|
40
|
+
suffix = '">'
|
41
|
+
if len(args['l']) > 1 and args['l'][1] != '':
|
42
|
+
suffix = args['l'][1]
|
43
|
+
if len(args['l']) > 0 and args['l'][0] != '':
|
44
|
+
prefix = args['l'][0]
|
45
|
+
return s.link_scriptures(text, prefix, suffix)
|
46
|
+
elif args['c']:
|
47
|
+
return s.code_scriptures(text)
|
48
|
+
elif args['d']:
|
49
|
+
return s.decode_scriptures(literal_eval(text))
|
50
|
+
elif args['x']:
|
51
|
+
return s.list_scriptures(text)
|
52
|
+
elif args['t']:
|
53
|
+
return s.tag_scriptures(text)
|
54
|
+
else:
|
55
|
+
return s.rewrite_scriptures(text)
|
56
|
+
except Exception as e:
|
57
|
+
print("\n--- CRASH DETECTED ---", file=sys.stderr)
|
58
|
+
print("Input causing failure:", repr(text), file=sys.stderr)
|
59
|
+
print("Error:", str(e), file=sys.stderr)
|
60
|
+
traceback.print_exc()
|
61
|
+
raise
|
55
62
|
|
56
63
|
form = None
|
57
64
|
if args['standard']:
|
linkture/linkture.py
CHANGED
linkture/res/custom.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: linkture
|
3
|
-
Version: 4.
|
3
|
+
Version: 4.1.0
|
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>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
linkture-4.1.0.dist-info/METADATA,sha256=-HHPaqppbGgNngzTPKYDs0ab368R7Xq8sUWRz1xrIt0,11650
|
2
|
+
linkture-4.1.0.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
3
|
+
linkture-4.1.0.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
4
|
+
linkture-4.1.0.dist-info/licenses/LICENSE,sha256=kPqKoVmo3Tx1HgQvqfjBZuYkjT1mZXnQ5R0KBbEeFfs,1064
|
5
|
+
linkture/__init__.py,sha256=-CsRDvXLUig8T6RvwkktRP8e8DWrpjlyqBcw26kOv1E,47
|
6
|
+
linkture/__main__.py,sha256=NC11m6wICSMyme8AVDLezTBH_XrnMG1MMtmr3ZDbxDk,6980
|
7
|
+
linkture/linkture.py,sha256=1kjdOZMmTJvtfKnJ9RmSUL2CgcS_wrJWyEfi5uVQCIA,25256
|
8
|
+
linkture/res/custom.json,sha256=DKoN6Q_PcZ9EF4UdqpBtpB4ckz_lOEJhjpivfzsqUl8,2144
|
9
|
+
linkture/res/resources.db,sha256=4CToCzX_3kkWFUpVF4RoRguIHDUwbzd5AjKgt4QPYKo,573440
|
10
|
+
linkture-4.1.0.dist-info/RECORD,,
|
linkture-4.0.0.dist-info/RECORD
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
linkture-4.0.0.dist-info/METADATA,sha256=l8Z9vxEgLZk2g_Yt0vjAfAg34aTDM68r0A7gEm5-4uI,11650
|
2
|
-
linkture-4.0.0.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
3
|
-
linkture-4.0.0.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
4
|
-
linkture-4.0.0.dist-info/licenses/LICENSE,sha256=kPqKoVmo3Tx1HgQvqfjBZuYkjT1mZXnQ5R0KBbEeFfs,1064
|
5
|
-
linkture/__init__.py,sha256=-CsRDvXLUig8T6RvwkktRP8e8DWrpjlyqBcw26kOv1E,47
|
6
|
-
linkture/__main__.py,sha256=IjxrpZGZKIr7mHPGs_mMVaB6ipou_ArYgvs4wRFkxXM,6607
|
7
|
-
linkture/linkture.py,sha256=398iSQwC0pSc_j5jRlJIRcRsWm2-YWyJGO1xTTGMMFk,25256
|
8
|
-
linkture/res/custom.json,sha256=ngpVe8OrnhBUTpJKcJc_W9rwxtEWq7qbt3_NPbGL6h0,2139
|
9
|
-
linkture/res/resources.db,sha256=4CToCzX_3kkWFUpVF4RoRguIHDUwbzd5AjKgt4QPYKo,573440
|
10
|
-
linkture-4.0.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|