Debian Codegraph @

translations/manual/bg/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 # Petya Naydenova <[email protected]>, 2017
7 # solusitor, 2017
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: calibre\n"
11 "Report-Msgid-Bugs-To: \n"
12 "POT-Creation-Date: 2022-03-02 13:48+0000\n"
13 "PO-Revision-Date: 2020-07-03 02:15+0000\n"
14 "Last-Translator: Kovid Goyal <[email protected]>\n"
15 "Language-Team: Bulgarian (http://www.transifex.com/calibre/calibre/language/bg/)\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Language: bg\n"
20 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
21
22 #: ../../__w/calibre/calibre/manual/xpath.rst:4
23 msgid "XPath tutorial"
24 msgstr "XPath ръководство"
25
26 #: ../../__w/calibre/calibre/manual/xpath.rst:6
27 msgid ""
28 "In this tutorial, you will be given a gentle introduction to `XPath "
29 "<https://en.wikipedia.org/wiki/XPath>`_, a query language that can be used "
30 "to select arbitrary parts of `HTML <https://en.wikipedia.org/wiki/HTML>`_ "
31 "documents in calibre. XPath is a widely used standard, and googling it will "
32 "yield a ton of information. This tutorial, however, focuses on using XPath "
33 "for e-book related tasks like finding chapter headings in an unstructured "
34 "HTML document."
35 msgstr ""
36
37 #: ../../__w/calibre/calibre/manual/xpath.rst:16
38 msgid "Contents"
39 msgstr "Съдържание"
40
41 #: ../../__w/calibre/calibre/manual/xpath.rst:19
42 msgid "Selecting by tag name"
43 msgstr ""
44
45 #: ../../__w/calibre/calibre/manual/xpath.rst:21
46 msgid ""
47 "The simplest form of selection is to select tags by name. For example, "
48 "suppose you want to select all the ``<h2>`` tags in a document. The XPath "
49 "query for this is simply::"
50 msgstr ""
51
52 #: ../../__w/calibre/calibre/manual/xpath.rst:27
53 msgid ""
54 "The prefix `//` means *search at any level of the document*. Now suppose you"
55 " want to search for ``<span>`` tags that are inside ``<a>`` tags. That can "
56 "be achieved with::"
57 msgstr ""
58
59 #: ../../__w/calibre/calibre/manual/xpath.rst:33
60 msgid ""
61 "If you want to search for tags at a particular level in the document, change"
62 " the prefix::"
63 msgstr ""
64
65 #: ../../__w/calibre/calibre/manual/xpath.rst:39
66 msgid ""
67 "This will match only ``<p>A very short e-book to demonstrate the use of "
68 "XPath.</p>`` in the :ref:`sample_ebook` but not any of the other ``<p>`` "
69 "tags. The ``h:`` prefix in the above examples is needed to match XHTML tags."
70 " This is because internally, calibre represents all content as XHTML. In "
71 "XHTML tags have a *namespace*, and ``h:`` is the namespace prefix for HTML "
72 "tags."
73 msgstr ""
74
75 #: ../../__w/calibre/calibre/manual/xpath.rst:45
76 msgid ""
77 "Now suppose you want to select both ``<h1>`` and ``<h2>`` tags. To do that, "
78 "we need a XPath construct called *predicate*. A :dfn:`predicate` is simply a"
79 " test that is used to select tags. Tests can be arbitrarily powerful and as "
80 "this tutorial progresses, you will see more powerful examples. A predicate "
81 "is created by enclosing the test expression in square brackets::"
82 msgstr ""
83
84 #: ../../__w/calibre/calibre/manual/xpath.rst:53
85 msgid ""
86 "There are several new features in this XPath expression. The first is the "
87 "use of the wildcard ``*``. It means *match any tag*. Now look at the test "
88 "expression ``name()='h1' or name()='h2'``. :term:`name()` is an example of a"
89 " *built-in function*. It simply evaluates to the name of the tag. So by "
90 "using it, we can select tags whose names are either `h1` or `h2`. Note that "
91 "the :term:`name()` function ignores namespaces so that there is no need for "
92 "the ``h:`` prefix. XPath has several useful built-in functions. A few more "
93 "will be introduced in this tutorial."
94 msgstr ""
95
96 #: ../../__w/calibre/calibre/manual/xpath.rst:62
97 msgid "Selecting by attributes"
98 msgstr ""
99
100 #: ../../__w/calibre/calibre/manual/xpath.rst:64
101 msgid ""
102 "To select tags based on their attributes, the use of predicates is "
103 "required::"
104 msgstr ""
105
106 #: ../../__w/calibre/calibre/manual/xpath.rst:70
107 msgid ""
108 "Here, the ``@`` operator refers to the attributes of the tag. You can use "
109 "some of the `XPath built-in functions`_ to perform more sophisticated "
110 "matching on attribute values."
111 msgstr ""
112
113 #: ../../__w/calibre/calibre/manual/xpath.rst:76
114 msgid "Selecting by tag content"
115 msgstr ""
116
117 #: ../../__w/calibre/calibre/manual/xpath.rst:78
118 msgid ""
119 "Using XPath, you can even select tags based on the text they contain. The "
120 "best way to do this is to use the power of *regular expressions* via the "
121 "built-in function :term:`re:test()`::"
122 msgstr ""
123
124 #: ../../__w/calibre/calibre/manual/xpath.rst:84
125 msgid ""
126 "Here the ``.`` operator refers to the contents of the tag, just as the ``@``"
127 " operator referred to its attributes."
128 msgstr ""
129
130 #: ../../__w/calibre/calibre/manual/xpath.rst:90
131 msgid "Sample e-book"
132 msgstr ""
133
134 #: ../../__w/calibre/calibre/manual/xpath.rst:96
135 msgid "XPath built-in functions"
136 msgstr ""
137
138 #: ../../__w/calibre/calibre/manual/xpath.rst:99
139 msgid "name()"
140 msgstr ""
141
142 #: ../../__w/calibre/calibre/manual/xpath.rst:101
143 msgid "The name of the current tag."
144 msgstr ""
145
146 #: ../../__w/calibre/calibre/manual/xpath.rst:102
147 msgid "contains()"
148 msgstr ""
149
150 #: ../../__w/calibre/calibre/manual/xpath.rst:104
151 msgid "``contains(s1, s2)`` returns `true` if s1 contains s2."
152 msgstr ""
153
154 #: ../../__w/calibre/calibre/manual/xpath.rst:105
155 msgid "re:test()"
156 msgstr ""
157
158 #: ../../__w/calibre/calibre/manual/xpath.rst:107
159 msgid ""
160 "``re:test(src, pattern, flags)`` returns `true` if the string `src` matches "
161 "the regular expression `pattern`. A particularly useful flag is ``i``, it "
162 "makes matching case insensitive. A good primer on the syntax for regular "
163 "expressions can be found at `regexp syntax "
164 "<https://docs.python.org/library/re.html>`_"
165 msgstr ""