| 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 |
# Alex, 2016 |
| 7 |
# Herman L.M. van der Vaart <[email protected]>, 2020 |
| 8 |
# M. de Boer <[email protected]>, 2018 |
| 9 |
# Meteor0id, 2019 |
| 10 |
# Volluta <[email protected]>, 2016 |
| 11 |
# W.P.M.E. Hofland <[email protected]>, 2015 |
| 12 |
msgid "" |
| 13 |
msgstr "" |
| 14 |
"Project-Id-Version: calibre\n" |
| 15 |
"Report-Msgid-Bugs-To: \n" |
| 16 |
"POT-Creation-Date: 2026-02-17 16:44+0000\n" |
| 17 |
"PO-Revision-Date: 2014-06-17 08:35+0000\n" |
| 18 |
"Last-Translator: Herman L.M. van der Vaart <[email protected]>, 2020\n" |
| 19 |
"Language-Team: Dutch (http://app.transifex.com/calibre/calibre/language/nl/)\n" |
| 20 |
"MIME-Version: 1.0\n" |
| 21 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 22 |
"Content-Transfer-Encoding: 8bit\n" |
| 23 |
"Language: nl\n" |
| 24 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
| 25 |
|
| 26 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:4 |
| 27 |
msgid "XPath tutorial" |
| 28 |
msgstr "XPath handleiding" |
| 29 |
|
| 30 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:6 |
| 31 |
msgid "" |
| 32 |
"In this tutorial, you will be given a gentle introduction to `XPath " |
| 33 |
"<https://en.wikipedia.org/wiki/XPath>`_, a query language that can be used " |
| 34 |
"to select arbitrary parts of `HTML <https://en.wikipedia.org/wiki/HTML>`_ " |
| 35 |
"documents in calibre. XPath is a widely used standard, and googling it will " |
| 36 |
"yield a ton of information. This tutorial, however, focuses on using XPath " |
| 37 |
"for e-book related tasks like finding chapter headings in an unstructured " |
| 38 |
"HTML document." |
| 39 |
msgstr "In deze zelfstudie krijgt u een voorzichtige inleiding tot `XPath <https://en.wikipedia.org/wiki/XPath>` _, een querytaal die kan worden gebruikt om willekeurige delen van `HTML <https://en.wikipedia.org/wiki/HTML>`_documenten in Calibre. XPath is een veel gebruikte standaard, en googelen levert een hoop informatie op. Deze zelfstudie richt zich echter op het gebruik van XPath voor aan e-boeken gerelateerde taken, zoals het vinden van hoofdstukken in een ongestructureerd HTML-document." |
| 40 |
|
| 41 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:16 |
| 42 |
msgid "Contents" |
| 43 |
msgstr "Inhoud" |
| 44 |
|
| 45 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:19 |
| 46 |
msgid "Selecting by tag name" |
| 47 |
msgstr "Selecteren op naam van label" |
| 48 |
|
| 49 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:21 |
| 50 |
msgid "" |
| 51 |
"The simplest form of selection is to select tags by name. For example, " |
| 52 |
"suppose you want to select all the ``<h2>`` tags in a document. The XPath " |
| 53 |
"query for this is simply::" |
| 54 |
msgstr "De eenvoudigste vorm van selectie is om labels op naam te selecteren. Bijvoorbeeld, stel dat u wilt alle ``<h2>``-labels in een document wilt selecteren. De XPath query voor dit is::" |
| 55 |
|
| 56 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:27 |
| 57 |
msgid "" |
| 58 |
"The prefix `//` means *search at any level of the document*. Now suppose you" |
| 59 |
" want to search for ``<span>`` tags that are inside ``<a>`` tags. That can " |
| 60 |
"be achieved with::" |
| 61 |
msgstr "Het voorvoegsel `//` betekent *zoeken op elk niveau van het document*. Stel nu dat u wilt zoeken naar ``<span>`` -labels die zich binnen de ``<a>``labels bevinden. Dat kan worden bereikt met::" |
| 62 |
|
| 63 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:33 |
| 64 |
msgid "" |
| 65 |
"If you want to search for tags at a particular level in the document, change" |
| 66 |
" the prefix::" |
| 67 |
msgstr "Als u naar labels wilt zoeken in een bepaald gebied van het document, verander dan de prefix::" |
| 68 |
|
| 69 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:39 |
| 70 |
msgid "" |
| 71 |
"This will match only ``<p>A very short e-book to demonstrate the use of " |
| 72 |
"XPath.</p>`` in the :ref:`sample_ebook` but not any of the other ``<p>`` " |
| 73 |
"tags. The ``h:`` prefix in the above examples is needed to match XHTML tags." |
| 74 |
" This is because internally, calibre represents all content as XHTML. In " |
| 75 |
"XHTML tags have a *namespace*, and ``h:`` is the namespace prefix for HTML " |
| 76 |
"tags." |
| 77 |
msgstr "Dit komt overeen met ``<p>een zeer kort e-book om het gebruik van XPath.</p>`` in de :ref:`voorbeeld_ebook` aan te tonen, maar niet een van de andere ``<p>``-labels. Het ``h:`` voorvoegsel in de bovenstaande voorbeelden is nodig om overeen te komen met XHTML-labels. Dit komt omdat intern, Calibre alle inhoud als XHTML vertegenwoordigt. In XHTML-labels hebben een *naamruimte*, en ``h:`` is de naamruimte prefix voor HTML-labels." |
| 78 |
|
| 79 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:45 |
| 80 |
msgid "" |
| 81 |
"Now suppose you want to select both ``<h1>`` and ``<h2>`` tags. To do that, " |
| 82 |
"we need an XPath construct called *predicate*. A :dfn:`predicate` is simply " |
| 83 |
"a test that is used to select tags. Tests can be arbitrarily powerful and as" |
| 84 |
" this tutorial progresses, you will see more powerful examples. A predicate " |
| 85 |
"is created by enclosing the test expression in square brackets::" |
| 86 |
msgstr "" |
| 87 |
|
| 88 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:53 |
| 89 |
msgid "" |
| 90 |
"There are several new features in this XPath expression. The first is the " |
| 91 |
"use of the wildcard ``*``. It means *match any tag*. Now look at the test " |
| 92 |
"expression ``name()='h1' or name()='h2'``. :term:`name()` is an example of a" |
| 93 |
" *built-in function*. It simply evaluates to the name of the tag. So by " |
| 94 |
"using it, we can select tags whose names are either `h1` or `h2`. Note that " |
| 95 |
"the :term:`name()` function ignores namespaces so that there is no need for " |
| 96 |
"the ``h:`` prefix. XPath has several useful built-in functions. A few more " |
| 97 |
"will be introduced in this tutorial." |
| 98 |
msgstr "Er zijn verschillende nieuwe functies in deze XPath-expressie. De eerste is het gebruik van het jokerteken `` * ``. Het betekent * komt overeen met elke tag *. Kijk nu naar de testuitdrukking `` name ()='h1' of name ()='h2' ''. : term: `name()` is een voorbeeld van een * ingebouwde functie *. Het evalueert eenvoudigweg de naam van de tag. Dus door het te gebruiken, kunnen we tags selecteren waarvan de namen `h1` of` h2` zijn. Merk op dat de functie :term:`name ()` naamruimten negeert, zodat het voorvoegsel `` h: `` niet nodig is. XPath heeft verschillende handige ingebouwde functies. Een paar meer zullen in deze zelfstudie worden geïntroduceerd." |
| 99 |
|
| 100 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:62 |
| 101 |
msgid "Selecting by attributes" |
| 102 |
msgstr "Selecteren op eigenschap" |
| 103 |
|
| 104 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:64 |
| 105 |
msgid "" |
| 106 |
"To select tags based on their attributes, the use of predicates is " |
| 107 |
"required::" |
| 108 |
msgstr "Om tags te selecteren op basis van hun attributen, is het gebruik van predicaten vereist::" |
| 109 |
|
| 110 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:70 |
| 111 |
msgid "" |
| 112 |
"Here, the ``@`` operator refers to the attributes of the tag. You can use " |
| 113 |
"some of the `XPath built-in functions`_ to perform more sophisticated " |
| 114 |
"matching on attribute values." |
| 115 |
msgstr "Hier verwijst de operator ``@'' naar de kenmerken van de tag. U kunt enkele van de in 'XPath ingebouwde functies' _ gebruiken om meer geavanceerdere vergelijkingen uit te voeren op kenmerkwaarden." |
| 116 |
|
| 117 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:76 |
| 118 |
msgid "Selecting by tag content" |
| 119 |
msgstr "Selecteren op label inhoud" |
| 120 |
|
| 121 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:78 |
| 122 |
msgid "" |
| 123 |
"Using XPath, you can even select tags based on the text they contain. The " |
| 124 |
"best way to do this is to use the power of *regular expressions* via the " |
| 125 |
"built-in function :term:`re:test()`::" |
| 126 |
msgstr "Met XPath kunt u zelfs tags selecteren op basis van de tekst die ze bevatten. De beste manier om dit te doen is om de kracht van * reguliere expressies * te gebruiken via de ingebouwde functie :term:`re:test()`::" |
| 127 |
|
| 128 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:84 |
| 129 |
msgid "" |
| 130 |
"Here the ``.`` operator refers to the contents of the tag, just as the ``@``" |
| 131 |
" operator referred to its attributes." |
| 132 |
msgstr "Hier verwijst de operator ``.`` naar de inhoud van de tag, net zoals de operator ``@'' verwijst naar de kenmerken." |
| 133 |
|
| 134 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:90 |
| 135 |
msgid "Sample e-book" |
| 136 |
msgstr "Voorbeeld e-boek" |
| 137 |
|
| 138 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:96 |
| 139 |
msgid "XPath built-in functions" |
| 140 |
msgstr "XPath ingebouwde functies" |
| 141 |
|
| 142 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:99 |
| 143 |
msgid "name()" |
| 144 |
msgstr "naam()" |
| 145 |
|
| 146 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:101 |
| 147 |
msgid "The name of the current tag." |
| 148 |
msgstr "De naam van het huidige label." |
| 149 |
|
| 150 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:102 |
| 151 |
msgid "contains()" |
| 152 |
msgstr "bevat()" |
| 153 |
|
| 154 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:104 |
| 155 |
msgid "``contains(s1, s2)`` returns `true` if s1 contains s2." |
| 156 |
msgstr "``contains(s1, s2)`` returns `true` if s1 contains s2." |
| 157 |
|
| 158 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:105 |
| 159 |
msgid "re:test()" |
| 160 |
msgstr "re:test()" |
| 161 |
|
| 162 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:107 |
| 163 |
msgid "" |
| 164 |
"``re:test(src, pattern, flags)`` returns `true` if the string `src` matches " |
| 165 |
"the regular expression `pattern`. A particularly useful flag is ``i``, it " |
| 166 |
"makes matching case insensitive. A good primer on the syntax for regular " |
| 167 |
"expressions can be found at `regexp syntax " |
| 168 |
"<https://docs.python.org/library/re.html>`_" |
| 169 |
msgstr "``re:test (src, patroon, vlaggen)`` geeft `waar` terug als de string `src` overeenkomt met de reguliere expressie `patroon`. Een bijzonder handige vlag is ``i``, het maakt vergelijken hoofdletter ongevoelig. Een goede inleiding over de syntaxis voor reguliere expressies is te vinden op `regexp syntax <https://docs.python.org/library/re.html>` _" |