unicodedata-reader 1.0.0__tar.gz → 1.1.0__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.
- {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/PKG-INFO +1 -1
- {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/pyproject.toml +1 -1
- {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/reader.py +5 -0
- {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/set.py +8 -3
- {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/LICENSE +0 -0
- {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/README.md +0 -0
- {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/__init__.py +0 -0
- {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/__main__.py +0 -0
- {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/bidi_brackets.py +0 -0
- {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/cli.py +0 -0
- {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/compressor.py +0 -0
- {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/east_asian_width.py +0 -0
- {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/emoji.py +0 -0
- {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/entry.py +0 -0
- {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/general_category.py +0 -0
- {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/line_break.py +0 -0
- {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/vertical_orientation.py +0 -0
|
@@ -54,6 +54,11 @@ class UnicodeDataReader(object):
|
|
|
54
54
|
lines = self.read_lines(name)
|
|
55
55
|
return UnicodeLineBreakDataEntries(name=name, lines=lines)
|
|
56
56
|
|
|
57
|
+
def name(self) -> UnicodeDataEntries:
|
|
58
|
+
lines = self.read_lines('extracted/DerivedName')
|
|
59
|
+
entries = UnicodeDataEntries(name='Name', lines=lines)
|
|
60
|
+
return entries
|
|
61
|
+
|
|
57
62
|
def scripts(self) -> UnicodeDataEntries:
|
|
58
63
|
name = 'Scripts'
|
|
59
64
|
lines = self.read_lines(name)
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
from typing import Any
|
|
1
2
|
from typing import Callable
|
|
3
|
+
from typing import Iterable
|
|
2
4
|
|
|
3
5
|
from unicodedata_reader.entry import *
|
|
4
6
|
from unicodedata_reader.reader import *
|
|
@@ -16,14 +18,17 @@ class Set(object):
|
|
|
16
18
|
def __iter__(self) -> Iterable[int]:
|
|
17
19
|
return self.set.__iter__()
|
|
18
20
|
|
|
19
|
-
def __isub__(self, other: 'Set') ->
|
|
21
|
+
def __isub__(self, other: 'Set') -> 'Set':
|
|
20
22
|
self.set -= other.set
|
|
23
|
+
return self
|
|
21
24
|
|
|
22
|
-
def __iand__(self, other: 'Set') ->
|
|
25
|
+
def __iand__(self, other: 'Set') -> 'Set':
|
|
23
26
|
self.set &= other.set
|
|
27
|
+
return self
|
|
24
28
|
|
|
25
|
-
def __ior__(self, other: 'Set') ->
|
|
29
|
+
def __ior__(self, other: 'Set') -> 'Set':
|
|
26
30
|
self.set |= other.set
|
|
31
|
+
return self
|
|
27
32
|
|
|
28
33
|
def add(self, code: int) -> None:
|
|
29
34
|
self.set.add(code)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/east_asian_width.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/general_category.py
RENAMED
|
File without changes
|
|
File without changes
|
{unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/vertical_orientation.py
RENAMED
|
File without changes
|