Debian Codegraph @

translations/manual/pt_BR/xpath.po

raw
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) Kovid Goyal
3 # This file is distributed under the same license as the calibre package.
4 #
5 # Translators:
6 # Claudio Rogerio Carvalho Filho <[email protected]>, 2020
7 # Indira Cecilia Silva Miranda <[email protected]>, 2015
8 # Paulo_Neto <[email protected]>, 2014-2015
9 # Leandro “Lê Corſetti van Utrecht” Guimarães Faria Corcete DUTRA <[email protected]>, 2015
10 # Leonardo, 2014
11 # Paulo_Neto <[email protected]>, 2014
12 # Pedro Manoel de Oliveira Heringer Dias <[email protected]>, 2015
13 # 305f1ec21c68bb25c1b9f1b7629c3650_ea13c31 <ca3e4b86b0d24996d53b0fe149de4407_274039>, 2015
14 # Thiago Oliveira <[email protected]>, 2018
15 # Victor Andréo <[email protected]>, 2016
16 msgid ""
17 msgstr ""
18 "Project-Id-Version: calibre\n"
19 "Report-Msgid-Bugs-To: \n"
20 "POT-Creation-Date: 2026-02-17 16:44+0000\n"
21 "PO-Revision-Date: 2014-06-17 08:35+0000\n"
22 "Last-Translator: Claudio Rogerio Carvalho Filho <[email protected]>, 2020\n"
23 "Language-Team: Portuguese (Brazil) (http://app.transifex.com/calibre/calibre/language/pt_BR/)\n"
24 "MIME-Version: 1.0\n"
25 "Content-Type: text/plain; charset=UTF-8\n"
26 "Content-Transfer-Encoding: 8bit\n"
27 "Language: pt_BR\n"
28 "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
29
30 #: ../../../__w/calibre/calibre/manual/xpath.rst:4
31 msgid "XPath tutorial"
32 msgstr "Tutorial XPath"
33
34 #: ../../../__w/calibre/calibre/manual/xpath.rst:6
35 msgid ""
36 "In this tutorial, you will be given a gentle introduction to `XPath "
37 "<https://en.wikipedia.org/wiki/XPath>`_, a query language that can be used "
38 "to select arbitrary parts of `HTML <https://en.wikipedia.org/wiki/HTML>`_ "
39 "documents in calibre. XPath is a widely used standard, and googling it will "
40 "yield a ton of information. This tutorial, however, focuses on using XPath "
41 "for e-book related tasks like finding chapter headings in an unstructured "
42 "HTML document."
43 msgstr "Neste tutorial, você receberá uma sucinta introdução ao `XPath <https://en.wikipedia.org/wiki/XPath>`_ uma linguagem de consulta que pode ser usada para selecionar partes aleatórias de documentos `HTML<https://en.wikipedia.org/wiki/HTML>`_ de forma segmentada. O *XPath* é um padrão muito difundido e uma consulta ao *Google* resultará em um grande volume de informações. Este tutorial, entretanto, se concentra no uso de tarefas relacionadas a livros eletrônicos, como encontrar cabeçalhos de capítulos em um documento *HTML* não estruturado."
44
45 #: ../../../__w/calibre/calibre/manual/xpath.rst:16
46 msgid "Contents"
47 msgstr "Conteúdo"
48
49 #: ../../../__w/calibre/calibre/manual/xpath.rst:19
50 msgid "Selecting by tag name"
51 msgstr "Seleção pelo nome da tag"
52
53 #: ../../../__w/calibre/calibre/manual/xpath.rst:21
54 msgid ""
55 "The simplest form of selection is to select tags by name. For example, "
56 "suppose you want to select all the ``<h2>`` tags in a document. The XPath "
57 "query for this is simply::"
58 msgstr "A forma mais simples de seleção é selecionar etiquetas pelo nome. Por exemplo, suponha que você deseja selecionar todas as tags ``<h2>`` em um documento. A consulta XPath para isso é simplesmente::"
59
60 #: ../../../__w/calibre/calibre/manual/xpath.rst:27
61 msgid ""
62 "The prefix `//` means *search at any level of the document*. Now suppose you"
63 " want to search for ``<span>`` tags that are inside ``<a>`` tags. That can "
64 "be achieved with::"
65 msgstr ":O prefixo `//` significa *pesquisar em qualquer nível do documento*. Agora suponha que você deseja pesquisar por tags ``<span>`` que estão dentro das etiquetas ``<a>``. Você pode conseguir isso com::"
66
67 #: ../../../__w/calibre/calibre/manual/xpath.rst:33
68 msgid ""
69 "If you want to search for tags at a particular level in the document, change"
70 " the prefix::"
71 msgstr "Se você quiser buscar por tags em um determinado nível do documento, mude o prefixo::"
72
73 #: ../../../__w/calibre/calibre/manual/xpath.rst:39
74 msgid ""
75 "This will match only ``<p>A very short e-book to demonstrate the use of "
76 "XPath.</p>`` in the :ref:`sample_ebook` but not any of the other ``<p>`` "
77 "tags. The ``h:`` prefix in the above examples is needed to match XHTML tags."
78 " This is because internally, calibre represents all content as XHTML. In "
79 "XHTML tags have a *namespace*, and ``h:`` is the namespace prefix for HTML "
80 "tags."
81 msgstr "Isto corresponderá apenas com ``<p>Um livro eletrônico curto para demonstrar o uso da XPath.</p>`` na :ref:``sample_ebook`` mas não em qualquer uma das outras tags ``<p>``. O prefixo ``'h'`` nos exemplos acima é necessário para combinar etiquetas *XHTML*. Isto porque internamente o *Calibre* representa todo o conteúdo *XHTML*. As tags *XHTML* têm um *namespace* e ``h:`` é o prefixo de *namespace* para tags *HTML*."
82
83 #: ../../../__w/calibre/calibre/manual/xpath.rst:45
84 msgid ""
85 "Now suppose you want to select both ``<h1>`` and ``<h2>`` tags. To do that, "
86 "we need an XPath construct called *predicate*. A :dfn:`predicate` is simply "
87 "a test that is used to select tags. Tests can be arbitrarily powerful and as"
88 " this tutorial progresses, you will see more powerful examples. A predicate "
89 "is created by enclosing the test expression in square brackets::"
90 msgstr ""
91
92 #: ../../../__w/calibre/calibre/manual/xpath.rst:53
93 msgid ""
94 "There are several new features in this XPath expression. The first is the "
95 "use of the wildcard ``*``. It means *match any tag*. Now look at the test "
96 "expression ``name()='h1' or name()='h2'``. :term:`name()` is an example of a"
97 " *built-in function*. It simply evaluates to the name of the tag. So by "
98 "using it, we can select tags whose names are either `h1` or `h2`. Note that "
99 "the :term:`name()` function ignores namespaces so that there is no need for "
100 "the ``h:`` prefix. XPath has several useful built-in functions. A few more "
101 "will be introduced in this tutorial."
102 msgstr "Existem vários novos recursos nesta expressão do XPath. A primeira é o uso do caractere universal ``*``. Significa *corresponder a qualquer tag*. Agora veja a expressão de teste``name()='h1' ou name()='h2'``. :term:`name()` é um exemplo de uma *função interna*. Ela simplesmente resulta no nome da tag. Então, usando-a, podemos selecionar etiquetas cujos nomes são `h1` ou `h2`. Observe que a função :term:`name()` ignora namespaces, de modo a que não há necessidade para o prefixo ``h:``. O XPath tem várias funções internas úteis. Mais algumas serão apresentadas neste tutorial."
103
104 #: ../../../__w/calibre/calibre/manual/xpath.rst:62
105 msgid "Selecting by attributes"
106 msgstr "Selecionar por atributos"
107
108 #: ../../../__w/calibre/calibre/manual/xpath.rst:64
109 msgid ""
110 "To select tags based on their attributes, the use of predicates is "
111 "required::"
112 msgstr "Para selecionar tags com base em seu conteúdo, é necessário o uso de predicados::"
113
114 #: ../../../__w/calibre/calibre/manual/xpath.rst:70
115 msgid ""
116 "Here, the ``@`` operator refers to the attributes of the tag. You can use "
117 "some of the `XPath built-in functions`_ to perform more sophisticated "
118 "matching on attribute values."
119 msgstr "Aqui, o operador ``@`` refere-se aos atributos da tag. Você pode usar alguma das `funções internas do XPath`_ para executar correspondências mais sofisticadas em valores de atributos. "
120
121 #: ../../../__w/calibre/calibre/manual/xpath.rst:76
122 msgid "Selecting by tag content"
123 msgstr "Selecionar por conteúdo da tag"
124
125 #: ../../../__w/calibre/calibre/manual/xpath.rst:78
126 msgid ""
127 "Using XPath, you can even select tags based on the text they contain. The "
128 "best way to do this is to use the power of *regular expressions* via the "
129 "built-in function :term:`re:test()`::"
130 msgstr "Usando XPath, você também pode selecionar tags baseado nos textos que elas contêm. A melhor maneira para fazer isso é usar o poder das *expressões regulares* através da função interna :term:`re:test()`::"
131
132 #: ../../../__w/calibre/calibre/manual/xpath.rst:84
133 msgid ""
134 "Here the ``.`` operator refers to the contents of the tag, just as the ``@``"
135 " operator referred to its attributes."
136 msgstr "Aqui o operador ``.`` refere-se ao conteúdo da tag, assim como o operador ``@`` refere-se aos seus atributos."
137
138 #: ../../../__w/calibre/calibre/manual/xpath.rst:90
139 msgid "Sample e-book"
140 msgstr "Amostra de E-book"
141
142 #: ../../../__w/calibre/calibre/manual/xpath.rst:96
143 msgid "XPath built-in functions"
144 msgstr "Funções internas do XPath"
145
146 #: ../../../__w/calibre/calibre/manual/xpath.rst:99
147 msgid "name()"
148 msgstr "name()"
149
150 #: ../../../__w/calibre/calibre/manual/xpath.rst:101
151 msgid "The name of the current tag."
152 msgstr "O nome da tag atual."
153
154 #: ../../../__w/calibre/calibre/manual/xpath.rst:102
155 msgid "contains()"
156 msgstr "contains()"
157
158 #: ../../../__w/calibre/calibre/manual/xpath.rst:104
159 msgid "``contains(s1, s2)`` returns `true` if s1 contains s2."
160 msgstr "``contains(s1, s2)`` retorna `true` se s1 contém s2."
161
162 #: ../../../__w/calibre/calibre/manual/xpath.rst:105
163 msgid "re:test()"
164 msgstr "re:test()"
165
166 #: ../../../__w/calibre/calibre/manual/xpath.rst:107
167 msgid ""
168 "``re:test(src, pattern, flags)`` returns `true` if the string `src` matches "
169 "the regular expression `pattern`. A particularly useful flag is ``i``, it "
170 "makes matching case insensitive. A good primer on the syntax for regular "
171 "expressions can be found at `regexp syntax "
172 "<https://docs.python.org/library/re.html>`_"
173 msgstr "``re:test(src, pattern, flags)`` retorna ``True`` se a string ``src`` corresponde à expressão regular ``pattern`` Uma *flag* particularmente útil é ``i``, que torna a correspondência insensível a maiúsculas e minúsculas. Uma boa introdução sobre a sintaxe para expressões regulares pode ser encontrada em `sintaxe regexp <https://docs.python.org/library/re.html>`_"