@@ -158,11 +158,11 @@ msgid ""
158158"If the :mod:`~email.policy` option :attr:`~email.policy.Policy.cte_type` is "
159159"``8bit`` (the default), copy any headers in the original parsed message that"
160160" have not been modified to the output with any bytes with the high bit set "
161- "reproduced as in the original, and preserve the non-ASCII :mailheader "
162- ":`Content-Transfer-Encoding` of any body parts that have them. If "
163- "``cte_type`` is ``7bit``, convert the bytes with the high bit set as needed "
164- "using an ASCII-compatible :mailheader:`Content-Transfer-Encoding`. That is, "
165- "transform parts with non-ASCII :mailheader:`Content-Transfer-Encoding` "
161+ "reproduced as in the original, and preserve the non-ASCII "
162+ ":mailheader: `Content-Transfer-Encoding` of any body parts that have them. If"
163+ " ``cte_type`` is ``7bit``, convert the bytes with the high bit set as needed"
164+ " using an ASCII-compatible :mailheader:`Content-Transfer-Encoding`. That is,"
165+ " transform parts with non-ASCII :mailheader:`Content-Transfer-Encoding` "
166166"(:mailheader:`Content-Transfer-Encoding: 8bit`) to an ASCII compatible "
167167":mailheader:`Content-Transfer-Encoding`, and encode RFC-invalid non-ASCII "
168168"bytes in headers using the MIME ``unknown-8bit`` character set, thus "
@@ -173,9 +173,9 @@ msgstr ""
173173"ASCII :mailheader:`Content-Transfer-Encoding`。 如果 ``cte_type`` 为 "
174174"``7bit``,则会根据需要使用兼容 ASCII 的 :mailheader:`Content-Transfer-Encoding` "
175175"来转换高比特位组字节数据。 也就是说,将具有非 ASCII :mailheader:`Content-Transfer-Encoding` "
176- "(:mailheader:`Content-Transfer-Encoding: 8bit`) 的部分转换为兼容 ASCII 的 :mailheader "
177- ":`Content-Transfer-Encoding`,并使用 MIME ``unknown-8bit`` 字符集来编码标头中不符合 RFC 的非 "
178- "ASCII 字节数据,以使其符合 RFC。"
176+ "(:mailheader:`Content-Transfer-Encoding: 8bit`) 的部分转换为兼容 ASCII 的 "
177+ ":mailheader: `Content-Transfer-Encoding`,并使用 MIME ``unknown-8bit`` "
178+ "字符集来编码标头中不符合 RFC 的非 ASCII 字节数据,以使其符合 RFC。"
179179
180180#: ../../library/email.generator.rst:100 ../../library/email.generator.rst:193
181181msgid ""
@@ -232,11 +232,11 @@ msgstr ""
232232msgid ""
233233"Because strings cannot represent binary data, the :class:`Generator` class "
234234"must convert any binary data in any message it flattens to an ASCII "
235- "compatible format, by converting them to an ASCII compatible :mailheader "
236- ":`Content-Transfer_Encoding`. Using the terminology of the email RFCs, you "
237- "can think of this as :class:`Generator` serializing to an I/O stream that is "
238- " not \" 8 bit clean\" . In other words, most applications will want to be "
239- "using :class:`BytesGenerator`, and not :class:`Generator`."
235+ "compatible format, by converting them to an ASCII compatible "
236+ ":mailheader: `Content-Transfer_Encoding`. Using the terminology of the email"
237+ " RFCs, you can think of this as :class:`Generator` serializing to an I/O "
238+ "stream that is not \" 8 bit clean\" . In other words, most applications will "
239+ "want to be using :class:`BytesGenerator`, and not :class:`Generator`."
240240msgstr ""
241241"因为字符串无法表示二进制数据,:class:`Generator` 类必须将任何消息中扁平化的任何二进制数据转换为兼容 ASCII "
242242"的格式,具体将其转换为兼容 ASCII 的 :mailheader:`Content-Transfer_Encoding`。 使用电子邮件 RFC "
@@ -266,12 +266,12 @@ msgid ""
266266"If the :mod:`~email.policy` option :attr:`~email.policy.Policy.cte_type` is "
267267"``8bit``, generate the message as if the option were set to ``7bit``. (This "
268268"is required because strings cannot represent non-ASCII bytes.) Convert any "
269- "bytes with the high bit set as needed using an ASCII-compatible :mailheader "
270- ":`Content-Transfer-Encoding`. That is, transform parts with non-ASCII "
271- ":mailheader:`Content-Transfer-Encoding` (:mailheader:`Content-Transfer -"
272- "Encoding: 8bit`) to an ASCII compatible :mailheader:`Content-Transfer -"
273- "Encoding`, and encode RFC-invalid non-ASCII bytes in headers using the MIME "
274- "``unknown-8bit`` character set, thus rendering them RFC-compliant."
269+ "bytes with the high bit set as needed using an ASCII-compatible "
270+ ":mailheader: `Content-Transfer-Encoding`. That is, transform parts with non-"
271+ "ASCII :mailheader:`Content-Transfer-Encoding` (:mailheader:`Content-"
272+ "Transfer- Encoding: 8bit`) to an ASCII compatible :mailheader:`Content-"
273+ "Transfer- Encoding`, and encode RFC-invalid non-ASCII bytes in headers using "
274+ "the MIME ``unknown-8bit`` character set, thus rendering them RFC-compliant."
275275msgstr ""
276276"如果 :mod:`~email.policy` 选项 :attr:`~email.policy.Policy.cte_type` 为 "
277277"``8bit``,则视同选项被设为 ``7bit`` 来生成消息。 (这是必需的,因为字符串无法表示非 ASCII 字节数据。) 将使用兼容 ASCII"
0 commit comments