Debian Codegraph @

translations/manual/pl/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 # konrad … <[email protected]>, 2017
7 # Marcin Kozioł <[email protected]>, 2020
8 # Ola Kleniewska <[email protected]>, 2016
9 # Piotr Parafiniuk <[email protected]>, 2014-2015
10 # Przemysław Siekiera <[email protected]>, 2018
11 # wigatesi, 2016
12 msgid ""
13 msgstr ""
14 "Project-Id-Version: calibre\n"
15 "Report-Msgid-Bugs-To: \n"
16 "POT-Creation-Date: 2021-12-01 12:56+0000\n"
17 "PO-Revision-Date: 2021-11-23 15:50+0000\n"
18 "Last-Translator: Kovid Goyal <[email protected]>\n"
19 "Language-Team: Polish (http://www.transifex.com/calibre/calibre/language/pl/)\n"
20 "MIME-Version: 1.0\n"
21 "Content-Type: text/plain; charset=UTF-8\n"
22 "Content-Transfer-Encoding: 8bit\n"
23 "Language: pl\n"
24 "Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
25
26 #: ../../__w/calibre/calibre/manual/regexp.rst:4
27 msgid "All about using regular expressions in calibre"
28 msgstr "Wszystko, co chcielibyście wiedzieć o wyrażeniach regularnych w calibre"
29
30 #: ../../__w/calibre/calibre/manual/regexp.rst:6
31 msgid ""
32 "Regular expressions are features used in many places in calibre to perform "
33 "sophisticated manipulation of e-book content and metadata. This tutorial is "
34 "a gentle introduction to getting you started with using regular expressions "
35 "in calibre."
36 msgstr "Wyrażenia regularne są stosowane w wielu miejscach w calibre, umożliwiając skomplikowane nawet manipulacje zawartością i metadanymi książki. Ten podręcznik wprowadzi cię łagodnie w podstawy użycia wyrażeń regularnych w calibre."
37
38 #: ../../__w/calibre/calibre/manual/regexp.rst:11
39 msgid "Contents"
40 msgstr "Spis treści"
41
42 #: ../../__w/calibre/calibre/manual/regexp.rst:14
43 msgid "First, a word of warning and a word of courage"
44 msgstr "Na początek ostrzeżenie i zachęta."
45
46 #: ../../__w/calibre/calibre/manual/regexp.rst:16
47 msgid ""
48 "This is, inevitably, going to be somewhat technical- after all, regular "
49 "expressions are a technical tool for doing technical stuff. I'm going to "
50 "have to use some jargon and concepts that may seem complicated or "
51 "convoluted. I'm going to try to explain those concepts as clearly as I can, "
52 "but really can't do without using them at all. That being said, don't be "
53 "discouraged by any jargon, as I've tried to explain everything new. And "
54 "while regular expressions themselves may seem like an arcane, black magic "
55 "(or, to be more prosaic, a random string of mumbo-jumbo letters and signs), "
56 "I promise that they are not all that complicated. Even those who understand "
57 "regular expressions really well have trouble reading the more complex ones, "
58 "but writing them isn't as difficult- you construct the expression step by "
59 "step. So, take a step and follow me into the rabbit hole."
60 msgstr "Niestety, będzie to trochę techniczna część - w końcu wyrażenia regularne są technicznym narzędziem do wykonywania technicznych zadań. Znajdzie się tu trochę żargonu i pojęć, które mogą wydawać się skomplikowane i zawiłe. Postaram się je wyjaśnić jak najlepiej jak mogę, ale, wierzcie mi, bez tego się nie da. Mimo wszystko nie zniechęcaj się żargonem, postaram się wyjaśniać wszystkie nowe pojęcia. I choć same wyrażenia regularne mogą wydawać się wiedzą tajemną, czarną magią (albo, bardziej prozaicznie, losowym ciągiem znaków), obiecuję, że nie będzie to aż tak skomplikowane. Nawet ci, którzy rozumieją wyrażenia regularne miewają kłopoty z odczytaniem tych bardziej skomplikowanych, ale pisanie ich nie jest takie trudne - konstruujesz wyrażenie krok po kroku. Tak więc - zrób pierwszy krok i - podążaj za białym królikiem..."
61
62 #: ../../__w/calibre/calibre/manual/regexp.rst:19
63 msgid "Where in calibre can you use regular expressions?"
64 msgstr "Gdzie w calibre można użyć wyrażeń regularnych?"
65
66 #: ../../__w/calibre/calibre/manual/regexp.rst:21
67 msgid ""
68 "There are a few places calibre uses regular expressions. There's the "
69 ":guilabel:`Search & replace` in conversion options, metadata detection from "
70 "filenames in the import settings and Search & replace when editing the "
71 "metadata of books in bulk. The calibre book editor can also use regular "
72 "expressions in its :guilabel:`Search and replace` feature. Finally, you can "
73 "use regular expressions when searching the calibre book list and when "
74 "searching inside the calibre E-book viewer."
75 msgstr ""
76
77 #: ../../__w/calibre/calibre/manual/regexp.rst:30
78 msgid "What on earth *is* a regular expression?"
79 msgstr "Czym właściwie *jest* wyrażenie regularne?"
80
81 #: ../../__w/calibre/calibre/manual/regexp.rst:32
82 msgid ""
83 "A regular expression is a way to describe sets of strings. A single regular "
84 "expression can *match* a number of different strings. This is what makes "
85 "regular expression so powerful -- they are a concise way of describing a "
86 "potentially large number of variations."
87 msgstr "Wyrażenie regularne jest sposobem na opisanie ciągu znaków. Pojedyncze wyrażenie może *pasować* do wielu różnych ciągów. To właśnie czyni wyrażenia regularne tak potężnym – to zwięzły sposób na opisanie potencjalnie dużej liczby różnych wersji."
88
89 #: ../../__w/calibre/calibre/manual/regexp.rst:34
90 msgid ""
91 "I'm using string here in the sense it is used in programming languages: a "
92 "string of one or more characters, characters including actual characters, "
93 "numbers, punctuation and so-called whitespace (linebreaks, tabulators etc.)."
94 " Please note that generally, uppercase and lowercase characters are not "
95 "considered the same, thus \"a\" being a different character from \"A\" and "
96 "so forth. In calibre, regular expressions are case insensitive in the Search"
97 " bar, but not in the conversion options. There's a way to make every regular"
98 " expression case insensitive, but we'll discuss that later. It gets "
99 "complicated because regular expressions allow for variations in the strings "
100 "it matches, so one expression can match multiple strings, which is why "
101 "people bother using them at all. More on that in a bit."
102 msgstr ""
103
104 #: ../../__w/calibre/calibre/manual/regexp.rst:37
105 msgid "Care to explain?"
106 msgstr "Możesz to wyjaśnić?"
107
108 #: ../../__w/calibre/calibre/manual/regexp.rst:39
109 msgid ""
110 "Well, that's why we're here. First, this is the most important concept in "
111 "regular expressions: *A string by itself is a regular expression that "
112 "matches itself*. That is to say, if I wanted to match the string ``\"Hello, "
113 "World!\"`` using a regular expression, the regular expression to use would "
114 "be ``Hello, World!``. And yes, it really is that simple. You'll notice, "
115 "though, that this *only* matches the exact string ``\"Hello, World!\"``, not"
116 " e.g. ``\"Hello, wOrld!\"`` or ``\"hello, world!\"`` or any other such "
117 "variation."
118 msgstr "Otóż dlatego właśnie tu jesteśmy. Po pierwsze najważniejsza koncepcja wyrażeń regularnych: *Ciąg znaków jest wyrażeniem regularnym, pasującym do samego siebie*. To znaczy, jeśli chcę dopasować ciąg ``\"Hello, World!\"`` przy użyciu wyrażeń regularnych, to najprostsze z nich to ``Hello, World!``. Owszem, to jest takie proste. Zauważysz zapewne, że wyrażenie to pasuje *wyłącznie* do ``\"Hello, World!\"``, a nie na przykład ``\"Hello, wOrld!\"`` czy ``\"hello, world!\"`` ani żadnej innej odmiany."
119
120 #: ../../__w/calibre/calibre/manual/regexp.rst:42
121 msgid "That doesn't sound too bad. What's next?"
122 msgstr "Nie brzmi źle. Co dalej?"
123
124 #: ../../__w/calibre/calibre/manual/regexp.rst:44
125 msgid ""
126 "Next is the beginning of the really good stuff. Remember where I said that "
127 "regular expressions can match multiple strings? This is where it gets a "
128 "little more complicated. Say, as a somewhat more practical exercise, the "
129 "e-book you wanted to convert had a nasty footer counting the pages, like "
130 "\"Page 5 of 423\". Obviously the page number would rise from 1 to 423, thus "
131 "you'd have to match 423 different strings, right? Wrong, actually: regular "
132 "expressions allow you to define sets of characters that are matched: To "
133 "define a set, you put all the characters you want to be in the set into "
134 "square brackets. So, for example, the set ``[abc]`` would match either the "
135 "character \"a\", \"b\" or \"c\". *Sets will always only match one of the "
136 "characters in the set*. They \"understand\" character ranges, that is, if "
137 "you wanted to match all the lower case characters, you'd use the set "
138 "``[a-z]`` for lower- and uppercase characters you'd use ``[a-zA-Z]`` and so "
139 "on. Got the idea? So, obviously, using the expression ``Page [0-9] of 423`` "
140 "you'd be able to match the first 9 pages, thus reducing the expressions "
141 "needed to three: The second expression ``Page [0-9][0-9] of 423`` would "
142 "match all two-digit page numbers, and I'm sure you can guess what the third "
143 "expression would look like. Yes, go ahead. Write it down."
144 msgstr ""
145
146 #: ../../__w/calibre/calibre/manual/regexp.rst:47
147 msgid "Hey, neat! This is starting to make sense!"
148 msgstr "Hej, nieźle! To zaczyna mieć sens!"
149
150 #: ../../__w/calibre/calibre/manual/regexp.rst:49
151 msgid ""
152 "I was hoping you'd say that. But brace yourself, now it gets even better! We"
153 " just saw that using sets, we could match one of several characters at once."
154 " But you can even repeat a character or set, reducing the number of "
155 "expressions needed to handle the above page number example to one. Yes, ONE!"
156 " Excited? You should be! It works like this: Some so-called special "
157 "characters, \"+\", \"?\" and \"*\", *repeat the single element preceding "
158 "them*. (Element means either a single character, a character set, an escape "
159 "sequence or a group (we'll learn about those last two later)- in short, any "
160 "single entity in a regular expression). These characters are called "
161 "wildcards or quantifiers. To be more precise, \"?\" matches *0 or 1* of the "
162 "preceding element, \"*\" matches *0 or more* of the preceding element and "
163 "\"+\" matches *1 or more* of the preceding element. A few examples: The "
164 "expression ``a?`` would match either \"\" (which is the empty string, not "
165 "strictly useful in this case) or \"a\", the expression ``a*`` would match "
166 "\"\", \"a\", \"aa\" or any number of a's in a row, and, finally, the "
167 "expression ``a+`` would match \"a\", \"aa\" or any number of a's in a row "
168 "(Note: it wouldn't match the empty string!). Same deal for sets: The "
169 "expression ``[0-9]+`` would match *every integer number there is*! I know "
170 "what you're thinking, and you're right: If you use that in the above case of"
171 " matching page numbers, wouldn't that be the single one expression to match "
172 "all the page numbers? Yes, the expression ``Page [0-9]+ of 423`` would match"
173 " every page number in that book!"
174 msgstr ""
175
176 #: ../../__w/calibre/calibre/manual/regexp.rst:52
177 msgid ""
178 "A note on these quantifiers: They generally try to match as much text as "
179 "possible, so be careful when using them. This is called \"greedy "
180 "behaviour\"- I'm sure you get why. It gets problematic when you, say, try to"
181 " match a tag. Consider, for example, the string ``\"<p "
182 "class=\"calibre2\">Title here</p>\"`` and let's say you'd want to match the "
183 "opening tag (the part between the first pair of angle brackets, a little "
184 "more on tags later). You'd think that the expression ``<p.*>`` would match "
185 "that tag, but actually, it matches the whole string! (The character \".\" is"
186 " another special character. It matches anything *except* linebreaks, so, "
187 "basically, the expression ``.*`` would match any single line you can think "
188 "of). Instead, try using ``<p.*?>`` which makes the quantifier ``\"*\"`` non-"
189 "greedy. That expression would only match the first opening tag, as intended."
190 " There's actually another way to accomplish this: The expression "
191 "``<p[^>]*>`` will match that same opening tag- you'll see why after the next"
192 " section. Just note that there quite frequently is more than one way to "
193 "write a regular expression."
194 msgstr ""
195
196 #: ../../__w/calibre/calibre/manual/regexp.rst:56
197 msgid ""
198 "Well, these special characters are very neat and all, but what if I wanted "
199 "to match a dot or a question mark?"
200 msgstr "No tak, te znaki specjalne są bardzo fajne i w ogóle, ale co jeśli chcemy dopasować kropkę albo znak zapytania?"
201
202 #: ../../__w/calibre/calibre/manual/regexp.rst:58
203 msgid ""
204 "You can of course do that: Just put a backslash in front of any special "
205 "character and it is interpreted as the literal character, without any "
206 "special meaning. This pair of a backslash followed by a single character is "
207 "called an escape sequence, and the act of putting a backslash in front of a "
208 "special character is called escaping that character. An escape sequence is "
209 "interpreted as a single element. There are of course escape sequences that "
210 "do more than just escaping special characters, for example ``\"\\t\"`` means"
211 " a tabulator. We'll get to some of the escape sequences later. Oh, and by "
212 "the way, concerning those special characters: Consider any character we "
213 "discuss in this introduction as having some function to be special and thus "
214 "needing to be escaped if you want the literal character."
215 msgstr "Możesz oczywiście zrobić tak: poprzedź znak specjalny backslashem i będzie on interpretowany jak każdy inny znak, bez specjalnego znaczenia. Taka para backslasha i znaku specjalnego jest nazywana sekwencją unikową, a umieszczanie backslasha przed znakiem to maskowanie znaków. Sekwencja unikowa jest interpretowana jak jeden element. Rzecz jasna są sekwencje unikowe, które mają znaczenie inne niż tylko maskowanie znaków specjalnych. Na przykład ``\"\\t\"`` oznacza tabulator. Więcej o sekwencjach unikowych powiemy później. A przy okazji, co do znaków specjalnych: potraktuj te znaki, o których mowa jako znaki mające specjalne funkcje i tym samym konieczne jest maskowanie jeśli chcesz uzyskać literalnie konkretny znak."
216
217 #: ../../__w/calibre/calibre/manual/regexp.rst:61
218 msgid "So, what are the most useful sets?"
219 msgstr "A jakie są najbardziej przydatne zestawy?"
220
221 #: ../../__w/calibre/calibre/manual/regexp.rst:63
222 msgid ""
223 "Knew you'd ask. Some useful sets are ``[0-9]`` matching a single number, "
224 "``[a-z]`` matching a single lowercase letter, ``[A-Z]`` matching a single "
225 "uppercase letter, ``[a-zA-Z]`` matching a single letter and ``[a-zA-Z0-9]`` "
226 "matching a single letter or number. You can also use an escape sequence as "
227 "shorthand:"
228 msgstr ""
229
230 #: ../../__w/calibre/calibre/manual/regexp.rst:66
231 msgid "``\\d``"
232 msgstr "``\\d``"
233
234 #: ../../__w/calibre/calibre/manual/regexp.rst:66
235 msgid "is equivalent to ``[0-9]``"
236 msgstr ""
237
238 #: ../../__w/calibre/calibre/manual/regexp.rst:70
239 msgid "``\\w``"
240 msgstr "``\\w``"
241
242 #: ../../__w/calibre/calibre/manual/regexp.rst:69
243 msgid "is equivalent to ``[a-zA-Z0-9_]``"
244 msgstr ""
245
246 #: ../../__w/calibre/calibre/manual/regexp.rst:73
247 msgid "``\\s``"
248 msgstr "``\\s``"
249
250 #: ../../__w/calibre/calibre/manual/regexp.rst:73
251 msgid "is equivalent to any whitespace"
252 msgstr ""
253
254 #: ../../__w/calibre/calibre/manual/regexp.rst:76
255 msgid ""
256 "\"Whitespace\" is a term for anything that won't be printed. These "
257 "characters include space, tabulator, line feed, form feed, carriage return, "
258 "non-breaking spaces, etc."
259 msgstr ""
260
261 #: ../../__w/calibre/calibre/manual/regexp.rst:78
262 msgid ""
263 "As a last note on sets, you can also define a set as any character *but* "
264 "those in the set. You do that by including the character ``\"^\"`` as the "
265 "*very first character in the set*. Thus, ``[^a]`` would match any character "
266 "excluding \"a\". That's called complementing the set. Those escape sequence "
267 "shorthands we saw earlier can also be complemented: ``\"\\D\"`` means any "
268 "non-number character, thus being equivalent to ``[^0-9]``. The other "
269 "shorthands can be complemented by, you guessed it, using the respective "
270 "uppercase letter instead of the lowercase one. So, going back to the example"
271 " ``<p[^>]*>`` from the previous section, now you can see that the character "
272 "set it's using tries to match any character except for a closing angle "
273 "bracket."
274 msgstr "Na koniec informacji o zestawach - możesz również zdefiniować wszystkie znaki *oprócz* tych ujętych w zestawie. Robi się to poprzez dodanie znaku ``\"^\"`` jako *pierwszego znaku w zestawie*. Tak więc ``[^a]`` dopasuje każdy znak oprócz \"a\". Nazywane jest to uzupełnianiem zestawu. Sekwencje unikowe, o których pisaliśmy wcześniej również mogą być w ten sposób uzupełniane: ``\"\\D\"`` oznacza dowolny znak nienumeryczny, jest więc ekwiwalentem ``[^0-9]``. Inne skróty, jak się zapewne spodziewasz, mogą również być uzupełniane poprzez wielką literę zamiast małej. Powracając do przykładu ``<p[^>]*>`` z poprzedniego rozdziału rozumiesz już, że w tym przypadku zestaw jest używany do dopasowania dowolnego znaku oprócz zamykającego nawiasu ostrego."
275
276 #: ../../__w/calibre/calibre/manual/regexp.rst:81
277 msgid ""
278 "But if I had a few varying strings I wanted to match, things get "
279 "complicated?"
280 msgstr "A gdybym miał kilka różnych ciągów, które chciałbym dopasować, to czy byłoby to skomplikowane?"
281
282 #: ../../__w/calibre/calibre/manual/regexp.rst:83
283 msgid ""
284 "Fear not, life still is good and easy. Consider this example: The book "
285 "you're converting has \"Title\" written on every odd page and \"Author\" "
286 "written on every even page. Looks great in print, right? But in e-books, "
287 "it's annoying. You can group whole expressions in normal parentheses, and "
288 "the character ``\"|\"`` will let you match *either* the expression to its "
289 "right *or* the one to its left. Combine those and you're done. Too fast for "
290 "you? Okay, first off, we group the expressions for odd and even pages, thus "
291 "getting ``(Title)(Author)`` as our two needed expressions. Now we make "
292 "things simpler by using the vertical bar (``\"|\"`` is called the vertical "
293 "bar character): If you use the expression ``(Title|Author)`` you'll either "
294 "get a match for \"Title\" (on the odd pages) or you'd match \"Author\" (on "
295 "the even pages). Well, wasn't that easy?"
296 msgstr ""
297
298 #: ../../__w/calibre/calibre/manual/regexp.rst:85
299 msgid ""
300 "You can, of course, use the vertical bar without using grouping parentheses,"
301 " as well. Remember when I said that quantifiers repeat the element preceding"
302 " them? Well, the vertical bar works a little differently: The expression "
303 "\"Title|Author\" will also match either the string \"Title\" or the string "
304 "\"Author\", just as the above example using grouping. *The vertical bar "
305 "selects between the entire expression preceding and following it*. So, if "
306 "you wanted to match the strings \"Calibre\" and \"calibre\" and wanted to "
307 "select only between the upper- and lowercase \"c\", you'd have to use the "
308 "expression ``(c|C)alibre``, where the grouping ensures that only the \"c\" "
309 "will be selected. If you were to use ``c|Calibre``, you'd get a match on the"
310 " string \"c\" or on the string \"Calibre\", which isn't what we wanted. In "
311 "short: If in doubt, use grouping together with the vertical bar."
312 msgstr "Możesz oczywiście użyć pionowej kreski bez grupujących nawiasów. Pamiętasz, że kwantyfikatory powtarzają poprzedzający je znak? Pionowa kreska działa nieco inaczej: wyrażenie \"Tytuł|Autor\" także dopasuje ciąg \"Tytuł\" albo ciąg \"Autor\", tak jak w poprzednim przykładzie, gdzie użyliśmy nawiasów. *Pionowa kreska obejmuje swoim działaniem całe wyrażenie przed i za nią*. Tak więc jeśli chcesz odnaleźć ciąg \"Calibre\" i \"calibre\", wybierając pomiędzy małym a wielkim \"C\", musisz użyć wyrażenia ``(c|C)alibre``, w którym grupowanie oznacza, że wybór dotyczy wyłącznie \"c\". Gdybyś użył ``c|Calibre`` to dopasowany zostałby ciąg \"c\" albo ciąg \"Calibre\", co jest nieprawidłowe. W skrócie: jeśli masz wątpliwości, grupuj wyrażenia, jeśli używasz pionowej kreski."
313
314 #: ../../__w/calibre/calibre/manual/regexp.rst:88
315 msgid "You missed..."
316 msgstr "Zapomniałem..."
317
318 #: ../../__w/calibre/calibre/manual/regexp.rst:90
319 msgid ""
320 "... wait just a minute, there's one last, really neat thing you can do with "
321 "groups. If you have a group that you previously matched, you can use "
322 "references to that group later in the expression: Groups are numbered "
323 "starting with 1, and you reference them by escaping the number of the group "
324 "you want to reference, thus, the fifth group would be referenced as ``\\5``."
325 " So, if you searched for ``([^ ]+) \\1`` in the string \"Test Test\", you'd "
326 "match the whole string!"
327 msgstr "...moment, jest jeszcze jedna, naprawdę użyteczna funkcja grup. Jeśli w wyrażeniu jest grupa, która została dopasowana, możesz się do niej odnieść później w tym wyrażeniu: grupy są numerowane, począwszy od 1, możesz użyć tych numerów, poprzedzając je backslashem, tak więc piąta grupa będzie oznaczona przez ``\\5``. Jeśli więc szukasz ``([^ ]+)\\1`` otrzymasz cały ciąg!"
328
329 #: ../../__w/calibre/calibre/manual/regexp.rst:94
330 msgid ""
331 "In the beginning, you said there was a way to make a regular expression case"
332 " insensitive?"
333 msgstr "Na początku powiedziałeś, że w wyrażeniach regularnych wielkość liter może nie mieć znaczenia?"
334
335 #: ../../__w/calibre/calibre/manual/regexp.rst:96
336 msgid ""
337 "Yes, I did, thanks for paying attention and reminding me. You can tell "
338 "calibre how you want certain things handled by using something called flags."
339 " You include flags in your expression by using the special construct "
340 "``(?flags go here)`` where, obviously, you'd replace \"flags go here\" with "
341 "the specific flags you want. For ignoring case, the flag is ``i``, thus you "
342 "include ``(?i)`` in your expression. Thus, ``(?i)test`` would match "
343 "\"Test\", \"tEst\", \"TEst\" and any case variation you could think of."
344 msgstr ""
345
346 #: ../../__w/calibre/calibre/manual/regexp.rst:98
347 msgid ""
348 "Another useful flag lets the dot match any character at all, *including* the"
349 " newline, the flag ``s``. If you want to use multiple flags in an "
350 "expression, just put them in the same statement: ``(?is)`` would ignore case"
351 " and make the dot match all. It doesn't matter which flag you state first, "
352 "``(?si)`` would be equivalent to the above."
353 msgstr ""
354
355 #: ../../__w/calibre/calibre/manual/regexp.rst:101
356 msgid ""
357 "I think I'm beginning to understand these regular expressions now... how do "
358 "I use them in calibre?"
359 msgstr "Zaczynam chyba rozumieć, o co chodzi w wyrażeniach regularnych, a teraz... jak ich użyć w calibre?"
360
361 #: ../../__w/calibre/calibre/manual/regexp.rst:104
362 msgid "Conversions"
363 msgstr "Konwertowanie"
364
365 #: ../../__w/calibre/calibre/manual/regexp.rst:106
366 msgid ""
367 "Let's begin with the conversion settings, which is really neat. In the "
368 ":guilabel:`Search & replace` part, you can input a regexp (short for regular"
369 " expression) that describes the string that will be replaced during the "
370 "conversion. The neat part is the wizard. Click on the wizard staff and you "
371 "get a preview of what calibre \"sees\" during the conversion process. Scroll"
372 " down to the string you want to remove, select and copy it, paste it into "
373 "the regexp field on top of the window. If there are variable parts, like "
374 "page numbers or so, use sets and quantifiers to cover those, and while "
375 "you're at it, remember to escape special characters, if there are some. Hit "
376 "the button labeled :guilabel:`Test` and calibre highlights the parts it "
377 "would replace were you to use the regexp. Once you're satisfied, hit OK and "
378 "convert. Be careful if your conversion source has tags like this example::"
379 msgstr "Zacznijmy od ustawień konwertowania, co jest dość przyjemne. W części :guilabel:„Znajdź i zamień” możesz wprowadzić wyrażenie regularne opisujące napis, który zostanie podmieniony w trakcie konwertowania książki. Tu z pomocą przychodzi kreator. Naciśnij przycisk kreatora, a zobaczysz podgląd tego, jak calibre „widzi” książkę podczas konwertowania. Przewiń tekst do napisu, który chcesz usunąć, zaznacz go, skopiuj i wklej do pola wyrażenia regularnego na górze okna. Jeśli napis zawiera części zmienne, takie jak numery stron itp., możesz użyć zbiorów i kwantyfikatorów, by je wychwycić. Skoro już przy tym jesteśmy, pamiętaj, by poprzedzić jakiekolwiek znaki specjalne znakiem modyfikacji (tj. odwrotnym ukośnikiem). Naciśnij przycisk :guilabel:„Test”, a calibre wyróżni części, które zastąpiłby podczas konwertowania. Kiedy już będziesz gotowy, naciśnij OK, by rozpocząć konwertowanie. Pamiętaj, że jeżeli źródło konwertowania zawiera znaczniki, jak w poniższym przykładzie:"
380
381 #: ../../__w/calibre/calibre/manual/regexp.rst:116
382 msgid ""
383 "(shamelessly ripped out of `this thread "
384 "<https://www.mobileread.com/forums/showthread.php?t=75594\">`_). You'd have "
385 "to remove some of the tags as well. In this example, I'd recommend beginning"
386 " with the tag ``<b class=\"calibre2\">``, now you have to end with the "
387 "corresponding closing tag (opening tags are ``<tag>``, closing tags are "
388 "``</tag>``), which is simply the next ``</b>`` in this case. (Refer to a "
389 "good HTML manual or ask in the forum if you are unclear on this point). The "
390 "opening tag can be described using ``<b.*?>``, the closing tag using "
391 "``</b>``, thus we could remove everything between those tags using "
392 "``<b.*?>.*?</b>``. But using this expression would be a bad idea, because it"
393 " removes everything enclosed by <b>- tags (which, by the way, render the "
394 "enclosed text in bold print), and it's a fair bet that we'll remove portions"
395 " of the book in this way. Instead, include the beginning of the enclosed "
396 "string as well, making the regular expression "
397 "``<b.*?>\\s*Generated\\s+by\\s+ABC\\s+Amber\\s+LIT.*?</b>`` The ``\\s`` with"
398 " quantifiers are included here instead of explicitly using the spaces as "
399 "seen in the string to catch any variations of the string that might occur. "
400 "Remember to check what calibre will remove to make sure you don't remove any"
401 " portions you want to keep if you test a new expression. If you only check "
402 "one occurrence, you might miss a mismatch somewhere else in the text. Also "
403 "note that should you accidentally remove more or fewer tags than you "
404 "actually wanted to, calibre tries to repair the damaged code after doing the"
405 " removal."
406 msgstr ""
407
408 #: ../../__w/calibre/calibre/manual/regexp.rst:119
409 msgid "Adding books"
410 msgstr "Dodawanie książek"
411
412 #: ../../__w/calibre/calibre/manual/regexp.rst:121
413 msgid ""
414 "Another thing you can use regular expressions for is to extract metadata "
415 "from filenames. You can find this feature in the \"Adding books\" part of "
416 "the settings. There's a special feature here: You can use field names for "
417 "metadata fields, for example ``(?P<title>)`` would indicate that calibre "
418 "uses this part of the string as book title. The allowed field names are "
419 "listed in the windows, together with another nice test field. An example: "
420 "Say you want to import a whole bunch of files named like ``Classical Texts: "
421 "The Divine Comedy by Dante Alighieri.mobi``. (Obviously, this is already in "
422 "your library, since we all love classical italian poetry) or ``Science "
423 "Fiction epics: The Foundation Trilogy by Isaac Asimov.epub``. This is "
424 "obviously a naming scheme that calibre won't extract any meaningful data out"
425 " of - its standard expression for extracting metadata is ``(?P<title>.+) - "
426 "(?P<author>[^_]+)``. A regular expression that works here would be "
427 "``[a-zA-Z]+: (?P<title>.+) by (?P<author>.+)``. Please note that, inside the"
428 " group for the metadata field, you need to use expressions to describe what "
429 "the field actually matches. And also note that, when using the test field "
430 "calibre provides, you need to add the file extension to your testing "
431 "filename, otherwise you won't get any matches at all, despite using a "
432 "working expression."
433 msgstr ""
434
435 #: ../../__w/calibre/calibre/manual/regexp.rst:125
436 msgid "Bulk editing metadata"
437 msgstr "Masowa edycja metadanych"
438
439 #: ../../__w/calibre/calibre/manual/regexp.rst:127
440 msgid ""
441 "The last part is regular expression :guilabel:`Search and replace` in "
442 "metadata fields. You can access this by selecting multiple books in the "
443 "library and using bulk metadata edit. Be very careful when using this last "
444 "feature, as it can do **Very Bad Things** to your library! Doublecheck that "
445 "your expressions do what you want them to using the test fields, and only "
446 "mark the books you really want to change! In the regular expression search "
447 "mode, you can search in one field, replace the text with something and even "
448 "write the result into another field. A practical example: Say your library "
449 "contained the books of Frank Herbert's Dune series, named after the fashion "
450 "``Dune 1 - Dune``, ``Dune 2 - Dune Messiah`` and so on. Now you want to get "
451 "``Dune`` into the series field. You can do that by searching for ``(.*?) "
452 "\\d+ - .*`` in the title field and replacing it with ``\\1`` in the series "
453 "field. See what I did there? That's a reference to the first group you're "
454 "replacing the series field with. Now that you have the series all set, you "
455 "only need to do another search for ``.*? -`` in the title field and replace "
456 "it with ``\"\"`` (an empty string), again in the title field, and your "
457 "metadata is all neat and tidy. Isn't that great? By the way, instead of "
458 "replacing the entire field, you can also append or prepend to the field, so,"
459 " if you *wanted* the book title to be prepended with series info, you could "
460 "do that as well. As you by now have undoubtedly noticed, there's a checkbox "
461 "labeled :guilabel:`Case sensitive`, so you won't have to use flags to select"
462 " behaviour here."
463 msgstr ""
464
465 #: ../../__w/calibre/calibre/manual/regexp.rst:129
466 msgid ""
467 "Well, that just about concludes the very short introduction to regular "
468 "expressions. Hopefully I'll have shown you enough to at least get you "
469 "started and to enable you to continue learning by yourself- a good starting "
470 "point would be the `Python documentation for regexps "
471 "<https://docs.python.org/library/re.html>`_."
472 msgstr ""
473
474 #: ../../__w/calibre/calibre/manual/regexp.rst:131
475 msgid ""
476 "One last word of warning, though: Regexps are powerful, but also really easy"
477 " to get wrong. calibre provides really great testing possibilities to see if"
478 " your expressions behave as you expect them to. Use them. Try not to shoot "
479 "yourself in the foot. (God, I love that expression...). But should you, "
480 "despite the warning, injure your foot (or any other body parts), try to "
481 "learn from it."
482 msgstr ""
483
484 #: ../../__w/calibre/calibre/manual/regexp.rst:135
485 msgid "Quick reference"
486 msgstr "Szybkie odniesienie"
487
488 #: ../../__w/calibre/calibre/manual/regexp.rst:143
489 msgid "Credits"
490 msgstr "Uznanie"
491
492 #: ../../__w/calibre/calibre/manual/regexp.rst:145
493 msgid "Thanks for helping with tips, corrections and such:"
494 msgstr "Dzięki za pomocne rady, korekty itp.:"
495
496 #: ../../__w/calibre/calibre/manual/regexp.rst:147
497 msgid "ldolse"
498 msgstr "Idolse"
499
500 #: ../../__w/calibre/calibre/manual/regexp.rst:148
501 msgid "kovidgoyal"
502 msgstr "kovidgoyal"
503
504 #: ../../__w/calibre/calibre/manual/regexp.rst:149
505 msgid "chaley"
506 msgstr "chaley"
507
508 #: ../../__w/calibre/calibre/manual/regexp.rst:150
509 msgid "dwanthny"
510 msgstr "dwanthny"
511
512 #: ../../__w/calibre/calibre/manual/regexp.rst:151
513 msgid "kacir"
514 msgstr "kacir"
515
516 #: ../../__w/calibre/calibre/manual/regexp.rst:152
517 msgid "Starson17"
518 msgstr "Starson17"
519
520 #: ../../__w/calibre/calibre/manual/regexp.rst:153
521 msgid "Orpheu"
522 msgstr "Orpheu"
523
524 #: ../../__w/calibre/calibre/manual/regexp.rst:155
525 msgid ""
526 "For more about regexps see `The Python User Manual "
527 "<https://docs.python.org/library/re.html>`_. The actual regular expression "
528 "library used by calibre is: `regex <https://bitbucket.org/mrabarnett/mrab-"
529 "regex/src/hg/>`_ which supports several useful enhancements over the Python "
530 "standard library one."
531 msgstr ""