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.
Files changed (17) hide show
  1. {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/PKG-INFO +1 -1
  2. {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/pyproject.toml +1 -1
  3. {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/reader.py +5 -0
  4. {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/set.py +8 -3
  5. {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/LICENSE +0 -0
  6. {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/README.md +0 -0
  7. {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/__init__.py +0 -0
  8. {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/__main__.py +0 -0
  9. {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/bidi_brackets.py +0 -0
  10. {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/cli.py +0 -0
  11. {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/compressor.py +0 -0
  12. {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/east_asian_width.py +0 -0
  13. {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/emoji.py +0 -0
  14. {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/entry.py +0 -0
  15. {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/general_category.py +0 -0
  16. {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/line_break.py +0 -0
  17. {unicodedata_reader-1.0.0 → unicodedata_reader-1.1.0}/unicodedata_reader/vertical_orientation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unicodedata-reader
3
- Version: 1.0.0
3
+ Version: 1.1.0
4
4
  Summary:
5
5
  Home-page: https://github.com/kojiishi/unicodedata-reader
6
6
  License: Apache-2.0
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "unicodedata-reader"
7
- version = "1.0.0"
7
+ version = "1.1.0"
8
8
  description = ""
9
9
  authors = ["Koji Ishii <kojii@chromium.org>"]
10
10
  readme = "README.md"
@@ -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') -> None:
21
+ def __isub__(self, other: 'Set') -> 'Set':
20
22
  self.set -= other.set
23
+ return self
21
24
 
22
- def __iand__(self, other: 'Set') -> None:
25
+ def __iand__(self, other: 'Set') -> 'Set':
23
26
  self.set &= other.set
27
+ return self
24
28
 
25
- def __ior__(self, other: 'Set') -> None:
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)