55#
66# Translators:
77# python-doc bot, 2025
8+ # Freesand Leo <yuqinju@163.com>, 2025
89#
910#, fuzzy
1011msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314"Report-Msgid-Bugs-To :\n "
1415"POT-Creation-Date :2025-11-01 14:58+0000\n "
1516"PO-Revision-Date :2025-09-15 01:04+0000\n "
16- "Last-Translator :python-doc bot , 2025\n "
17+ "Last-Translator :Freesand Leo <yuqinju@163.com> , 2025\n "
1718"Language-Team :Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1819"MIME-Version :1.0\n "
1920"Content-Type :text/plain; charset=UTF-8\n "
@@ -46,13 +47,15 @@ msgid ""
4647"(except the ones in elements like ``script`` and ``style``) are "
4748"automatically converted to the corresponding Unicode characters."
4849msgstr ""
50+ "如果 *convert_charrefs* 为真值(默认),则所有字符引用(除了元素中的字符引用 ``script`` 和 ``style`` "
51+ "除外)都会自动转换为对应的 Unicode 字符。"
4952
5053#: ../../library/html.parser.rst:26
5154msgid ""
5255"If *scripting* is false (the default), the content of the ``noscript`` "
5356"element is parsed normally; if it's true, it's returned as is without being "
5457"parsed."
55- msgstr ""
58+ msgstr "如果 *scripting* 为假值(默认),则 ``noscript`` 元素中的内容将被正常解析;如果为真值,它将不加解析地原样返回。 "
5659
5760#: ../../library/html.parser.rst:30
5861msgid ""
@@ -82,7 +85,7 @@ msgstr "*convert_charrefs* 参数的默认值现在为 ``True``。"
8285
8386#: ../../library/html.parser.rst:44
8487msgid "Added the *scripting* parameter."
85- msgstr ""
88+ msgstr "增加了 *scripting* 形参。 "
8689
8790#: ../../library/html.parser.rst:49
8891msgid "Example HTML Parser Application"
@@ -276,14 +279,16 @@ msgstr ""
276279msgid ""
277280"This method is called to process arbitrary data (e.g. text nodes and the "
278281"content of elements like ``script`` and ``style``)."
279- msgstr ""
282+ msgstr "调用此方法来处理任意数据(例如文本节点和元素如 ``script`` 和 ``style`` 中的内容)。 "
280283
281284#: ../../library/html.parser.rst:176
282285msgid ""
283286"This method is called to process a named character reference of the form "
284287"``&name;`` (e.g. ``>``), where *name* is a general entity reference (e.g."
285288" ``'gt'``). This method is only called if *convert_charrefs* is false."
286289msgstr ""
290+ "调用此方法来处理 ``&name;`` 形式的命名字符引用 (例如 ``>``),其中 *name* 是通用的实体引用 (例如 "
291+ "``'gt'``)。 此方法仅在 *convert_charrefs* 为假值时会被调用。"
287292
288293#: ../../library/html.parser.rst:184
289294msgid ""
@@ -293,6 +298,9 @@ msgid ""
293298"is ``>``; in this case the method will receive ``'62'`` or ``'x3E'``. "
294299"This method is only called if *convert_charrefs* is false."
295300msgstr ""
301+ "调用此方法来处理 :samp:`&#{NNN};` 和 :samp:`&#x{NNN};` 形式的十进制和十六进制数字字符引用。 例如,``>``"
302+ " 的等价十进制形式为 ``>``,而十六进制形式为 ``>``;在此情况下该方法将收到 ``'62'`` 或 ``'x3E'``。 "
303+ "此方法仅在 *convert_charrefs* 为假值时会被调用。"
296304
297305#: ../../library/html.parser.rst:193
298306msgid ""
@@ -486,7 +494,7 @@ msgstr ""
486494msgid ""
487495"The content of elements like ``script`` and ``style`` is returned as is, "
488496"without further parsing:"
489- msgstr ""
497+ msgstr "元素如 ``script`` 和 ``style`` 的内容将原样返回,而不会被进一步地解析: "
490498
491499#: ../../library/html.parser.rst:305
492500msgid ""
@@ -503,6 +511,18 @@ msgid ""
503511"Data : alert(\" <strong>hello! ☺</strong>\" );\n"
504512"End tag : script"
505513msgstr ""
514+ ">>> parser.feed('<style type=\" text/css\" >#python { color: green }</style>')\n"
515+ "Start tag: style\n"
516+ " attr: ('type', 'text/css')\n"
517+ "Data : #python { color: green }\n"
518+ "End tag : style\n"
519+ "\n"
520+ ">>> parser.feed('<script type=\" text/javascript\" >'\n"
521+ "... 'alert(\" <strong>hello! ☺</strong>\" );</script>')\n"
522+ "Start tag: script\n"
523+ " attr: ('type', 'text/javascript')\n"
524+ "Data : alert(\" <strong>hello! ☺</strong>\" );\n"
525+ "End tag : script"
506526
507527#: ../../library/html.parser.rst:320
508528msgid "Parsing comments:"
@@ -554,6 +574,8 @@ msgid ""
554574":meth:`~HTMLParser.handle_data` might be called more than once if "
555575"*convert_charrefs* is false:"
556576msgstr ""
577+ "可以将不完整的块喂给 :meth:`~HTMLParser.feed`,但如果 *convert_charrefs* 为假值则 "
578+ ":meth:`~HTMLParser.handle_data` 可能会被多次调用:"
557579
558580#: ../../library/html.parser.rst:348
559581msgid ""