Skip to content

Commit 74fa024

Browse files
pydoc-zh-tw[bot]github-actions[bot]mattwang44
authored
Sync with CPython 3.10 (#268)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Matt.Wang <mattwang44@gmail.com>
1 parent d0fcd4d commit 74fa024

27 files changed

+1526
-1438
lines changed

library/aifc.po

+42-38
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.10\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2021-09-13 00:11+0000\n"
10+
"POT-Creation-Date: 2022-03-23 00:14+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:38+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -20,21 +20,25 @@ msgstr ""
2020

2121
#: ../../library/aifc.rst:2
2222
msgid ":mod:`aifc` --- Read and write AIFF and AIFC files"
23-
msgstr ""
23+
msgstr ":mod:`aifc` --- 讀寫 AIFF 與 AIFC 檔案"
2424

25-
#: ../../library/aifc.rst:7
25+
#: ../../library/aifc.rst:8
2626
msgid "**Source code:** :source:`Lib/aifc.py`"
2727
msgstr "**原始碼:**\\ :source:`Lib/aifc.py`"
2828

2929
#: ../../library/aifc.rst:16
30+
msgid "The :mod:`aifc` module is deprecated (see :pep:`594` for details)."
31+
msgstr ":mod:`aifc` 模組 (module) 即將被棄用(詳見 :pep:`594`\\ )。"
32+
33+
#: ../../library/aifc.rst:21
3034
msgid ""
3135
"This module provides support for reading and writing AIFF and AIFF-C files. "
3236
"AIFF is Audio Interchange File Format, a format for storing digital audio "
3337
"samples in a file. AIFF-C is a newer version of the format that includes "
3438
"the ability to compress the audio data."
3539
msgstr ""
3640

37-
#: ../../library/aifc.rst:21
41+
#: ../../library/aifc.rst:26
3842
msgid ""
3943
"Audio files have a number of parameters that describe the audio data. The "
4044
"sampling rate or frame rate is the number of times per second the sound is "
@@ -45,19 +49,19 @@ msgid ""
4549
"samplesize * framerate`` bytes."
4650
msgstr ""
4751

48-
#: ../../library/aifc.rst:29
52+
#: ../../library/aifc.rst:34
4953
msgid ""
5054
"For example, CD quality audio has a sample size of two bytes (16 bits), uses "
5155
"two channels (stereo) and has a frame rate of 44,100 frames/second. This "
5256
"gives a frame size of 4 bytes (2\\*2), and a second's worth occupies "
5357
"2\\*2\\*44100 bytes (176,400 bytes)."
5458
msgstr ""
5559

56-
#: ../../library/aifc.rst:34
60+
#: ../../library/aifc.rst:39
5761
msgid "Module :mod:`aifc` defines the following function:"
5862
msgstr ":mod:`aifc` 模組定義了以下函式:"
5963

60-
#: ../../library/aifc.rst:39
64+
#: ../../library/aifc.rst:44
6165
msgid ""
6266
"Open an AIFF or AIFF-C file and return an object instance with methods that "
6367
"are described below. The argument *file* is either a string naming a file "
@@ -71,94 +75,94 @@ msgid ""
7175
"keyword:`!with` block completes, the :meth:`~aifc.close` method is called."
7276
msgstr ""
7377

74-
#: ../../library/aifc.rst:50
78+
#: ../../library/aifc.rst:55
7579
msgid "Support for the :keyword:`with` statement was added."
7680
msgstr ""
7781

78-
#: ../../library/aifc.rst:53
82+
#: ../../library/aifc.rst:58
7983
msgid ""
8084
"Objects returned by :func:`.open` when a file is opened for reading have the "
8185
"following methods:"
8286
msgstr ""
8387

84-
#: ../../library/aifc.rst:59
88+
#: ../../library/aifc.rst:64
8589
msgid "Return the number of audio channels (1 for mono, 2 for stereo)."
8690
msgstr ""
8791

88-
#: ../../library/aifc.rst:64
92+
#: ../../library/aifc.rst:69
8993
msgid "Return the size in bytes of individual samples."
9094
msgstr ""
9195

92-
#: ../../library/aifc.rst:69
96+
#: ../../library/aifc.rst:74
9397
msgid "Return the sampling rate (number of audio frames per second)."
9498
msgstr ""
9599

96-
#: ../../library/aifc.rst:74
100+
#: ../../library/aifc.rst:79
97101
msgid "Return the number of audio frames in the file."
98102
msgstr ""
99103

100-
#: ../../library/aifc.rst:79
104+
#: ../../library/aifc.rst:84
101105
msgid ""
102106
"Return a bytes array of length 4 describing the type of compression used in "
103107
"the audio file. For AIFF files, the returned value is ``b'NONE'``."
104108
msgstr ""
105109

106-
#: ../../library/aifc.rst:86
110+
#: ../../library/aifc.rst:91
107111
msgid ""
108112
"Return a bytes array convertible to a human-readable description of the type "
109113
"of compression used in the audio file. For AIFF files, the returned value "
110114
"is ``b'not compressed'``."
111115
msgstr ""
112116

113-
#: ../../library/aifc.rst:93
117+
#: ../../library/aifc.rst:98
114118
msgid ""
115119
"Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth, "
116120
"framerate, nframes, comptype, compname)``, equivalent to output of the :meth:"
117121
"`get\\*` methods."
118122
msgstr ""
119123

120-
#: ../../library/aifc.rst:100
124+
#: ../../library/aifc.rst:105
121125
msgid ""
122126
"Return a list of markers in the audio file. A marker consists of a tuple of "
123127
"three elements. The first is the mark ID (an integer), the second is the "
124128
"mark position in frames from the beginning of the data (an integer), the "
125129
"third is the name of the mark (a string)."
126130
msgstr ""
127131

128-
#: ../../library/aifc.rst:108
132+
#: ../../library/aifc.rst:113
129133
msgid ""
130134
"Return the tuple as described in :meth:`getmarkers` for the mark with the "
131135
"given *id*."
132136
msgstr ""
133137

134-
#: ../../library/aifc.rst:114
138+
#: ../../library/aifc.rst:119
135139
msgid ""
136140
"Read and return the next *nframes* frames from the audio file. The returned "
137141
"data is a string containing for each frame the uncompressed samples of all "
138142
"channels."
139143
msgstr ""
140144

141-
#: ../../library/aifc.rst:121
145+
#: ../../library/aifc.rst:126
142146
msgid ""
143147
"Rewind the read pointer. The next :meth:`readframes` will start from the "
144148
"beginning."
145149
msgstr ""
146150

147-
#: ../../library/aifc.rst:127
151+
#: ../../library/aifc.rst:132
148152
msgid "Seek to the specified frame number."
149153
msgstr ""
150154

151-
#: ../../library/aifc.rst:132
155+
#: ../../library/aifc.rst:137
152156
msgid "Return the current frame number."
153157
msgstr ""
154158

155-
#: ../../library/aifc.rst:137
159+
#: ../../library/aifc.rst:142
156160
msgid ""
157161
"Close the AIFF file. After calling this method, the object can no longer be "
158162
"used."
159163
msgstr ""
160164

161-
#: ../../library/aifc.rst:140
165+
#: ../../library/aifc.rst:145
162166
msgid ""
163167
"Objects returned by :func:`.open` when a file is opened for writing have all "
164168
"the above methods, except for :meth:`readframes` and :meth:`setpos`. In "
@@ -168,40 +172,40 @@ msgid ""
168172
"parameters except for the number of frames must be filled in."
169173
msgstr ""
170174

171-
#: ../../library/aifc.rst:150
175+
#: ../../library/aifc.rst:155
172176
msgid ""
173177
"Create an AIFF file. The default is that an AIFF-C file is created, unless "
174178
"the name of the file ends in ``'.aiff'`` in which case the default is an "
175179
"AIFF file."
176180
msgstr ""
177181

178-
#: ../../library/aifc.rst:156
182+
#: ../../library/aifc.rst:161
179183
msgid ""
180184
"Create an AIFF-C file. The default is that an AIFF-C file is created, "
181185
"unless the name of the file ends in ``'.aiff'`` in which case the default is "
182186
"an AIFF file."
183187
msgstr ""
184188

185-
#: ../../library/aifc.rst:163
189+
#: ../../library/aifc.rst:168
186190
msgid "Specify the number of channels in the audio file."
187191
msgstr ""
188192

189-
#: ../../library/aifc.rst:168
193+
#: ../../library/aifc.rst:173
190194
msgid "Specify the size in bytes of audio samples."
191195
msgstr ""
192196

193-
#: ../../library/aifc.rst:173
197+
#: ../../library/aifc.rst:178
194198
msgid "Specify the sampling frequency in frames per second."
195199
msgstr ""
196200

197-
#: ../../library/aifc.rst:178
201+
#: ../../library/aifc.rst:183
198202
msgid ""
199203
"Specify the number of frames that are to be written to the audio file. If "
200204
"this parameter is not set, or not set correctly, the file needs to support "
201205
"seeking."
202206
msgstr ""
203207

204-
#: ../../library/aifc.rst:189
208+
#: ../../library/aifc.rst:194
205209
msgid ""
206210
"Specify the compression type. If not specified, the audio data will not be "
207211
"compressed. In AIFF files, compression is not possible. The name parameter "
@@ -211,42 +215,42 @@ msgid ""
211215
"``b'ALAW'``, ``b'G722'``."
212216
msgstr ""
213217

214-
#: ../../library/aifc.rst:199
218+
#: ../../library/aifc.rst:204
215219
msgid ""
216220
"Set all the above parameters at once. The argument is a tuple consisting of "
217221
"the various parameters. This means that it is possible to use the result of "
218222
"a :meth:`getparams` call as argument to :meth:`setparams`."
219223
msgstr ""
220224

221-
#: ../../library/aifc.rst:206
225+
#: ../../library/aifc.rst:211
222226
msgid ""
223227
"Add a mark with the given id (larger than 0), and the given name at the "
224228
"given position. This method can be called at any time before :meth:`close`."
225229
msgstr ""
226230

227-
#: ../../library/aifc.rst:213
231+
#: ../../library/aifc.rst:218
228232
msgid ""
229233
"Return the current write position in the output file. Useful in combination "
230234
"with :meth:`setmark`."
231235
msgstr ""
232236

233-
#: ../../library/aifc.rst:219
237+
#: ../../library/aifc.rst:224
234238
msgid ""
235239
"Write data to the output file. This method can only be called after the "
236240
"audio file parameters have been set."
237241
msgstr ""
238242

239-
#: ../../library/aifc.rst:222 ../../library/aifc.rst:231
243+
#: ../../library/aifc.rst:227 ../../library/aifc.rst:236
240244
msgid "Any :term:`bytes-like object` is now accepted."
241245
msgstr ""
242246

243-
#: ../../library/aifc.rst:228
247+
#: ../../library/aifc.rst:233
244248
msgid ""
245249
"Like :meth:`writeframes`, except that the header of the audio file is not "
246250
"updated."
247251
msgstr ""
248252

249-
#: ../../library/aifc.rst:238
253+
#: ../../library/aifc.rst:243
250254
msgid ""
251255
"Close the AIFF file. The header of the file is updated to reflect the "
252256
"actual size of the audio data. After calling this method, the object can no "

0 commit comments

Comments
 (0)