Skip to content

Sync with CPython 3.10 #268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 42 additions & 38 deletions library/aifc.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.10\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-09-13 00:11+0000\n"
"POT-Creation-Date: 2022-03-23 00:14+0000\n"
"PO-Revision-Date: 2018-05-23 14:38+0000\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand All @@ -20,21 +20,25 @@ msgstr ""

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

#: ../../library/aifc.rst:7
#: ../../library/aifc.rst:8
msgid "**Source code:** :source:`Lib/aifc.py`"
msgstr "**原始碼:**\\ :source:`Lib/aifc.py`"

#: ../../library/aifc.rst:16
msgid "The :mod:`aifc` module is deprecated (see :pep:`594` for details)."
msgstr ":mod:`aifc` 模組 (module) 即將被棄用(詳見 :pep:`594`\\ )。"

#: ../../library/aifc.rst:21
msgid ""
"This module provides support for reading and writing AIFF and AIFF-C files. "
"AIFF is Audio Interchange File Format, a format for storing digital audio "
"samples in a file. AIFF-C is a newer version of the format that includes "
"the ability to compress the audio data."
msgstr ""

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

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

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

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

#: ../../library/aifc.rst:50
#: ../../library/aifc.rst:55
msgid "Support for the :keyword:`with` statement was added."
msgstr ""

#: ../../library/aifc.rst:53
#: ../../library/aifc.rst:58
msgid ""
"Objects returned by :func:`.open` when a file is opened for reading have the "
"following methods:"
msgstr ""

#: ../../library/aifc.rst:59
#: ../../library/aifc.rst:64
msgid "Return the number of audio channels (1 for mono, 2 for stereo)."
msgstr ""

#: ../../library/aifc.rst:64
#: ../../library/aifc.rst:69
msgid "Return the size in bytes of individual samples."
msgstr ""

#: ../../library/aifc.rst:69
#: ../../library/aifc.rst:74
msgid "Return the sampling rate (number of audio frames per second)."
msgstr ""

#: ../../library/aifc.rst:74
#: ../../library/aifc.rst:79
msgid "Return the number of audio frames in the file."
msgstr ""

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

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

#: ../../library/aifc.rst:93
#: ../../library/aifc.rst:98
msgid ""
"Returns a :func:`~collections.namedtuple` ``(nchannels, sampwidth, "
"framerate, nframes, comptype, compname)``, equivalent to output of the :meth:"
"`get\\*` methods."
msgstr ""

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

#: ../../library/aifc.rst:108
#: ../../library/aifc.rst:113
msgid ""
"Return the tuple as described in :meth:`getmarkers` for the mark with the "
"given *id*."
msgstr ""

#: ../../library/aifc.rst:114
#: ../../library/aifc.rst:119
msgid ""
"Read and return the next *nframes* frames from the audio file. The returned "
"data is a string containing for each frame the uncompressed samples of all "
"channels."
msgstr ""

#: ../../library/aifc.rst:121
#: ../../library/aifc.rst:126
msgid ""
"Rewind the read pointer. The next :meth:`readframes` will start from the "
"beginning."
msgstr ""

#: ../../library/aifc.rst:127
#: ../../library/aifc.rst:132
msgid "Seek to the specified frame number."
msgstr ""

#: ../../library/aifc.rst:132
#: ../../library/aifc.rst:137
msgid "Return the current frame number."
msgstr ""

#: ../../library/aifc.rst:137
#: ../../library/aifc.rst:142
msgid ""
"Close the AIFF file. After calling this method, the object can no longer be "
"used."
msgstr ""

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

#: ../../library/aifc.rst:150
#: ../../library/aifc.rst:155
msgid ""
"Create an AIFF file. The default is that an AIFF-C file is created, unless "
"the name of the file ends in ``'.aiff'`` in which case the default is an "
"AIFF file."
msgstr ""

#: ../../library/aifc.rst:156
#: ../../library/aifc.rst:161
msgid ""
"Create an AIFF-C file. The default is that an AIFF-C file is created, "
"unless the name of the file ends in ``'.aiff'`` in which case the default is "
"an AIFF file."
msgstr ""

#: ../../library/aifc.rst:163
#: ../../library/aifc.rst:168
msgid "Specify the number of channels in the audio file."
msgstr ""

#: ../../library/aifc.rst:168
#: ../../library/aifc.rst:173
msgid "Specify the size in bytes of audio samples."
msgstr ""

#: ../../library/aifc.rst:173
#: ../../library/aifc.rst:178
msgid "Specify the sampling frequency in frames per second."
msgstr ""

#: ../../library/aifc.rst:178
#: ../../library/aifc.rst:183
msgid ""
"Specify the number of frames that are to be written to the audio file. If "
"this parameter is not set, or not set correctly, the file needs to support "
"seeking."
msgstr ""

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

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

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

#: ../../library/aifc.rst:213
#: ../../library/aifc.rst:218
msgid ""
"Return the current write position in the output file. Useful in combination "
"with :meth:`setmark`."
msgstr ""

#: ../../library/aifc.rst:219
#: ../../library/aifc.rst:224
msgid ""
"Write data to the output file. This method can only be called after the "
"audio file parameters have been set."
msgstr ""

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

#: ../../library/aifc.rst:228
#: ../../library/aifc.rst:233
msgid ""
"Like :meth:`writeframes`, except that the header of the audio file is not "
"updated."
msgstr ""

#: ../../library/aifc.rst:238
#: ../../library/aifc.rst:243
msgid ""
"Close the AIFF file. The header of the file is updated to reflect the "
"actual size of the audio data. After calling this method, the object can no "
Expand Down
Loading