7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.10\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2021-09-13 00:11 +0000\n "
10
+ "POT-Creation-Date : 2022-03-20 00:13 +0000\n "
11
11
"PO-Revision-Date : 2015-12-09 17:51+0000\n "
12
12
"Last-Translator : Liang-Bo Wang <me@liang2.tw>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -35,50 +35,50 @@ msgid ""
35
35
"`TextWrapper` for efficiency."
36
36
msgstr ""
37
37
38
- #: ../../library/textwrap.rst:26
38
+ #: ../../library/textwrap.rst:27
39
39
msgid ""
40
40
"Wraps the single paragraph in *text* (a string) so every line is at most "
41
41
"*width* characters long. Returns a list of output lines, without final "
42
42
"newlines."
43
43
msgstr ""
44
44
45
- #: ../../library/textwrap.rst:30
45
+ #: ../../library/textwrap.rst:31
46
46
msgid ""
47
47
"Optional keyword arguments correspond to the instance attributes of :class:"
48
48
"`TextWrapper`, documented below."
49
49
msgstr ""
50
50
51
- #: ../../library/textwrap.rst:33
51
+ #: ../../library/textwrap.rst:34
52
52
msgid ""
53
53
"See the :meth:`TextWrapper.wrap` method for additional details on how :func:"
54
54
"`wrap` behaves."
55
55
msgstr ""
56
56
57
- #: ../../library/textwrap.rst:44
57
+ #: ../../library/textwrap.rst:45
58
58
msgid ""
59
59
"Wraps the single paragraph in *text*, and returns a single string containing "
60
60
"the wrapped paragraph. :func:`fill` is shorthand for ::"
61
61
msgstr ""
62
62
63
- #: ../../library/textwrap.rst:49
63
+ #: ../../library/textwrap.rst:50
64
64
msgid ""
65
65
"In particular, :func:`fill` accepts exactly the same keyword arguments as :"
66
66
"func:`wrap`."
67
67
msgstr ""
68
68
69
- #: ../../library/textwrap.rst:57
69
+ #: ../../library/textwrap.rst:58
70
70
msgid "Collapse and truncate the given *text* to fit in the given *width*."
71
71
msgstr ""
72
72
73
- #: ../../library/textwrap.rst:59
73
+ #: ../../library/textwrap.rst:60
74
74
msgid ""
75
75
"First the whitespace in *text* is collapsed (all whitespace is replaced by "
76
76
"single spaces). If the result fits in the *width*, it is returned. "
77
77
"Otherwise, enough words are dropped from the end so that the remaining words "
78
78
"plus the :attr:`placeholder` fit within :attr:`width`::"
79
79
msgstr ""
80
80
81
- #: ../../library/textwrap.rst:71
81
+ #: ../../library/textwrap.rst:72
82
82
msgid ""
83
83
"Optional keyword arguments correspond to the instance attributes of :class:"
84
84
"`TextWrapper`, documented below. Note that the whitespace is collapsed "
@@ -87,58 +87,58 @@ msgid ""
87
87
"drop_whitespace`, and :attr:`.replace_whitespace` will have no effect."
88
88
msgstr ""
89
89
90
- #: ../../library/textwrap.rst:81
90
+ #: ../../library/textwrap.rst:82
91
91
msgid "Remove any common leading whitespace from every line in *text*."
92
92
msgstr ""
93
93
94
- #: ../../library/textwrap.rst:83
94
+ #: ../../library/textwrap.rst:84
95
95
msgid ""
96
96
"This can be used to make triple-quoted strings line up with the left edge of "
97
97
"the display, while still presenting them in the source code in indented form."
98
98
msgstr ""
99
99
100
- #: ../../library/textwrap.rst:86
100
+ #: ../../library/textwrap.rst:87
101
101
msgid ""
102
102
"Note that tabs and spaces are both treated as whitespace, but they are not "
103
103
"equal: the lines ``\" hello\" `` and ``\"\\ thello\" `` are considered to have "
104
104
"no common leading whitespace."
105
105
msgstr ""
106
106
107
- #: ../../library/textwrap.rst:90
107
+ #: ../../library/textwrap.rst:91
108
108
msgid ""
109
109
"Lines containing only whitespace are ignored in the input and normalized to "
110
110
"a single newline character in the output."
111
111
msgstr ""
112
112
113
- #: ../../library/textwrap.rst:93 ../../library/textwrap.rst:114
113
+ #: ../../library/textwrap.rst:94 ../../library/textwrap.rst:115
114
114
msgid "For example::"
115
115
msgstr ""
116
116
"舉例來說:\n"
117
117
"\n"
118
118
"::"
119
119
120
- #: ../../library/textwrap.rst:107
120
+ #: ../../library/textwrap.rst:108
121
121
msgid "Add *prefix* to the beginning of selected lines in *text*."
122
122
msgstr ""
123
123
124
- #: ../../library/textwrap.rst:109
124
+ #: ../../library/textwrap.rst:110
125
125
msgid "Lines are separated by calling ``text.splitlines(True)``."
126
126
msgstr ""
127
127
128
- #: ../../library/textwrap.rst:111
128
+ #: ../../library/textwrap.rst:112
129
129
msgid ""
130
130
"By default, *prefix* is added to all lines that do not consist solely of "
131
131
"whitespace (including any line endings)."
132
132
msgstr ""
133
133
134
- #: ../../library/textwrap.rst:120
134
+ #: ../../library/textwrap.rst:121
135
135
msgid ""
136
136
"The optional *predicate* argument can be used to control which lines are "
137
137
"indented. For example, it is easy to add *prefix* to even empty and "
138
138
"whitespace-only lines::"
139
139
msgstr ""
140
140
141
- #: ../../library/textwrap.rst:133
141
+ #: ../../library/textwrap.rst:134
142
142
msgid ""
143
143
":func:`wrap`, :func:`fill` and :func:`shorten` work by creating a :class:"
144
144
"`TextWrapper` instance and calling a single method on it. That instance is "
@@ -147,82 +147,82 @@ msgid ""
147
147
"class:`TextWrapper` object."
148
148
msgstr ""
149
149
150
- #: ../../library/textwrap.rst:139
150
+ #: ../../library/textwrap.rst:140
151
151
msgid ""
152
152
"Text is preferably wrapped on whitespaces and right after the hyphens in "
153
153
"hyphenated words; only then will long words be broken if necessary, unless :"
154
154
"attr:`TextWrapper.break_long_words` is set to false."
155
155
msgstr ""
156
156
157
- #: ../../library/textwrap.rst:145
157
+ #: ../../library/textwrap.rst:146
158
158
msgid ""
159
159
"The :class:`TextWrapper` constructor accepts a number of optional keyword "
160
160
"arguments. Each keyword argument corresponds to an instance attribute, so "
161
161
"for example ::"
162
162
msgstr ""
163
163
164
- #: ../../library/textwrap.rst:151
164
+ #: ../../library/textwrap.rst:152
165
165
msgid "is the same as ::"
166
166
msgstr ""
167
167
168
- #: ../../library/textwrap.rst:156
168
+ #: ../../library/textwrap.rst:157
169
169
msgid ""
170
170
"You can re-use the same :class:`TextWrapper` object many times, and you can "
171
171
"change any of its options through direct assignment to instance attributes "
172
172
"between uses."
173
173
msgstr ""
174
174
175
- #: ../../library/textwrap.rst:160
175
+ #: ../../library/textwrap.rst:161
176
176
msgid ""
177
177
"The :class:`TextWrapper` instance attributes (and keyword arguments to the "
178
178
"constructor) are as follows:"
179
179
msgstr ""
180
180
181
- #: ../../library/textwrap.rst:166
181
+ #: ../../library/textwrap.rst:167
182
182
msgid ""
183
183
"(default: ``70``) The maximum length of wrapped lines. As long as there are "
184
184
"no individual words in the input text longer than :attr:`width`, :class:"
185
185
"`TextWrapper` guarantees that no output line will be longer than :attr:"
186
186
"`width` characters."
187
187
msgstr ""
188
188
189
- #: ../../library/textwrap.rst:174
189
+ #: ../../library/textwrap.rst:175
190
190
msgid ""
191
191
"(default: ``True``) If true, then all tab characters in *text* will be "
192
192
"expanded to spaces using the :meth:`expandtabs` method of *text*."
193
193
msgstr ""
194
194
195
- #: ../../library/textwrap.rst:180
195
+ #: ../../library/textwrap.rst:181
196
196
msgid ""
197
197
"(default: ``8``) If :attr:`expand_tabs` is true, then all tab characters in "
198
198
"*text* will be expanded to zero or more spaces, depending on the current "
199
199
"column and the given tab size."
200
200
msgstr ""
201
201
202
- #: ../../library/textwrap.rst:189
202
+ #: ../../library/textwrap.rst:190
203
203
msgid ""
204
204
"(default: ``True``) If true, after tab expansion but before wrapping, the :"
205
205
"meth:`wrap` method will replace each whitespace character with a single "
206
206
"space. The whitespace characters replaced are as follows: tab, newline, "
207
207
"vertical tab, formfeed, and carriage return (``'\\ t\\ n\\ v\\ f\\ r'``)."
208
208
msgstr ""
209
209
210
- #: ../../library/textwrap.rst:197
210
+ #: ../../library/textwrap.rst:198
211
211
msgid ""
212
212
"If :attr:`expand_tabs` is false and :attr:`replace_whitespace` is true, each "
213
213
"tab character will be replaced by a single space, which is *not* the same as "
214
214
"tab expansion."
215
215
msgstr ""
216
216
217
- #: ../../library/textwrap.rst:203
217
+ #: ../../library/textwrap.rst:204
218
218
msgid ""
219
219
"If :attr:`replace_whitespace` is false, newlines may appear in the middle of "
220
220
"a line and cause strange output. For this reason, text should be split into "
221
221
"paragraphs (using :meth:`str.splitlines` or similar) which are wrapped "
222
222
"separately."
223
223
msgstr ""
224
224
225
- #: ../../library/textwrap.rst:211
225
+ #: ../../library/textwrap.rst:212
226
226
msgid ""
227
227
"(default: ``True``) If true, whitespace at the beginning and ending of every "
228
228
"line (after wrapping but before indenting) is dropped. Whitespace at the "
@@ -231,21 +231,21 @@ msgid ""
231
231
"line is dropped."
232
232
msgstr ""
233
233
234
- #: ../../library/textwrap.rst:220
234
+ #: ../../library/textwrap.rst:221
235
235
msgid ""
236
236
"(default: ``''``) String that will be prepended to the first line of wrapped "
237
237
"output. Counts towards the length of the first line. The empty string is "
238
238
"not indented."
239
239
msgstr ""
240
240
241
- #: ../../library/textwrap.rst:227
241
+ #: ../../library/textwrap.rst:228
242
242
msgid ""
243
243
"(default: ``''``) String that will be prepended to all lines of wrapped "
244
244
"output except the first. Counts towards the length of each line except the "
245
245
"first."
246
246
msgstr ""
247
247
248
- #: ../../library/textwrap.rst:234
248
+ #: ../../library/textwrap.rst:235
249
249
msgid ""
250
250
"(default: ``False``) If true, :class:`TextWrapper` attempts to detect "
251
251
"sentence endings and ensure that sentences are always separated by exactly "
@@ -257,23 +257,23 @@ msgid ""
257
257
"unable to detect the difference between \" Dr.\" in ::"
258
258
msgstr ""
259
259
260
- #: ../../library/textwrap.rst:245
260
+ #: ../../library/textwrap.rst:246
261
261
msgid "and \" Spot.\" in ::"
262
262
msgstr ""
263
263
264
- #: ../../library/textwrap.rst:249
264
+ #: ../../library/textwrap.rst:250
265
265
msgid ":attr:`fix_sentence_endings` is false by default."
266
266
msgstr ""
267
267
268
- #: ../../library/textwrap.rst:251
268
+ #: ../../library/textwrap.rst:252
269
269
msgid ""
270
270
"Since the sentence detection algorithm relies on ``string.lowercase`` for "
271
271
"the definition of \" lowercase letter\" , and a convention of using two spaces "
272
272
"after a period to separate sentences on the same line, it is specific to "
273
273
"English-language texts."
274
274
msgstr ""
275
275
276
- #: ../../library/textwrap.rst:259
276
+ #: ../../library/textwrap.rst:260
277
277
msgid ""
278
278
"(default: ``True``) If true, then words longer than :attr:`width` will be "
279
279
"broken in order to ensure that no lines are longer than :attr:`width`. If "
@@ -282,7 +282,7 @@ msgid ""
282
282
"order to minimize the amount by which :attr:`width` is exceeded.)"
283
283
msgstr ""
284
284
285
- #: ../../library/textwrap.rst:268
285
+ #: ../../library/textwrap.rst:269
286
286
msgid ""
287
287
"(default: ``True``) If true, wrapping will occur preferably on whitespaces "
288
288
"and right after hyphens in compound words, as it is customary in English. If "
@@ -292,25 +292,25 @@ msgid ""
292
292
"always allow breaking hyphenated words."
293
293
msgstr ""
294
294
295
- #: ../../library/textwrap.rst:278
295
+ #: ../../library/textwrap.rst:279
296
296
msgid ""
297
297
"(default: ``None``) If not ``None``, then the output will contain at most "
298
298
"*max_lines* lines, with *placeholder* appearing at the end of the output."
299
299
msgstr ""
300
300
301
- #: ../../library/textwrap.rst:288
301
+ #: ../../library/textwrap.rst:289
302
302
msgid ""
303
303
"(default: ``' [...]'``) String that will appear at the end of the output "
304
304
"text if it has been truncated."
305
305
msgstr ""
306
306
307
- #: ../../library/textwrap.rst:294
307
+ #: ../../library/textwrap.rst:295
308
308
msgid ""
309
309
":class:`TextWrapper` also provides some public methods, analogous to the "
310
310
"module-level convenience functions:"
311
311
msgstr ""
312
312
313
- #: ../../library/textwrap.rst:299
313
+ #: ../../library/textwrap.rst:300
314
314
msgid ""
315
315
"Wraps the single paragraph in *text* (a string) so every line is at most :"
316
316
"attr:`width` characters long. All wrapping options are taken from instance "
@@ -319,7 +319,7 @@ msgid ""
319
319
"returned list is empty."
320
320
msgstr ""
321
321
322
- #: ../../library/textwrap.rst:308
322
+ #: ../../library/textwrap.rst:309
323
323
msgid ""
324
324
"Wraps the single paragraph in *text*, and returns a single string containing "
325
325
"the wrapped paragraph."
0 commit comments