winrt-Windows.Data.Text 3.2.1__cp314-cp314-win_amd64.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,202 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
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
+ @_property
24
+ def start_position(self) -> winrt.system.UInt32: ...
25
+ @_property
26
+ def length(self) -> winrt.system.UInt32: ...
27
+ def __new__(cls, start_position: winrt.system.UInt32 = 0, length: winrt.system.UInt32 = 0) -> TextSegment: ...
28
+ def __replace__(self, /, **changes: typing.Any) -> TextSegment: ...
29
+ def unpack(self) -> typing.Tuple[winrt.system.UInt32, winrt.system.UInt32]: ...
30
+
31
+ @typing.final
32
+ class AlternateWordForm(winrt.system.Object):
33
+ # System.String Windows.Data.Text.AlternateWordForm::get_AlternateText()
34
+ @_property
35
+ def alternate_text(self) -> str: ...
36
+ # Windows.Data.Text.AlternateNormalizationFormat Windows.Data.Text.AlternateWordForm::get_NormalizationFormat()
37
+ @_property
38
+ def normalization_format(self) -> AlternateNormalizationFormat: ...
39
+ # Windows.Data.Text.TextSegment Windows.Data.Text.AlternateWordForm::get_SourceTextSegment()
40
+ @_property
41
+ def source_text_segment(self) -> TextSegment: ...
42
+
43
+ @typing.final
44
+ class SelectableWordSegment(winrt.system.Object):
45
+ # Windows.Data.Text.TextSegment Windows.Data.Text.SelectableWordSegment::get_SourceTextSegment()
46
+ @_property
47
+ def source_text_segment(self) -> TextSegment: ...
48
+ # System.String Windows.Data.Text.SelectableWordSegment::get_Text()
49
+ @_property
50
+ def text(self) -> str: ...
51
+
52
+ @typing.final
53
+ class SelectableWordsSegmenter(winrt.system.Object):
54
+ def __new__(cls: typing.Type[Self], language: str) -> Self: ...
55
+ # Windows.Data.Text.SelectableWordSegment Windows.Data.Text.SelectableWordsSegmenter::GetTokenAt(System.String,System.UInt32)
56
+ def get_token_at(self, text: str, start_index: winrt.system.UInt32, /) -> SelectableWordSegment: ...
57
+ # Windows.Foundation.Collections.IVectorView`1<Windows.Data.Text.SelectableWordSegment> Windows.Data.Text.SelectableWordsSegmenter::GetTokens(System.String)
58
+ def get_tokens(self, text: str, /) -> typing.Sequence[SelectableWordSegment]: ...
59
+ # System.Void Windows.Data.Text.SelectableWordsSegmenter::Tokenize(System.String,System.UInt32,Windows.Data.Text.SelectableWordSegmentsTokenizingHandler)
60
+ def tokenize(self, text: str, start_index: winrt.system.UInt32, handler: SelectableWordSegmentsTokenizingHandler, /) -> None: ...
61
+ # System.String Windows.Data.Text.SelectableWordsSegmenter::get_ResolvedLanguage()
62
+ @_property
63
+ def resolved_language(self) -> str: ...
64
+
65
+ @typing.final
66
+ class SemanticTextQuery(winrt.system.Object):
67
+ @typing.overload
68
+ def __new__(cls: typing.Type[Self], aqs_filter: str) -> Self: ...
69
+ @typing.overload
70
+ def __new__(cls: typing.Type[Self], aqs_filter: str, filter_language: str) -> Self: ...
71
+ # Windows.Foundation.Collections.IVectorView`1<Windows.Data.Text.TextSegment> Windows.Data.Text.SemanticTextQuery::Find(System.String)
72
+ def find(self, content: str, /) -> typing.Sequence[TextSegment]: ...
73
+ # Windows.Foundation.Collections.IVectorView`1<Windows.Data.Text.TextSegment> Windows.Data.Text.SemanticTextQuery::FindInProperty(System.String,System.String)
74
+ def find_in_property(self, property_content: str, property_name: str, /) -> typing.Sequence[TextSegment]: ...
75
+
76
+ @typing.final
77
+ class TextConversionGenerator(winrt.system.Object):
78
+ def __new__(cls: typing.Type[Self], language_tag: str) -> Self: ...
79
+ # Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<System.String>> Windows.Data.Text.TextConversionGenerator::GetCandidatesAsync(System.String)
80
+ def get_candidates_async(self, input: str, /) -> windows_foundation.IAsyncOperation[typing.Sequence[str]]: ...
81
+ # Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<System.String>> Windows.Data.Text.TextConversionGenerator::GetCandidatesAsync(System.String,System.UInt32)
82
+ def get_candidates_with_max_count_async(self, input: str, max_candidates: winrt.system.UInt32, /) -> windows_foundation.IAsyncOperation[typing.Sequence[str]]: ...
83
+ # System.Boolean Windows.Data.Text.TextConversionGenerator::get_LanguageAvailableButNotInstalled()
84
+ @_property
85
+ def language_available_but_not_installed(self) -> bool: ...
86
+ # System.String Windows.Data.Text.TextConversionGenerator::get_ResolvedLanguage()
87
+ @_property
88
+ def resolved_language(self) -> str: ...
89
+
90
+ @typing.final
91
+ class TextPhoneme(winrt.system.Object):
92
+ # System.String Windows.Data.Text.TextPhoneme::get_DisplayText()
93
+ @_property
94
+ def display_text(self) -> str: ...
95
+ # System.String Windows.Data.Text.TextPhoneme::get_ReadingText()
96
+ @_property
97
+ def reading_text(self) -> str: ...
98
+
99
+ @typing.final
100
+ class TextPredictionGenerator(winrt.system.Object):
101
+ def __new__(cls: typing.Type[Self], language_tag: str) -> Self: ...
102
+ # Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<System.String>> Windows.Data.Text.TextPredictionGenerator::GetCandidatesAsync(System.String)
103
+ def get_candidates_async(self, input: str, /) -> windows_foundation.IAsyncOperation[typing.Sequence[str]]: ...
104
+ # Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<System.String>> Windows.Data.Text.TextPredictionGenerator::GetCandidatesAsync(System.String,System.UInt32)
105
+ def get_candidates_with_max_count_async(self, input: str, max_candidates: winrt.system.UInt32, /) -> windows_foundation.IAsyncOperation[typing.Sequence[str]]: ...
106
+ # Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<System.String>> Windows.Data.Text.TextPredictionGenerator::GetCandidatesAsync(System.String,System.UInt32,Windows.Data.Text.TextPredictionOptions,Windows.Foundation.Collections.IIterable`1<System.String>)
107
+ def get_candidates_with_parameters_async(self, input: str, max_candidates: winrt.system.UInt32, prediction_options: TextPredictionOptions, previous_strings: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[typing.Sequence[str]]: ...
108
+ # Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<System.String>> Windows.Data.Text.TextPredictionGenerator::GetNextWordCandidatesAsync(System.UInt32,Windows.Foundation.Collections.IIterable`1<System.String>)
109
+ def get_next_word_candidates_async(self, max_candidates: winrt.system.UInt32, previous_strings: typing.Iterable[str], /) -> windows_foundation.IAsyncOperation[typing.Sequence[str]]: ...
110
+ # System.Boolean Windows.Data.Text.TextPredictionGenerator::get_LanguageAvailableButNotInstalled()
111
+ @_property
112
+ def language_available_but_not_installed(self) -> bool: ...
113
+ # System.String Windows.Data.Text.TextPredictionGenerator::get_ResolvedLanguage()
114
+ @_property
115
+ def resolved_language(self) -> str: ...
116
+ # Windows.UI.Text.Core.CoreTextInputScope Windows.Data.Text.TextPredictionGenerator::get_InputScope()
117
+ @_property
118
+ def input_scope(self) -> windows_ui_text_core.CoreTextInputScope: ...
119
+ # System.Void Windows.Data.Text.TextPredictionGenerator::put_InputScope(Windows.UI.Text.Core.CoreTextInputScope)
120
+ @input_scope.setter
121
+ def input_scope(self, value: windows_ui_text_core.CoreTextInputScope) -> None: ...
122
+
123
+ @typing.final
124
+ class TextReverseConversionGenerator(winrt.system.Object):
125
+ def __new__(cls: typing.Type[Self], language_tag: str) -> Self: ...
126
+ # Windows.Foundation.IAsyncOperation`1<System.String> Windows.Data.Text.TextReverseConversionGenerator::ConvertBackAsync(System.String)
127
+ def convert_back_async(self, input: str, /) -> windows_foundation.IAsyncOperation[str]: ...
128
+ # Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.Data.Text.TextPhoneme>> Windows.Data.Text.TextReverseConversionGenerator::GetPhonemesAsync(System.String)
129
+ def get_phonemes_async(self, input: str, /) -> windows_foundation.IAsyncOperation[typing.Sequence[TextPhoneme]]: ...
130
+ # System.Boolean Windows.Data.Text.TextReverseConversionGenerator::get_LanguageAvailableButNotInstalled()
131
+ @_property
132
+ def language_available_but_not_installed(self) -> bool: ...
133
+ # System.String Windows.Data.Text.TextReverseConversionGenerator::get_ResolvedLanguage()
134
+ @_property
135
+ def resolved_language(self) -> str: ...
136
+
137
+ @typing.final
138
+ class UnicodeCharacters_Static(winrt._winrt.IInspectable_Static):
139
+ # System.UInt32 Windows.Data.Text.UnicodeCharacters::GetCodepointFromSurrogatePair(System.UInt32,System.UInt32)
140
+ def get_codepoint_from_surrogate_pair(cls, high_surrogate: winrt.system.UInt32, low_surrogate: winrt.system.UInt32, /) -> winrt.system.UInt32: ...
141
+ # Windows.Data.Text.UnicodeGeneralCategory Windows.Data.Text.UnicodeCharacters::GetGeneralCategory(System.UInt32)
142
+ def get_general_category(cls, codepoint: winrt.system.UInt32, /) -> UnicodeGeneralCategory: ...
143
+ # Windows.Data.Text.UnicodeNumericType Windows.Data.Text.UnicodeCharacters::GetNumericType(System.UInt32)
144
+ def get_numeric_type(cls, codepoint: winrt.system.UInt32, /) -> UnicodeNumericType: ...
145
+ # System.Void Windows.Data.Text.UnicodeCharacters::GetSurrogatePairFromCodepoint(System.UInt32,System.Char&,System.Char&)
146
+ def get_surrogate_pair_from_codepoint(cls, codepoint: winrt.system.UInt32, /) -> typing.Tuple[winrt.system.Char16, winrt.system.Char16]: ...
147
+ # System.Boolean Windows.Data.Text.UnicodeCharacters::IsAlphabetic(System.UInt32)
148
+ def is_alphabetic(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
149
+ # System.Boolean Windows.Data.Text.UnicodeCharacters::IsCased(System.UInt32)
150
+ def is_cased(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
151
+ # System.Boolean Windows.Data.Text.UnicodeCharacters::IsGraphemeBase(System.UInt32)
152
+ def is_grapheme_base(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
153
+ # System.Boolean Windows.Data.Text.UnicodeCharacters::IsGraphemeExtend(System.UInt32)
154
+ def is_grapheme_extend(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
155
+ # System.Boolean Windows.Data.Text.UnicodeCharacters::IsHighSurrogate(System.UInt32)
156
+ def is_high_surrogate(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
157
+ # System.Boolean Windows.Data.Text.UnicodeCharacters::IsIdContinue(System.UInt32)
158
+ def is_id_continue(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
159
+ # System.Boolean Windows.Data.Text.UnicodeCharacters::IsIdStart(System.UInt32)
160
+ def is_id_start(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
161
+ # System.Boolean Windows.Data.Text.UnicodeCharacters::IsLowSurrogate(System.UInt32)
162
+ def is_low_surrogate(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
163
+ # System.Boolean Windows.Data.Text.UnicodeCharacters::IsLowercase(System.UInt32)
164
+ def is_lowercase(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
165
+ # System.Boolean Windows.Data.Text.UnicodeCharacters::IsNoncharacter(System.UInt32)
166
+ def is_noncharacter(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
167
+ # System.Boolean Windows.Data.Text.UnicodeCharacters::IsSupplementary(System.UInt32)
168
+ def is_supplementary(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
169
+ # System.Boolean Windows.Data.Text.UnicodeCharacters::IsUppercase(System.UInt32)
170
+ def is_uppercase(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
171
+ # System.Boolean Windows.Data.Text.UnicodeCharacters::IsWhitespace(System.UInt32)
172
+ def is_whitespace(cls, codepoint: winrt.system.UInt32, /) -> bool: ...
173
+
174
+ @typing.final
175
+ class UnicodeCharacters(winrt.system.Object, metaclass=UnicodeCharacters_Static):
176
+ pass
177
+
178
+ @typing.final
179
+ class WordSegment(winrt.system.Object):
180
+ # Windows.Foundation.Collections.IVectorView`1<Windows.Data.Text.AlternateWordForm> Windows.Data.Text.WordSegment::get_AlternateForms()
181
+ @_property
182
+ def alternate_forms(self) -> typing.Sequence[AlternateWordForm]: ...
183
+ # Windows.Data.Text.TextSegment Windows.Data.Text.WordSegment::get_SourceTextSegment()
184
+ @_property
185
+ def source_text_segment(self) -> TextSegment: ...
186
+ # System.String Windows.Data.Text.WordSegment::get_Text()
187
+ @_property
188
+ def text(self) -> str: ...
189
+
190
+ @typing.final
191
+ class WordsSegmenter(winrt.system.Object):
192
+ def __new__(cls: typing.Type[Self], language: str) -> Self: ...
193
+ # Windows.Data.Text.WordSegment Windows.Data.Text.WordsSegmenter::GetTokenAt(System.String,System.UInt32)
194
+ def get_token_at(self, text: str, start_index: winrt.system.UInt32, /) -> WordSegment: ...
195
+ # Windows.Foundation.Collections.IVectorView`1<Windows.Data.Text.WordSegment> Windows.Data.Text.WordsSegmenter::GetTokens(System.String)
196
+ def get_tokens(self, text: str, /) -> typing.Sequence[WordSegment]: ...
197
+ # System.Void Windows.Data.Text.WordsSegmenter::Tokenize(System.String,System.UInt32,Windows.Data.Text.WordSegmentsTokenizingHandler)
198
+ def tokenize(self, text: str, start_index: winrt.system.UInt32, handler: WordSegmentsTokenizingHandler, /) -> None: ...
199
+ # System.String Windows.Data.Text.WordsSegmenter::get_ResolvedLanguage()
200
+ @_property
201
+ def resolved_language(self) -> str: ...
202
+
@@ -0,0 +1,95 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v3.2.1
2
+
3
+ import enum
4
+ import typing
5
+ import uuid as _uuid
6
+
7
+ import winrt.system
8
+ from winrt._winrt_windows_data_text import (
9
+ TextSegment,
10
+ AlternateWordForm,
11
+ SelectableWordSegment,
12
+ SelectableWordsSegmenter,
13
+ SemanticTextQuery,
14
+ TextConversionGenerator,
15
+ TextPhoneme,
16
+ TextPredictionGenerator,
17
+ TextReverseConversionGenerator,
18
+ UnicodeCharacters,
19
+ WordSegment,
20
+ WordsSegmenter,
21
+ )
22
+
23
+ __all__ = [
24
+ "AlternateNormalizationFormat",
25
+ "TextPredictionOptions",
26
+ "UnicodeGeneralCategory",
27
+ "UnicodeNumericType",
28
+ "TextSegment",
29
+ "AlternateWordForm",
30
+ "SelectableWordSegment",
31
+ "SelectableWordsSegmenter",
32
+ "SemanticTextQuery",
33
+ "TextConversionGenerator",
34
+ "TextPhoneme",
35
+ "TextPredictionGenerator",
36
+ "TextReverseConversionGenerator",
37
+ "UnicodeCharacters",
38
+ "WordSegment",
39
+ "WordsSegmenter",
40
+ "SelectableWordSegmentsTokenizingHandler",
41
+ "WordSegmentsTokenizingHandler",
42
+ ]
43
+
44
+ class AlternateNormalizationFormat(enum.IntEnum):
45
+ NOT_NORMALIZED = 0
46
+ NUMBER = 1
47
+ CURRENCY = 3
48
+ DATE = 4
49
+ TIME = 5
50
+
51
+ class TextPredictionOptions(enum.IntFlag):
52
+ NONE = 0x0
53
+ PREDICTIONS = 0x1
54
+ CORRECTIONS = 0x2
55
+
56
+ class UnicodeGeneralCategory(enum.IntEnum):
57
+ UPPERCASE_LETTER = 0
58
+ LOWERCASE_LETTER = 1
59
+ TITLECASE_LETTER = 2
60
+ MODIFIER_LETTER = 3
61
+ OTHER_LETTER = 4
62
+ NONSPACING_MARK = 5
63
+ SPACING_COMBINING_MARK = 6
64
+ ENCLOSING_MARK = 7
65
+ DECIMAL_DIGIT_NUMBER = 8
66
+ LETTER_NUMBER = 9
67
+ OTHER_NUMBER = 10
68
+ SPACE_SEPARATOR = 11
69
+ LINE_SEPARATOR = 12
70
+ PARAGRAPH_SEPARATOR = 13
71
+ CONTROL = 14
72
+ FORMAT = 15
73
+ SURROGATE = 16
74
+ PRIVATE_USE = 17
75
+ CONNECTOR_PUNCTUATION = 18
76
+ DASH_PUNCTUATION = 19
77
+ OPEN_PUNCTUATION = 20
78
+ CLOSE_PUNCTUATION = 21
79
+ INITIAL_QUOTE_PUNCTUATION = 22
80
+ FINAL_QUOTE_PUNCTUATION = 23
81
+ OTHER_PUNCTUATION = 24
82
+ MATH_SYMBOL = 25
83
+ CURRENCY_SYMBOL = 26
84
+ MODIFIER_SYMBOL = 27
85
+ OTHER_SYMBOL = 28
86
+ NOT_ASSIGNED = 29
87
+
88
+ class UnicodeNumericType(enum.IntEnum):
89
+ NONE = 0
90
+ DECIMAL = 1
91
+ DIGIT = 2
92
+ NUMERIC = 3
93
+
94
+ SelectableWordSegmentsTokenizingHandler = typing.Callable[[typing.Iterable[SelectableWordSegment], typing.Iterable[SelectableWordSegment]], None]
95
+ WordSegmentsTokenizingHandler = typing.Callable[[typing.Iterable[WordSegment], typing.Iterable[WordSegment]], None]
File without changes
@@ -0,0 +1,27 @@
1
+ Metadata-Version: 2.4
2
+ Name: winrt-Windows.Data.Text
3
+ Version: 3.2.1
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License-Expression: 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.9
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime~=3.2.1.0
16
+ Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all]~=3.2.1.0; extra == "all"
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all]~=3.2.1.0; extra == "all"
19
+ Requires-Dist: winrt-Windows.UI.Text.Core[all]~=3.2.1.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.cp314-win_amd64.pyd,sha256=cYPpD5I5pfJ4Y0rFYElpA-7PCYQZNWGMI98XYt9RAtQ,245760
2
+ winrt/_winrt_windows_data_text.pyi,sha256=yevrgh7ZmYSxOVHRpomyAsghrMiBBILMFMnJBX8fsDg,13621
3
+ winrt/windows/data/text/__init__.py,sha256=sS-eEIEICv34gPHaHt4G8Kvim4Z_wBZms2F_CYVnyQg,2407
4
+ winrt/windows/data/text/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ winrt_windows_data_text-3.2.1.dist-info/METADATA,sha256=xjYuHk3SF3lDVgVPK9n9smRPRl6jHso_ixQmokA1ycs,1181
6
+ winrt_windows_data_text-3.2.1.dist-info/WHEEL,sha256=7k6Wcy588iJYe5lf5K095NLg-uoBTnE-T8eHJ92G4_4,101
7
+ winrt_windows_data_text-3.2.1.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
8
+ winrt_windows_data_text-3.2.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp314-cp314-win_amd64
5
+