55#
66# Translators:
77# python-doc bot, 2025
8+ # Rafael Fontenelle <rffontenelle@gmail.com>, 2025
89#
910#, fuzzy
1011msgid ""
1112msgstr ""
1213"Project-Id-Version :Python 3.14\n "
1314"Report-Msgid-Bugs-To :\n "
14- "POT-Creation-Date :2025-11-01 14:13 +0000\n "
15+ "POT-Creation-Date :2025-11-03 14:20 +0000\n "
1516"PO-Revision-Date :2025-09-16 00:01+0000\n "
16- "Last-Translator :python-doc bot , 2025\n "
17+ "Last-Translator :Rafael Fontenelle <rffontenelle@gmail.com> , 2025\n "
1718"Language-Team :Portuguese (Brazil) (https://app.transifex.com/python-doc/ "
1819"teams/5390/pt_BR/)\n "
1920"MIME-Version :1.0\n "
@@ -25,7 +26,7 @@ msgstr ""
2526
2627#: ../../library/html.parser.rst:2
2728msgid ":mod:`!html.parser` --- Simple HTML and XHTML parser"
28- msgstr ""
29+ msgstr ":mod:`!html.parser` --- Analisador simples de HTML e XHTML "
2930
3031#: ../../library/html.parser.rst:7
3132msgid "**Source code:** :source:`Lib/html/parser.py`"
@@ -37,24 +38,35 @@ msgid ""
3738"for parsing text files formatted in HTML (HyperText Mark-up Language) and "
3839"XHTML."
3940msgstr ""
41+ "Este módulo define uma classe :class:`HTMLParser` que serve como base para "
42+ "analisar arquivos de texto formatados em HTML (HyperText Markup Language) e "
43+ "XHTML."
4044
4145#: ../../library/html.parser.rst:20
4246msgid "Create a parser instance able to parse invalid markup."
4347msgstr ""
48+ "Cria uma instância de analisador sintático capaz de analisar marcação "
49+ "inválida."
4450
4551#: ../../library/html.parser.rst:22
4652msgid ""
4753"If *convert_charrefs* is true (the default), all character references "
4854"(except the ones in elements like ``script`` and ``style``) are "
4955"automatically converted to the corresponding Unicode characters."
5056msgstr ""
57+ "Se *convert_charrefs* for verdadeiro (o padrão), todas as referências de "
58+ "caracteres (exceto as de elementos como ``script`` e ``style``) serão "
59+ "convertidas automaticamente para os caracteres Unicode correspondentes."
5160
5261#: ../../library/html.parser.rst:26
5362msgid ""
5463"If *scripting* is false (the default), the content of the ``noscript`` "
5564"element is parsed normally; if it's true, it's returned as is without being "
5665"parsed."
5766msgstr ""
67+ "Se *scripting* for falso (o padrão), o conteúdo do elemento ``noscript`` "
68+ "será analisado normalmente; se for verdadeiro, será retornado como está, sem "
69+ "ser analisado."
5870
5971#: ../../library/html.parser.rst:30
6072msgid ""
@@ -63,36 +75,48 @@ msgid ""
6375"encountered. The user should subclass :class:`.HTMLParser` and override its "
6476"methods to implement the desired behavior."
6577msgstr ""
78+ "Uma instância de `:class:`.HTMLParser` recebe dados HTML e chama métodos de "
79+ "tratamento quando encontra tags de abertura, tags de fechamento, texto, "
80+ "comentários e outros elementos de marcação. O usuário deve criar uma "
81+ "subclasse de `:class:`.HTMLParser` e sobrescrever seus métodos para "
82+ "implementar o comportamento desejado."
6683
6784#: ../../library/html.parser.rst:35
6885msgid ""
6986"This parser does not check that end tags match start tags or call the end-"
7087"tag handler for elements which are closed implicitly by closing an outer "
7188"element."
7289msgstr ""
90+ "Este analisador sintático não verifica se as tags de fechamento correspondem "
91+ "às tags de abertura nem chama o manipulador de tags de fechamento para "
92+ "elementos que são fechados implicitamente pelo fechamento de um elemento "
93+ "externo."
7394
7495#: ../../library/html.parser.rst:38
7596msgid "*convert_charrefs* keyword argument added."
76- msgstr ""
97+ msgstr "Adicionado o argumento nomeado *convert_charrefs*. "
7798
7899#: ../../library/html.parser.rst:41
79100msgid "The default value for argument *convert_charrefs* is now ``True``."
80- msgstr ""
101+ msgstr "O valor padrão para o argumento *convert_charrefs* agora é ``True``. "
81102
82103#: ../../library/html.parser.rst:44
83104msgid "Added the *scripting* parameter."
84- msgstr ""
105+ msgstr "Adicionado o parâmetro *scripting*. "
85106
86107#: ../../library/html.parser.rst:49
87108msgid "Example HTML Parser Application"
88- msgstr ""
109+ msgstr "Exemplo de aplicação para análise de HTML "
89110
90111#: ../../library/html.parser.rst:51
91112msgid ""
92113"As a basic example, below is a simple HTML parser that uses the :class:"
93114"`HTMLParser` class to print out start tags, end tags, and data as they are "
94115"encountered:"
95116msgstr ""
117+ "Como exemplo básico, abaixo está um analisador HTML simples que usa a "
118+ "classe :class:`HTMLParser` para exibir as tags de abertura, tags de "
119+ "fechamento e dados à medida que são encontrados:"
96120
97121#: ../../library/html.parser.rst:55
98122msgid ""
@@ -112,10 +136,25 @@ msgid ""
112136"parser.feed('<html><head><title>Test</title></head>'\n"
113137" '<body><h1>Parse me!</h1></body></html>')"
114138msgstr ""
139+ "from html.parser import HTMLParser\n"
140+ "\n"
141+ "class MyHTMLParser(HTMLParser):\n"
142+ " def handle_starttag(self, tag, attrs):\n"
143+ " print(\" Encontrada a tag de abertura:\" , tag)\n"
144+ "\n"
145+ " def handle_endtag(self, tag):\n"
146+ " print(\" Encontrada a tag de fechamento:\" , tag)\n"
147+ "\n"
148+ " def handle_data(self, data):\n"
149+ " print(\" Encontrados alguns dados :\" , data)\n"
150+ "\n"
151+ "parser = MyHTMLParser()\n"
152+ "parser.feed('<html><head><title>Teste</title></head>'\n"
153+ " '<body><h1>Me analise!</h1></body></html>')"
115154
116155#: ../../library/html.parser.rst:73
117156msgid "The output will then be:"
118- msgstr ""
157+ msgstr "A saída então será: "
119158
120159#: ../../library/html.parser.rst:75
121160msgid ""