| 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 |
# Manuela Silva <[email protected]>, 2018 |
| 8 |
# Paulo Pereira <[email protected]>, 2026 |
| 9 |
# Rui <[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: Rui <[email protected]>, 2026\n" |
| 19 |
"Language-Team: Portuguese (https://app.transifex.com/calibre/teams/19337/pt/)\n" |
| 20 |
"MIME-Version: 1.0\n" |
| 21 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 22 |
"Content-Transfer-Encoding: 8bit\n" |
| 23 |
"Language: pt\n" |
| 24 |
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" |
| 25 |
|
| 26 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:2 |
| 27 |
msgid "Quick reference for regexp syntax" |
| 28 |
msgstr "Referência rápida para a sintaxe de expressões regulares" |
| 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 "Conteúdos" |
| 39 |
|
| 40 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:13 |
| 41 |
msgid "Character classes" |
| 42 |
msgstr "Classes de caracteres" |
| 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 "Exemplos:" |
| 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 "**Representação**" |
| 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 "**Classe**" |
| 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 "Letras minúsculas. Não inclui caracteres com acentos ou ligaturas" |
| 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 "Letras minúsculas de a a z ou números de 0 a 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 |
|
| 95 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:33 |
| 96 |
msgid "``[^0-9]``" |
| 97 |
msgstr "``[^0-9]``" |
| 98 |
|
| 99 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:33 |
| 100 |
msgid "" |
| 101 |
"Any character except a digit. The caret (^) placed at the beginning of the " |
| 102 |
"class excludes the characters of the class (complemented class)" |
| 103 |
msgstr "" |
| 104 |
|
| 105 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:36 |
| 106 |
msgid "``[[a-z]--[aeiouy]]``" |
| 107 |
msgstr "``[[a-z]--[aeiouy]]``" |
| 108 |
|
| 109 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:36 |
| 110 |
msgid "" |
| 111 |
"The lowercase consonants. A class can be included in a class. The characters" |
| 112 |
" ``--`` exclude what follows them" |
| 113 |
msgstr "" |
| 114 |
|
| 115 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:39 |
| 116 |
msgid "``[\\w--[\\d_]]``" |
| 117 |
msgstr "``[\\w--[\\d_]]``" |
| 118 |
|
| 119 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:39 |
| 120 |
msgid "" |
| 121 |
"All letters (including foreign accented characters). Abbreviated classes can" |
| 122 |
" be used inside a class" |
| 123 |
msgstr "" |
| 124 |
|
| 125 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:44 |
| 126 |
msgid "Example::" |
| 127 |
msgstr "Exemplo:" |
| 128 |
|
| 129 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:49 |
| 130 |
msgid "Shorthand character classes" |
| 131 |
msgstr "" |
| 132 |
|
| 133 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:55 |
| 134 |
msgid "``\\d``" |
| 135 |
msgstr "" |
| 136 |
|
| 137 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:55 |
| 138 |
msgid "A digit (same as ``[0-9]``)" |
| 139 |
msgstr "Um dígito (o mesmo que ``[0-9]``)" |
| 140 |
|
| 141 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:57 |
| 142 |
msgid "``\\D``" |
| 143 |
msgstr "``\\D``" |
| 144 |
|
| 145 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:57 |
| 146 |
msgid "Any non-numeric character (same as ``[^0-9]``)" |
| 147 |
msgstr "Qualquer carácter não-alfanumérico (o mesmo que ``[^0-9]``)" |
| 148 |
|
| 149 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:59 |
| 150 |
msgid "``\\w``" |
| 151 |
msgstr "" |
| 152 |
|
| 153 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:59 |
| 154 |
msgid "" |
| 155 |
"An alphanumeric character (``[a-zA-Z0-9]``) including characters with accent" |
| 156 |
" mark and ligatures" |
| 157 |
msgstr "" |
| 158 |
"Um carácter alfanumérico (``[a-zA-Z0-9]``) incluindo caracteres com acentos " |
| 159 |
"e ligaturas" |
| 160 |
|
| 161 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:62 |
| 162 |
msgid "``\\W``" |
| 163 |
msgstr "``\\W``" |
| 164 |
|
| 165 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:62 |
| 166 |
msgid "Any “non-word” character" |
| 167 |
msgstr "Qualquer carácter “não-palavra”" |
| 168 |
|
| 169 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:64 |
| 170 |
msgid "``\\s``" |
| 171 |
msgstr "" |
| 172 |
|
| 173 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:64 |
| 174 |
msgid "Space, non-breaking space, tab, carriage return" |
| 175 |
msgstr "" |
| 176 |
|
| 177 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:66 |
| 178 |
msgid "``\\S``" |
| 179 |
msgstr "``\\S``" |
| 180 |
|
| 181 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:66 |
| 182 |
msgid "Any “non-whitespace” character" |
| 183 |
msgstr "" |
| 184 |
|
| 185 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:68 |
| 186 |
msgid "``.``" |
| 187 |
msgstr "``.``" |
| 188 |
|
| 189 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:68 |
| 190 |
msgid "" |
| 191 |
"Any character except newline. Use the “dot all” checkbox or the ``(?s)`` " |
| 192 |
"regexp modifier to include the newline character." |
| 193 |
msgstr "" |
| 194 |
|
| 195 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:73 |
| 196 |
msgid "The quantifiers" |
| 197 |
msgstr "Os quantificadores" |
| 198 |
|
| 199 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:76 |
| 200 |
msgid "**Quantifier**" |
| 201 |
msgstr "**Quantificador**" |
| 202 |
|
| 203 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:76 |
| 204 |
msgid "**Number of occurrences of the expression preceding the quantifier**" |
| 205 |
msgstr "" |
| 206 |
|
| 207 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:79 |
| 208 |
msgid "``?``" |
| 209 |
msgstr "``?``" |
| 210 |
|
| 211 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:79 |
| 212 |
msgid "0 or 1 occurrence of the expression. Same as ``{0,1}``" |
| 213 |
msgstr "0 ou 1 ocorrência da expressão. O mesmo que ``{0,1}``" |
| 214 |
|
| 215 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:81 |
| 216 |
msgid "``+``" |
| 217 |
msgstr "``+``" |
| 218 |
|
| 219 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:81 |
| 220 |
msgid "1 or more occurrences of the expression. Same as ``{1,}``" |
| 221 |
msgstr "1 ou mais ocorrências da expressão. O mesmo que ``{1,}``" |
| 222 |
|
| 223 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:83 |
| 224 |
msgid "``*``" |
| 225 |
msgstr "``*``" |
| 226 |
|
| 227 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:83 |
| 228 |
msgid "0, 1 or more occurrences of the expression. Same as ``{0,}``" |
| 229 |
msgstr "0, 1 ou mais ocorrências da expressão. O mesmo que ``{0,}``" |
| 230 |
|
| 231 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:85 |
| 232 |
msgid "``{n}``" |
| 233 |
msgstr "``{n}``" |
| 234 |
|
| 235 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:85 |
| 236 |
msgid "Exactly n occurrences of the expression" |
| 237 |
msgstr "Exatamente N ocorrências da expressão" |
| 238 |
|
| 239 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:87 |
| 240 |
msgid "``{min,max}``" |
| 241 |
msgstr "``{min,max}``" |
| 242 |
|
| 243 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:87 |
| 244 |
msgid "Number of occurrences between the minimum and maximum values included" |
| 245 |
msgstr "" |
| 246 |
|
| 247 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:89 |
| 248 |
msgid "``{min,}``" |
| 249 |
msgstr "``{min,}``" |
| 250 |
|
| 251 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:89 |
| 252 |
msgid "Number of occurrences between the minimum value included and infinity" |
| 253 |
msgstr "" |
| 254 |
|
| 255 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:91 |
| 256 |
msgid "``{,max}``" |
| 257 |
msgstr "``{,max}``" |
| 258 |
|
| 259 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:91 |
| 260 |
msgid "Number of occurrences between 0 and the maximum value included" |
| 261 |
msgstr "" |
| 262 |
|
| 263 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:97 |
| 264 |
msgid "Greed" |
| 265 |
msgstr "" |
| 266 |
|
| 267 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:99 |
| 268 |
msgid "" |
| 269 |
"By default, with quantifiers, the regular expression engine is greedy: it " |
| 270 |
"extends the selection as much as possible. This often causes surprises, at " |
| 271 |
"first. ``?`` follows a quantifier to make it lazy. Avoid putting two in the " |
| 272 |
"same expression, the result can be unpredictable." |
| 273 |
msgstr "" |
| 274 |
|
| 275 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:104 |
| 276 |
msgid "" |
| 277 |
"Beware of nesting quantifiers, for example, the pattern ``(a*)*``, as it " |
| 278 |
"exponentially increases processing time." |
| 279 |
msgstr "" |
| 280 |
|
| 281 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:108 |
| 282 |
msgid "Alternation" |
| 283 |
msgstr "" |
| 284 |
|
| 285 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:110 |
| 286 |
msgid "" |
| 287 |
"The ``|`` character in a regular expression is a logical ``OR``. It means " |
| 288 |
"that either the preceding or the following expression can match." |
| 289 |
msgstr "" |
| 290 |
|
| 291 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:114 |
| 292 |
msgid "Exclusion" |
| 293 |
msgstr "Exclusão" |
| 294 |
|
| 295 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:116 |
| 296 |
msgid "Method 1" |
| 297 |
msgstr "Método 1" |
| 298 |
|
| 299 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:118 |
| 300 |
msgid "``pattern_to_exclude(*SKIP)(*FAIL)|pattern_to_select``" |
| 301 |
msgstr "" |
| 302 |
|
| 303 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:120 |
| 304 |
msgid "Example:" |
| 305 |
msgstr "Exemplo:" |
| 306 |
|
| 307 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:122 |
| 308 |
msgid "``\"Blabla\"(*SKIP)(*FAIL)|Blabla``" |
| 309 |
msgstr "``\"Blabla\"(*SKIP)(*FAIL)|Blabla``" |
| 310 |
|
| 311 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:124 |
| 312 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:132 |
| 313 |
msgid "" |
| 314 |
"selects Blabla, in the strings Blabla or \"Blabla or Blabla\", but not in " |
| 315 |
"\"Blabla\"." |
| 316 |
msgstr "" |
| 317 |
"seleciona Blabla, nas entradas Blabla ou \"Blabla ou Blabla\", mas não em " |
| 318 |
"\"Blabla\"." |
| 319 |
|
| 320 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:126 |
| 321 |
msgid "Method 2" |
| 322 |
msgstr "Método 2" |
| 323 |
|
| 324 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:128 |
| 325 |
msgid "``pattern_to_exclude\\K|(pattern_to_select)``" |
| 326 |
msgstr "" |
| 327 |
|
| 328 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:130 |
| 329 |
msgid "``\"Blabla\"\\K|(Blabla)``" |
| 330 |
msgstr "``\"Blabla\"\\K|(Blabla)``" |
| 331 |
|
| 332 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:135 |
| 333 |
msgid "Anchors" |
| 334 |
msgstr "Âncoras" |
| 335 |
|
| 336 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:137 |
| 337 |
msgid "" |
| 338 |
"An anchor is a way to match a logical location in a string, rather than a " |
| 339 |
"character. The most useful anchors for text processing are:" |
| 340 |
msgstr "" |
| 341 |
|
| 342 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:140 |
| 343 |
msgid "``\\b``" |
| 344 |
msgstr "``\\b``" |
| 345 |
|
| 346 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:141 |
| 347 |
msgid "" |
| 348 |
"Designates a word boundary, i.e. a transition from space to non-space " |
| 349 |
"character. For example, you can use ``\\bsurd`` to match ``the surd`` but " |
| 350 |
"not ``absurd``." |
| 351 |
msgstr "" |
| 352 |
|
| 353 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:145 |
| 354 |
msgid "``^``" |
| 355 |
msgstr "``^``" |
| 356 |
|
| 357 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:146 |
| 358 |
msgid "Matches the start of a line (in multi-line mode, which is the default)" |
| 359 |
msgstr "" |
| 360 |
|
| 361 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:149 |
| 362 |
msgid "``$``" |
| 363 |
msgstr "``$``" |
| 364 |
|
| 365 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:150 |
| 366 |
msgid "Matches the end of a line (in multi-line mode, which is the default)" |
| 367 |
msgstr "" |
| 368 |
|
| 369 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:152 |
| 370 |
msgid "``\\K``" |
| 371 |
msgstr "``\\K``" |
| 372 |
|
| 373 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:153 |
| 374 |
msgid "" |
| 375 |
"Resets the start position of the selection to its position in the pattern. " |
| 376 |
"Some regexp engines (but not calibre) do not allow lookbehind of variable " |
| 377 |
"length, especially with quantifiers. When you can use ``\\K`` with these " |
| 378 |
"engines, it also allows you to get rid of this limit by writing the " |
| 379 |
"equivalent of a positive lookbehind of variable length." |
| 380 |
msgstr "" |
| 381 |
|
| 382 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:160 |
| 383 |
msgid "Groups" |
| 384 |
msgstr "Grupos" |
| 385 |
|
| 386 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:162 |
| 387 |
msgid "``(expression)``" |
| 388 |
msgstr "``(expressão)``" |
| 389 |
|
| 390 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:163 |
| 391 |
msgid "" |
| 392 |
"Capturing group, which stores the selection and can be recalled later in the" |
| 393 |
" *search* or *replace* patterns with ``\\n``, where ``n`` is the sequence " |
| 394 |
"number of the capturing group (starting at 1 in reading order)" |
| 395 |
msgstr "" |
| 396 |
|
| 397 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:167 |
| 398 |
msgid "``(?:expression)``" |
| 399 |
msgstr "``(?:expression)``" |
| 400 |
|
| 401 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:168 |
| 402 |
msgid "Group that does not capture the selection" |
| 403 |
msgstr "" |
| 404 |
|
| 405 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:170 |
| 406 |
msgid "``(?>expression)``" |
| 407 |
msgstr "``(?>expression)``" |
| 408 |
|
| 409 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:171 |
| 410 |
msgid "" |
| 411 |
"Atomic Group: As soon as the expression is satisfied, the regexp engine " |
| 412 |
"passes, and if the rest of the pattern fails, it will not backtrack to try " |
| 413 |
"other combinations with the expression. Atomic groups do not capture." |
| 414 |
msgstr "" |
| 415 |
|
| 416 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:176 |
| 417 |
msgid "``(?|expression)``" |
| 418 |
msgstr "``(?|expression)``" |
| 419 |
|
| 420 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:177 |
| 421 |
msgid "" |
| 422 |
"Branch reset group: the branches of the alternations included in the " |
| 423 |
"expression share the same group numbers" |
| 424 |
msgstr "" |
| 425 |
|
| 426 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:180 |
| 427 |
msgid "``(?<name>expression)``" |
| 428 |
msgstr "``(?<name>expressão)``" |
| 429 |
|
| 430 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:181 |
| 431 |
msgid "" |
| 432 |
"Group named “name”. The selection can be recalled later in the *search* " |
| 433 |
"pattern by ``(?P=name)`` and in the *replace* by ``\\g<name>``. Two " |
| 434 |
"different groups can use the same name." |
| 435 |
msgstr "" |
| 436 |
|
| 437 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:187 |
| 438 |
msgid "Lookarounds" |
| 439 |
msgstr "" |
| 440 |
|
| 441 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:190 |
| 442 |
msgid "**Lookaround**" |
| 443 |
msgstr "" |
| 444 |
|
| 445 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:190 |
| 446 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:241 |
| 447 |
msgid "**Meaning**" |
| 448 |
msgstr "" |
| 449 |
|
| 450 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:193 |
| 451 |
msgid "``?=``" |
| 452 |
msgstr "``?=``" |
| 453 |
|
| 454 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:193 |
| 455 |
msgid "Positive lookahead (to be placed after the selection)" |
| 456 |
msgstr "" |
| 457 |
|
| 458 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:196 |
| 459 |
msgid "``?!``" |
| 460 |
msgstr "``?!``" |
| 461 |
|
| 462 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:196 |
| 463 |
msgid "Negative lookahead (to be placed after the selection)" |
| 464 |
msgstr "" |
| 465 |
|
| 466 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:199 |
| 467 |
msgid "``?<=``" |
| 468 |
msgstr "``?<=``" |
| 469 |
|
| 470 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:199 |
| 471 |
msgid "Positive lookbehind (to be placed before the selection)" |
| 472 |
msgstr "" |
| 473 |
|
| 474 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:202 |
| 475 |
msgid "``?<!``" |
| 476 |
msgstr "``?<!``" |
| 477 |
|
| 478 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:202 |
| 479 |
msgid "Negative lookbehind (to be placed before the selection)" |
| 480 |
msgstr "" |
| 481 |
|
| 482 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:206 |
| 483 |
msgid "" |
| 484 |
"Lookaheads and lookbehinds do not consume characters, they are zero length " |
| 485 |
"and do not capture. They are atomic groups: as soon as the assertion is " |
| 486 |
"satisfied, the regexp engine passes, and if the rest of the pattern fails, " |
| 487 |
"it will not backtrack inside the lookaround to try other combinations." |
| 488 |
msgstr "" |
| 489 |
|
| 490 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:211 |
| 491 |
msgid "" |
| 492 |
"When looking for multiple matches in a string, at the starting position of " |
| 493 |
"each match attempt, a lookbehind can inspect the characters before the " |
| 494 |
"current position. Therefore, on the string 123, the pattern ``(?<=\\d)\\d`` " |
| 495 |
"(a digit preceded by a digit) should, in theory, select 2 and 3. On the " |
| 496 |
"other hand, ``\\d\\K\\d`` can only select 2, because the starting position " |
| 497 |
"after the first selection is immediately before 3, and there are not enough " |
| 498 |
"digits for a second match. Similarly, ``\\d(\\d)`` only captures 2. In " |
| 499 |
"calibre's regexp engine practice, the positive lookbehind behaves in the " |
| 500 |
"same way, and selects only 2, contrary to theory." |
| 501 |
msgstr "" |
| 502 |
|
| 503 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:221 |
| 504 |
msgid "" |
| 505 |
"Groups can be placed inside lookarounds, but capture is rarely useful. " |
| 506 |
"Nevertheless, if it is useful, it will be necessary to be very careful in " |
| 507 |
"the use of a quantifier in a lookbehind: the greed associated with the " |
| 508 |
"absence of backtracking can give a surprising capture. For this reason, use " |
| 509 |
"``\\K`` rather than a positive lookbehind when you have a quantifier (or " |
| 510 |
"worse, several) in a capturing group of the positive lookbehind." |
| 511 |
msgstr "" |
| 512 |
|
| 513 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:228 |
| 514 |
msgid "Example of negative lookahead:" |
| 515 |
msgstr "" |
| 516 |
|
| 517 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:230 |
| 518 |
msgid "``(?![^<>{}]*[>}])``" |
| 519 |
msgstr "``(?![^<>{}]*[>}])``" |
| 520 |
|
| 521 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:232 |
| 522 |
msgid "" |
| 523 |
"Placed at the end of the pattern prevents selecting within a tag or a style " |
| 524 |
"embedded in the file." |
| 525 |
msgstr "" |
| 526 |
|
| 527 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:234 |
| 528 |
msgid "" |
| 529 |
"Whenever possible, it is always better to \"anchor\" the lookarounds, to " |
| 530 |
"reduce the number of steps necessary to obtain the result." |
| 531 |
msgstr "" |
| 532 |
|
| 533 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:238 |
| 534 |
msgid "Recursion" |
| 535 |
msgstr "" |
| 536 |
|
| 537 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:244 |
| 538 |
msgid "``(?R)``" |
| 539 |
msgstr "``(?R)``" |
| 540 |
|
| 541 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:244 |
| 542 |
msgid "Recursion of the entire pattern" |
| 543 |
msgstr "" |
| 544 |
|
| 545 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:247 |
| 546 |
msgid "``(?1)``" |
| 547 |
msgstr "``(?1)``" |
| 548 |
|
| 549 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:247 |
| 550 |
msgid "" |
| 551 |
"Recursion of the only pattern of the numbered capturing group, here group 1" |
| 552 |
msgstr "" |
| 553 |
|
| 554 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:251 |
| 555 |
msgid "" |
| 556 |
"Recursion is calling oneself. This is useful for balanced queries, such as " |
| 557 |
"quoted strings, which can contain embedded quoted strings. Thus, if during " |
| 558 |
"the processing of a string between double quotation marks, we encounter the " |
| 559 |
"beginning of a new string between double quotation marks, well we know how " |
| 560 |
"to do, and we call ourselves. Then we have a pattern like::" |
| 561 |
msgstr "" |
| 562 |
|
| 563 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:259 |
| 564 |
msgid "" |
| 565 |
"To select a string between double quotation marks without stopping on an " |
| 566 |
"embedded string::" |
| 567 |
msgstr "" |
| 568 |
|
| 569 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:263 |
| 570 |
msgid "" |
| 571 |
"This template can also be used to modify pairs of tags that can be embedded," |
| 572 |
" such as ``<div>`` tags." |
| 573 |
msgstr "" |
| 574 |
|
| 575 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:268 |
| 576 |
msgid "Special characters" |
| 577 |
msgstr "Caracteres especiais" |
| 578 |
|
| 579 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:271 |
| 580 |
msgid "**Character**" |
| 581 |
msgstr "**Carácter**" |
| 582 |
|
| 583 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:274 |
| 584 |
msgid "``\\t``" |
| 585 |
msgstr "``\\t``" |
| 586 |
|
| 587 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:274 |
| 588 |
msgid "tabulation" |
| 589 |
msgstr "tabulação" |
| 590 |
|
| 591 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:277 |
| 592 |
msgid "``\\n``" |
| 593 |
msgstr "``\\n``" |
| 594 |
|
| 595 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:277 |
| 596 |
msgid "line break" |
| 597 |
msgstr "quebra de linha" |
| 598 |
|
| 599 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:280 |
| 600 |
msgid "``\\x20``" |
| 601 |
msgstr "``\\x20``" |
| 602 |
|
| 603 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:280 |
| 604 |
msgid "(breakable) space" |
| 605 |
msgstr "espaço quebrável" |
| 606 |
|
| 607 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:283 |
| 608 |
msgid "``\\xa0``" |
| 609 |
msgstr "``\\xa0``" |
| 610 |
|
| 611 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:283 |
| 612 |
msgid "no-break space" |
| 613 |
msgstr "espaço não-quebrável" |
| 614 |
|
| 615 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:288 |
| 616 |
msgid "Meta-characters" |
| 617 |
msgstr "Meta-caracteres" |
| 618 |
|
| 619 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:290 |
| 620 |
msgid "" |
| 621 |
"Meta-characters are those that have a special meaning for the regexp engine." |
| 622 |
" Of these, twelve must be preceded by an escape character, the backslash " |
| 623 |
"(``\\``), to lose their special meaning and become a regular character " |
| 624 |
"again::" |
| 625 |
msgstr "" |
| 626 |
|
| 627 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:296 |
| 628 |
msgid "" |
| 629 |
"Seven other meta-characters do not need to be preceded by a backslash (but " |
| 630 |
"can be without any other consequence)::" |
| 631 |
msgstr "" |
| 632 |
|
| 633 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:302 |
| 634 |
msgid "" |
| 635 |
"Special characters lose their status if they are used inside a class " |
| 636 |
"(between brackets ``[]``). The closing bracket and the dash have a special " |
| 637 |
"status in a class. Outside the class, the dash is a simple literal, the " |
| 638 |
"closing bracket remains a meta-character." |
| 639 |
msgstr "" |
| 640 |
|
| 641 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:307 |
| 642 |
msgid "" |
| 643 |
"The slash (/) and the number sign (or hash character) (#) are not meta-" |
| 644 |
"characters, they don’t need to be escaped." |
| 645 |
msgstr "" |
| 646 |
|
| 647 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:310 |
| 648 |
msgid "" |
| 649 |
"In some tools, like regex101.com with the Python engine, double quotes have " |
| 650 |
"the special status of separator, and must be escaped, or the options " |
| 651 |
"changed. This is not the case in the editor of calibre." |
| 652 |
msgstr "" |
| 653 |
|
| 654 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:315 |
| 655 |
msgid "Modes" |
| 656 |
msgstr "Modos" |
| 657 |
|
| 658 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:317 |
| 659 |
msgid "``(?s)``" |
| 660 |
msgstr "``(?s)``" |
| 661 |
|
| 662 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:318 |
| 663 |
msgid "Causes the dot (``.``) to match newline characters as well" |
| 664 |
msgstr "" |
| 665 |
|
| 666 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:320 |
| 667 |
msgid "``(?m)``" |
| 668 |
msgstr "``(?m)``" |
| 669 |
|
| 670 |
#: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:321 |
| 671 |
msgid "" |
| 672 |
"Makes the ``^`` and ``$`` anchors match the start and end of lines instead " |
| 673 |
"of the start and end of the entire string." |
| 674 |
msgstr "" |