winrt-Windows.Data.Text 2.2.0__cp313-cp313-win32.whl

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.
@@ -0,0 +1,170 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.foundation.collections as windows_foundation_collections
14
+ import winrt.windows.ui.text.core as windows_ui_text_core
15
+
16
+ from winrt.windows.data.text import AlternateNormalizationFormat, TextPredictionOptions, UnicodeGeneralCategory, UnicodeNumericType
17
+ from winrt.windows.data.text import SelectableWordSegmentsTokenizingHandler, WordSegmentsTokenizingHandler
18
+
19
+ Self = typing.TypeVar('Self')
20
+
21
+ @typing.final
22
+ class TextSegment:
23
+ start_position: winrt.system.UInt32
24
+ length: winrt.system.UInt32
25
+ def __init__(self, start_position: winrt.system.UInt32, length: winrt.system.UInt32) -> None: ...
26
+
27
+ @typing.final
28
+ class AlternateWordForm(winrt.system.Object):
29
+ @staticmethod
30
+ def _from(obj: winrt.system.Object, /) -> AlternateWordForm: ...
31
+ @_property
32
+ def alternate_text(self) -> str: ...
33
+ @_property
34
+ def normalization_format(self) -> AlternateNormalizationFormat: ...
35
+ @_property
36
+ def source_text_segment(self) -> TextSegment: ...
37
+
38
+ @typing.final
39
+ class SelectableWordSegment(winrt.system.Object):
40
+ @staticmethod
41
+ def _from(obj: winrt.system.Object, /) -> SelectableWordSegment: ...
42
+ @_property
43
+ def source_text_segment(self) -> TextSegment: ...
44
+ @_property
45
+ def text(self) -> str: ...
46
+
47
+ @typing.final
48
+ class SelectableWordsSegmenter(winrt.system.Object):
49
+ @staticmethod
50
+ def _from(obj: winrt.system.Object, /) -> SelectableWordsSegmenter: ...
51
+ def __new__(cls: typing.Type[SelectableWordsSegmenter], language: str) -> SelectableWordsSegmenter: ...
52
+ def get_token_at(self, text: str, start_index: winrt.system.UInt32, /) -> typing.Optional[SelectableWordSegment]: ...
53
+ def get_tokens(self, text: str, /) -> typing.Optional[windows_foundation_collections.IVectorView[SelectableWordSegment]]: ...
54
+ def tokenize(self, text: str, start_index: winrt.system.UInt32, handler: typing.Optional[SelectableWordSegmentsTokenizingHandler], /) -> None: ...
55
+ @_property
56
+ def resolved_language(self) -> str: ...
57
+
58
+ @typing.final
59
+ class SemanticTextQuery(winrt.system.Object):
60
+ @staticmethod
61
+ def _from(obj: winrt.system.Object, /) -> SemanticTextQuery: ...
62
+ @typing.overload
63
+ def __new__(cls: typing.Type[SemanticTextQuery], aqs_filter: str) -> SemanticTextQuery: ...
64
+ @typing.overload
65
+ def __new__(cls: typing.Type[SemanticTextQuery], aqs_filter: str, filter_language: str) -> SemanticTextQuery: ...
66
+ def find(self, content: str, /) -> typing.Optional[windows_foundation_collections.IVectorView[TextSegment]]: ...
67
+ def find_in_property(self, property_content: str, property_name: str, /) -> typing.Optional[windows_foundation_collections.IVectorView[TextSegment]]: ...
68
+
69
+ @typing.final
70
+ class TextConversionGenerator(winrt.system.Object):
71
+ @staticmethod
72
+ def _from(obj: winrt.system.Object, /) -> TextConversionGenerator: ...
73
+ def __new__(cls: typing.Type[TextConversionGenerator], language_tag: str) -> TextConversionGenerator: ...
74
+ @typing.overload
75
+ def get_candidates_async(self, input: str, /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[str]]: ...
76
+ @typing.overload
77
+ def get_candidates_async(self, input: str, max_candidates: winrt.system.UInt32, /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[str]]: ...
78
+ @_property
79
+ def language_available_but_not_installed(self) -> bool: ...
80
+ @_property
81
+ def resolved_language(self) -> str: ...
82
+
83
+ @typing.final
84
+ class TextPhoneme(winrt.system.Object):
85
+ @staticmethod
86
+ def _from(obj: winrt.system.Object, /) -> TextPhoneme: ...
87
+ @_property
88
+ def display_text(self) -> str: ...
89
+ @_property
90
+ def reading_text(self) -> str: ...
91
+
92
+ @typing.final
93
+ class TextPredictionGenerator(winrt.system.Object):
94
+ @staticmethod
95
+ def _from(obj: winrt.system.Object, /) -> TextPredictionGenerator: ...
96
+ def __new__(cls: typing.Type[TextPredictionGenerator], language_tag: str) -> TextPredictionGenerator: ...
97
+ @typing.overload
98
+ def get_candidates_async(self, input: str, /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[str]]: ...
99
+ @typing.overload
100
+ def get_candidates_async(self, input: str, max_candidates: winrt.system.UInt32, /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[str]]: ...
101
+ @typing.overload
102
+ def get_candidates_async(self, input: str, max_candidates: winrt.system.UInt32, prediction_options: TextPredictionOptions, previous_strings: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[str]]: ...
103
+ def get_next_word_candidates_async(self, max_candidates: winrt.system.UInt32, previous_strings: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[str]]: ...
104
+ @_property
105
+ def language_available_but_not_installed(self) -> bool: ...
106
+ @_property
107
+ def resolved_language(self) -> str: ...
108
+ @_property
109
+ def input_scope(self) -> windows_ui_text_core.CoreTextInputScope: ...
110
+ @input_scope.setter
111
+ def input_scope(self, value: windows_ui_text_core.CoreTextInputScope) -> None: ...
112
+
113
+ @typing.final
114
+ class TextReverseConversionGenerator(winrt.system.Object):
115
+ @staticmethod
116
+ def _from(obj: winrt.system.Object, /) -> TextReverseConversionGenerator: ...
117
+ def __new__(cls: typing.Type[TextReverseConversionGenerator], language_tag: str) -> TextReverseConversionGenerator: ...
118
+ def convert_back_async(self, input: str, /) -> windows_foundation.IAsyncOperation[str]: ...
119
+ def get_phonemes_async(self, input: str, /) -> windows_foundation.IAsyncOperation[windows_foundation_collections.IVectorView[TextPhoneme]]: ...
120
+ @_property
121
+ def language_available_but_not_installed(self) -> bool: ...
122
+ @_property
123
+ def resolved_language(self) -> str: ...
124
+
125
+ @typing.final
126
+ class UnicodeCharacters_Static(type):
127
+ def get_codepoint_from_surrogate_pair(cls, high_surrogate: winrt.system.UInt32, low_surrogate: winrt.system.UInt32, /) -> winrt.system.UInt32: ...
128
+ def get_general_category(cls, codepoint: winrt.system.UInt32, /) -> UnicodeGeneralCategory: ...
129
+ def get_numeric_type(cls, codepoint: winrt.system.UInt32, /) -> UnicodeNumericType: ...
130
+ def get_surrogate_pair_from_codepoint(cls, codepoint: winrt.system.UInt32, /) -> typing.Tuple[winrt.system.Char16, winrt.system.Char16]: ...
131
+ def is_alphabetic(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
132
+ def is_cased(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
133
+ def is_grapheme_base(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
134
+ def is_grapheme_extend(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
135
+ def is_high_surrogate(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
136
+ def is_id_continue(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
137
+ def is_id_start(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
138
+ def is_low_surrogate(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
139
+ def is_lowercase(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
140
+ def is_noncharacter(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
141
+ def is_supplementary(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
142
+ def is_uppercase(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
143
+ def is_whitespace(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
144
+
145
+ @typing.final
146
+ class UnicodeCharacters(winrt.system.Object, metaclass=UnicodeCharacters_Static):
147
+ pass
148
+
149
+ @typing.final
150
+ class WordSegment(winrt.system.Object):
151
+ @staticmethod
152
+ def _from(obj: winrt.system.Object, /) -> WordSegment: ...
153
+ @_property
154
+ def alternate_forms(self) -> typing.Optional[windows_foundation_collections.IVectorView[AlternateWordForm]]: ...
155
+ @_property
156
+ def source_text_segment(self) -> TextSegment: ...
157
+ @_property
158
+ def text(self) -> str: ...
159
+
160
+ @typing.final
161
+ class WordsSegmenter(winrt.system.Object):
162
+ @staticmethod
163
+ def _from(obj: winrt.system.Object, /) -> WordsSegmenter: ...
164
+ def __new__(cls: typing.Type[WordsSegmenter], language: str) -> WordsSegmenter: ...
165
+ def get_token_at(self, text: str, start_index: winrt.system.UInt32, /) -> typing.Optional[WordSegment]: ...
166
+ def get_tokens(self, text: str, /) -> typing.Optional[windows_foundation_collections.IVectorView[WordSegment]]: ...
167
+ def tokenize(self, text: str, start_index: winrt.system.UInt32, handler: typing.Optional[WordSegmentsTokenizingHandler], /) -> None: ...
168
+ @_property
169
+ def resolved_language(self) -> str: ...
170
+
@@ -0,0 +1,94 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import enum
4
+ import typing
5
+ import uuid as _uuid
6
+
7
+ import winrt.system
8
+ from winrt import _winrt_windows_data_text
9
+
10
+ __all__ = [
11
+ "AlternateNormalizationFormat",
12
+ "TextPredictionOptions",
13
+ "UnicodeGeneralCategory",
14
+ "UnicodeNumericType",
15
+ "TextSegment",
16
+ "AlternateWordForm",
17
+ "SelectableWordSegment",
18
+ "SelectableWordsSegmenter",
19
+ "SemanticTextQuery",
20
+ "TextConversionGenerator",
21
+ "TextPhoneme",
22
+ "TextPredictionGenerator",
23
+ "TextReverseConversionGenerator",
24
+ "UnicodeCharacters",
25
+ "WordSegment",
26
+ "WordsSegmenter",
27
+ "SelectableWordSegmentsTokenizingHandler",
28
+ "WordSegmentsTokenizingHandler",
29
+ ]
30
+
31
+ class AlternateNormalizationFormat(enum.IntEnum):
32
+ NOT_NORMALIZED = 0
33
+ NUMBER = 1
34
+ CURRENCY = 3
35
+ DATE = 4
36
+ TIME = 5
37
+
38
+ class TextPredictionOptions(enum.IntFlag):
39
+ NONE = 0x0
40
+ PREDICTIONS = 0x1
41
+ CORRECTIONS = 0x2
42
+
43
+ class UnicodeGeneralCategory(enum.IntEnum):
44
+ UPPERCASE_LETTER = 0
45
+ LOWERCASE_LETTER = 1
46
+ TITLECASE_LETTER = 2
47
+ MODIFIER_LETTER = 3
48
+ OTHER_LETTER = 4
49
+ NONSPACING_MARK = 5
50
+ SPACING_COMBINING_MARK = 6
51
+ ENCLOSING_MARK = 7
52
+ DECIMAL_DIGIT_NUMBER = 8
53
+ LETTER_NUMBER = 9
54
+ OTHER_NUMBER = 10
55
+ SPACE_SEPARATOR = 11
56
+ LINE_SEPARATOR = 12
57
+ PARAGRAPH_SEPARATOR = 13
58
+ CONTROL = 14
59
+ FORMAT = 15
60
+ SURROGATE = 16
61
+ PRIVATE_USE = 17
62
+ CONNECTOR_PUNCTUATION = 18
63
+ DASH_PUNCTUATION = 19
64
+ OPEN_PUNCTUATION = 20
65
+ CLOSE_PUNCTUATION = 21
66
+ INITIAL_QUOTE_PUNCTUATION = 22
67
+ FINAL_QUOTE_PUNCTUATION = 23
68
+ OTHER_PUNCTUATION = 24
69
+ MATH_SYMBOL = 25
70
+ CURRENCY_SYMBOL = 26
71
+ MODIFIER_SYMBOL = 27
72
+ OTHER_SYMBOL = 28
73
+ NOT_ASSIGNED = 29
74
+
75
+ class UnicodeNumericType(enum.IntEnum):
76
+ NONE = 0
77
+ DECIMAL = 1
78
+ DIGIT = 2
79
+ NUMERIC = 3
80
+
81
+ TextSegment = _winrt_windows_data_text.TextSegment
82
+ AlternateWordForm = _winrt_windows_data_text.AlternateWordForm
83
+ SelectableWordSegment = _winrt_windows_data_text.SelectableWordSegment
84
+ SelectableWordsSegmenter = _winrt_windows_data_text.SelectableWordsSegmenter
85
+ SemanticTextQuery = _winrt_windows_data_text.SemanticTextQuery
86
+ TextConversionGenerator = _winrt_windows_data_text.TextConversionGenerator
87
+ TextPhoneme = _winrt_windows_data_text.TextPhoneme
88
+ TextPredictionGenerator = _winrt_windows_data_text.TextPredictionGenerator
89
+ TextReverseConversionGenerator = _winrt_windows_data_text.TextReverseConversionGenerator
90
+ UnicodeCharacters = _winrt_windows_data_text.UnicodeCharacters
91
+ WordSegment = _winrt_windows_data_text.WordSegment
92
+ WordsSegmenter = _winrt_windows_data_text.WordsSegmenter
93
+ SelectableWordSegmentsTokenizingHandler = typing.Callable[[typing.Iterable[SelectableWordSegment], typing.Iterable[SelectableWordSegment]], None]
94
+ WordSegmentsTokenizingHandler = typing.Callable[[typing.Iterable[WordSegment], typing.Iterable[WordSegment]], None]
File without changes
@@ -0,0 +1,27 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.Data.Text
3
+ Version: 2.2.0
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
7
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
9
+ Classifier: Operating System :: Microsoft :: Windows
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: Implementation :: CPython
12
+ Classifier: Intended Audience :: Developers
13
+ Requires-Python: <3.14,>=3.9
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime ==2.2.0
16
+ Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all] ==2.2.0 ; extra == 'all'
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all] ==2.2.0 ; extra == 'all'
19
+ Requires-Dist: winrt-Windows.UI.Text.Core[all] ==2.2.0 ; extra == 'all'
20
+
21
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
22
+
23
+ # winrt-Windows.Data.Text
24
+
25
+ Windows Runtime (WinRT) APIs for for the `Windows.Data.Text` namespace.
26
+
27
+ This package provides the `winrt.windows.data.text` module.
@@ -0,0 +1,8 @@
1
+ winrt/_winrt_windows_data_text.cp313-win32.pyd,sha256=cKnuVxbVdjBWVlyoU3j6rcu4r0K0w6u9O2gxOYcg3C8,209920
2
+ winrt/_winrt_windows_data_text.pyi,sha256=_5KbdWsSaRMM-5g01uSb33c8Y5Rx3Axok03SL6r4bkk,8797
3
+ winrt/windows/data/text/__init__.py,sha256=kEvTGvECO6YLOh3twtVhipBiGppeYkvgBnTKq4ftGb4,2898
4
+ winrt/windows/data/text/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ winrt_Windows.Data.Text-2.2.0.dist-info/METADATA,sha256=o1tmTc7MzhSbmGEZ-8Zfkx4H3nrUcKI67RB72HwyQnU,1175
6
+ winrt_Windows.Data.Text-2.2.0.dist-info/WHEEL,sha256=rHSPOKLHVf857fDiba9Pzuf1iCvh9pcRQ5-VWQYz3ms,97
7
+ winrt_Windows.Data.Text-2.2.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
8
+ winrt_Windows.Data.Text-2.2.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (73.0.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-win32
5
+