python-scriptures
Advanced tools
+8
-1
| Metadata-Version: 1.0 | ||
| Name: python-scriptures | ||
| Version: 2.0.0 | ||
| Version: 2.1.0 | ||
| Summary: python-scriptures is a Python package and regular expression library for validating, extracting, and normalizing biblical scripture references from blocks of text. | ||
@@ -224,2 +224,9 @@ Home-page: http://www.davisd.com/projects/python-scriptures/ | ||
| Unicode | ||
| ======= | ||
| This library is unicode compatible and recognizes the \u2013 en dash and \u2014 | ||
| em dash. | ||
| Author | ||
@@ -226,0 +233,0 @@ ====== |
+7
-0
@@ -216,2 +216,9 @@ ================= | ||
| Unicode | ||
| ======= | ||
| This library is unicode compatible and recognizes the \u2013 en dash and \u2014 | ||
| em dash. | ||
| Author | ||
@@ -218,0 +225,0 @@ ====== |
@@ -0,1 +1,2 @@ | ||
| from __future__ import unicode_literals | ||
| import re | ||
@@ -64,3 +65,3 @@ | ||
| ('Titus', 'Titus', 'Tit(?:us)?', [16, 15, 15]), | ||
| ('Philemon', 'Phlm', 'Phile(?:mon)?', [25]), | ||
| ('Philemon', 'Phlm', 'Phlm|Phile(?:mon)?', [25]), | ||
| ('Hebrews', 'Heb', 'Heb(?:rews)?', [14, 18, 19, 16, 14, 20, 28, 13, 28, 39, 40, 29, 25]), | ||
@@ -91,3 +92,3 @@ ('James', 'Jas', 'Ja(?:me)?s', [27, 26, 18, 17, 20]), | ||
| # compiled book regular expression | ||
| book_re = re.compile(book_re_string, re.IGNORECASE) | ||
| book_re = re.compile(book_re_string, re.IGNORECASE | re.UNICODE) | ||
@@ -99,7 +100,7 @@ # compiled scripture reference regular expression | ||
| '(?:\s*:\s*(?P<VerseNumber>\d{1,3}))?' \ | ||
| '(?:\s*-\s*' \ | ||
| '(?:\s*[-\u2013\u2014]\s*' \ | ||
| '(?P<EndChapterNumber>\d{1,3}(?=\s*:\s*))?' \ | ||
| '(?:\s*:\s*)?' \ | ||
| '(?P<EndVerseNumber>\d{1,3})?' \ | ||
| ')?' % (book_re_string,), re.IGNORECASE) | ||
| ')?' % (book_re_string,), re.IGNORECASE | re.UNICODE) | ||
@@ -17,3 +17,3 @@ import re | ||
| for book in books: | ||
| if re.match(book[2], name, re.IGNORECASE): | ||
| if re.match('^%s$' % book[2], name, re.IGNORECASE): | ||
| return book | ||
@@ -20,0 +20,0 @@ return None |
+1
-1
@@ -5,3 +5,3 @@ from distutils.core import setup | ||
| name='python-scriptures', | ||
| version='2.0.0', | ||
| version='2.1.0', | ||
| author='David Davis', | ||
@@ -8,0 +8,0 @@ author_email='davisd@davisd.com', |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
27557
1.35%232
0.43%