From 3189e42fcec49b0cd2d7ba44ff7d4b6e38032e8e Mon Sep 17 00:00:00 2001 From: ptmcg Date: Fri, 9 Nov 2018 23:00:19 -0600 Subject: Added unicode sets for LatinA and LatinB ranges --- pyparsing.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'pyparsing.py') diff --git a/pyparsing.py b/pyparsing.py index 5006e4e..19b0141 100644 --- a/pyparsing.py +++ b/pyparsing.py @@ -75,8 +75,8 @@ classes inherit from. Use the docstrings for examples of how to: - find more useful common expressions in the L{pyparsing_common} namespace class """ -__version__ = "2.3.0" -__versionTime__ = "28 Oct 2018 01:57 UTC" +__version__ = "2.3.1" +__versionTime__ = "10 Nov 2018 04:38 UTC" __author__ = "Paul McGuire " import string @@ -5865,9 +5865,13 @@ class pyparsing_unicode(unicode_set): _ranges = [(32, sys.maxunicode)] class Latin1(unicode_set): - _ranges = [ - (0x0020, 0x007e), (0x00a0, 0x00ff), - ] + _ranges = [(0x0020, 0x007e), (0x00a0, 0x00ff),] + + class LatinA(unicode_set): + _ranges = [(0x0100, 0x017f),] + + class LatinB(unicode_set): + _ranges = [(0x0180, 0x024f),] class Greek(unicode_set): _ranges = [ -- cgit v1.2.1