| 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 |
# Maciej Olko <[email protected]>, 2017 |
| 8 |
# Piotr Parafiniuk <[email protected]>, 2018 |
| 9 |
# Andrzej Symonowicz <[email protected]>, 2026 |
| 10 |
# |
| 11 |
#, fuzzy |
| 12 |
msgid "" |
| 13 |
msgstr "" |
| 14 |
"Project-Id-Version: calibre 9.3.0\n" |
| 15 |
"Report-Msgid-Bugs-To: \n" |
| 16 |
"POT-Creation-Date: 2026-02-21 03:43+0000\n" |
| 17 |
"PO-Revision-Date: 2017-12-15 03:02+0000\n" |
| 18 |
"Last-Translator: Andrzej Symonowicz <[email protected]>, 2026\n" |
| 19 |
"Language-Team: Polish (https://app.transifex.com/calibre/teams/19337/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_quick_reference.rst:2 |
| 27 |
msgid "Quick reference for regexp syntax" |
| 28 |
msgstr "Krótka dokumentacja składni wyrażeń regularnych" |
| 29 |
|
| 30 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:4 |
| 31 |
msgid "" |
| 32 |
"This checklist summarizes the most commonly used/hard to remember parts of " |
| 33 |
"the regexp engine available in most parts of calibre." |
| 34 |
msgstr "" |
| 35 |
|
| 36 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:10 |
| 37 |
msgid "Contents" |
| 38 |
msgstr "Spis treści" |
| 39 |
|
| 40 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:13 |
| 41 |
msgid "Character classes" |
| 42 |
msgstr "Klasy znaków" |
| 43 |
|
| 44 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:15 |
| 45 |
msgid "" |
| 46 |
"Character classes are useful to represent different groups of characters, " |
| 47 |
"succinctly." |
| 48 |
msgstr "" |
| 49 |
|
| 50 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:18 |
| 51 |
msgid "Examples:" |
| 52 |
msgstr "Przykłady:" |
| 53 |
|
| 54 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:21 |
| 55 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:52 |
| 56 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:241 |
| 57 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:271 |
| 58 |
msgid "**Representation**" |
| 59 |
msgstr "**Reprezentacja**" |
| 60 |
|
| 61 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:21 |
| 62 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:52 |
| 63 |
msgid "**Class**" |
| 64 |
msgstr "**Klasa**" |
| 65 |
|
| 66 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:24 |
| 67 |
msgid "``[a-z]``" |
| 68 |
msgstr "``[a-z]``" |
| 69 |
|
| 70 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:24 |
| 71 |
msgid "" |
| 72 |
"Lowercase letters. Does not include characters with accent mark and " |
| 73 |
"ligatures" |
| 74 |
msgstr "Małe litery. Nie zawiera znaków diakrytycznych i ligatur" |
| 75 |
|
| 76 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:27 |
| 77 |
msgid "``[a-z0-9]``" |
| 78 |
msgstr "``[a-z0-9]``" |
| 79 |
|
| 80 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:27 |
| 81 |
msgid "Lowercase letters from a to z or numbers from 0 to 9" |
| 82 |
msgstr "Małe litery od a do z albo cyfry od 0 do 9" |
| 83 |
|
| 84 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:29 |
| 85 |
msgid "``[A-Za-z-]``" |
| 86 |
msgstr "``[A-Za-z-]``" |
| 87 |
|
| 88 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:29 |
| 89 |
msgid "" |
| 90 |
"Uppercase or lowercase letters, or a dash. To include the dash in a class, " |
| 91 |
"you must put it at the beginning or at the end so as not to confuse it with " |
| 92 |
"the hyphen that specifies a range of characters" |
| 93 |
msgstr "" |
| 94 |
"Wielkie lub małe litery, albo myślnik. Żeby umieścić myślnik w klasie, " |
| 95 |
"umieść go na początku lub końcu tak, by nie mylił się ze znakiem łącznika, " |
| 96 |
"który określa zakres znaków." |
| 97 |
|
| 98 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:33 |
| 99 |
msgid "``[^0-9]``" |
| 100 |
msgstr "``[^0-9]``" |
| 101 |
|
| 102 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:33 |
| 103 |
msgid "" |
| 104 |
"Any character except a digit. The caret (^) placed at the beginning of the " |
| 105 |
"class excludes the characters of the class (complemented class)" |
| 106 |
msgstr "" |
| 107 |
|
| 108 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:36 |
| 109 |
msgid "``[[a-z]--[aeiouy]]``" |
| 110 |
msgstr "``[[a-z]--[aeiouy]]``" |
| 111 |
|
| 112 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:36 |
| 113 |
msgid "" |
| 114 |
"The lowercase consonants. A class can be included in a class. The characters" |
| 115 |
" ``--`` exclude what follows them" |
| 116 |
msgstr "" |
| 117 |
"Małe spółgłoski. Klasa może być zawarta w klasie. Znaki ``--`` wykluczają " |
| 118 |
"to, co następuje po nich." |
| 119 |
|
| 120 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:39 |
| 121 |
msgid "``[\\w--[\\d_]]``" |
| 122 |
msgstr "``[\\w--[\\d_]]``" |
| 123 |
|
| 124 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:39 |
| 125 |
msgid "" |
| 126 |
"All letters (including foreign accented characters). Abbreviated classes can" |
| 127 |
" be used inside a class" |
| 128 |
msgstr "" |
| 129 |
"Wszystkie litery (włączając znaki diakrytyczne). Skrócone klasy mogą być " |
| 130 |
"użyte wewnątrz klas." |
| 131 |
|
| 132 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:44 |
| 133 |
msgid "Example::" |
| 134 |
msgstr "Przykład::" |
| 135 |
|
| 136 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:49 |
| 137 |
msgid "Shorthand character classes" |
| 138 |
msgstr "" |
| 139 |
|
| 140 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:55 |
| 141 |
msgid "``\\d``" |
| 142 |
msgstr "" |
| 143 |
|
| 144 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:55 |
| 145 |
msgid "A digit (same as ``[0-9]``)" |
| 146 |
msgstr "Cyfra (to samo co ``[0-9]``)" |
| 147 |
|
| 148 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:57 |
| 149 |
msgid "``\\D``" |
| 150 |
msgstr "``\\D``" |
| 151 |
|
| 152 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:57 |
| 153 |
msgid "Any non-numeric character (same as ``[^0-9]``)" |
| 154 |
msgstr " Każdy znak nie będący cyfrą (to samo co ``[^0-9]``)" |
| 155 |
|
| 156 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:59 |
| 157 |
msgid "``\\w``" |
| 158 |
msgstr "" |
| 159 |
|
| 160 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:59 |
| 161 |
msgid "" |
| 162 |
"An alphanumeric character (``[a-zA-Z0-9]``) including characters with accent" |
| 163 |
" mark and ligatures" |
| 164 |
msgstr "" |
| 165 |
"Znak alfanumeryczny ``[a-zA-Z0-9]``) włączając znaki diakrytyczne i ligatury" |
| 166 |
|
| 167 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:62 |
| 168 |
msgid "``\\W``" |
| 169 |
msgstr "``\\W``" |
| 170 |
|
| 171 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:62 |
| 172 |
msgid "Any “non-word” character" |
| 173 |
msgstr "Każdy znak nie będący “słowem”" |
| 174 |
|
| 175 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:64 |
| 176 |
msgid "``\\s``" |
| 177 |
msgstr "" |
| 178 |
|
| 179 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:64 |
| 180 |
msgid "Space, non-breaking space, tab, carriage return" |
| 181 |
msgstr "" |
| 182 |
|
| 183 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:66 |
| 184 |
msgid "``\\S``" |
| 185 |
msgstr "``\\S``" |
| 186 |
|
| 187 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:66 |
| 188 |
msgid "Any “non-whitespace” character" |
| 189 |
msgstr "" |
| 190 |
|
| 191 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:68 |
| 192 |
msgid "``.``" |
| 193 |
msgstr "``.``" |
| 194 |
|
| 195 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:68 |
| 196 |
msgid "" |
| 197 |
"Any character except newline. Use the “dot all” checkbox or the ``(?s)`` " |
| 198 |
"regexp modifier to include the newline character." |
| 199 |
msgstr "" |
| 200 |
|
| 201 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:73 |
| 202 |
msgid "The quantifiers" |
| 203 |
msgstr "Kwantyfikatory" |
| 204 |
|
| 205 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:76 |
| 206 |
msgid "**Quantifier**" |
| 207 |
msgstr "**Kwantyfikator**" |
| 208 |
|
| 209 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:76 |
| 210 |
msgid "**Number of occurrences of the expression preceding the quantifier**" |
| 211 |
msgstr "**Liczba wystąpień wyrażenia poprzedzającego kwantyfikator**" |
| 212 |
|
| 213 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:79 |
| 214 |
msgid "``?``" |
| 215 |
msgstr "``?``" |
| 216 |
|
| 217 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:79 |
| 218 |
msgid "0 or 1 occurrence of the expression. Same as ``{0,1}``" |
| 219 |
msgstr "0 albo 1 wystąpienie wyrażenia. To samo co ``{0,1}``" |
| 220 |
|
| 221 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:81 |
| 222 |
msgid "``+``" |
| 223 |
msgstr " ``+``" |
| 224 |
|
| 225 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:81 |
| 226 |
msgid "1 or more occurrences of the expression. Same as ``{1,}``" |
| 227 |
msgstr "1 albo więcej wystąpień wyrażenia. To samo co ``{1,}``" |
| 228 |
|
| 229 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:83 |
| 230 |
msgid "``*``" |
| 231 |
msgstr "``*``" |
| 232 |
|
| 233 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:83 |
| 234 |
msgid "0, 1 or more occurrences of the expression. Same as ``{0,}``" |
| 235 |
msgstr "0, 1 albo więcej wystąpień wyrażenia. to samo co ``{0,}``" |
| 236 |
|
| 237 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:85 |
| 238 |
msgid "``{n}``" |
| 239 |
msgstr "``{n}``" |
| 240 |
|
| 241 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:85 |
| 242 |
msgid "Exactly n occurrences of the expression" |
| 243 |
msgstr "Dokładnie n wystąpień wyrażenia." |
| 244 |
|
| 245 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:87 |
| 246 |
msgid "``{min,max}``" |
| 247 |
msgstr " ``{min,max}``" |
| 248 |
|
| 249 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:87 |
| 250 |
msgid "Number of occurrences between the minimum and maximum values included" |
| 251 |
msgstr "" |
| 252 |
"Liczba wystąpień pomiędzy podanymi wartościami minimalną i maksymalną." |
| 253 |
|
| 254 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:89 |
| 255 |
msgid "``{min,}``" |
| 256 |
msgstr " ``{min,}``" |
| 257 |
|
| 258 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:89 |
| 259 |
msgid "Number of occurrences between the minimum value included and infinity" |
| 260 |
msgstr "" |
| 261 |
|
| 262 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:91 |
| 263 |
msgid "``{,max}``" |
| 264 |
msgstr "``{,max}``" |
| 265 |
|
| 266 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:91 |
| 267 |
msgid "Number of occurrences between 0 and the maximum value included" |
| 268 |
msgstr "Liczba wystąpień pomiędzy 0 a podaną wartością maksymalną" |
| 269 |
|
| 270 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:97 |
| 271 |
msgid "Greed" |
| 272 |
msgstr "Chciwość" |
| 273 |
|
| 274 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:99 |
| 275 |
msgid "" |
| 276 |
"By default, with quantifiers, the regular expression engine is greedy: it " |
| 277 |
"extends the selection as much as possible. This often causes surprises, at " |
| 278 |
"first. ``?`` follows a quantifier to make it lazy. Avoid putting two in the " |
| 279 |
"same expression, the result can be unpredictable." |
| 280 |
msgstr "" |
| 281 |
|
| 282 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:104 |
| 283 |
msgid "" |
| 284 |
"Beware of nesting quantifiers, for example, the pattern ``(a*)*``, as it " |
| 285 |
"exponentially increases processing time." |
| 286 |
msgstr "" |
| 287 |
|
| 288 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:108 |
| 289 |
msgid "Alternation" |
| 290 |
msgstr "" |
| 291 |
|
| 292 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:110 |
| 293 |
msgid "" |
| 294 |
"The ``|`` character in a regular expression is a logical ``OR``. It means " |
| 295 |
"that either the preceding or the following expression can match." |
| 296 |
msgstr "" |
| 297 |
|
| 298 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:114 |
| 299 |
msgid "Exclusion" |
| 300 |
msgstr "" |
| 301 |
|
| 302 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:116 |
| 303 |
msgid "Method 1" |
| 304 |
msgstr "" |
| 305 |
|
| 306 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:118 |
| 307 |
msgid "``pattern_to_exclude(*SKIP)(*FAIL)|pattern_to_select``" |
| 308 |
msgstr "" |
| 309 |
|
| 310 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:120 |
| 311 |
msgid "Example:" |
| 312 |
msgstr "" |
| 313 |
|
| 314 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:122 |
| 315 |
msgid "``\"Blabla\"(*SKIP)(*FAIL)|Blabla``" |
| 316 |
msgstr "" |
| 317 |
|
| 318 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:124 |
| 319 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:132 |
| 320 |
msgid "" |
| 321 |
"selects Blabla, in the strings Blabla or \"Blabla or Blabla\", but not in " |
| 322 |
"\"Blabla\"." |
| 323 |
msgstr "" |
| 324 |
|
| 325 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:126 |
| 326 |
msgid "Method 2" |
| 327 |
msgstr "" |
| 328 |
|
| 329 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:128 |
| 330 |
msgid "``pattern_to_exclude\\K|(pattern_to_select)``" |
| 331 |
msgstr "" |
| 332 |
|
| 333 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:130 |
| 334 |
msgid "``\"Blabla\"\\K|(Blabla)``" |
| 335 |
msgstr "" |
| 336 |
|
| 337 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:135 |
| 338 |
msgid "Anchors" |
| 339 |
msgstr "" |
| 340 |
|
| 341 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:137 |
| 342 |
msgid "" |
| 343 |
"An anchor is a way to match a logical location in a string, rather than a " |
| 344 |
"character. The most useful anchors for text processing are:" |
| 345 |
msgstr "" |
| 346 |
|
| 347 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:140 |
| 348 |
msgid "``\\b``" |
| 349 |
msgstr "" |
| 350 |
|
| 351 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:141 |
| 352 |
msgid "" |
| 353 |
"Designates a word boundary, i.e. a transition from space to non-space " |
| 354 |
"character. For example, you can use ``\\bsurd`` to match ``the surd`` but " |
| 355 |
"not ``absurd``." |
| 356 |
msgstr "" |
| 357 |
|
| 358 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:145 |
| 359 |
msgid "``^``" |
| 360 |
msgstr "" |
| 361 |
|
| 362 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:146 |
| 363 |
msgid "Matches the start of a line (in multi-line mode, which is the default)" |
| 364 |
msgstr "" |
| 365 |
|
| 366 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:149 |
| 367 |
msgid "``$``" |
| 368 |
msgstr "" |
| 369 |
|
| 370 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:150 |
| 371 |
msgid "Matches the end of a line (in multi-line mode, which is the default)" |
| 372 |
msgstr "" |
| 373 |
|
| 374 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:152 |
| 375 |
msgid "``\\K``" |
| 376 |
msgstr "" |
| 377 |
|
| 378 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:153 |
| 379 |
msgid "" |
| 380 |
"Resets the start position of the selection to its position in the pattern. " |
| 381 |
"Some regexp engines (but not calibre) do not allow lookbehind of variable " |
| 382 |
"length, especially with quantifiers. When you can use ``\\K`` with these " |
| 383 |
"engines, it also allows you to get rid of this limit by writing the " |
| 384 |
"equivalent of a positive lookbehind of variable length." |
| 385 |
msgstr "" |
| 386 |
|
| 387 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:160 |
| 388 |
msgid "Groups" |
| 389 |
msgstr "" |
| 390 |
|
| 391 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:162 |
| 392 |
msgid "``(expression)``" |
| 393 |
msgstr "" |
| 394 |
|
| 395 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:163 |
| 396 |
msgid "" |
| 397 |
"Capturing group, which stores the selection and can be recalled later in the" |
| 398 |
" *search* or *replace* patterns with ``\\n``, where ``n`` is the sequence " |
| 399 |
"number of the capturing group (starting at 1 in reading order)" |
| 400 |
msgstr "" |
| 401 |
|
| 402 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:167 |
| 403 |
msgid "``(?:expression)``" |
| 404 |
msgstr "" |
| 405 |
|
| 406 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:168 |
| 407 |
msgid "Group that does not capture the selection" |
| 408 |
msgstr "" |
| 409 |
|
| 410 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:170 |
| 411 |
msgid "``(?>expression)``" |
| 412 |
msgstr "" |
| 413 |
|
| 414 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:171 |
| 415 |
msgid "" |
| 416 |
"Atomic Group: As soon as the expression is satisfied, the regexp engine " |
| 417 |
"passes, and if the rest of the pattern fails, it will not backtrack to try " |
| 418 |
"other combinations with the expression. Atomic groups do not capture." |
| 419 |
msgstr "" |
| 420 |
|
| 421 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:176 |
| 422 |
msgid "``(?|expression)``" |
| 423 |
msgstr "" |
| 424 |
|
| 425 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:177 |
| 426 |
msgid "" |
| 427 |
"Branch reset group: the branches of the alternations included in the " |
| 428 |
"expression share the same group numbers" |
| 429 |
msgstr "" |
| 430 |
|
| 431 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:180 |
| 432 |
msgid "``(?<name>expression)``" |
| 433 |
msgstr "" |
| 434 |
|
| 435 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:181 |
| 436 |
msgid "" |
| 437 |
"Group named “name”. The selection can be recalled later in the *search* " |
| 438 |
"pattern by ``(?P=name)`` and in the *replace* by ``\\g<name>``. Two " |
| 439 |
"different groups can use the same name." |
| 440 |
msgstr "" |
| 441 |
|
| 442 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:187 |
| 443 |
msgid "Lookarounds" |
| 444 |
msgstr "" |
| 445 |
|
| 446 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:190 |
| 447 |
msgid "**Lookaround**" |
| 448 |
msgstr "" |
| 449 |
|
| 450 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:190 |
| 451 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:241 |
| 452 |
msgid "**Meaning**" |
| 453 |
msgstr "" |
| 454 |
|
| 455 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:193 |
| 456 |
msgid "``?=``" |
| 457 |
msgstr "" |
| 458 |
|
| 459 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:193 |
| 460 |
msgid "Positive lookahead (to be placed after the selection)" |
| 461 |
msgstr "" |
| 462 |
|
| 463 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:196 |
| 464 |
msgid "``?!``" |
| 465 |
msgstr "" |
| 466 |
|
| 467 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:196 |
| 468 |
msgid "Negative lookahead (to be placed after the selection)" |
| 469 |
msgstr "" |
| 470 |
|
| 471 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:199 |
| 472 |
msgid "``?<=``" |
| 473 |
msgstr "" |
| 474 |
|
| 475 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:199 |
| 476 |
msgid "Positive lookbehind (to be placed before the selection)" |
| 477 |
msgstr "" |
| 478 |
|
| 479 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:202 |
| 480 |
msgid "``?<!``" |
| 481 |
msgstr "" |
| 482 |
|
| 483 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:202 |
| 484 |
msgid "Negative lookbehind (to be placed before the selection)" |
| 485 |
msgstr "" |
| 486 |
|
| 487 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:206 |
| 488 |
msgid "" |
| 489 |
"Lookaheads and lookbehinds do not consume characters, they are zero length " |
| 490 |
"and do not capture. They are atomic groups: as soon as the assertion is " |
| 491 |
"satisfied, the regexp engine passes, and if the rest of the pattern fails, " |
| 492 |
"it will not backtrack inside the lookaround to try other combinations." |
| 493 |
msgstr "" |
| 494 |
|
| 495 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:211 |
| 496 |
msgid "" |
| 497 |
"When looking for multiple matches in a string, at the starting position of " |
| 498 |
"each match attempt, a lookbehind can inspect the characters before the " |
| 499 |
"current position. Therefore, on the string 123, the pattern ``(?<=\\d)\\d`` " |
| 500 |
"(a digit preceded by a digit) should, in theory, select 2 and 3. On the " |
| 501 |
"other hand, ``\\d\\K\\d`` can only select 2, because the starting position " |
| 502 |
"after the first selection is immediately before 3, and there are not enough " |
| 503 |
"digits for a second match. Similarly, ``\\d(\\d)`` only captures 2. In " |
| 504 |
"calibre's regexp engine practice, the positive lookbehind behaves in the " |
| 505 |
"same way, and selects only 2, contrary to theory." |
| 506 |
msgstr "" |
| 507 |
|
| 508 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:221 |
| 509 |
msgid "" |
| 510 |
"Groups can be placed inside lookarounds, but capture is rarely useful. " |
| 511 |
"Nevertheless, if it is useful, it will be necessary to be very careful in " |
| 512 |
"the use of a quantifier in a lookbehind: the greed associated with the " |
| 513 |
"absence of backtracking can give a surprising capture. For this reason, use " |
| 514 |
"``\\K`` rather than a positive lookbehind when you have a quantifier (or " |
| 515 |
"worse, several) in a capturing group of the positive lookbehind." |
| 516 |
msgstr "" |
| 517 |
|
| 518 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:228 |
| 519 |
msgid "Example of negative lookahead:" |
| 520 |
msgstr "" |
| 521 |
|
| 522 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:230 |
| 523 |
msgid "``(?![^<>{}]*[>}])``" |
| 524 |
msgstr "" |
| 525 |
|
| 526 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:232 |
| 527 |
msgid "" |
| 528 |
"Placed at the end of the pattern prevents selecting within a tag or a style " |
| 529 |
"embedded in the file." |
| 530 |
msgstr "" |
| 531 |
|
| 532 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:234 |
| 533 |
msgid "" |
| 534 |
"Whenever possible, it is always better to \"anchor\" the lookarounds, to " |
| 535 |
"reduce the number of steps necessary to obtain the result." |
| 536 |
msgstr "" |
| 537 |
|
| 538 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:238 |
| 539 |
msgid "Recursion" |
| 540 |
msgstr "" |
| 541 |
|
| 542 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:244 |
| 543 |
msgid "``(?R)``" |
| 544 |
msgstr "" |
| 545 |
|
| 546 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:244 |
| 547 |
msgid "Recursion of the entire pattern" |
| 548 |
msgstr "" |
| 549 |
|
| 550 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:247 |
| 551 |
msgid "``(?1)``" |
| 552 |
msgstr "" |
| 553 |
|
| 554 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:247 |
| 555 |
msgid "" |
| 556 |
"Recursion of the only pattern of the numbered capturing group, here group 1" |
| 557 |
msgstr "" |
| 558 |
|
| 559 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:251 |
| 560 |
msgid "" |
| 561 |
"Recursion is calling oneself. This is useful for balanced queries, such as " |
| 562 |
"quoted strings, which can contain embedded quoted strings. Thus, if during " |
| 563 |
"the processing of a string between double quotation marks, we encounter the " |
| 564 |
"beginning of a new string between double quotation marks, well we know how " |
| 565 |
"to do, and we call ourselves. Then we have a pattern like::" |
| 566 |
msgstr "" |
| 567 |
|
| 568 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:259 |
| 569 |
msgid "" |
| 570 |
"To select a string between double quotation marks without stopping on an " |
| 571 |
"embedded string::" |
| 572 |
msgstr "" |
| 573 |
|
| 574 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:263 |
| 575 |
msgid "" |
| 576 |
"This template can also be used to modify pairs of tags that can be embedded," |
| 577 |
" such as ``<div>`` tags." |
| 578 |
msgstr "" |
| 579 |
|
| 580 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:268 |
| 581 |
msgid "Special characters" |
| 582 |
msgstr "" |
| 583 |
|
| 584 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:271 |
| 585 |
msgid "**Character**" |
| 586 |
msgstr "" |
| 587 |
|
| 588 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:274 |
| 589 |
msgid "``\\t``" |
| 590 |
msgstr "" |
| 591 |
|
| 592 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:274 |
| 593 |
msgid "tabulation" |
| 594 |
msgstr "" |
| 595 |
|
| 596 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:277 |
| 597 |
msgid "``\\n``" |
| 598 |
msgstr "" |
| 599 |
|
| 600 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:277 |
| 601 |
msgid "line break" |
| 602 |
msgstr "" |
| 603 |
|
| 604 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:280 |
| 605 |
msgid "``\\x20``" |
| 606 |
msgstr "" |
| 607 |
|
| 608 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:280 |
| 609 |
msgid "(breakable) space" |
| 610 |
msgstr "" |
| 611 |
|
| 612 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:283 |
| 613 |
msgid "``\\xa0``" |
| 614 |
msgstr "" |
| 615 |
|
| 616 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:283 |
| 617 |
msgid "no-break space" |
| 618 |
msgstr "" |
| 619 |
|
| 620 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:288 |
| 621 |
msgid "Meta-characters" |
| 622 |
msgstr "" |
| 623 |
|
| 624 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:290 |
| 625 |
msgid "" |
| 626 |
"Meta-characters are those that have a special meaning for the regexp engine." |
| 627 |
" Of these, twelve must be preceded by an escape character, the backslash " |
| 628 |
"(``\\``), to lose their special meaning and become a regular character " |
| 629 |
"again::" |
| 630 |
msgstr "" |
| 631 |
|
| 632 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:296 |
| 633 |
msgid "" |
| 634 |
"Seven other meta-characters do not need to be preceded by a backslash (but " |
| 635 |
"can be without any other consequence)::" |
| 636 |
msgstr "" |
| 637 |
|
| 638 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:302 |
| 639 |
msgid "" |
| 640 |
"Special characters lose their status if they are used inside a class " |
| 641 |
"(between brackets ``[]``). The closing bracket and the dash have a special " |
| 642 |
"status in a class. Outside the class, the dash is a simple literal, the " |
| 643 |
"closing bracket remains a meta-character." |
| 644 |
msgstr "" |
| 645 |
|
| 646 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:307 |
| 647 |
msgid "" |
| 648 |
"The slash (/) and the number sign (or hash character) (#) are not meta-" |
| 649 |
"characters, they don’t need to be escaped." |
| 650 |
msgstr "" |
| 651 |
|
| 652 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:310 |
| 653 |
msgid "" |
| 654 |
"In some tools, like regex101.com with the Python engine, double quotes have " |
| 655 |
"the special status of separator, and must be escaped, or the options " |
| 656 |
"changed. This is not the case in the editor of calibre." |
| 657 |
msgstr "" |
| 658 |
|
| 659 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:315 |
| 660 |
msgid "Modes" |
| 661 |
msgstr "" |
| 662 |
|
| 663 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:317 |
| 664 |
msgid "``(?s)``" |
| 665 |
msgstr "" |
| 666 |
|
| 667 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:318 |
| 668 |
msgid "Causes the dot (``.``) to match newline characters as well" |
| 669 |
msgstr "" |
| 670 |
|
| 671 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:320 |
| 672 |
msgid "``(?m)``" |
| 673 |
msgstr "" |
| 674 |
|
| 675 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:321 |
| 676 |
msgid "" |
| 677 |
"Makes the ``^`` and ``$`` anchors match the start and end of lines instead " |
| 678 |
"of the start and end of the entire string." |
| 679 |
msgstr "" |