@@ -512,13 +512,16 @@ msgid ""
512512"and *publicId* are strings if given. If the public identifier is omitted, "
513513"*publicId* will be ``None``."
514514msgstr ""
515+ "针对标注声明被调用。 *notationName*, *base*, *systemId* 和 *publicId* 如果给出则均应为字符串。 "
516+ "如果省略公有标识符,则 *publicId* 将为 ``None``。"
515517
516518#: ../../library/pyexpat.rst:407
517519msgid ""
518520"Called when an element contains a namespace declaration. Namespace "
519521"declarations are processed before the :attr:`StartElementHandler` is called "
520522"for the element on which declarations are placed."
521523msgstr ""
524+ "当一个元素包含命名空间声明时被调用。 命名空间声明会在为声明所在的元素调用 :attr:`StartElementHandler` 之前被处理。"
522525
523526#: ../../library/pyexpat.rst:414
524527msgid ""
@@ -529,38 +532,43 @@ msgid ""
529532"namespace declaration's scope. Calls to this handler are made after the "
530533"corresponding :attr:`EndElementHandler` for the end of the element."
531534msgstr ""
535+ "当到达包含命名空间声明的元素的关闭标记时被调用。 此方法会按照调用 :attr:`StartNamespaceDeclHandler` "
536+ "以指明每个命名空间作用域的开始的逆顺序为元素上的每个命名空间声明调用一次。 对这个处理句柄的调用是在相应的 "
537+ ":attr:`EndElementHandler` 之后针对元素的结束而进行的。"
532538
533539#: ../../library/pyexpat.rst:424
534540msgid ""
535541"Called for comments. *data* is the text of the comment, excluding the "
536542"leading ``'<!-``\\ ``-'`` and trailing ``'-``\\ ``->'``."
537- msgstr ""
543+ msgstr "针对注释被调用。 *data* 是注释的文本,不包括开头的 ``'<!-`` \\ ``-'`` 和末尾的 ``'-`` \\ ``->'``。 "
538544
539545#: ../../library/pyexpat.rst:430
540546msgid ""
541547"Called at the start of a CDATA section. This and "
542548":attr:`EndCdataSectionHandler` are needed to be able to identify the "
543549"syntactical start and end for CDATA sections."
544550msgstr ""
551+ "在一个 CDATA 节的开头被调用。 需要此方法和 :attr:`EndCdataSectionHandler` 以便能够标识 CDATA "
552+ "节的语法开始和结束。"
545553
546554#: ../../library/pyexpat.rst:437
547555msgid "Called at the end of a CDATA section."
548- msgstr ""
556+ msgstr "在一个 CDATA 节的末尾被调用。 "
549557
550558#: ../../library/pyexpat.rst:442
551559msgid ""
552560"Called for any characters in the XML document for which no applicable "
553561"handler has been specified. This means characters that are part of a "
554562"construct which could be reported, but for which no handler has been "
555563"supplied."
556- msgstr ""
564+ msgstr "针对 XML 文档中没有指定适用处理句柄的任何字符被调用。 这包括了所有属于可被报告的结构的一部分,但未提供处理句柄的字符。 "
557565
558566#: ../../library/pyexpat.rst:449
559567msgid ""
560568"This is the same as the :func:`DefaultHandler`, but doesn't inhibit "
561569"expansion of internal entities. The entity reference will not be passed to "
562570"the default handler."
563- msgstr ""
571+ msgstr "这与 :func:`DefaultHandler` 相同,但不会抑制内部实体的扩展。 实体引用将不会被传递给默认处理句柄。 "
564572
565573#: ../../library/pyexpat.rst:456
566574msgid ""
@@ -571,6 +579,9 @@ msgid ""
571579" raise an :const:`XML_ERROR_NOT_STANDALONE` error. If this handler is not "
572580"set, no exception is raised by the parser for this condition."
573581msgstr ""
582+ "当 XML 文档未被声明为独立文档时被调用。 这种情况发生在出现外部子集或对参数实体的引用,但 XML 声明没有在 XML 声明中将 "
583+ "standalone 设为 ``yes`` 的时候。 如果这个处理句柄返回 ``0``,那么解析器将引发 "
584+ ":const:`XML_ERROR_NOT_STANDALONE` 错误。 如果这个处理句柄没有被设置,那么解析器就不会为这个条件引发任何异常。"
574585
575586#: ../../library/pyexpat.rst:466
576587msgid ""
0 commit comments