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