Debian Codegraph @

translations/manual/zh_HK/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 # Helen Kwok <[email protected]>, 2018
8 # Junle Wang, 2022
9 # Hsiu-Ming Chang <[email protected]>, 2022
10 # Hoilc <[email protected]>, 2022
11 # tony shen <[email protected]>, 2026
12 # Dingyuan Wang <[email protected]>, 2026
13 # Pengcheng Guo <[email protected]>, 2026
14 #
15 #, fuzzy
16 msgid ""
17 msgstr ""
18 "Project-Id-Version: calibre 9.3.0\n"
19 "Report-Msgid-Bugs-To: \n"
20 "POT-Creation-Date: 2026-02-21 03:43+0000\n"
21 "PO-Revision-Date: 2017-12-15 03:02+0000\n"
22 "Last-Translator: Pengcheng Guo <[email protected]>, 2026\n"
23 "Language-Team: Chinese (Hong Kong) (https://app.transifex.com/calibre/teams/19337/zh_HK/)\n"
24 "MIME-Version: 1.0\n"
25 "Content-Type: text/plain; charset=UTF-8\n"
26 "Content-Transfer-Encoding: 8bit\n"
27 "Language: zh_HK\n"
28 "Plural-Forms: nplurals=1; plural=0;\n"
29
30 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:2
31 msgid "Quick reference for regexp syntax"
32 msgstr "正規表示式語法的快速參考"
33
34 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:4
35 msgid ""
36 "This checklist summarizes the most commonly used/hard to remember parts of "
37 "the regexp engine available in most parts of calibre."
38 msgstr ""
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 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:18
55 msgid "Examples:"
56 msgstr "範例:"
57
58 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:21
59 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:52
60 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:241
61 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:271
62 msgid "**Representation**"
63 msgstr "**表示**"
64
65 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:21
66 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:52
67 msgid "**Class**"
68 msgstr "**類別**"
69
70 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:24
71 msgid "``[a-z]``"
72 msgstr "``[a-z]``"
73
74 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:24
75 msgid ""
76 "Lowercase letters. Does not include characters with accent mark and "
77 "ligatures"
78 msgstr "小寫字母。不包括帶重音符號和連字的字元"
79
80 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:27
81 msgid "``[a-z0-9]``"
82 msgstr "``[a-z0-9]``"
83
84 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:27
85 msgid "Lowercase letters from a to z or numbers from 0 to 9"
86 msgstr "a 到 z 的小寫字母或 0 到 9 的數字"
87
88 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:29
89 msgid "``[A-Za-z-]``"
90 msgstr "``[A-Za-z-]``"
91
92 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:29
93 msgid ""
94 "Uppercase or lowercase letters, or a dash. To include the dash in a class, "
95 "you must put it at the beginning or at the end so as not to confuse it with "
96 "the hyphen that specifies a range of characters"
97 msgstr "大寫或小寫字母或連接號。要將連接號包含在類別中,您必須將其放在開頭或結尾處,以免將其與指定一系列字元的連字號混淆"
98
99 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:33
100 msgid "``[^0-9]``"
101 msgstr "``[^0-9]``"
102
103 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:33
104 msgid ""
105 "Any character except a digit. The caret (^) placed at the beginning of the "
106 "class excludes the characters of the class (complemented class)"
107 msgstr "除数字之外的任意字符。放在字符集合开头的“^”符号表示取除指定字符之外的集合(补集)。"
108
109 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:36
110 msgid "``[[a-z]--[aeiouy]]``"
111 msgstr "``[[a-z]--[aeiouy]]``"
112
113 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:36
114 msgid ""
115 "The lowercase consonants. A class can be included in a class. The characters"
116 " ``--`` exclude what follows them"
117 msgstr "小写元音字母。字符集合可以包含另一个字符集合。``--`` 符号表示排除它之后的集合"
118
119 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:39
120 msgid "``[\\w--[\\d_]]``"
121 msgstr "``[\\w--[\\d_]]``"
122
123 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:39
124 msgid ""
125 "All letters (including foreign accented characters). Abbreviated classes can"
126 " be used inside a class"
127 msgstr "所有字母(包括带重音符号的外语字母)。字符集合中可以使用缩写集合"
128
129 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:44
130 msgid "Example::"
131 msgstr "例如::"
132
133 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:49
134 msgid "Shorthand character classes"
135 msgstr "缩写字符集合"
136
137 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:55
138 msgid "``\\d``"
139 msgstr ""
140
141 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:55
142 msgid "A digit (same as ``[0-9]``)"
143 msgstr "一个数字(同 ``[0-9]``)"
144
145 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:57
146 msgid "``\\D``"
147 msgstr "``\\D``"
148
149 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:57
150 msgid "Any non-numeric character (same as ``[^0-9]``)"
151 msgstr "非数字字符(同 ``[^0-9]``)"
152
153 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:59
154 msgid "``\\w``"
155 msgstr ""
156
157 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:59
158 msgid ""
159 "An alphanumeric character (``[a-zA-Z0-9]``) including characters with accent"
160 " mark and ligatures"
161 msgstr "一种字母数字字符(``[a-zA-Z0-9]```),包括带重音符号和连字的字符"
162
163 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:62
164 msgid "``\\W``"
165 msgstr "``\\W``"
166
167 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:62
168 msgid "Any “non-word” character"
169 msgstr "任何“非单词”字符"
170
171 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:64
172 msgid "``\\s``"
173 msgstr ""
174
175 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:64
176 msgid "Space, non-breaking space, tab, carriage return"
177 msgstr ""
178
179 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:66
180 msgid "``\\S``"
181 msgstr "``\\S``"
182
183 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:66
184 msgid "Any “non-whitespace” character"
185 msgstr "任何“非空白”字符"
186
187 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:68
188 msgid "``.``"
189 msgstr "``.``"
190
191 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:68
192 msgid ""
193 "Any character except newline. Use the “dot all” checkbox or the ``(?s)`` "
194 "regexp modifier to include the newline character."
195 msgstr ""
196
197 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:73
198 msgid "The quantifiers"
199 msgstr "量词"
200
201 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:76
202 msgid "**Quantifier**"
203 msgstr "**量词**"
204
205 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:76
206 msgid "**Number of occurrences of the expression preceding the quantifier**"
207 msgstr "**量词前表达式出现次数**"
208
209 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:79
210 msgid "``?``"
211 msgstr "``?``"
212
213 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:79
214 msgid "0 or 1 occurrence of the expression. Same as ``{0,1}``"
215 msgstr "表达式出现0或1次。与``{0,1}``相同"
216
217 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:81
218 msgid "``+``"
219 msgstr "``+``"
220
221 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:81
222 msgid "1 or more occurrences of the expression. Same as ``{1,}``"
223 msgstr "表达式出现1次或多次。与``{1,}``相同"
224
225 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:83
226 msgid "``*``"
227 msgstr "``*``"
228
229 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:83
230 msgid "0, 1 or more occurrences of the expression. Same as ``{0,}``"
231 msgstr "表达式出现0次、1次或更多次。与``{0,}``相同"
232
233 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:85
234 msgid "``{n}``"
235 msgstr "``{n}``"
236
237 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:85
238 msgid "Exactly n occurrences of the expression"
239 msgstr "该表达式恰好出现n次"
240
241 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:87
242 msgid "``{min,max}``"
243 msgstr "``{min,max}``"
244
245 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:87
246 msgid "Number of occurrences between the minimum and maximum values included"
247 msgstr "包含的最小值和最大值之间的出现次数"
248
249 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:89
250 msgid "``{min,}``"
251 msgstr "``{min,}``"
252
253 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:89
254 msgid "Number of occurrences between the minimum value included and infinity"
255 msgstr ""
256
257 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:91
258 msgid "``{,max}``"
259 msgstr "``{,max}``"
260
261 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:91
262 msgid "Number of occurrences between 0 and the maximum value included"
263 msgstr "介于0和包含的最大值之间的出现次数"
264
265 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:97
266 msgid "Greed"
267 msgstr ""
268
269 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:99
270 msgid ""
271 "By default, with quantifiers, the regular expression engine is greedy: it "
272 "extends the selection as much as possible. This often causes surprises, at "
273 "first. ``?`` follows a quantifier to make it lazy. Avoid putting two in the "
274 "same expression, the result can be unpredictable."
275 msgstr ""
276
277 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:104
278 msgid ""
279 "Beware of nesting quantifiers, for example, the pattern ``(a*)*``, as it "
280 "exponentially increases processing time."
281 msgstr ""
282
283 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:108
284 msgid "Alternation"
285 msgstr "交替"
286
287 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:110
288 msgid ""
289 "The ``|`` character in a regular expression is a logical ``OR``. It means "
290 "that either the preceding or the following expression can match."
291 msgstr ""
292
293 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:114
294 msgid "Exclusion"
295 msgstr "不包括在内"
296
297 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:116
298 msgid "Method 1"
299 msgstr "方法 1"
300
301 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:118
302 msgid "``pattern_to_exclude(*SKIP)(*FAIL)|pattern_to_select``"
303 msgstr ""
304
305 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:120
306 msgid "Example:"
307 msgstr "例如:"
308
309 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:122
310 msgid "``\"Blabla\"(*SKIP)(*FAIL)|Blabla``"
311 msgstr ""
312
313 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:124
314 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:132
315 msgid ""
316 "selects Blabla, in the strings Blabla or \"Blabla or Blabla\", but not in "
317 "\"Blabla\"."
318 msgstr ""
319
320 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:126
321 msgid "Method 2"
322 msgstr "方法 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 ""
331
332 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:135
333 msgid "Anchors"
334 msgstr "锚"
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 ""
385
386 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:162
387 msgid "``(expression)``"
388 msgstr ""
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 ""
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 ""
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 ""
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 ""
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 "特殊字符"
578
579 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:271
580 msgid "**Character**"
581 msgstr "**字符**"
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 ""
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 "换行符"
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 "(可间断的)空格"
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 "不间断空格"
614
615 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:288
616 msgid "Meta-characters"
617 msgstr "元字符"
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 ""
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 ""