Debian Codegraph @

translations/manual/ja/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 # 9e07209270d73636b184c60f51a5f7ab_6c2ca72, 2018
8 # EbXpJ6bp <[email protected]>, 2026
9 # Yuka Kachi, 2026
10 # akihiko tanae (tanaeakihiko), 2026
11 #
12 #, fuzzy
13 msgid ""
14 msgstr ""
15 "Project-Id-Version: calibre 9.3.1\n"
16 "Report-Msgid-Bugs-To: \n"
17 "POT-Creation-Date: 2026-02-25 10:21+0000\n"
18 "PO-Revision-Date: 2017-12-15 03:02+0000\n"
19 "Last-Translator: akihiko tanae (tanaeakihiko), 2026\n"
20 "Language-Team: Japanese (https://app.transifex.com/calibre/teams/19337/ja/)\n"
21 "MIME-Version: 1.0\n"
22 "Content-Type: text/plain; charset=UTF-8\n"
23 "Content-Transfer-Encoding: 8bit\n"
24 "Language: ja\n"
25 "Plural-Forms: nplurals=1; plural=0;\n"
26
27 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:2
28 msgid "Quick reference for regexp syntax"
29 msgstr "正規表現の構文のクイックリファレンス"
30
31 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:4
32 msgid ""
33 "This checklist summarizes the most commonly used/hard to remember parts of "
34 "the regexp engine available in most parts of calibre."
35 msgstr ""
36 "このチェックリストには、calibre のほとんどのパーツで利用可能な正規表現エンジンのうち、最も一般的に利用される/覚えにくいものをまとめてあります。"
37
38 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:10
39 msgid "Contents"
40 msgstr "目次"
41
42 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:13
43 msgid "Character classes"
44 msgstr "文字クラス"
45
46 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:15
47 msgid ""
48 "Character classes are useful to represent different groups of characters, "
49 "succinctly."
50 msgstr "文字クラスは異なる文字グループを簡潔に表現するのに役立ちます。"
51
52 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:18
53 msgid "Examples:"
54 msgstr "例:"
55
56 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:21
57 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:52
58 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:241
59 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:271
60 msgid "**Representation**"
61 msgstr "**表現**"
62
63 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:21
64 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:52
65 msgid "**Class**"
66 msgstr "**クラス**"
67
68 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:24
69 msgid "``[a-z]``"
70 msgstr "``[a-z]``"
71
72 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:24
73 msgid ""
74 "Lowercase letters. Does not include characters with accent mark and "
75 "ligatures"
76 msgstr "小文字。アクセント記号や合字を含むことはできません"
77
78 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:27
79 msgid "``[a-z0-9]``"
80 msgstr "``[a-z0-9]``"
81
82 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:27
83 msgid "Lowercase letters from a to z or numbers from 0 to 9"
84 msgstr "小文字の英字 a から z もしくは数字 0 から 9"
85
86 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:29
87 msgid "``[A-Za-z-]``"
88 msgstr "``[A-Za-z-]``"
89
90 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:29
91 msgid ""
92 "Uppercase or lowercase letters, or a dash. To include the dash in a class, "
93 "you must put it at the beginning or at the end so as not to confuse it with "
94 "the hyphen that specifies a range of characters"
95 msgstr ""
96 "大文字、小文字、ダッシュ。クラスにダッシュを含めるには、文字の範囲を指定するハイフンと混合させないように、先頭または後尾でダッシュを入れる必要があります。"
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 "10進数字を除いた任意の文字。クラスの先頭に (^) を置くと、そのクラス (補完クラス) の文字を除外します"
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
118 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:39
119 msgid "``[\\w--[\\d_]]``"
120 msgstr "``[\\w--[\\d_]]``"
121
122 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:39
123 msgid ""
124 "All letters (including foreign accented characters). Abbreviated classes can"
125 " be used inside a class"
126 msgstr "すべての文字 (外国のアクセント文字を含む)。クラス内で文字クラスの略記法を使用できます。"
127
128 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:44
129 msgid "Example::"
130 msgstr "例::"
131
132 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:49
133 msgid "Shorthand character classes"
134 msgstr "文字クラスの略記法"
135
136 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:55
137 msgid "``\\d``"
138 msgstr "``\\d``"
139
140 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:55
141 msgid "A digit (same as ``[0-9]``)"
142 msgstr "10 進数字 (``[0-9]`` と同等)"
143
144 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:57
145 msgid "``\\D``"
146 msgstr "``\\D``"
147
148 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:57
149 msgid "Any non-numeric character (same as ``[^0-9]``)"
150 msgstr "非 10 進数字 (``[^0-9]`` と同等)"
151
152 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:59
153 msgid "``\\w``"
154 msgstr "``\\w``"
155
156 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:59
157 msgid ""
158 "An alphanumeric character (``[a-zA-Z0-9]``) including characters with accent"
159 " mark and ligatures"
160 msgstr "単語構成文字 (``[a-zA-Z0-9]``) アクセント記号や合字を含む"
161
162 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:62
163 msgid "``\\W``"
164 msgstr "``\\W``"
165
166 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:62
167 msgid "Any “non-word” character"
168 msgstr "非単語構成文字"
169
170 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:64
171 msgid "``\\s``"
172 msgstr "``\\s``"
173
174 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:64
175 msgid "Space, non-breaking space, tab, carriage return"
176 msgstr "空白、ノンブレークスペース、タブ、改行"
177
178 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:66
179 msgid "``\\S``"
180 msgstr "``\\S``"
181
182 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:66
183 msgid "Any “non-whitespace” character"
184 msgstr "非空白文字"
185
186 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:68
187 msgid "``.``"
188 msgstr "``.``"
189
190 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:68
191 msgid ""
192 "Any character except newline. Use the “dot all” checkbox or the ``(?s)`` "
193 "regexp modifier to include the newline character."
194 msgstr ""
195 "改行を除いた任意の文字。改行文字を含めるには「すべてドット」のチェックボックスを使用するか、正規表現修飾子 ``(?s)`` を使用してください。"
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 "expression の 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 "expression の 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 "expression の 0 回以上の出現。``{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 "expression のちょうど 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 "出現の回数が min 以上 max 以下"
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 以上 max 以下"
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 " ``?`` をつけると、怠惰になります。同じ式の中に 2 つを同時に入れることは避けてください。予測できない結果となる可能性があります。"
278
279 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:104
280 msgid ""
281 "Beware of nesting quantifiers, for example, the pattern ``(a*)*``, as it "
282 "exponentially increases processing time."
283 msgstr ""
284 "量指定子を入れ子にしないよう気を付けてください。たとえばパターン ``(a*)*`` のような使い方をすると、処理時間が指数関数的に増加してしまいます。"
285
286 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:108
287 msgid "Alternation"
288 msgstr "選択子"
289
290 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:110
291 msgid ""
292 "The ``|`` character in a regular expression is a logical ``OR``. It means "
293 "that either the preceding or the following expression can match."
294 msgstr "正規表現の中の ``|`` 文字は、論理 ``OR`` です。これは前の式または後ろの式のいずれかがマッチすればよいという意味になります。"
295
296 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:114
297 msgid "Exclusion"
298 msgstr "除外"
299
300 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:116
301 msgid "Method 1"
302 msgstr "方法 1"
303
304 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:118
305 msgid "``pattern_to_exclude(*SKIP)(*FAIL)|pattern_to_select``"
306 msgstr "``pattern_to_exclude(*SKIP)(*FAIL)|pattern_to_select``"
307
308 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:120
309 msgid "Example:"
310 msgstr "例:"
311
312 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:122
313 msgid "``\"Blabla\"(*SKIP)(*FAIL)|Blabla``"
314 msgstr "``\"Blabla\"(*SKIP)(*FAIL)|Blabla``"
315
316 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:124
317 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:132
318 msgid ""
319 "selects Blabla, in the strings Blabla or \"Blabla or Blabla\", but not in "
320 "\"Blabla\"."
321 msgstr ""
322 "これは Blabla または \"Blabla or Blabla\" の文字列中の Blabla を選択しますが、\"Blabla\" "
323 "では選択しません。"
324
325 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:126
326 msgid "Method 2"
327 msgstr "方法 2"
328
329 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:128
330 msgid "``pattern_to_exclude\\K|(pattern_to_select)``"
331 msgstr "``pattern_to_exclude\\K|(pattern_to_select)``"
332
333 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:130
334 msgid "``\"Blabla\"\\K|(Blabla)``"
335 msgstr "``\"Blabla\"\\K|(Blabla)``"
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 "``\\b``"
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 "単語の区切り、すなわち空白から非空白への遷移。たとえば ``\\bsurd`` は ``the surd`` にマッチしますが ``absurd`` "
358 "にはマッチしません。"
359
360 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:145
361 msgid "``^``"
362 msgstr "``^``"
363
364 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:146
365 msgid "Matches the start of a line (in multi-line mode, which is the default)"
366 msgstr "行の先頭にマッチ (複数行モードの場合。デフォルトは複数行モード)"
367
368 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:149
369 msgid "``$``"
370 msgstr "``$``"
371
372 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:150
373 msgid "Matches the end of a line (in multi-line mode, which is the default)"
374 msgstr "行の末尾にマッチ (複数行モードの場合。デフォルトは複数行モード)"
375
376 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:152
377 msgid "``\\K``"
378 msgstr "``\\K``"
379
380 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:153
381 msgid ""
382 "Resets the start position of the selection to its position in the pattern. "
383 "Some regexp engines (but not calibre) do not allow lookbehind of variable "
384 "length, especially with quantifiers. When you can use ``\\K`` with these "
385 "engines, it also allows you to get rid of this limit by writing the "
386 "equivalent of a positive lookbehind of variable length."
387 msgstr ""
388 "選択範囲の開始位置をパターン内のその位置にリセットします。一部の正規表現エンジンでは (ただし calibre は違います) "
389 "特に量指定子を指定した場合に、可変長の後読みが許されていません。このようなエンジンで ``\\K`` "
390 "が利用できる場合には、可変長の肯定後読みと同等のものを書くことによってこの制限を取り除けます。"
391
392 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:160
393 msgid "Groups"
394 msgstr "グループ"
395
396 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:162
397 msgid "``(expression)``"
398 msgstr "``(expression)``"
399
400 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:163
401 msgid ""
402 "Capturing group, which stores the selection and can be recalled later in the"
403 " *search* or *replace* patterns with ``\\n``, where ``n`` is the sequence "
404 "number of the capturing group (starting at 1 in reading order)"
405 msgstr ""
406 "グループをキャプチャします。グループには選択範囲が格納され、後で *検索* や *置換* のパターンとして ``\\n`` で参照できます。n "
407 "はキャプチャしたグループの連番 (1 から順に読込み順) です"
408
409 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:167
410 msgid "``(?:expression)``"
411 msgstr "``(?:expression)``"
412
413 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:168
414 msgid "Group that does not capture the selection"
415 msgstr "選択範囲をキャプチャしないグループ化"
416
417 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:170
418 msgid "``(?>expression)``"
419 msgstr "``(?>expression)``"
420
421 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:171
422 msgid ""
423 "Atomic Group: As soon as the expression is satisfied, the regexp engine "
424 "passes, and if the rest of the pattern fails, it will not backtrack to try "
425 "other combinations with the expression. Atomic groups do not capture."
426 msgstr ""
427 "アトミックグループ: expression が満足したら即座に正規表現エンジンが処理を抜け、もし残りのパターンが失敗した場合には、その "
428 "expression の他の組み合わせを試すためのバックトラッキングを行いません。"
429
430 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:176
431 msgid "``(?|expression)``"
432 msgstr "``(?|expression)``"
433
434 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:177
435 msgid ""
436 "Branch reset group: the branches of the alternations included in the "
437 "expression share the same group numbers"
438 msgstr "ブランチリセットグループ: expression に含まれる代替のブランチが同じグループ番号を共有します"
439
440 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:180
441 msgid "``(?<name>expression)``"
442 msgstr "``(?<name>expression)``"
443
444 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:181
445 msgid ""
446 "Group named “name”. The selection can be recalled later in the *search* "
447 "pattern by ``(?P=name)`` and in the *replace* by ``\\g<name>``. Two "
448 "different groups can use the same name."
449 msgstr ""
450 "“name” という名前のグループ。選択範囲は後で *検索* パターンからは ``(?P=name)`` として、 *置換* では "
451 "``\\g<name>`` として呼び出すことができます。2 つの別のグループが同じ名前を使用できます。"
452
453 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:187
454 msgid "Lookarounds"
455 msgstr "前後読み"
456
457 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:190
458 msgid "**Lookaround**"
459 msgstr "**前後読み**"
460
461 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:190
462 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:241
463 msgid "**Meaning**"
464 msgstr "**意味**"
465
466 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:193
467 msgid "``?=``"
468 msgstr "``?=``"
469
470 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:193
471 msgid "Positive lookahead (to be placed after the selection)"
472 msgstr "肯定先読み (選択部分の前の位置)"
473
474 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:196
475 msgid "``?!``"
476 msgstr "``?!``"
477
478 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:196
479 msgid "Negative lookahead (to be placed after the selection)"
480 msgstr "否定先読み (選択部分の後ろの位置)"
481
482 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:199
483 msgid "``?<=``"
484 msgstr "``?<=``"
485
486 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:199
487 msgid "Positive lookbehind (to be placed before the selection)"
488 msgstr "肯定後読み (選択部分の後ろの位置)"
489
490 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:202
491 msgid "``?<!``"
492 msgstr "``?<!``"
493
494 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:202
495 msgid "Negative lookbehind (to be placed before the selection)"
496 msgstr "否定後読み (選択部分の前の位置)"
497
498 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:206
499 msgid ""
500 "Lookaheads and lookbehinds do not consume characters, they are zero length "
501 "and do not capture. They are atomic groups: as soon as the assertion is "
502 "satisfied, the regexp engine passes, and if the rest of the pattern fails, "
503 "it will not backtrack inside the lookaround to try other combinations."
504 msgstr ""
505 "先読みと後読みは文字を消費せず、長さゼロでキャプチャされません。どちらもアトミックグループです。条件が満たされると即座に正規表現エンジンは処理を抜け、もし残りのパターンが失敗した場合には、その他の組み合わせを試すためのバックトラッキングを行いません。"
506
507 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:211
508 msgid ""
509 "When looking for multiple matches in a string, at the starting position of "
510 "each match attempt, a lookbehind can inspect the characters before the "
511 "current position. Therefore, on the string 123, the pattern ``(?<=\\d)\\d`` "
512 "(a digit preceded by a digit) should, in theory, select 2 and 3. On the "
513 "other hand, ``\\d\\K\\d`` can only select 2, because the starting position "
514 "after the first selection is immediately before 3, and there are not enough "
515 "digits for a second match. Similarly, ``\\d(\\d)`` only captures 2. In "
516 "calibre's regexp engine practice, the positive lookbehind behaves in the "
517 "same way, and selects only 2, contrary to theory."
518 msgstr ""
519 "文字列の中で複数のマッチを検索するとき、それぞれのマッチを試行する最初の位置で、後読みは現在の位置の前にある文字を検査できます。したがって 123 "
520 "という文字列で、``(?<=\\d)\\d`` というパターン (前に数字がついている数字) は、理論的には 2 と 3 "
521 "を選択するはずです。一方、``\\d\\K\\d`` は 2 しか選択できません。なぜなら最初の選択の後の開始位置は 3 の直前であり、2 "
522 "番目のマッチに十分な長さの数字がないためです。同様に、``\\d(\\d)`` は 2 しかキャプチャしません。calibre "
523 "の正規表現エンジンのやり方では、肯定後読みも同じように動作し、理論に反して 2 しか選択しません。"
524
525 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:221
526 msgid ""
527 "Groups can be placed inside lookarounds, but capture is rarely useful. "
528 "Nevertheless, if it is useful, it will be necessary to be very careful in "
529 "the use of a quantifier in a lookbehind: the greed associated with the "
530 "absence of backtracking can give a surprising capture. For this reason, use "
531 "``\\K`` rather than a positive lookbehind when you have a quantifier (or "
532 "worse, several) in a capturing group of the positive lookbehind."
533 msgstr ""
534 "前後読みの内側にグループを配置することも可能ですが、キャプチャが役に立つことは滅多にありません。それでももし有用である場合には、後読みの中での量指定子の使用にはとても慎重になるべきです。バックトラックがないことに関連付けられた貪欲さは、びっくりするようなキャプチャをもたらすことがあります。このような理由から、肯定後読みのキャプチャグループの中に量指定子がある場合には、肯定後読みではなく"
535 " ``\\K`` を使用してください。"
536
537 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:228
538 msgid "Example of negative lookahead:"
539 msgstr "否定先読みの例:"
540
541 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:230
542 msgid "``(?![^<>{}]*[>}])``"
543 msgstr "``(?![^<>{}]*[>}])``"
544
545 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:232
546 msgid ""
547 "Placed at the end of the pattern prevents selecting within a tag or a style "
548 "embedded in the file."
549 msgstr "パターンの最後に配置すると、ファイルに埋め込まれたタグまたはスタイル内での選択が抑止されます。"
550
551 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:234
552 msgid ""
553 "Whenever possible, it is always better to \"anchor\" the lookarounds, to "
554 "reduce the number of steps necessary to obtain the result."
555 msgstr "可能な限り、結果を得るのに必要なステップ数を減らすために、後読みを「アンカー」する方がよいでしょう。"
556
557 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:238
558 msgid "Recursion"
559 msgstr "再帰"
560
561 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:244
562 msgid "``(?R)``"
563 msgstr "``(?R)``"
564
565 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:244
566 msgid "Recursion of the entire pattern"
567 msgstr "パターン全体の再帰"
568
569 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:247
570 msgid "``(?1)``"
571 msgstr "``(?1)``"
572
573 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:247
574 msgid ""
575 "Recursion of the only pattern of the numbered capturing group, here group 1"
576 msgstr "番号で指定されたキャプチャグループのパターンのみの再帰。ここではグループ 1"
577
578 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:251
579 msgid ""
580 "Recursion is calling oneself. This is useful for balanced queries, such as "
581 "quoted strings, which can contain embedded quoted strings. Thus, if during "
582 "the processing of a string between double quotation marks, we encounter the "
583 "beginning of a new string between double quotation marks, well we know how "
584 "to do, and we call ourselves. Then we have a pattern like::"
585 msgstr ""
586 "再帰とは自分自身を呼び出すことです。これは均衡のあるクエリで役に立ちます。たとえば引用符で囲まれた文字列を埋めこむことのできる引用符つきの文字列などです。このように、二重引用符に囲まれた文字列の処理中に、二重引用符で囲まれた新しい文字列に当たってしまったとき、どうすればよいかもうお分かりでしょうが、自分自身を呼び出すのです。そうするとこのようなパターンになります::"
587
588 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:259
589 msgid ""
590 "To select a string between double quotation marks without stopping on an "
591 "embedded string::"
592 msgstr "二重引用符で囲まれた文字列を、その中に埋めこまれた文字列で止まらずに選択するには、次のようにします::"
593
594 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:263
595 msgid ""
596 "This template can also be used to modify pairs of tags that can be embedded,"
597 " such as ``<div>`` tags."
598 msgstr "このテンプレートは、入れ子にできる一組みのタグ、たとえば `<div>`` タグの変更にも使用できます。"
599
600 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:268
601 msgid "Special characters"
602 msgstr "特殊文字"
603
604 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:271
605 msgid "**Character**"
606 msgstr "**文字**"
607
608 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:274
609 msgid "``\\t``"
610 msgstr "``\\t``"
611
612 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:274
613 msgid "tabulation"
614 msgstr "タブ文字"
615
616 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:277
617 msgid "``\\n``"
618 msgstr "``\\n``"
619
620 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:277
621 msgid "line break"
622 msgstr "改行"
623
624 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:280
625 msgid "``\\x20``"
626 msgstr "``\\x20``"
627
628 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:280
629 msgid "(breakable) space"
630 msgstr "(改行可能な) 空白文字"
631
632 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:283
633 msgid "``\\xa0``"
634 msgstr "``\\xa0``"
635
636 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:283
637 msgid "no-break space"
638 msgstr "ノーブレークスペース"
639
640 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:288
641 msgid "Meta-characters"
642 msgstr "メタ文字"
643
644 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:290
645 msgid ""
646 "Meta-characters are those that have a special meaning for the regexp engine."
647 " Of these, twelve must be preceded by an escape character, the backslash "
648 "(``\\``), to lose their special meaning and become a regular character "
649 "again::"
650 msgstr ""
651 "メタ文字は、正規表現エンジンにとって特別な意味を持つ文字です。このうち次の 12 "
652 "個の文字は、特殊文字として使用せずに通常の文字として扱うためには前にエスケープ文字、すなわちバックスラッシュ (``\\``) をつける必要があります。"
653
654 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:296
655 msgid ""
656 "Seven other meta-characters do not need to be preceded by a backslash (but "
657 "can be without any other consequence)::"
658 msgstr "残りの 7 個の特殊文字はバックスラッシュを前に付ける必要はありません (ただし、つけないと結果が変わる可能性があります)"
659
660 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:302
661 msgid ""
662 "Special characters lose their status if they are used inside a class "
663 "(between brackets ``[]``). The closing bracket and the dash have a special "
664 "status in a class. Outside the class, the dash is a simple literal, the "
665 "closing bracket remains a meta-character."
666 msgstr ""
667 "特殊文字はクラス内 (角カッコ ``[]`` の内側) "
668 "では特殊文字ではなくなります。閉じカッコとダッシュはクラス内で特殊文字となります。クラスの外側では、ダッシュは単なる文字となりますが、閉じカッコはメタ文字のままです。"
669
670 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:307
671 msgid ""
672 "The slash (/) and the number sign (or hash character) (#) are not meta-"
673 "characters, they don’t need to be escaped."
674 msgstr "スラッシュ (/) および 番号記号 (またはハッシュ文字) (#) はメタ文字ではないため、エスケープする必要はありません。"
675
676 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:310
677 msgid ""
678 "In some tools, like regex101.com with the Python engine, double quotes have "
679 "the special status of separator, and must be escaped, or the options "
680 "changed. This is not the case in the editor of calibre."
681 msgstr ""
682 "Python エンジンを搭載した regex101.com "
683 "のような一部のツールでは、二重引用符は特別な意味を持つ区切り文字のため、エスケープするかオプションを変更する必要があります。calibre "
684 "のエディタでは、その必要はありません。"
685
686 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:315
687 msgid "Modes"
688 msgstr "モード"
689
690 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:317
691 msgid "``(?s)``"
692 msgstr "``(?s)``"
693
694 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:318
695 msgid "Causes the dot (``.``) to match newline characters as well"
696 msgstr "ドット (``.``) に改行文字もマッチさせます"
697
698 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:320
699 msgid "``(?m)``"
700 msgstr "``(?m)``"
701
702 #: ../../../__w/calibre/calibre/manual/regexp_quick_reference.rst:321
703 msgid ""
704 "Makes the ``^`` and ``$`` anchors match the start and end of lines instead "
705 "of the start and end of the entire string."
706 msgstr "``^`` および ``$`` アンカーを文字列全体の先頭と末尾ではなく、行の先頭と末尾にマッチさせます。"