linkture 3.2.3__py3-none-any.whl → 3.2.5__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/linkture.py +17 -14
- linkture/res/custom.json +5 -1
- linkture/res/resources.db +0 -0
- {linkture-3.2.3.dist-info → linkture-3.2.5.dist-info}/METADATA +3 -3
- linkture-3.2.5.dist-info/RECORD +10 -0
- linkture-3.2.3.dist-info/RECORD +0 -10
- {linkture-3.2.3.dist-info → linkture-3.2.5.dist-info}/WHEEL +0 -0
- {linkture-3.2.3.dist-info → linkture-3.2.5.dist-info}/entry_points.txt +0 -0
- {linkture-3.2.3.dist-info → linkture-3.2.5.dist-info}/licenses/LICENSE +0 -0
linkture/linkture.py
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
"""
|
28
28
|
|
29
29
|
__app__ = 'linkture'
|
30
|
-
__version__ = 'v3.2.
|
30
|
+
__version__ = 'v3.2.5'
|
31
31
|
|
32
32
|
|
33
33
|
import json, regex, sqlite3
|
@@ -36,7 +36,7 @@ from pathlib import Path
|
|
36
36
|
from unidecode import unidecode
|
37
37
|
|
38
38
|
|
39
|
-
_available_languages = ('Cebuano', 'Chinese', 'Danish', 'Dutch', 'English', 'Ewe', 'French', 'German', 'Greek', 'Hungarian', 'Italian', 'Japanese', 'Korean', 'Norwegian', 'Polish', 'Portuguese', 'Romanian', 'Russian', 'Spanish', 'Swedish', 'Tagalog', 'Ukrainian')
|
39
|
+
_available_languages = ('Cebuano', 'Chinese', 'Danish', 'Dutch', 'English', 'Ewe', 'French', 'German', 'Greek', 'Hungarian', 'Indonesian', 'Italian', 'Japanese', 'Korean', 'Norwegian', 'Polish', 'Portuguese', 'Romanian', 'Russian', 'Spanish', 'Swedish', 'Tagalog', 'Ukrainian')
|
40
40
|
_non_latin = ('Chinese', 'Greek', 'Japanese', 'Korean', 'Russian', 'Ukrainian')
|
41
41
|
|
42
42
|
|
@@ -531,18 +531,21 @@ class Scriptures():
|
|
531
531
|
return scripture.strip(), book, chap, cont, sep
|
532
532
|
|
533
533
|
def decode_scriptures(self, bcv_ranges=[]):
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
if
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
534
|
+
try:
|
535
|
+
scriptures = []
|
536
|
+
bk = ''
|
537
|
+
ch = 0
|
538
|
+
sep = ';'
|
539
|
+
for bcv_range in bcv_ranges:
|
540
|
+
scripture, bk, ch, cont, sep = self._decode_scripture(bcv_range, bk, ch, sep)
|
541
|
+
if scripture:
|
542
|
+
if cont:
|
543
|
+
scriptures[-1] = scriptures[-1] + scripture
|
544
|
+
else:
|
545
|
+
scriptures.append(scripture)
|
546
|
+
return scriptures
|
547
|
+
except:
|
548
|
+
return None
|
546
549
|
|
547
550
|
|
548
551
|
def link_scriptures(self, text, prefix='<a href=', suffix='>'):
|
linkture/res/custom.json
CHANGED
@@ -18,6 +18,7 @@
|
|
18
18
|
[20, "Pro"],
|
19
19
|
[21, "Ecc, Eccles, Qoh"],
|
20
20
|
[22, "Cant, Son, Sng"],
|
21
|
+
[26, "Ezek"],
|
21
22
|
[30, "Amo"],
|
22
23
|
[31, "Oba"],
|
23
24
|
[35, "Habaccuc"],
|
@@ -48,6 +49,7 @@
|
|
48
49
|
[66, "Revel, Apoc"]
|
49
50
|
],
|
50
51
|
"Spanish": [
|
52
|
+
[2, "Éxo"],
|
51
53
|
[5, "Deu"],
|
52
54
|
[9, "1ro Samuel, I Samuel"],
|
53
55
|
[10, "2do Samuel, II Samuel"],
|
@@ -55,9 +57,11 @@
|
|
55
57
|
[12, "2do Reyes, II Reyes"],
|
56
58
|
[13, "1ro Crónicas, I Crónicas"],
|
57
59
|
[14, "2do Crónicas, II Crónicas"],
|
58
|
-
[
|
60
|
+
[20, "Pro"],
|
61
|
+
[22, "Cantar de los Cantares, Cantar, Cnt"],
|
59
62
|
[23, "Isa"],
|
60
63
|
[26, "Ez"],
|
64
|
+
[28, "Ose"],
|
61
65
|
[48, "Gá, Ga"],
|
62
66
|
[49, "Efe"],
|
63
67
|
[50, "Fil"],
|
linkture/res/resources.db
CHANGED
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: linkture
|
3
|
-
Version: 3.2.
|
3
|
+
Version: 3.2.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>
|
@@ -68,9 +68,9 @@ options:
|
|
68
68
|
-v show version and exit
|
69
69
|
-q don't show errors
|
70
70
|
-o out-file output file (terminal output if not provided)
|
71
|
-
--language {Cebuano,Chinese,Danish,Dutch,English,Ewe,French,German,Greek,Hungarian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Romanian,Russian,Spanish,Swedish,Tagalog,Ukrainian}
|
71
|
+
--language {Cebuano,Chinese,Danish,Dutch,English,Ewe,French,German,Greek,Hungarian,Indonesian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Romanian,Russian,Spanish,Swedish,Tagalog,Ukrainian}
|
72
72
|
indicate source language for book names (English if unspecified)
|
73
|
-
--translate {Cebuano,Chinese,Danish,Dutch,English,Ewe,French,German,Greek,Hungarian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Romanian,Russian,Spanish,Swedish,Tagalog,Ukrainian}
|
73
|
+
--translate {Cebuano,Chinese,Danish,Dutch,English,Ewe,French,German,Greek,Hungarian,Indonesian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Romanian,Russian,Spanish,Swedish,Tagalog,Ukrainian}
|
74
74
|
indicate output language for book names (same as source if unspecified)
|
75
75
|
-s separator segment separator (space by default)
|
76
76
|
-u capitalize (upper-case) book names
|
@@ -0,0 +1,10 @@
|
|
1
|
+
linkture-3.2.5.dist-info/METADATA,sha256=tBJjiIpRRO2BM_Y6dt55fB5pOfbdbbdJpQBdQBGZqAQ,11679
|
2
|
+
linkture-3.2.5.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
3
|
+
linkture-3.2.5.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
4
|
+
linkture-3.2.5.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=2BdpqJvsYJKdMRnxbRSLNcCeQh3zFBUgBKKl-JPJiCs,25344
|
8
|
+
linkture/res/custom.json,sha256=ulF5FMx27uomKsA2xoW5NPB0fa4bq2FyLChgbW-AYSM,2120
|
9
|
+
linkture/res/resources.db,sha256=MjQab_QQdfR2YfZpU6TWHOO3irLytnx00iy7YYASR6k,573440
|
10
|
+
linkture-3.2.5.dist-info/RECORD,,
|
linkture-3.2.3.dist-info/RECORD
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
linkture-3.2.3.dist-info/METADATA,sha256=SCQQYYYXehKvRyxVFZZR57yzVL3xzjA_NqAVaUs-Iz8,11657
|
2
|
-
linkture-3.2.3.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
3
|
-
linkture-3.2.3.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
4
|
-
linkture-3.2.3.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=y8WQQbe3Q2VYvtFGQWKaiqEYKkzLc8BTpS8pS3Xv2UM,25229
|
8
|
-
linkture/res/custom.json,sha256=qlpTEux2w7kb-w9ZimDqTLhnB0Eyy1Mj3zfbQ1sxKvg,2046
|
9
|
-
linkture/res/resources.db,sha256=z6f__fs94DWnoaIxyATHaoDsgs4C2d2FGhHe-mCB-8Y,577536
|
10
|
-
linkture-3.2.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|