| 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 |
# Armin Geller <[email protected]>, 2022 |
| 7 |
# Armin Geller <[email protected]>, 2014 |
| 8 |
# 3Stadt <[email protected]>, 2017 |
| 9 |
# Ospalh Ospalski <[email protected]>, 2026 |
| 10 |
# Simon Schütte, 2014-2016,2018 |
| 11 |
# Simon Schütte, 2014 |
| 12 |
# RiseT, 2015-2016 |
| 13 |
# Vo He <[email protected]>, 2021 |
| 14 |
msgid "" |
| 15 |
msgstr "" |
| 16 |
"Project-Id-Version: calibre\n" |
| 17 |
"Report-Msgid-Bugs-To: \n" |
| 18 |
"POT-Creation-Date: 2026-04-08 13:52+0000\n" |
| 19 |
"PO-Revision-Date: 2014-06-17 08:35+0000\n" |
| 20 |
"Last-Translator: Ospalh Ospalski <[email protected]>, 2026\n" |
| 21 |
"Language-Team: German (http://app.transifex.com/calibre/calibre/language/de/)\n" |
| 22 |
"MIME-Version: 1.0\n" |
| 23 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 24 |
"Content-Transfer-Encoding: 8bit\n" |
| 25 |
"Language: de\n" |
| 26 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
| 27 |
|
| 28 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:4 |
| 29 |
msgid "XPath tutorial" |
| 30 |
msgstr "XPath-Tutorial" |
| 31 |
|
| 32 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:6 |
| 33 |
msgid "" |
| 34 |
"In this tutorial, you will be given a gentle introduction to `XPath " |
| 35 |
"<https://en.wikipedia.org/wiki/XPath>`_, a query language that can be used " |
| 36 |
"to select arbitrary parts of `HTML <https://en.wikipedia.org/wiki/HTML>`_ " |
| 37 |
"documents in calibre. XPath is a widely used standard, and googling it will " |
| 38 |
"yield a ton of information. This tutorial, however, focuses on using XPath " |
| 39 |
"for e-book related tasks like finding chapter headings in an unstructured " |
| 40 |
"HTML document." |
| 41 |
msgstr "In dieser Anleitung bekommen Sie eine einfache Einführung in `XPath <https://de.wikipedia.org/wiki/XPath>`_, einer Abfragesprache, zum Auswählen von beliebigen Teilen innerhalb eines `HTML <https://de.wikipedia.org/wiki/HTML>`_ Dokuments in Calibre. XPath ist ein weit verbreiteter Standard der, wenn Sie danach googeln, viele Anwendungsbeispiele aufzeigt. Diese Anleitung wird sich auf die Verwendung von XPath für Aufgaben rund um eBooks konzentrieren, wie z. B. um Kapitelüberschriften in einem unstrukturierten HTML-Dokument zu finden." |
| 42 |
|
| 43 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:16 |
| 44 |
msgid "Contents" |
| 45 |
msgstr "Inhalt" |
| 46 |
|
| 47 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:19 |
| 48 |
msgid "Selecting by tag name" |
| 49 |
msgstr "Auswahl über Tag-Name" |
| 50 |
|
| 51 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:21 |
| 52 |
msgid "" |
| 53 |
"The simplest form of selection is to select tags by name. For example, " |
| 54 |
"suppose you want to select all the ``<h2>`` tags in a document. The XPath " |
| 55 |
"query for this is simply::" |
| 56 |
msgstr "Die einfachste Form einer Auswahl ist die Auswahl von Tags durch deren Namen. Wenn man z. B. alle ``<h2>``-Tags in einem Dokument finden möchte, ist die dazu passende XPath-Abfrage::" |
| 57 |
|
| 58 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:27 |
| 59 |
msgid "" |
| 60 |
"The prefix `//` means *search at any level of the document*. Now suppose you" |
| 61 |
" want to search for ``<span>`` tags that are inside ``<a>`` tags. That can " |
| 62 |
"be achieved with::" |
| 63 |
msgstr "Das Präfix `//` bedeutet *suche auf jeder Ebene des Dokuments*. Angenommen, Sie möchten nun nach ``<span>``-Tags suchen, die sich innerhalb von ``<a>``-Tags befinden. Dies wird durch den folgenden Ausdruck erreicht::" |
| 64 |
|
| 65 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:33 |
| 66 |
msgid "" |
| 67 |
"If you want to search for tags at a particular level in the document, change" |
| 68 |
" the prefix::" |
| 69 |
msgstr "Wenn Sie nach Tags einer bestimmten Ebene im Dokument suchen möchten, ändern Sie das Präfix wie folgt ab::" |
| 70 |
|
| 71 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:39 |
| 72 |
msgid "" |
| 73 |
"This will match only ``<p>A very short e-book to demonstrate the use of " |
| 74 |
"XPath.</p>`` in the :ref:`sample_ebook` but not any of the other ``<p>`` " |
| 75 |
"tags. The ``h:`` prefix in the above examples is needed to match XHTML tags." |
| 76 |
" This is because internally, calibre represents all content as XHTML. In " |
| 77 |
"XHTML tags have a *namespace*, and ``h:`` is the namespace prefix for HTML " |
| 78 |
"tags." |
| 79 |
msgstr "Dieser wird ``<p>Ein sehr kleines eBook, um die Verwendung von XPath zu demonstrieren.</p>`` im :ref:`sample_ebook` finden und keine anderen ``<p>``-Tags. Das Präfix ``h:`` in den obigen Beispielen ist zum Finden von XHTML-Tags erforderlich. Der Grund hierfür liegt in der internen Verarbeitung von Calibre, da alle Inhalte als XHTML-Code interpretiert werden. In XHTML haben Tags einen *Namensraum* und ``h:`` ist der Namensraum-Präfix für HTML-Tags." |
| 80 |
|
| 81 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:45 |
| 82 |
msgid "" |
| 83 |
"Now suppose you want to select both ``<h1>`` and ``<h2>`` tags. To do that, " |
| 84 |
"we need an XPath construct called *predicate*. A :dfn:`predicate` is simply " |
| 85 |
"a test that is used to select tags. Tests can be arbitrarily powerful and as" |
| 86 |
" this tutorial progresses, you will see more powerful examples. A predicate " |
| 87 |
"is created by enclosing the test expression in square brackets::" |
| 88 |
msgstr "Sagen wir nun Sie wollen sowohl ``<h1>``- als auch ``<h2>``-Tags auswählen. Dafür brauchen wir ein XPath-Konstrukt, dass *Prädikat* genannt wird. Ein :dfn:`Prädikat` ist einfach ein Test, der benutzt wird, um Tags auszuwählen. Tests können beliebig mächtig sein, und im Verlauf dieses Tutorials werden Sie mächtigerer Beispiele sehen. Man erstellt ein Prädikat indem man den Test-Ausdruck in eckige Klammern einschließt::" |
| 89 |
|
| 90 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:53 |
| 91 |
msgid "" |
| 92 |
"There are several new features in this XPath expression. The first is the " |
| 93 |
"use of the wildcard ``*``. It means *match any tag*. Now look at the test " |
| 94 |
"expression ``name()='h1' or name()='h2'``. :term:`name()` is an example of a" |
| 95 |
" *built-in function*. It simply evaluates to the name of the tag. So by " |
| 96 |
"using it, we can select tags whose names are either `h1` or `h2`. Note that " |
| 97 |
"the :term:`name()` function ignores namespaces so that there is no need for " |
| 98 |
"the ``h:`` prefix. XPath has several useful built-in functions. A few more " |
| 99 |
"will be introduced in this tutorial." |
| 100 |
msgstr "In diesem XPath-Ausdruck gibt es einige neue Eigenschaften. Die erste ist die Verwendung des Platzhalters ``*``. Dieser bedeutet *finde jeden Tag*. Nun schauen wir uns den Testausdruck ``name()='h1' or name()='h2'`` an. :term:`name()` ist ein Beispiel für eine *integrierte Funktion*. Hierbei wird der Name des angegebenen Tags ausgewertet. Wendet man dies wie in unserem Beispiel an, werden alle Tags mit dem Namen `h1` oder `h2` gefunden. Beachten Sie, dass die Funktion :term:`name()` Namensräume ignoriert. Es besteht daher keine Notwendigkeit für die Anwendung des Präfix ``h:``. XPath hat einige nützliche Funktionen integriert. Weitere werden in dieser Anleitung vorgestellt." |
| 101 |
|
| 102 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:62 |
| 103 |
msgid "Selecting by attributes" |
| 104 |
msgstr "Auswahl über Attribute" |
| 105 |
|
| 106 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:64 |
| 107 |
msgid "" |
| 108 |
"To select tags based on their attributes, the use of predicates is " |
| 109 |
"required::" |
| 110 |
msgstr "Um Tags nach ihren Attributen auszuwählen, ist die Verwendung von Prädikaten erforderlich::" |
| 111 |
|
| 112 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:70 |
| 113 |
msgid "" |
| 114 |
"Here, the ``@`` operator refers to the attributes of the tag. You can use " |
| 115 |
"some of the `XPath built-in functions`_ to perform more sophisticated " |
| 116 |
"matching on attribute values." |
| 117 |
msgstr "Der ``@``-Operator bezieht sich auf die Attribute eines Tags. Sie können einige der `XPath built-in functions`_ nutzen, um anspruchsvollere Abfragen auf Attributwerte auszuführen." |
| 118 |
|
| 119 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:76 |
| 120 |
msgid "Selecting by tag content" |
| 121 |
msgstr "Auswahl nach Tag-Inhalt" |
| 122 |
|
| 123 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:78 |
| 124 |
msgid "" |
| 125 |
"Using XPath, you can even select tags based on the text they contain. The " |
| 126 |
"best way to do this is to use the power of *regular expressions* via the " |
| 127 |
"built-in function :term:`re:test()`::" |
| 128 |
msgstr "Mithilfe von XPath können Sie auch Tags auswählen, die sich auf einen im Tag enthaltenen Text beziehen. Der beste Weg ist die Verwendung der Fähigkeiten von *regulären Ausdrücken* über die integrierte Funktion :term:`re:test()`::" |
| 129 |
|
| 130 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:84 |
| 131 |
msgid "" |
| 132 |
"Here the ``.`` operator refers to the contents of the tag, just as the ``@``" |
| 133 |
" operator referred to its attributes." |
| 134 |
msgstr "Der ``.``-Operator bezieht sich auf den Inhalt eines Tags, sowie sich der ``@``-Operator auf seine Attribute bezieht." |
| 135 |
|
| 136 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:90 |
| 137 |
msgid "Sample e-book" |
| 138 |
msgstr "Ein Beispiel-eBook" |
| 139 |
|
| 140 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:96 |
| 141 |
msgid "XPath built-in functions" |
| 142 |
msgstr "Integrierte XPath-Funktionen" |
| 143 |
|
| 144 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:99 |
| 145 |
msgid "name()" |
| 146 |
msgstr "name()" |
| 147 |
|
| 148 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:101 |
| 149 |
msgid "The name of the current tag." |
| 150 |
msgstr "Der Name des aktuellen Tags." |
| 151 |
|
| 152 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:102 |
| 153 |
msgid "contains()" |
| 154 |
msgstr "contains()" |
| 155 |
|
| 156 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:104 |
| 157 |
msgid "``contains(s1, s2)`` returns `true` if s1 contains s2." |
| 158 |
msgstr "``contains(s1, s2)`` gibt `true` zurück wenn s1 s2 beinhaltet." |
| 159 |
|
| 160 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:105 |
| 161 |
msgid "re:test()" |
| 162 |
msgstr "re:test()" |
| 163 |
|
| 164 |
#: ../../../__w/calibre/calibre/manual/xpath.rst:107 |
| 165 |
msgid "" |
| 166 |
"``re:test(src, pattern, flags)`` returns `true` if the string `src` matches " |
| 167 |
"the regular expression `pattern`. A particularly useful flag is ``i``, it " |
| 168 |
"makes matching case insensitive. A good primer on the syntax for regular " |
| 169 |
"expressions can be found at `regexp syntax " |
| 170 |
"<https://docs.python.org/library/re.html>`_" |
| 171 |
msgstr "``re:test(src, pattern, flags)`` gibt `true` zurück, wenn der String `src` dem regulären Ausdruck `pattern` entspricht . Ein möglich anzufügendes Flag ist ``i``, das verzichtet auf Groß- und Kleinschreibung. Ein gutes Beispiel dafür finden Sie unter `regexp syntax <https://docs.python.org/library/re.html>`_" |