Debian Codegraph @

translations/manual/de/regexp.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 # Ettore Atalan <[email protected]>, 2014
7 # H K <[email protected]>, 2016
8 # 810ed0d0f35477c91d0e6d50016ef5c4, 2016
9 # bd sn <[email protected]>, 2016
10 # Niemand Jedermann, 2021
11 # Philip De, 2016
12 # Philip De, 2016
13 # RiseT, 2016
14 # Simon Schütte, 2015-2016,2018
15 # RiseT, 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: Niemand Jedermann, 2021\n"
23 "Language-Team: German (http://app.transifex.com/calibre/calibre/language/de/)\n"
24 "MIME-Version: 1.0\n"
25 "Content-Type: text/plain; charset=UTF-8\n"
26 "Content-Transfer-Encoding: 8bit\n"
27 "Language: de\n"
28 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
29
30 #: ../../../__w/calibre/calibre/manual/regexp.rst:4
31 msgid "All about using regular expressions in calibre"
32 msgstr "Alles über die Verwendung von regulären Ausdrücken in Calibre"
33
34 #: ../../../__w/calibre/calibre/manual/regexp.rst:6
35 msgid ""
36 "Regular expressions are features used in many places in calibre to perform "
37 "sophisticated manipulation of e-book content and metadata. This tutorial is "
38 "a gentle introduction to getting you started with using regular expressions "
39 "in calibre."
40 msgstr "Reguläre Ausdrücke werden an vielen Stellen in calibre verwendet, um den Inhalt und die Metadaten von E-Büchern auf raffinierte Weise zu manipulieren. Dieses Tutorial ist eine vorsichtige Einführung, mit der man den Umgang mit regulären Ausdrücken erlernen kann."
41
42 #: ../../../__w/calibre/calibre/manual/regexp.rst:11
43 msgid "Contents"
44 msgstr "Inhalt"
45
46 #: ../../../__w/calibre/calibre/manual/regexp.rst:14
47 msgid "First, a word of warning and a word of courage"
48 msgstr "Vorweg ein Wort der Warnung - und der Ermutigung"
49
50 #: ../../../__w/calibre/calibre/manual/regexp.rst:16
51 msgid ""
52 "This is, inevitably, going to be somewhat technical- after all, regular "
53 "expressions are a technical tool for doing technical stuff. I'm going to "
54 "have to use some jargon and concepts that may seem complicated or "
55 "convoluted. I'm going to try to explain those concepts as clearly as I can, "
56 "but really can't do without using them at all. That being said, don't be "
57 "discouraged by any jargon, as I've tried to explain everything new. And "
58 "while regular expressions themselves may seem like an arcane, black magic "
59 "(or, to be more prosaic, a random string of mumbo-jumbo letters and signs), "
60 "I promise that they are not all that complicated. Even those who understand "
61 "regular expressions really well have trouble reading the more complex ones, "
62 "but writing them isn't as difficult- you construct the expression step by "
63 "step. So, take a step and follow me into the rabbit hole."
64 msgstr "Nun wird es unvermeidbar ein wenig technisch - immerhin sind reguläre Ausdrücke ein technisches Werkzeug, mit dem man technisches Zeug erledigt. Ich werde den einen oder anderen Fachbegriff verwenden und Gedankengänge, die kompliziert oder auch verwickelt wirken mögen. Ich werde versuchen, diese Gedanken so gut ich kann zu erklären, aber ich werde nicht ohne sie auskommen. Nur sollten Sie sich von diesem Fachchinesisch nicht abschrecken lassen, denn ich habe versucht, alle neuen Begriffe zu erklären. Und obwohl reguläre Ausdrücke an sich wie mysteriöse, schwarze Magie wirken (oder, nüchterner gesagt, wie ein Durcheinander irgendwelcher Buchstaben, Zahlen und Zeichen), verspreche ich hiermit, dass sie gar nicht so kompliziert sind. Selbst diejenigen, die reguläre Ausdrücke wirklich gut verstehen, haben schon mal Probleme, die komplexeren zu durchschauen, aber sie aufzuschreiben ist gar nicht so schwer - Sie bauen den Ausdruck schrittweise zusammen. Also: Treten Sie vor und folgen Sie mir in den Kaninchenbau!"
65
66 #: ../../../__w/calibre/calibre/manual/regexp.rst:19
67 msgid "Where in calibre can you use regular expressions?"
68 msgstr "Wo in calibre sind reguläre Ausdrücke verwendbar?"
69
70 #: ../../../__w/calibre/calibre/manual/regexp.rst:21
71 msgid ""
72 "There are a few places calibre uses regular expressions. There's the "
73 ":guilabel:`Search & replace` in conversion options, metadata detection from "
74 "filenames in the import settings and Search & replace when editing the "
75 "metadata of books in bulk. The calibre book editor can also use regular "
76 "expressions in its :guilabel:`Search and replace` feature. Finally, you can "
77 "use regular expressions when searching the calibre book list and when "
78 "searching inside the calibre E-book viewer."
79 msgstr "Es gibt nur wenige Stellen, an denen Calibre Reguläre Ausdrücke verwendet. Da wären, die :guilabel:`Search & replace` in den Konvertierungsoptionen, Metadatenerkennung auf Grund von Dateinamen in the Importeinstellungen und Suchen & Ersetzen beim massenhaften Bearbeiten der Metadaten von Büchern. Der Calibre-Bucheditor kann ebenfalls Reguläre Ausdrücke in seiner :guilabel:`Search and replace`-Funktion verwenden. Schließlich kannst du Reguläre Ausdrücke auch beim Suchen in der Calibre-Buchliste und innerhalb des Calibre-E-Book-Betrachters verwenden."
80
81 #: ../../../__w/calibre/calibre/manual/regexp.rst:30
82 msgid "What on earth *is* a regular expression?"
83 msgstr "Was um Himmels Willen ist ein \"regulärer Ausdruck\"?"
84
85 #: ../../../__w/calibre/calibre/manual/regexp.rst:32
86 msgid ""
87 "A regular expression is a way to describe sets of strings. A single regular "
88 "expression can *match* a number of different strings. This is what makes "
89 "regular expression so powerful -- they are a concise way of describing a "
90 "potentially large number of variations."
91 msgstr "Reguläre Ausdrücke beschreiben Mengen von Zeichen oder Zeichenfolgen. Ein einzelner regulärer Ausdruck *entspricht* unter Umständen einer ganzen Reihe verschiedener Zeichenfolgen. Und das macht reguläre Ausdrücke so mächtig: Sie beschreiben kurz und knapp eine möglicherweise große Zahl von Varianten."
92
93 #: ../../../__w/calibre/calibre/manual/regexp.rst:34
94 msgid ""
95 "I'm using string here in the sense it is used in programming languages: a "
96 "string of one or more characters, characters including actual characters, "
97 "numbers, punctuation and so-called whitespace (linebreaks, tabulators etc.)."
98 " Please note that generally, uppercase and lowercase characters are not "
99 "considered the same, thus \"a\" being a different character from \"A\" and "
100 "so forth. In calibre, regular expressions are case insensitive in the Search"
101 " bar, but not in the conversion options. There's a way to make every regular"
102 " expression case insensitive, but we'll discuss that later. It gets "
103 "complicated because regular expressions allow for variations in the strings "
104 "it matches, so one expression can match multiple strings, which is why "
105 "people bother using them at all. More on that in a bit."
106 msgstr "Dabei benutze ich den Begriff Zeichenfolge so wie in einer Programmiersprache, nämlich eine Folge von einem oder mehreren Zeichen, wobei als Zeichen die eigentlichen Buchstaben und Zahlen, aber auch Satzzeichen und sogenannten Leerraum (Umbrüche, Tabulatorschritte usw.) gelten. Man beachte, dass meistens Klein- und Großbuchstaben nicht als gleichwertig angesehen werden. Es ist also nicht egal, ob man \"a\" oder \"A\" schreibt. In der Suchleiste von calibre spielt die Groß- oder Kleinschreibung keine Rolle, wohl aber bei den Einstellungen für die Konvertierung. Es gibt zwar eine Möglichkeit, alle regulären Ausdrücke unabhängig von Klein- und Großbuchstaben zu machen, aber dazu kommen wir später. Es wird kompliziert, weil reguläre Ausdrücke Abweichungen in den Zeichenfolgen zulassen, denen sie entsprechen. Anders gesagt: Ein einziger passt zu verschiedenen Zeichenfolgen - deshalb werden reguläre Ausdrücke ja überhaupt verwendet. Mehr dazu in Kürze."
107
108 #: ../../../__w/calibre/calibre/manual/regexp.rst:37
109 msgid "Care to explain?"
110 msgstr "Bitte etwas genauer!"
111
112 #: ../../../__w/calibre/calibre/manual/regexp.rst:39
113 msgid ""
114 "Well, that's why we're here. First, this is the most important concept in "
115 "regular expressions: *A string by itself is a regular expression that "
116 "matches itself*. That is to say, if I wanted to match the string ``\"Hello, "
117 "World!\"`` using a regular expression, the regular expression to use would "
118 "be ``Hello, World!``. And yes, it really is that simple. You'll notice, "
119 "though, that this *only* matches the exact string ``\"Hello, World!\"``, not"
120 " e.g. ``\"Hello, wOrld!\"`` or ``\"hello, world!\"`` or any other such "
121 "variation."
122 msgstr "Klar, darum machen wir das ja! Der wichtigste Gedanke bei regulären Ausdrücken zuerst: *Eine Zeichenfolge an sich ist ein regulärer Ausdruck, der sich selbst entspricht*. Wenn ich also einen regulären Ausdruck für die Zeichenfolge ``\\\"Hallo, Welt!\"`` suche, kann ich einfach ``\"Hallo, Welt!\"`` benutzen. Ja, es wirklich so simpel! Sie sollten beachten, dass dies *nur* für die exakte Zeichenfolge ``\"Hallo, Welt!\"`` gilt, nicht etwa für ``\"Hallo, wElt!\"`` oder ``\"hallo, welt!\"`` oder ähnliche Zeichenfolgen."
123
124 #: ../../../__w/calibre/calibre/manual/regexp.rst:42
125 msgid "That doesn't sound too bad. What's next?"
126 msgstr "Das hört sich nicht schlecht an. Was kommt als Nächstes?"
127
128 #: ../../../__w/calibre/calibre/manual/regexp.rst:44
129 msgid ""
130 "Next is the beginning of the really good stuff. Remember where I said that "
131 "regular expressions can match multiple strings? This is where it gets a "
132 "little more complicated. Say, as a somewhat more practical exercise, the "
133 "e-book you wanted to convert had a nasty footer counting the pages, like "
134 "\"Page 5 of 423\". Obviously the page number would rise from 1 to 423, thus "
135 "you'd have to match 423 different strings, right? Wrong, actually: regular "
136 "expressions allow you to define sets of characters that are matched: To "
137 "define a set, you put all the characters you want to be in the set into "
138 "square brackets. So, for example, the set ``[abc]`` would match either the "
139 "character \"a\", \"b\" or \"c\". *Sets will always only match one of the "
140 "characters in the set*. They \"understand\" character ranges, that is, if "
141 "you wanted to match all the lower case characters, you'd use the set "
142 "``[a-z]`` for lower- and uppercase characters you'd use ``[a-zA-Z]`` and so "
143 "on. Got the idea? So, obviously, using the expression ``Page [0-9] of 423`` "
144 "you'd be able to match the first 9 pages, thus reducing the expressions "
145 "needed to three: The second expression ``Page [0-9][0-9] of 423`` would "
146 "match all two-digit page numbers, and I'm sure you can guess what the third "
147 "expression would look like. Yes, go ahead. Write it down."
148 msgstr "Als Nächstes kommen jetzt die richtig guten Sachen. Sie erinnern sich daran, dass reguläre Ausdrücke zu verschiedenen Zeichenfolgen passen können? Da wird es nun etwas komplizierter. Mal angenommen, als praktisches Beispiel, Sie wollen ein Buch konvertieren mit einer ganz hässlichen Zeilenangabe in der Fußzeile, so etwas wie \"Seite 5 von 423\". Offensichtlich steigt die Seitenzahl von 1 bis 423, und Sie bräuchten 423 verschiedene Zeichenfolgen, oder? Falsch: Tatsächlich können Sie mit regulären Ausdrücken Zeichenmengen festlegen, die zueinander passen. Zur Festlegung einer solchen Menge schreiben Sie alle betreffenden Zeichen in eckige Klammern. Zum Beispiel entspricht die Menge ``[abc]`` entweder dem Zeichen \"a\", \"b\" oder \"c\". *Mengen entsprechen immer nur einem der Zeichen dieser Menge*. Sie \"verstehen\" übrigens auch Zeichen-Bereiche, so dass Sie für alle Kleinbuchstaben (ohne Umlaute) die Menge ``[a-z]`` und für sämtliche Klein- und Großbuchstaben (wieder ohne Umlaute) die Menge ``[a-zA-Z]`` schreiben können - und so weiter. Soweit klar? Mit dem regulären Ausdruck ``Seite [0-9] von 423`` hätten Sie also etwas Passendes für die ersten neun Seiten und benötigten nun nur noch drei Ausdrücke: ``Seite [0-9][0-9] von 423`` wäre der zweite Ausdruck, entsprechend den zweistelligen Seitenzahlen, und den dritten Ausdruck können Sie sicherlich selbst finden. Ja, versuchen Sie es und schreiben Sie ihn auf!"
149
150 #: ../../../__w/calibre/calibre/manual/regexp.rst:47
151 msgid "Hey, neat! This is starting to make sense!"
152 msgstr "Hey, toll! Langsam bekommt alles einen Sinn!"
153
154 #: ../../../__w/calibre/calibre/manual/regexp.rst:49
155 msgid ""
156 "I was hoping you'd say that. But brace yourself, now it gets even better! We"
157 " just saw that using sets, we could match one of several characters at once."
158 " But you can even repeat a character or set, reducing the number of "
159 "expressions needed to handle the above page number example to one. Yes, ONE!"
160 " Excited? You should be! It works like this: Some so-called special "
161 "characters, \"+\", \"?\" and \"*\", *repeat the single element preceding "
162 "them*. (Element means either a single character, a character set, an escape "
163 "sequence or a group (we'll learn about those last two later)- in short, any "
164 "single entity in a regular expression). These characters are called "
165 "wildcards or quantifiers. To be more precise, \"?\" matches *0 or 1* of the "
166 "preceding element, \"*\" matches *0 or more* of the preceding element and "
167 "\"+\" matches *1 or more* of the preceding element. A few examples: The "
168 "expression ``a?`` would match either \"\" (which is the empty string, not "
169 "strictly useful in this case) or \"a\", the expression ``a*`` would match "
170 "\"\", \"a\", \"aa\" or any number of a's in a row, and, finally, the "
171 "expression ``a+`` would match \"a\", \"aa\" or any number of a's in a row "
172 "(Note: it wouldn't match the empty string!). Same deal for sets: The "
173 "expression ``[0-9]+`` would match *every integer number there is*! I know "
174 "what you're thinking, and you're right: If you use that in the above case of"
175 " matching page numbers, wouldn't that be the single one expression to match "
176 "all the page numbers? Yes, the expression ``Page [0-9]+ of 423`` would match"
177 " every page number in that book!"
178 msgstr ""
179
180 #: ../../../__w/calibre/calibre/manual/regexp.rst:52
181 msgid ""
182 "A note on these quantifiers: They generally try to match as much text as "
183 "possible, so be careful when using them. This is called \"greedy "
184 "behaviour\"- I'm sure you get why. It gets problematic when you, say, try to"
185 " match a tag. Consider, for example, the string ``\"<p "
186 "class=\"calibre2\">Title here</p>\"`` and let's say you'd want to match the "
187 "opening tag (the part between the first pair of angle brackets, a little "
188 "more on tags later). You'd think that the expression ``<p.*>`` would match "
189 "that tag, but actually, it matches the whole string! (The character \".\" is"
190 " another special character. It matches anything *except* linebreaks, so, "
191 "basically, the expression ``.*`` would match any single line you can think "
192 "of). Instead, try using ``<p.*?>`` which makes the quantifier ``\"*\"`` non-"
193 "greedy. That expression would only match the first opening tag, as intended."
194 " There's actually another way to accomplish this: The expression "
195 "``<p[^>]*>`` will match that same opening tag- you'll see why after the next"
196 " section. Just note that there quite frequently is more than one way to "
197 "write a regular expression."
198 msgstr ""
199
200 #: ../../../__w/calibre/calibre/manual/regexp.rst:56
201 msgid ""
202 "Well, these special characters are very neat and all, but what if I wanted "
203 "to match a dot or a question mark?"
204 msgstr "Tja, das mit den Sonderzeichen ist ja gut und schön. Aber wie kann ich nach einem Punkt oder einem Fragezeichen suchen?"
205
206 #: ../../../__w/calibre/calibre/manual/regexp.rst:58
207 msgid ""
208 "You can of course do that: Just put a backslash in front of any special "
209 "character and it is interpreted as the literal character, without any "
210 "special meaning. This pair of a backslash followed by a single character is "
211 "called an escape sequence, and the act of putting a backslash in front of a "
212 "special character is called escaping that character. An escape sequence is "
213 "interpreted as a single element. There are of course escape sequences that "
214 "do more than just escaping special characters, for example ``\"\\t\"`` means"
215 " a tabulator. We'll get to some of the escape sequences later. Oh, and by "
216 "the way, concerning those special characters: Consider any character we "
217 "discuss in this introduction as having some function to be special and thus "
218 "needing to be escaped if you want the literal character."
219 msgstr "Natürlich geht auch so etwas: Sie brauchen nur einen \"Backslash\" vor ein Sonderzeichen zu setzen, und es wird als das Zeichen selbst verstanden, ohne irgendeine Sonderbedeutung. Eine solche Kombination aus einem \"Backslash\" mit einem einzelnen Zeichen nennt man Escape-Sequenz, und unter \"Escaping\" versteht man, vor ein Sonderzeichen einen \"Backslash\" zu schreiben. Solche Escape-Sequenzen gelten als einzelne Elemente. Es gibt auch Escape-Sequenzen, die nicht nur Sonderzeichen betreffen; zum Beispiel ist ``\"\\t\"`` die Sequenz für einen Tabulatorschritt. Wir kommen später noch zu ähnlichen Escape-Sequenzen. Was die Sonderzeichen betrifft, sollten Sie einfach mal folgendes annehmen: Jedes Zeichen in dieser Einführung, das eine besondere Funktion hat, gilt als Sonderzeichen und benötigt den \"Backslash\", wenn man das Zeichen selbst meint."
220
221 #: ../../../__w/calibre/calibre/manual/regexp.rst:61
222 msgid "So, what are the most useful sets?"
223 msgstr "So, und welche Mengen sind nun am brauchbarsten?"
224
225 #: ../../../__w/calibre/calibre/manual/regexp.rst:63
226 msgid ""
227 "Knew you'd ask. Some useful sets are ``[0-9]`` matching a single number, "
228 "``[a-z]`` matching a single lowercase letter, ``[A-Z]`` matching a single "
229 "uppercase letter, ``[a-zA-Z]`` matching a single letter and ``[a-zA-Z0-9]`` "
230 "matching a single letter or number. You can also use an escape sequence as "
231 "shorthand:"
232 msgstr ""
233
234 #: ../../../__w/calibre/calibre/manual/regexp.rst:69
235 msgid "``\\d``"
236 msgstr "``\\d``"
237
238 #: ../../../__w/calibre/calibre/manual/regexp.rst:70
239 msgid "is equivalent to ``[0-9]``"
240 msgstr ""
241
242 #: ../../../__w/calibre/calibre/manual/regexp.rst:72
243 msgid "``\\w``"
244 msgstr "``\\w``"
245
246 #: ../../../__w/calibre/calibre/manual/regexp.rst:73
247 msgid "is equivalent to ``[a-zA-Z0-9_]``"
248 msgstr ""
249
250 #: ../../../__w/calibre/calibre/manual/regexp.rst:76
251 msgid "``\\s``"
252 msgstr "``\\s``"
253
254 #: ../../../__w/calibre/calibre/manual/regexp.rst:77
255 msgid "is equivalent to any whitespace"
256 msgstr ""
257
258 #: ../../../__w/calibre/calibre/manual/regexp.rst:80
259 msgid ""
260 "\"Whitespace\" is a term for anything that won't be printed. These "
261 "characters include space, tabulator, line feed, form feed, carriage return, "
262 "non-breaking spaces, etc."
263 msgstr ""
264
265 #: ../../../__w/calibre/calibre/manual/regexp.rst:83
266 msgid ""
267 "The upper and lower case sets may match both upper and lowercase if the "
268 "setting to make searches case insensitive is enabled. Such settings are "
269 "found, for instance in Preferences->Searching in calibre itself and on the "
270 "Search panel in the calibre :guilabel:`E-book viewer` as well as the calibre"
271 " :guilabel:`Edit book` tool."
272 msgstr ""
273
274 #: ../../../__w/calibre/calibre/manual/regexp.rst:89
275 msgid ""
276 "As a last note on sets, you can also define a set as any character *but* "
277 "those in the set. You do that by including the character ``\"^\"`` as the "
278 "*very first character in the set*. Thus, ``[^a]`` would match any character "
279 "excluding \"a\". That's called complementing the set. Those escape sequence "
280 "shorthands we saw earlier can also be complemented: ``\"\\D\"`` means any "
281 "non-number character, thus being equivalent to ``[^0-9]``. The other "
282 "shorthands can be complemented by, you guessed it, using the respective "
283 "uppercase letter instead of the lowercase one. So, going back to the example"
284 " ``<p[^>]*>`` from the previous section, now you can see that the character "
285 "set it's using tries to match any character except for a closing angle "
286 "bracket."
287 msgstr "Ein letzter Hinweis zu Mengen: Sie können eine Menge auch so festlegen, dass jedes Zeichen gemeint ist *außer* denen in der Menge! Dazu schreiben Sie als allererstes Zeichen ein ``\"^\"`` in die Menge. So entspricht ``[^a]`` jedem Zeichen außer dem \"a\". Man spricht auch vom Komplement dieser Menge. Die Abkürzungen mit Hilfe von Escape-Sequenzen funktionieren auch mit Komplementbildung: ``\"\\D\"`` bedeutet so viel wie \"alles außer Zahlen\", anders ausgedrückt also ``[^0-9]``. Der oben erwähnte Ausdruck ``<p[^>]*>`` versucht, wie man sieht, jedem Zeichen zu entsprechen mit Ausnahme der schließenden spitzen Klammer."
288
289 #: ../../../__w/calibre/calibre/manual/regexp.rst:94
290 msgid ""
291 "But if I had a few varying strings I wanted to match, things get "
292 "complicated?"
293 msgstr "Aber wenn ich jetzt nach ein paar unterschiedlichen Zeichenfolgen gleichzeitig suchen möchte - wird die Sache dann sehr kompliziert?"
294
295 #: ../../../__w/calibre/calibre/manual/regexp.rst:96
296 msgid ""
297 "Fear not, life still is good and easy. Consider this example: The book "
298 "you're converting has \"Title\" written on every odd page and \"Author\" "
299 "written on every even page. Looks great in print, right? But in e-books, "
300 "it's annoying. You can group whole expressions in normal parentheses, and "
301 "the character ``\"|\"`` will let you match *either* the expression to its "
302 "right *or* the one to its left. Combine those and you're done. Too fast for "
303 "you? Okay, first off, we group the expressions for odd and even pages, thus "
304 "getting ``(Title)(Author)`` as our two needed expressions. Now we make "
305 "things simpler by using the vertical bar (``\"|\"`` is called the vertical "
306 "bar character): If you use the expression ``(Title|Author)`` you'll either "
307 "get a match for \"Title\" (on the odd pages) or you'd match \"Author\" (on "
308 "the even pages). Well, wasn't that easy?"
309 msgstr "Keine Angst, das Leben ist noch immer schön und leicht. Betrachten Sie dieses Beispiel: Das Buch, das Sie konvertieren hat \"Titel\" auf jeder ungeraden, und \"Autor\" auf jeder geraden Seite stehen. Das sieht im Druck toll aus, stimmt's? Nur: Bei Ebooks ist das lästig. Sie können ganze Ausdrücke mit normalen Klammern gruppieren, und das Zeichen ``\"|\"`` erlaubt Ihnen *entweder* den Ausdruck links *oder* denjenigen rechts davon zu finden. Kombinieren Sie diese beiden und sie haben es. Das war zu schnell? OK, als Erstes kombinieren wir die Ausdrücke für gerade und ungerade Seiten, erhalten also ``(Title)(Author)`` für unsere zwei benötigten Ausdrücke. Nun vereinfachen wir das Ganze, indem wir den senkrechten Strich verwenden (``\"|\"`` wird senkrechter Strich oder Verkettungszeichen genannt): Wenn Sie den Ausdruck ``(Title|Author)`` verwenden finden Sie entweder \"Titel\" (auf den ungeraden Seiten) oder \"Autor\" (auf den geraden Seiten). Na, war das nicht einfach?"
310
311 #: ../../../__w/calibre/calibre/manual/regexp.rst:98
312 msgid ""
313 "You can, of course, use the vertical bar without using grouping parentheses,"
314 " as well. Remember when I said that quantifiers repeat the element preceding"
315 " them? Well, the vertical bar works a little differently: The expression "
316 "\"Title|Author\" will also match either the string \"Title\" or the string "
317 "\"Author\", just as the above example using grouping. *The vertical bar "
318 "selects between the entire expression preceding and following it*. So, if "
319 "you wanted to match the strings \"Calibre\" and \"calibre\" and wanted to "
320 "select only between the upper- and lowercase \"c\", you'd have to use the "
321 "expression ``(c|C)alibre``, where the grouping ensures that only the \"c\" "
322 "will be selected. If you were to use ``c|Calibre``, you'd get a match on the"
323 " string \"c\" or on the string \"Calibre\", which isn't what we wanted. In "
324 "short: If in doubt, use grouping together with the vertical bar."
325 msgstr "Sie können den senkrechten Strich natürlich auch ohne gruppierende Klammern verwenden. Erinnern Sie sich, dass ich sagte Quantifizierer wiederholten das vorangegangene Element? Nun, der senkrechte Strich funktioniert ein wenig anders: Der Ausdruck \"Titel|Autor\" wird also entweder die Zeichenfolge \"Titel\" oder die Zeichenfolge \"Autor\" finden, genau wie das vorhergehende Beispiel mit der Gruppierung. *Der senkrechte Strich wählt aus zwischen der ganzen Zeichenfolge vor und der nach ihm*. Wollten Sie also die Zeichenfolgen \"Calibre\" und \"calibre\" finden und dabei nur zwischen dem großen und dem kleinen \"c\" wählen, müssten Sie den Ausdruck ``(c|C)alibre`` verwenden, bei dem die Gruppierung sicherstellt, dass nur das \"c\" gewählt wird. Sollten Sie ``c|Calibre`` verwenden, fänden Sie die Zeichenfolgen \"c\" oder \"Calibre\", was nicht unsere Absicht war. Kurz gesagt: Verwenden Sie im Zweifel die Gruppierung zusammen mit dem senkrechten Strich."
326
327 #: ../../../__w/calibre/calibre/manual/regexp.rst:101
328 msgid "You missed..."
329 msgstr "Da fehlt noch ..."
330
331 #: ../../../__w/calibre/calibre/manual/regexp.rst:103
332 msgid ""
333 "... wait just a minute, there's one last, really neat thing you can do with "
334 "groups. If you have a group that you previously matched, you can use "
335 "references to that group later in the expression: Groups are numbered "
336 "starting with 1, and you reference them by escaping the number of the group "
337 "you want to reference, thus, the fifth group would be referenced as ``\\5``."
338 " So, if you searched for ``([^ ]+) \\1`` in the string \"Test Test\", you'd "
339 "match the whole string!"
340 msgstr "... es gäbe da noch eine letzte, wirklich geschickte Sache, die Sie mit Gruppen anstellen können. Wenn Sie einen Gruppierungsausdruck haben, den Sie zuvor eingesetzt haben, können Sie Referenzen auf diese Gruppe im weiteren Ausdruck verwenden: Gruppen werden beginnend mit 1 nummeriert, und Sie werden referenziert, indem die Nummer der Gruppe mit einer \"Escape-Sequenz\" versehen wird, folglich würde die fünfte Gruppe als ``\\5`` referenziert. Daher fänden Sie bei einer Suche nach ``([^ ]+) \\1`` in der Zeichenfolge \"Test Test\" die komplette Zeichenfolge!"
341
342 #: ../../../__w/calibre/calibre/manual/regexp.rst:107
343 msgid ""
344 "In the beginning, you said there was a way to make a regular expression case"
345 " insensitive?"
346 msgstr "Hatten Sie anfangs nicht gesagt, dass reguläre Ausdrücke auch unabhängig von Groß- und Kleinschreibung gemacht werden könnten?"
347
348 #: ../../../__w/calibre/calibre/manual/regexp.rst:109
349 msgid ""
350 "Yes, I did, thanks for paying attention and reminding me. You can tell "
351 "calibre how you want certain things handled by using something called flags."
352 " You include flags in your expression by using the special construct "
353 "``(?flags go here)`` where, obviously, you'd replace \"flags go here\" with "
354 "the specific flags you want. For ignoring case, the flag is ``i``, thus you "
355 "include ``(?i)`` in your expression. Thus, ``(?i)test`` would match "
356 "\"Test\", \"tEst\", \"TEst\" and any case variation you could think of."
357 msgstr "Ja, das habe ich. Danke für's Aufpassen. Sie können Calibre sagen, wie es mit bestimmten Dingen umgehen soll, indem Sie sogenannte \"Flags\" verwenden. Sie fügen Flags in ihren Ausdruck mithilfe des speziellen Konstrukts ``(?Flag hierher)`` ein, in welchem Sie selbstverständlich \"Flags hierher\" durch die genauen Flags, die Sie wollen, ersetzen würden. Um die Groß-/Kleinschreibung zu ignorieren lautet die Flag ``i``, folglich würden Sie ``(?i)`` in Ihren Ausdruck einfügen. Also würde ``(?i)test`` mit \"Test\", \"tEst\", \"TEst\" übereinstimmen und jegliche Variation der Groß-/Kleinschreibung, die Ihnen einfällt."
358
359 #: ../../../__w/calibre/calibre/manual/regexp.rst:111
360 msgid ""
361 "Another useful flag lets the dot match any character at all, *including* the"
362 " newline, the flag ``s``. If you want to use multiple flags in an "
363 "expression, just put them in the same statement: ``(?is)`` would ignore case"
364 " and make the dot match all. It doesn't matter which flag you state first, "
365 "``(?si)`` would be equivalent to the above."
366 msgstr "Das Flag ``s`` sorgt dafür, dass mit dem Punkt jedes beliebige Zeichen gefunden wird, *einschließlich* \"Newline\". Wenn du mehrere Flags in einem Ausdruck verwenden möchtest, fasse sie einfach in der selben Anweisung zusammen: ``(?is)`` würde Groß-/Kleinschreibung ignorieren und der Punkt würde alle Zeichen finden. Es spielt keine Rolle, welches Flag du zuerst angibst: ``(?si)`` würde das selbe bewirken wie die Kombination oben."
367
368 #: ../../../__w/calibre/calibre/manual/regexp.rst:114
369 msgid ""
370 "I think I'm beginning to understand these regular expressions now... how do "
371 "I use them in calibre?"
372 msgstr "Mir scheint, ich verstehe allmählich etwas von regulären Ausdrücken ... und wie benutze ich sie nun in calibre?"
373
374 #: ../../../__w/calibre/calibre/manual/regexp.rst:117
375 msgid "Conversions"
376 msgstr "Konvertierungen"
377
378 #: ../../../__w/calibre/calibre/manual/regexp.rst:119
379 msgid ""
380 "Let's begin with the conversion settings, which is really neat. In the "
381 ":guilabel:`Search & replace` part, you can input a regexp (short for regular"
382 " expression) that describes the string that will be replaced during the "
383 "conversion. The neat part is the wizard. Click on the wizard staff and you "
384 "get a preview of what calibre \"sees\" during the conversion process. Scroll"
385 " down to the string you want to remove, select and copy it, paste it into "
386 "the regexp field on top of the window. If there are variable parts, like "
387 "page numbers or so, use sets and quantifiers to cover those, and while "
388 "you're at it, remember to escape special characters, if there are some. Hit "
389 "the button labeled :guilabel:`Test` and calibre highlights the parts it "
390 "would replace were you to use the regexp. Once you're satisfied, hit OK and "
391 "convert. Be careful if your conversion source has tags like this example::"
392 msgstr "Lass uns mit den Umwandlungseinstellungen beginnen. Im Teil :guilabel:`Search & replace` kannst du eine Regexp (kurz für Regular expression) eingeben, der die Zeichenkette beschreibt, die während der Umwandlung ersetzt wird. Der angenehme Teil ist der Assistent. Klicke auf den Zauberstab und du erhälst eine Vorschau dessen, was Calibre während des Umwandlungprozesses \"sieht\". Scrolle zu der Zeichenkette, die du entfernen möchtest, wähle sie aus, kopiere sie und füge sie in das Regexp-Feld oben im Fenster ein. Wenn es variable Teile gibt, wie Seitenzahlen oder ähnliches, verwende Mengen und Quantifizierer um diese abzudecken und wenn du schon mal dabei bist: Denke daran Sonderzeichen zu maskieren, falls es welche gibt. Drücke auf die Schaltfläche :guilabel:`Test` und Calibre hebt die Teile hervor, die ersetzt würden, wenn du diesen Regexp anwendest. Sobald du zufrieden bist, drücke OK und starte den Prozess. Sei vorsichtig careful wenn deine Quelle mit Tags wie in diesem Beispiel versehen ist:"
393
394 #: ../../../__w/calibre/calibre/manual/regexp.rst:129
395 msgid ""
396 "(shamelessly ripped out of `this thread "
397 "<https://www.mobileread.com/forums/showthread.php?t=75594\">`_). You'd have "
398 "to remove some of the tags as well. In this example, I'd recommend beginning"
399 " with the tag ``<b class=\"calibre2\">``, now you have to end with the "
400 "corresponding closing tag (opening tags are ``<tag>``, closing tags are "
401 "``</tag>``), which is simply the next ``</b>`` in this case. (Refer to a "
402 "good HTML manual or ask in the forum if you are unclear on this point). The "
403 "opening tag can be described using ``<b.*?>``, the closing tag using "
404 "``</b>``, thus we could remove everything between those tags using "
405 "``<b.*?>.*?</b>``. But using this expression would be a bad idea, because it"
406 " removes everything enclosed by <b>- tags (which, by the way, render the "
407 "enclosed text in bold print), and it's a fair bet that we'll remove portions"
408 " of the book in this way. Instead, include the beginning of the enclosed "
409 "string as well, making the regular expression "
410 "``<b.*?>\\s*Generated\\s+by\\s+ABC\\s+Amber\\s+LIT.*?</b>`` The ``\\s`` with"
411 " quantifiers are included here instead of explicitly using the spaces as "
412 "seen in the string to catch any variations of the string that might occur. "
413 "Remember to check what calibre will remove to make sure you don't remove any"
414 " portions you want to keep if you test a new expression. If you only check "
415 "one occurrence, you might miss a mismatch somewhere else in the text. Also "
416 "note that should you accidentally remove more or fewer tags than you "
417 "actually wanted to, calibre tries to repair the damaged code after doing the"
418 " removal."
419 msgstr ""
420
421 #: ../../../__w/calibre/calibre/manual/regexp.rst:132
422 msgid "Adding books"
423 msgstr "Hinzufügen von Büchern"
424
425 #: ../../../__w/calibre/calibre/manual/regexp.rst:134
426 msgid ""
427 "Another thing you can use regular expressions for is to extract metadata "
428 "from filenames. You can find this feature in the \"Adding books\" part of "
429 "the settings. There's a special feature here: You can use field names for "
430 "metadata fields, for example ``(?P<title>)`` would indicate that calibre "
431 "uses this part of the string as book title. The allowed field names are "
432 "listed in the windows, together with another nice test field. An example: "
433 "Say you want to import a whole bunch of files named like ``Classical Texts: "
434 "The Divine Comedy by Dante Alighieri.mobi``. (Obviously, this is already in "
435 "your library, since we all love classical Italian poetry) or ``Science "
436 "Fiction epics: The Foundation Trilogy by Isaac Asimov.epub``. This is "
437 "obviously a naming scheme that calibre won't extract any meaningful data out"
438 " of - its standard expression for extracting metadata is ``(?P<title>.+) - "
439 "(?P<author>[^_]+)``. A regular expression that works here would be "
440 "``[a-zA-Z]+: (?P<title>.+) by (?P<author>.+)``. Please note that, inside the"
441 " group for the metadata field, you need to use expressions to describe what "
442 "the field actually matches. And also note that, when using the test field "
443 "calibre provides, you need to add the file extension to your testing "
444 "filename, otherwise you won't get any matches at all, despite using a "
445 "working expression."
446 msgstr ""
447
448 #: ../../../__w/calibre/calibre/manual/regexp.rst:138
449 msgid "Bulk editing metadata"
450 msgstr "Gleichzeitiges Bearbeiten von Metadaten"
451
452 #: ../../../__w/calibre/calibre/manual/regexp.rst:140
453 msgid ""
454 "The last part is regular expression :guilabel:`Search and replace` in "
455 "metadata fields. You can access this by selecting multiple books in the "
456 "library and using bulk metadata edit. Be very careful when using this last "
457 "feature, as it can do **Very Bad Things** to your library! Double-check that"
458 " your expressions do what you want them to using the test fields, and only "
459 "mark the books you really want to change! In the regular expression search "
460 "mode, you can search in one field, replace the text with something and even "
461 "write the result into another field. A practical example: Say your library "
462 "contained the books of Frank Herbert's Dune series, named after the fashion "
463 "``Dune 1 - Dune``, ``Dune 2 - Dune Messiah`` and so on. Now you want to get "
464 "``Dune`` into the series field. You can do that by searching for ``(.*?) "
465 "\\d+ - .*`` in the title field and replacing it with ``\\1`` in the series "
466 "field. See what I did there? That's a reference to the first group you're "
467 "replacing the series field with. Now that you have the series all set, you "
468 "only need to do another search for ``.*? -`` in the title field and replace "
469 "it with ``\"\"`` (an empty string), again in the title field, and your "
470 "metadata is all neat and tidy. Isn't that great? By the way, instead of "
471 "replacing the entire field, you can also append or prepend to the field, so,"
472 " if you *wanted* the book title to be prepended with series info, you could "
473 "do that as well. As you by now have undoubtedly noticed, there's a checkbox "
474 "labeled :guilabel:`Case sensitive`, so you won't have to use flags to select"
475 " behaviour here."
476 msgstr ""
477
478 #: ../../../__w/calibre/calibre/manual/regexp.rst:142
479 msgid ""
480 "Well, that just about concludes the very short introduction to regular "
481 "expressions. Hopefully I'll have shown you enough to at least get you "
482 "started and to enable you to continue learning by yourself- a good starting "
483 "point would be the `Python documentation for regexps "
484 "<https://docs.python.org/library/re.html>`_."
485 msgstr ""
486
487 #: ../../../__w/calibre/calibre/manual/regexp.rst:144
488 msgid ""
489 "One last word of warning, though: Regexps are powerful, but also really easy"
490 " to get wrong. calibre provides really great testing possibilities to see if"
491 " your expressions behave as you expect them to. Use them. Try not to shoot "
492 "yourself in the foot. (God, I love that expression...). But should you, "
493 "despite the warning, injure your foot (or any other body parts), try to "
494 "learn from it."
495 msgstr ""
496
497 #: ../../../__w/calibre/calibre/manual/regexp.rst:148
498 msgid "Quick reference"
499 msgstr "Schnellreferenz"
500
501 #: ../../../__w/calibre/calibre/manual/regexp.rst:156
502 msgid "Credits"
503 msgstr "Danksagung"
504
505 #: ../../../__w/calibre/calibre/manual/regexp.rst:158
506 msgid "Thanks for helping with tips, corrections and such:"
507 msgstr "Ich bedanke mich für Hinweise, Korrekturen und so weiter bei:"
508
509 #: ../../../__w/calibre/calibre/manual/regexp.rst:160
510 msgid "ldolse"
511 msgstr "ldolse"
512
513 #: ../../../__w/calibre/calibre/manual/regexp.rst:161
514 msgid "kovidgoyal"
515 msgstr "kovidgoyal"
516
517 #: ../../../__w/calibre/calibre/manual/regexp.rst:162
518 msgid "chaley"
519 msgstr "chaley"
520
521 #: ../../../__w/calibre/calibre/manual/regexp.rst:163
522 msgid "dwanthny"
523 msgstr "dwanthny"
524
525 #: ../../../__w/calibre/calibre/manual/regexp.rst:164
526 msgid "kacir"
527 msgstr "kacir"
528
529 #: ../../../__w/calibre/calibre/manual/regexp.rst:165
530 msgid "Starson17"
531 msgstr "Starson17"
532
533 #: ../../../__w/calibre/calibre/manual/regexp.rst:166
534 msgid "Orpheu"
535 msgstr "Orpheu"
536
537 #: ../../../__w/calibre/calibre/manual/regexp.rst:168
538 msgid ""
539 "For more about regexps see `The Python User Manual "
540 "<https://docs.python.org/library/re.html>`_. The actual regular expression "
541 "library used by calibre is: `regex <https://bitbucket.org/mrabarnett/mrab-"
542 "regex/src/hg/>`_ which supports several useful enhancements over the Python "
543 "standard library one."
544 msgstr ""