linkture 3.2.0__tar.gz → 3.2.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: linkture
3
- Version: 3.2.0
3
+ Version: 3.2.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>
@@ -33,7 +33,7 @@ Description-Content-Type: text/markdown
33
33
 
34
34
  This module contains functions to parse and process Bible scripture references.
35
35
 
36
- The parser can work in **Cebuano, Chinese, Danish, Dutch, English, Ewe, French, German, Greek, Hungarian, Italian, Japanese, Korean, Norwegian, Polish, Portuguese, Russian, Spanish, Swedish, Tagalog and Ukrainian**. It will **recognize** such references and **validate** them to ensure the chapter(s) and/or verse(s) are within range.
36
+ The parser can work in **Cebuano, Chinese, Danish, Dutch, English, Ewe, French, German, Greek, Hungarian, Italian, Japanese, Korean, Norwegian, Polish, Portuguese, Romanian, Russian, Spanish, Swedish, Tagalog and Ukrainian**. It will **recognize** such references and **validate** them to ensure the chapter(s) and/or verse(s) are within range.
37
37
 
38
38
  It *does not* work with whole books (like "James") unless they are preceded by a number (like "1 John"); otherwise it would have to look up ever single word. Also, it will *not* find the multi-word book name "Song of Solomon" (and its variations), though this (and any other scripture) can be force-detected by tagging the desired reference "manually" within the source text (eg., "{{Song of Solomon 1:1}}") - *one book* per brace pair. These two limitations aside, it works with most book name variants in all the available languages (including common abbreviations): "2 Sam.", "2nd Samuel", "II Samuel", "2Sa", etc. Any special/unusual variants can be added to the *res/custom.json* list.
39
39
 
@@ -54,23 +54,23 @@ ____
54
54
  ```
55
55
  > python3 -m linkture -h
56
56
  usage: linkture.py [-h] [-v] [-q] [-f in-file | -r reference] [-o out-file]
57
- [--language {Cebuano,Chinese,Danish,Dutch,English,Ewe,French,German,Greek,Hungarian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Russian,Spanish,Tagalog,Ukrainian}]
58
- [--translate {Cebuano,Chinese,Danish,Dutch,English,Ewe,French,German,Greek,Hungarian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Russian,Spanish,Tagalog,Ukrainian}]
57
+ [--language {Cebuano,Chinese,Danish,Dutch,English,Ewe,French,German,Greek,Hungarian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Romanian,Russian,Spanish,Swedish,Tagalog,Ukrainian}]
58
+ [--translate {Cebuano,Chinese,Danish,Dutch,English,Ewe,French,German,Greek,Hungarian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Romanian,Russian,Spanish,Swedish,Tagalog,Ukrainian}]
59
59
  [-s separator] [-u] [--full | --official | --standard]
60
60
  [-c | -d | -l [prefix [suffix ...]] | -t | -x]
61
61
  [-sc BCV | -sv BCV | -cv verse | -cc chapter | -bn book]
62
62
 
63
- PARSE and PROCESS BIBLE SCRIPTURE REFERENCES: extract, tag, link, rewrite, translate, BCV-encode and decode.
64
- See README for more information
63
+ PARSE and PROCESS BIBLE SCRIPTURE REFERENCES: extract, tag, link, rewrite, translate, BCV-encode and
64
+ decode. See README for more information
65
65
 
66
66
  options:
67
67
  -h, --help show this help message and exit
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,Russian,Spanish,Tagalog,Ukrainian}
71
+ --language {Cebuano,Chinese,Danish,Dutch,English,Ewe,French,German,Greek,Hungarian,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,Russian,Spanish,Tagalog,Ukrainian}
73
+ --translate {Cebuano,Chinese,Danish,Dutch,English,Ewe,French,German,Greek,Hungarian,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
@@ -101,9 +101,9 @@ type of conversion:
101
101
  auxiliary functions:
102
102
  -sc BCV return the serial number (1-1189) of the chapter with code "BCV" ("bbcccvvv")
103
103
  -sv BCV return the serial number (1-31194) of the verse with code "BCV" ("bbcccvvv")
104
- -cv verse return the BCV code for serial verse number "verse" (integer)
105
- -cc chapter return the BCV range for serial chapter number "chapter" (integer)
106
- -bn book return the name of book number "book" (integer)
104
+ -cv verse return the BCV code for serial verse number "verse" (integer value)
105
+ -cc chapter return the BCV range for serial chapter number "chapter" (integer value)
106
+ -bn book return the name of book number "book" (integer value)
107
107
  ```
108
108
 
109
109
  Some examples:
@@ -4,7 +4,7 @@
4
4
 
5
5
  This module contains functions to parse and process Bible scripture references.
6
6
 
7
- The parser can work in **Cebuano, Chinese, Danish, Dutch, English, Ewe, French, German, Greek, Hungarian, Italian, Japanese, Korean, Norwegian, Polish, Portuguese, Russian, Spanish, Swedish, Tagalog and Ukrainian**. It will **recognize** such references and **validate** them to ensure the chapter(s) and/or verse(s) are within range.
7
+ The parser can work in **Cebuano, Chinese, Danish, Dutch, English, Ewe, French, German, Greek, Hungarian, Italian, Japanese, Korean, Norwegian, Polish, Portuguese, Romanian, Russian, Spanish, Swedish, Tagalog and Ukrainian**. It will **recognize** such references and **validate** them to ensure the chapter(s) and/or verse(s) are within range.
8
8
 
9
9
  It *does not* work with whole books (like "James") unless they are preceded by a number (like "1 John"); otherwise it would have to look up ever single word. Also, it will *not* find the multi-word book name "Song of Solomon" (and its variations), though this (and any other scripture) can be force-detected by tagging the desired reference "manually" within the source text (eg., "{{Song of Solomon 1:1}}") - *one book* per brace pair. These two limitations aside, it works with most book name variants in all the available languages (including common abbreviations): "2 Sam.", "2nd Samuel", "II Samuel", "2Sa", etc. Any special/unusual variants can be added to the *res/custom.json* list.
10
10
 
@@ -25,23 +25,23 @@ ____
25
25
  ```
26
26
  > python3 -m linkture -h
27
27
  usage: linkture.py [-h] [-v] [-q] [-f in-file | -r reference] [-o out-file]
28
- [--language {Cebuano,Chinese,Danish,Dutch,English,Ewe,French,German,Greek,Hungarian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Russian,Spanish,Tagalog,Ukrainian}]
29
- [--translate {Cebuano,Chinese,Danish,Dutch,English,Ewe,French,German,Greek,Hungarian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Russian,Spanish,Tagalog,Ukrainian}]
28
+ [--language {Cebuano,Chinese,Danish,Dutch,English,Ewe,French,German,Greek,Hungarian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Romanian,Russian,Spanish,Swedish,Tagalog,Ukrainian}]
29
+ [--translate {Cebuano,Chinese,Danish,Dutch,English,Ewe,French,German,Greek,Hungarian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Romanian,Russian,Spanish,Swedish,Tagalog,Ukrainian}]
30
30
  [-s separator] [-u] [--full | --official | --standard]
31
31
  [-c | -d | -l [prefix [suffix ...]] | -t | -x]
32
32
  [-sc BCV | -sv BCV | -cv verse | -cc chapter | -bn book]
33
33
 
34
- PARSE and PROCESS BIBLE SCRIPTURE REFERENCES: extract, tag, link, rewrite, translate, BCV-encode and decode.
35
- See README for more information
34
+ PARSE and PROCESS BIBLE SCRIPTURE REFERENCES: extract, tag, link, rewrite, translate, BCV-encode and
35
+ decode. See README for more information
36
36
 
37
37
  options:
38
38
  -h, --help show this help message and exit
39
39
  -v show version and exit
40
40
  -q don't show errors
41
41
  -o out-file output file (terminal output if not provided)
42
- --language {Cebuano,Chinese,Danish,Dutch,English,Ewe,French,German,Greek,Hungarian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Russian,Spanish,Tagalog,Ukrainian}
42
+ --language {Cebuano,Chinese,Danish,Dutch,English,Ewe,French,German,Greek,Hungarian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Romanian,Russian,Spanish,Swedish,Tagalog,Ukrainian}
43
43
  indicate source language for book names (English if unspecified)
44
- --translate {Cebuano,Chinese,Danish,Dutch,English,Ewe,French,German,Greek,Hungarian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Russian,Spanish,Tagalog,Ukrainian}
44
+ --translate {Cebuano,Chinese,Danish,Dutch,English,Ewe,French,German,Greek,Hungarian,Italian,Japanese,Korean,Norwegian,Polish,Portuguese,Romanian,Russian,Spanish,Swedish,Tagalog,Ukrainian}
45
45
  indicate output language for book names (same as source if unspecified)
46
46
  -s separator segment separator (space by default)
47
47
  -u capitalize (upper-case) book names
@@ -72,9 +72,9 @@ type of conversion:
72
72
  auxiliary functions:
73
73
  -sc BCV return the serial number (1-1189) of the chapter with code "BCV" ("bbcccvvv")
74
74
  -sv BCV return the serial number (1-31194) of the verse with code "BCV" ("bbcccvvv")
75
- -cv verse return the BCV code for serial verse number "verse" (integer)
76
- -cc chapter return the BCV range for serial chapter number "chapter" (integer)
77
- -bn book return the name of book number "book" (integer)
75
+ -cv verse return the BCV code for serial verse number "verse" (integer value)
76
+ -cc chapter return the BCV range for serial chapter number "chapter" (integer value)
77
+ -bn book return the name of book number "book" (integer value)
78
78
  ```
79
79
 
80
80
  Some examples:
@@ -36,7 +36,7 @@ keywords = [
36
36
  "scripture-parser",
37
37
  "scripture-linker",
38
38
  ]
39
- version = "3.2.0"
39
+ version = "3.2.1"
40
40
 
41
41
  [project.license]
42
42
  text = "MIT"
@@ -27,7 +27,7 @@
27
27
  """
28
28
 
29
29
  __app__ = 'linkture'
30
- __version__ = 'v3.2.0'
30
+ __version__ = 'v3.2.1'
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', 'Russian', 'Spanish', 'Swedish', 'Tagalog', 'Ukrainian')
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')
40
40
  _non_latin = ('Chinese', 'Greek', 'Japanese', 'Korean', 'Russian', 'Ukrainian')
41
41
 
42
42
 
index 5d2b563..01b2a17 100644
Binary file
File without changes