Debian Codegraph @

translations/manual/ru/regexp_quick_reference.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 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 # Translators:
7 # Alex Kroll <[email protected]>, 2018
8 # Родион Р., 2026
9 # Anton Bershanskiy <[email protected]>, 2026
10 # ashed <[email protected]>, 2026
11 # Andrei Stepanov, 2026
12 #
13 #, fuzzy
14 msgid ""
15 msgstr ""
16 "Project-Id-Version: calibre 9.13.0\n"
17 "Report-Msgid-Bugs-To: \n"
18 "POT-Creation-Date: 2026-08-26 16:50+0000\n"
19 "PO-Revision-Date: 2017-12-15 03:02+0000\n"
20 "Last-Translator: Andrei Stepanov, 2026\n"
21 "Language-Team: Russian (https://app.transifex.com/calibre/teams/19337/ru/)\n"
22 "MIME-Version: 1.0\n"
23 "Content-Type: text/plain; charset=UTF-8\n"
24 "Content-Transfer-Encoding: 8bit\n"
25 "Language: ru\n"
26 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
27
28 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:2
29 msgid "Quick reference for regexp syntax"
30 msgstr "Краткая справка о синтаксисе регулярных выражений"
31
32 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:4
33 msgid ""
34 "This checklist summarizes the most commonly used/hard to remember parts of "
35 "the regexp engine available in most parts of calibre."
36 msgstr ""
37 "В этот список помещены наиболее используемые / трудные для запоминания части"
38 " движка регулярных выражений, доступные в calibre почти везде."
39
40 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:10
41 msgid "Contents"
42 msgstr "Содержание"
43
44 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:13
45 msgid "Character classes"
46 msgstr "Классы символов"
47
48 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:15
49 msgid ""
50 "Character classes are useful to represent different groups of characters, "
51 "succinctly."
52 msgstr ""
53 "Классы символов полезны для краткого представления различных групп символов."
54
55 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:18
56 msgid "Examples:"
57 msgstr "Примеры:"
58
59 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:21
60 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:52
61 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:241
62 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:271
63 msgid "**Representation**"
64 msgstr "**Обозначение**"
65
66 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:21
67 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:52
68 msgid "**Class**"
69 msgstr "**Класс**"
70
71 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:24
72 msgid "``[a-z]``"
73 msgstr "``[а-я]``"
74
75 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:24
76 msgid ""
77 "Lowercase letters. Does not include characters with accent mark and "
78 "ligatures"
79 msgstr "Строчные буквы. Не включает символы с ударением и лигатурами."
80
81 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:27
82 msgid "``[a-z0-9]``"
83 msgstr "``[а-я0-9]``"
84
85 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:27
86 msgid "Lowercase letters from a to z or numbers from 0 to 9"
87 msgstr "Строчные буквы от а до я а также цифры от 0 до 9."
88
89 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:29
90 msgid "``[A-Za-z-]``"
91 msgstr "``[А-Яа-я-]``"
92
93 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:29
94 msgid ""
95 "Uppercase or lowercase letters, or a dash. To include the dash in a class, "
96 "you must put it at the beginning or at the end so as not to confuse it with "
97 "the hyphen that specifies a range of characters"
98 msgstr ""
99 "Заглавные, строчные буквы, а также тире. Чтобы включить тире в классе, вы "
100 "должны поместить его в начале или в конце, чтобы не путать его с дефисом, "
101 "который обозначает диапазон символов."
102
103 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:33
104 msgid "``[^0-9]``"
105 msgstr "``[^0-9]``"
106
107 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:33
108 msgid ""
109 "Any character except a digit. The caret (^) placed at the beginning of the "
110 "class excludes the characters of the class (complemented class)"
111 msgstr ""
112 "Любые символы, кроме цифр. Каретка (^), помещенная в начале класса, "
113 "исключает символы класса (дополненный класс)."
114
115 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:36
116 msgid "``[[a-z]--[aeiouy]]``"
117 msgstr "``[[a-z]--[aeiouy]]`` ``[[а-я]--[аеёиоуыэюя]]``"
118
119 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:36
120 msgid ""
121 "The lowercase consonants. A class can be included in a class. The characters"
122 " ``--`` exclude what follows them"
123 msgstr ""
124 "Строчные согласные. Класс может быть включен в класс. Символы ``--`` "
125 "исключают то, что следует за ними"
126
127 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:39
128 msgid "``[\\w--[\\d_]]``"
129 msgstr "``[\\w--[\\d_]]``"
130
131 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:39
132 msgid ""
133 "All letters (including foreign accented characters). Abbreviated classes can"
134 " be used inside a class"
135 msgstr ""
136 "Все буквы (включая иностранные акцентированные символы). Сокращенные классы "
137 "могут использоваться внутри класса"
138
139 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:44
140 msgid "Example::"
141 msgstr "Пример::"
142
143 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:49
144 msgid "Shorthand character classes"
145 msgstr "Сокращенные классы символов"
146
147 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:55
148 msgid "``\\d``"
149 msgstr "\"\\d\""
150
151 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:55
152 msgid "A digit (same as ``[0-9]``)"
153 msgstr "Цифра (то же, что и ``[0-9]``)"
154
155 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:57
156 msgid "``\\D``"
157 msgstr "``\\D``"
158
159 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:57
160 msgid "Any non-numeric character (same as ``[^0-9]``)"
161 msgstr "Любой нецифовой символ (то же, что и ``[^0-9]``)"
162
163 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:59
164 msgid "``\\w``"
165 msgstr "``\\w``"
166
167 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:59
168 msgid ""
169 "An alphanumeric character (``[a-zA-Z0-9]``) including characters with accent"
170 " mark and ligatures"
171 msgstr ""
172 "Буквенно-цифровой символ (``[a-zA-Z0-9]``), включая символы с меткой "
173 "ударения и лигатуры"
174
175 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:62
176 msgid "``\\W``"
177 msgstr "``\\W``"
178
179 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:62
180 msgid "Any “non-word” character"
181 msgstr "Любой “non-word” («несловесный») символ"
182
183 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:64
184 msgid "``\\s``"
185 msgstr "``\\s``"
186
187 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:64
188 msgid "Space, non-breaking space, tab, carriage return"
189 msgstr ""
190 "Space (пробел), non-breaking space (неразрывный пробел), tab (табуляция), "
191 "carriage return (возврат каретки)"
192
193 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:66
194 msgid "``\\S``"
195 msgstr "``\\S``"
196
197 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:66
198 msgid "Any “non-whitespace” character"
199 msgstr "Любой символ «без пробелов»"
200
201 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:68
202 msgid "``.``"
203 msgstr "``.``"
204
205 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:68
206 msgid ""
207 "Any character except newline. Use the “dot all” checkbox or the ``(?s)`` "
208 "regexp modifier to include the newline character."
209 msgstr ""
210 "Любой символ кроме новой строки. Используйте флажок «dot all» или "
211 "модификатор regexp ``(?s)``, чтобы включить символ новой строки."
212
213 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:73
214 msgid "The quantifiers"
215 msgstr "Квантификаторы"
216
217 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:76
218 msgid "**Quantifier**"
219 msgstr "**Квантификатор**"
220
221 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:76
222 msgid "**Number of occurrences of the expression preceding the quantifier**"
223 msgstr "**Количество вхождений выражения, предшествующего квантификатору**"
224
225 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:79
226 msgid "``?``"
227 msgstr "``?``"
228
229 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:79
230 msgid "0 or 1 occurrence of the expression. Same as ``{0,1}``"
231 msgstr "0 или 1 повторение регулярного выражения. Эквивалентно ``{0,1}``."
232
233 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:81
234 msgid "``+``"
235 msgstr "``+``"
236
237 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:81
238 msgid "1 or more occurrences of the expression. Same as ``{1,}``"
239 msgstr ""
240 "Одно или более повторение регулярного выражения. Эквивалентно ``{1,}``."
241
242 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:83
243 msgid "``*``"
244 msgstr "``*``"
245
246 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:83
247 msgid "0, 1 or more occurrences of the expression. Same as ``{0,}``"
248 msgstr ""
249 "Любое - 0, 1 или более - количество повторений регулярного выражения. "
250 "Эквивалентно ``{0,}``."
251
252 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:85
253 msgid "``{n}``"
254 msgstr "``{n}``"
255
256 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:85
257 msgid "Exactly n occurrences of the expression"
258 msgstr "Ровно n повторений регулярного выражения."
259
260 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:87
261 msgid "``{min,max}``"
262 msgstr "``{min,max}``"
263
264 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:87
265 msgid "Number of occurrences between the minimum and maximum values included"
266 msgstr ""
267 "Количество повторений регулярного выражения, не менее min раз и не более max"
268 " раз."
269
270 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:89
271 msgid "``{min,}``"
272 msgstr "``{min,}``"
273
274 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:89
275 msgid "Number of occurrences between the minimum value included and infinity"
276 msgstr ""
277 "Количество вхождений между включенным минимальным значением и бесконечностью"
278
279 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:91
280 msgid "``{,max}``"
281 msgstr "``{,max}``"
282
283 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:91
284 msgid "Number of occurrences between 0 and the maximum value included"
285 msgstr "Количество вхождений между 0 и включенным максимальным значением"
286
287 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:97
288 msgid "Greed"
289 msgstr "Жадность"
290
291 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:99
292 msgid ""
293 "By default, with quantifiers, the regular expression engine is greedy: it "
294 "extends the selection as much as possible. This often causes surprises, at "
295 "first. ``?`` follows a quantifier to make it lazy. Avoid putting two in the "
296 "same expression, the result can be unpredictable."
297 msgstr ""
298 "По умолчанию в квантификаторах механизм регулярных выражений является "
299 "жадным: он максимально расширяет выбор. Поначалу это часто вызывает "
300 "сюрпризы. ``? `` следует за квантификатором, чтобы сделать его ленивым. "
301 "Старайтесь не ставить два в одном выражении, результат может быть "
302 "непредсказуемым."
303
304 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:104
305 msgid ""
306 "Beware of nesting quantifiers, for example, the pattern ``(a*)*``, as it "
307 "exponentially increases processing time."
308 msgstr ""
309 "Остерегайтесь вложенных квантификаторов, напр., шаблона ``(a*)*``, поскольку"
310 " он экспоненциально увеличивает время обработки."
311
312 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:108
313 msgid "Alternation"
314 msgstr "Перечисление"
315
316 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:110
317 msgid ""
318 "The ``|`` character in a regular expression is a logical ``OR``. It means "
319 "that either the preceding or the following expression can match."
320 msgstr ""
321 "Символ ``|`` в регулярном выражении соответствует логическому ``ИЛИ`` "
322 "(``OR``). Т. е. могут совпадать либо предыдущее, либо последующее выражения."
323
324 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:114
325 msgid "Exclusion"
326 msgstr "Исключение"
327
328 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:116
329 msgid "Method 1"
330 msgstr "Метод 1"
331
332 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:118
333 msgid "``pattern_to_exclude(*SKIP)(*FAIL)|pattern_to_select``"
334 msgstr "``шаблон_исключения(*SKIP)(*FAIL)|шаблон_для_поиска``"
335
336 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:120
337 msgid "Example:"
338 msgstr "Пример:"
339
340 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:122
341 msgid "``\"Blabla\"(*SKIP)(*FAIL)|Blabla``"
342 msgstr "``\"Blabla\"(*SKIP)(*FAIL)|Blabla``"
343
344 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:124
345 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:132
346 msgid ""
347 "selects Blabla, in the strings Blabla or \"Blabla or Blabla\", but not in "
348 "\"Blabla\"."
349 msgstr ""
350 "выбирает Blabla, в строках Blabla или «Blabla или Blabla», но не в «Blabla»."
351
352 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:126
353 msgid "Method 2"
354 msgstr "Метод 2"
355
356 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:128
357 msgid "``pattern_to_exclude\\K|(pattern_to_select)``"
358 msgstr "``шаблон_для_исключения\\K|(шаблон_для_отбора)``"
359
360 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:130
361 msgid "``\"Blabla\"\\K|(Blabla)``"
362 msgstr "``\"Blabla\"\\K|(Blabla)``"
363
364 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:135
365 msgid "Anchors"
366 msgstr "Якоря"
367
368 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:137
369 msgid ""
370 "An anchor is a way to match a logical location in a string, rather than a "
371 "character. The most useful anchors for text processing are:"
372 msgstr ""
373 "Якорь - это способ сопоставления логического расположения в строке, а не "
374 "символа. Наиболее полезными якорями для обработки текста являются:"
375
376 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:140
377 msgid "``\\b``"
378 msgstr "``\\b``"
379
380 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:141
381 msgid ""
382 "Designates a word boundary, i.e. a transition from space to non-space "
383 "character. For example, you can use ``\\bsurd`` to match ``the surd`` but "
384 "not ``absurd``."
385 msgstr ""
386 "Обозначает границу слова, то есть переход от пробела к непропробельному "
387 "символу. Напр., вы можете использовать ``\\bsurd`` для сопоставления с "
388 "``surd``, но не ``absurd``."
389
390 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:145
391 msgid "``^``"
392 msgstr "``^``"
393
394 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:146
395 msgid "Matches the start of a line (in multi-line mode, which is the default)"
396 msgstr ""
397 "Соответствует началу строки (в многострочном режиме, который используется по"
398 " умолчанию)"
399
400 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:149
401 msgid "``$``"
402 msgstr "``$``"
403
404 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:150
405 msgid "Matches the end of a line (in multi-line mode, which is the default)"
406 msgstr ""
407 "Соответствует концу строки (в многострочном режиме, который используется по "
408 "умолчанию)"
409
410 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:152
411 msgid "``\\K``"
412 msgstr "``\\K``"
413
414 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:153
415 msgid ""
416 "Resets the start position of the selection to its position in the pattern. "
417 "Some regexp engines (but not calibre) do not allow lookbehind of variable "
418 "length, especially with quantifiers. When you can use ``\\K`` with these "
419 "engines, it also allows you to get rid of this limit by writing the "
420 "equivalent of a positive lookbehind of variable length."
421 msgstr ""
422 "Сбрасывает начальную позицию выделения в его позицию в шаблоне. Некоторые "
423 "движки регулярных выражений (но не calibre) не позволяют просматривать "
424 "данные переменной длины, особенно с квантификаторами. Когда вы можете "
425 "использовать ``\\K`` с этими движками, это также позволяет вам избавиться от"
426 " этого предела, написав эквивалент положительного взгляда позади длины "
427 "переменной."
428
429 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:160
430 msgid "Groups"
431 msgstr "Группы"
432
433 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:162
434 msgid "``(expression)``"
435 msgstr "``(выражение)``"
436
437 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:163
438 msgid ""
439 "Capturing group, which stores the selection and can be recalled later in the"
440 " *search* or *replace* patterns with ``\\n``, where ``n`` is the sequence "
441 "number of the capturing group (starting at 1 in reading order)"
442 msgstr ""
443 "Группа захвата, которая хранит выбор и может быть вызвана позже в шаблонах "
444 "*search* или *replace* на ``\\n``, где `` n`` - порядковый номер группы "
445 "захвата (начиная с 1 в порядке чтения)"
446
447 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:167
448 msgid "``(?:expression)``"
449 msgstr "``(?:выражение)``"
450
451 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:168
452 msgid "Group that does not capture the selection"
453 msgstr "Группа, которая не захватывает выбор"
454
455 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:170
456 msgid "``(?>expression)``"
457 msgstr "``(?>expression)``"
458
459 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:171
460 msgid ""
461 "Atomic Group: As soon as the expression is satisfied, the regexp engine "
462 "passes, and if the rest of the pattern fails, it will not backtrack to try "
463 "other combinations with the expression. Atomic groups do not capture."
464 msgstr ""
465 "Атомная группа: как только выражение удовлетворено, обработчик регулярных "
466 "выражений проходит, и если остальная часть шаблона завершится неудачно, он "
467 "не будет возвращаться, чтобы попробовать другие комбинации с выражением. "
468 "Атомные группы не захватывают."
469
470 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:176
471 msgid "``(?|expression)``"
472 msgstr "``(?|expression)``"
473
474 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:177
475 msgid ""
476 "Branch reset group: the branches of the alternations included in the "
477 "expression share the same group numbers"
478 msgstr ""
479 "Группа сброса ветвей: ветви чередований, включенные в выражение, имеют "
480 "одинаковые номера групп"
481
482 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:180
483 msgid "``(?<name>expression)``"
484 msgstr "``(?<name>expression)``"
485
486 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:181
487 msgid ""
488 "Group named “name”. The selection can be recalled later in the *search* "
489 "pattern by ``(?P=name)`` and in the *replace* by ``\\g<name>``. Two "
490 "different groups can use the same name."
491 msgstr ""
492 "Группа под названием «имя». Выбор может быть вызван позже в шаблоне *search*"
493 " с помощью ``(?P=name)`` и в *replace* на ``\\g<name>``. Две разные группы "
494 "могут использовать одно и то же имя."
495
496 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:187
497 msgid "Lookarounds"
498 msgstr "Взгляды по сторонам"
499
500 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:190
501 msgid "**Lookaround**"
502 msgstr "**Взгляд по сторонам**"
503
504 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:190
505 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:241
506 msgid "**Meaning**"
507 msgstr "**Смысл**"
508
509 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:193
510 msgid "``?=``"
511 msgstr "``?=``"
512
513 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:193
514 msgid "Positive lookahead (to be placed after the selection)"
515 msgstr "Позитивный lookahead (взгляд вперёд) (будет размещен после выделения)"
516
517 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:196
518 msgid "``?!``"
519 msgstr "``?!``"
520
521 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:196
522 msgid "Negative lookahead (to be placed after the selection)"
523 msgstr "Негативный lookahead (взгляд вперёд) (ставится после выделения)"
524
525 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:199
526 msgid "``?<=``"
527 msgstr "``?<=``"
528
529 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:199
530 msgid "Positive lookbehind (to be placed before the selection)"
531 msgstr "Позитивный lookbehind (взгляд назад) (ставится перед выделением)"
532
533 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:202
534 msgid "``?<!``"
535 msgstr "``?<!``"
536
537 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:202
538 msgid "Negative lookbehind (to be placed before the selection)"
539 msgstr "Негативный lookbehind (взгляд назад) (ставится перед выделением)"
540
541 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:206
542 msgid ""
543 "Lookaheads and lookbehinds do not consume characters, they are zero length "
544 "and do not capture. They are atomic groups: as soon as the assertion is "
545 "satisfied, the regexp engine passes, and if the rest of the pattern fails, "
546 "it will not backtrack inside the lookaround to try other combinations."
547 msgstr ""
548 "Lookaheads (взгляды вперед) и lookbehinds (взгляды назад) не потребляют "
549 "символы, они имеют нулевую длину и не захватывают. Они являются атомарными "
550 "группами: как только утверждение выполнено, движок регулярных выражений "
551 "проходит, и если не удастся остальная часть шаблона, он не будет "
552 "возвращаться в обход, чтобы попробовать другие комбинации."
553
554 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:211
555 msgid ""
556 "When looking for multiple matches in a string, at the starting position of "
557 "each match attempt, a lookbehind can inspect the characters before the "
558 "current position. Therefore, on the string 123, the pattern ``(?<=\\d)\\d`` "
559 "(a digit preceded by a digit) should, in theory, select 2 and 3. On the "
560 "other hand, ``\\d\\K\\d`` can only select 2, because the starting position "
561 "after the first selection is immediately before 3, and there are not enough "
562 "digits for a second match. Similarly, ``\\d(\\d)`` only captures 2. In "
563 "calibre's regexp engine practice, the positive lookbehind behaves in the "
564 "same way, and selects only 2, contrary to theory."
565 msgstr ""
566 "При поиске нескольких совпадений в строке, в начальной позиции каждой "
567 "попытки сопоставления, взгляд назад может проверять символы перед текущей "
568 "позицией. Поэтому в строке 123 шаблон ``(?<=\\D)\\d`` (цифра, перед которой "
569 "стоит цифра) должен теоретически выбрать 2 и 3. С другой стороны, "
570 "``\\d\\K\\d`` может выбрать только 2, потому что начальная позиция после "
571 "первого выбора находится непосредственно перед 3, и для второго совпадения "
572 "недостаточно цифр. Точно так же ``\\d(\\d)`` только захватывает 2. В "
573 "практике движка регулярных выражений calibre положительный взгляд назад "
574 "(positive lookbehind) ведёт себя таким же образом и выбирает только 2, "
575 "вопреки теории."
576
577 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:221
578 msgid ""
579 "Groups can be placed inside lookarounds, but capture is rarely useful. "
580 "Nevertheless, if it is useful, it will be necessary to be very careful in "
581 "the use of a quantifier in a lookbehind: the greed associated with the "
582 "absence of backtracking can give a surprising capture. For this reason, use "
583 "``\\K`` rather than a positive lookbehind when you have a quantifier (or "
584 "worse, several) in a capturing group of the positive lookbehind."
585 msgstr ""
586 "Группы могут быть помещены в lookarounds (взгляды по сторонам), но захват "
587 "редко полезен. Тем не менее, если это будет полезно, необходимо будет быть "
588 "очень осторожным при использовании квантификатора во взгляде назад: "
589 "жадность, связанная с отсутствием обратного отслеживания, может дать "
590 "неожиданный захват. По этой причине, используйте ``\\K``, а не положительный"
591 " взгляд назад (positive lookbehind), когда у вас есть квантификатор (или, "
592 "что еще хуже, несколько) в группе захвата положительного взгляда назад "
593 "(positive lookbehind)."
594
595 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:228
596 msgid "Example of negative lookahead:"
597 msgstr "Пример негативного взгляда вперёд:"
598
599 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:230
600 msgid "``(?![^<>{}]*[>}])``"
601 msgstr "``(?![^<>{}]*[>}])``"
602
603 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:232
604 msgid ""
605 "Placed at the end of the pattern prevents selecting within a tag or a style "
606 "embedded in the file."
607 msgstr ""
608 "Размещение в конце шаблона предотвращает выбор внутри тега или стиля, "
609 "встроенного в файл."
610
611 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:234
612 msgid ""
613 "Whenever possible, it is always better to \"anchor\" the lookarounds, to "
614 "reduce the number of steps necessary to obtain the result."
615 msgstr ""
616 "Когда бы ни было возможно, всегда лучше «закрепить» обходные пути, чтобы "
617 "уменьшить количество шагов, необходимых для получения результата."
618
619 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:238
620 msgid "Recursion"
621 msgstr "Рекурсия"
622
623 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:244
624 msgid "``(?R)``"
625 msgstr "``(?R)``"
626
627 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:244
628 msgid "Recursion of the entire pattern"
629 msgstr "Рекурсия всего шаблона"
630
631 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:247
632 msgid "``(?1)``"
633 msgstr "``(?1)``"
634
635 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:247
636 msgid ""
637 "Recursion of the only pattern of the numbered capturing group, here group 1"
638 msgstr ""
639 "Рекурсия единственного шаблона нумерованной группы захвата, здесь группа 1"
640
641 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:251
642 msgid ""
643 "Recursion is calling oneself. This is useful for balanced queries, such as "
644 "quoted strings, which can contain embedded quoted strings. Thus, if during "
645 "the processing of a string between double quotation marks, we encounter the "
646 "beginning of a new string between double quotation marks, well we know how "
647 "to do, and we call ourselves. Then we have a pattern like::"
648 msgstr ""
649 "Рекурсия вызывает себя. Это полезно для сбалансированных запросов, таких как"
650 " строки в кавычках, которые могут содержать встроенные строки в кавычках. "
651 "Таким образом, если во время обработки строки между двойными кавычками мы "
652 "сталкиваемся с началом новой строки между двойными кавычками, мы хорошо "
653 "знаем, как это сделать, и мы вызываем себя. Тогда у нас есть шаблон, вроде::"
654
655 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:259
656 msgid ""
657 "To select a string between double quotation marks without stopping on an "
658 "embedded string::"
659 msgstr ""
660 "Чтобы выбрать строку между двойными кавычками, не останавливаясь на "
661 "встроенной строке::"
662
663 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:263
664 msgid ""
665 "This template can also be used to modify pairs of tags that can be embedded,"
666 " such as ``<div>`` tags."
667 msgstr ""
668 "Этот шаблон также можно использовать для изменения пар тегов, которые могут "
669 "быть встроены, таких как теги ``<div>``."
670
671 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:268
672 msgid "Special characters"
673 msgstr "Специальные символы"
674
675 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:271
676 msgid "**Character**"
677 msgstr "**Символ**"
678
679 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:274
680 msgid "``\\t``"
681 msgstr "``\\t``"
682
683 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:274
684 msgid "tabulation"
685 msgstr "табуляция"
686
687 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:277
688 msgid "``\\n``"
689 msgstr "``\\n``"
690
691 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:277
692 msgid "line break"
693 msgstr "Разрыв строки"
694
695 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:280
696 msgid "``\\x20``"
697 msgstr "``\\x20``"
698
699 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:280
700 msgid "(breakable) space"
701 msgstr "(разрываемый) пробел"
702
703 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:283
704 msgid "``\\xa0``"
705 msgstr "``\\xa0``"
706
707 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:283
708 msgid "no-break space"
709 msgstr "неразрываемый пробел"
710
711 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:288
712 msgid "Meta-characters"
713 msgstr "Мета-символы"
714
715 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:290
716 msgid ""
717 "Meta-characters are those that have a special meaning for the regexp engine."
718 " Of these, twelve must be preceded by an escape character, the backslash "
719 "(``\\``), to lose their special meaning and become a regular character "
720 "again::"
721 msgstr ""
722 "Мета-символы - это те, которые имеют особое значение для движка регулярных "
723 "выражений. Из них двенадцати должен предшествовать escape-символ, обратная "
724 "косая черта (``\\``), чтобы потерять свое особое значение и снова стать "
725 "обычным символом::"
726
727 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:296
728 msgid ""
729 "Seven other meta-characters do not need to be preceded by a backslash (but "
730 "can be without any other consequence)::"
731 msgstr ""
732 "Семи другим метасимволам не обязательно должен предшествовать обратный слеш "
733 "(но он может быть без каких-либо других последствий):"
734
735 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:302
736 msgid ""
737 "Special characters lose their status if they are used inside a class "
738 "(between brackets ``[]``). The closing bracket and the dash have a special "
739 "status in a class. Outside the class, the dash is a simple literal, the "
740 "closing bracket remains a meta-character."
741 msgstr ""
742 "Специальные символы теряют свой статус, если они используются внутри класса "
743 "(между скобками ``[]``). Закрывающая скобка и тире имеют особый статус в "
744 "классе. Вне класса тире - это простой литерал, закрывающая скобка остается "
745 "метасимволом."
746
747 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:307
748 msgid ""
749 "The slash (/) and the number sign (or hash character) (#) are not meta-"
750 "characters, they don’t need to be escaped."
751 msgstr ""
752 "Косая черта (/) и знак числа (или хэш-символ) (#) не являются метасимволами,"
753 " их не нужно экранировать."
754
755 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:310
756 msgid ""
757 "In some tools, like regex101.com with the Python engine, double quotes have "
758 "the special status of separator, and must be escaped, or the options "
759 "changed. This is not the case in the editor of calibre."
760 msgstr ""
761 "В некоторых инструментах, таких как regex101.com с движком Python, двойные "
762 "кавычки имеют специальный статус разделителя и должны быть экранированы, "
763 "либо параметры изменены. Это не так в редакторе calibre."
764
765 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:315
766 msgid "Modes"
767 msgstr "Режимы"
768
769 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:317
770 msgid "``(?s)``"
771 msgstr "``(?s)``"
772
773 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:318
774 msgid "Causes the dot (``.``) to match newline characters as well"
775 msgstr "Заставляет точку (``.``) совпадать с символами новой строки"
776
777 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:320
778 msgid "``(?m)``"
779 msgstr "``(?m)``"
780
781 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:321
782 msgid ""
783 "Makes the ``^`` and ``$`` anchors match the start and end of lines instead "
784 "of the start and end of the entire string."
785 msgstr ""
786 "Заставляет якоря ``^`` и ``$`` соответствовать началу и концу строк вместо "
787 "начала и конца всей строки."