Debian Codegraph @

translations/manual/ja/template_lang.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 #
5 # Translators:
6 # akihiko tanae (tanaeakihiko), 2025-2026
7 # toshi oota <[email protected]>, 2021
8 msgid ""
9 msgstr ""
10 "Project-Id-Version: calibre\n"
11 "Report-Msgid-Bugs-To: \n"
12 "POT-Creation-Date: 2026-02-25 10:21+0000\n"
13 "PO-Revision-Date: 2014-06-17 08:34+0000\n"
14 "Last-Translator: akihiko tanae (tanaeakihiko), 2025-2026\n"
15 "Language-Team: Japanese (http://app.transifex.com/calibre/calibre/language/ja/)\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Language: ja\n"
20 "Plural-Forms: nplurals=1; plural=0;\n"
21
22 #: ../../../__w/calibre/calibre/manual/template_lang.rst:4
23 msgid "The calibre template language"
24 msgstr "calibre テンプレート言語"
25
26 #: ../../../__w/calibre/calibre/manual/template_lang.rst:6
27 msgid ""
28 "The calibre template language is a calibre-specific language used throughout"
29 " calibre for tasks such as specifying file paths, formatting values, and "
30 "computing the value for user-specified columns. Examples:"
31 msgstr "calibre テンプレート言語は、ファイルパスの指定、値の整形、ユーザ指定の列の値の計算などのタスクのために calibre 全体で使用される calibre 固有の言語です。例を挙げると:"
32
33 #: ../../../__w/calibre/calibre/manual/template_lang.rst:8
34 msgid ""
35 "Specify the folder structure and file names when saving files from the "
36 "calibre library to the disk or e-book reader."
37 msgstr "calibre ライブラリからディスクまたは電子書籍リーダにファイルを保存するときに、フォルダ構造とファイル名を指定します。"
38
39 #: ../../../__w/calibre/calibre/manual/template_lang.rst:9
40 msgid "Define rules for adding icons and colors to the calibre book list."
41 msgstr "calibre の本のリストにアイコンと色を追加するためのルールを定義します。"
42
43 #: ../../../__w/calibre/calibre/manual/template_lang.rst:10
44 msgid "Define `virtual columns` that contain data from other columns."
45 msgstr "他の列からのデータを含む `仮想列` を定義します。"
46
47 #: ../../../__w/calibre/calibre/manual/template_lang.rst:11
48 msgid "Advanced library searching."
49 msgstr "高度なライブラリ検索。"
50
51 #: ../../../__w/calibre/calibre/manual/template_lang.rst:12
52 msgid "Advanced metadata search and replace."
53 msgstr "高度なメタデータの検索と置換。"
54
55 #: ../../../__w/calibre/calibre/manual/template_lang.rst:14
56 msgid ""
57 "The language is built around the notion of a `template`, which specifies "
58 "which book metadata to use, computations on that metadata, and how it is to "
59 "be formatted."
60 msgstr "この言語は、使用する本の書誌、その書誌の計算、およびそのフォーマット方法を指定する `テンプレート` の概念に基づいて構築されています。"
61
62 #: ../../../__w/calibre/calibre/manual/template_lang.rst:17
63 msgid "Basic templates"
64 msgstr "基本テンプレート"
65
66 #: ../../../__w/calibre/calibre/manual/template_lang.rst:19
67 msgid ""
68 "A basic template consists of one or more ``template expressions``. A "
69 "``template expression`` consists of text and names in curly brackets "
70 "(``{}``) that is replaced by the corresponding metadata from the book being "
71 "processed. For example, the default template in calibre used for saving "
72 "books to device has 4 ``template expressions``::"
73 msgstr "基本テンプレートは、1つ以上の ``テンプレート式`` で構成されます。 ``テンプレート式`` は、中括弧( ``{}`` )で囲まれたテキストと名前で構成され、処理対象の本の対応する書誌データに置き換えられます。例えば、本をデバイスに保存するために使用されるcalibreのデフォルトテンプレートには、4つの ``テンプレート式`` があります::"
74
75 #: ../../../__w/calibre/calibre/manual/template_lang.rst:23
76 msgid "For the book \"The Foundation\" by \"Isaac Asimov\" the template will become::"
77 msgstr "著者 \"Isaac Asimov” の タイトル \"The Foundation\" という本の場合、テンプレートは以下のようになります:"
78
79 #: ../../../__w/calibre/calibre/manual/template_lang.rst:27
80 msgid ""
81 "The slashes are not ``template expressions`` because they are not in between"
82 " ``{}``. Such text is left where it appears. For example, if the template "
83 "is::"
84 msgstr "中括弧 ``{}`` の中に入っていませんので、スラッシュは ``テンプレート表現`` ではありません。この文字は残って表示されます。例えば、テンプレートが以下だとすると::"
85
86 #: ../../../__w/calibre/calibre/manual/template_lang.rst:31
87 msgid "then for \"The Foundation\" the template produces::"
88 msgstr "本\"The Foundation\" ではテンプレートは次のように生成します::"
89
90 #: ../../../__w/calibre/calibre/manual/template_lang.rst:35
91 msgid ""
92 "A ``template expression`` can access all the metadata available in calibre, "
93 "including custom columns (columns you create yourself), by using a column's "
94 "``lookup name``. To find the lookup name for a `column` (sometimes called "
95 "`fields`), hover your mouse over the column header in calibre's book list. "
96 "Lookup names for custom columns always begin with ``#``. For series type "
97 "columns there is an additional field named ``#lookup name_index`` that is "
98 "the series index for that book in the series. For example, if you have a "
99 "custom series column named ``#myseries``, there will also be a column named "
100 "``#myseries_index``. The standard series column's index is named "
101 "``series_index``."
102 msgstr "``テンプレート表現`` は、列の ``ルックアップ名`` を使用して、カスタム列 (自分で作成した列) を含む、calibre で使用可能なすべての書誌にアクセスできます。`列` (`フィールド` と呼ばれることもあります) のルックアップ名を見つけるには、マウスを calibre の本リストの列ヘッダに合わせます。カスタム列のルックアップ名は常に ``#`` で始まります。シリーズタイプの列の場合、シリーズ内のその本のシリーズインデックスである ``#ルックアップ名_index`` という名前の追加フィールドがあります。たとえば、``#myseries`` という名前のカスタムシリーズ列がある場合、``#myseries_index`` という名前の列もあります。標準のシリーズ列のインデックスの名前は ``series_index`` です。"
103
104 #: ../../../__w/calibre/calibre/manual/template_lang.rst:37
105 msgid "In addition to the standard column based fields, you also can use:"
106 msgstr "標準の列ベースのフィールドに加えて、次のものも使用できます:"
107
108 #: ../../../__w/calibre/calibre/manual/template_lang.rst:39
109 msgid ""
110 "``{formats}`` - A list of formats available in the calibre library for a "
111 "book"
112 msgstr "``{formats}`` - calibre ライブラリで利用可能な本の形式のリスト"
113
114 #: ../../../__w/calibre/calibre/manual/template_lang.rst:40
115 msgid "``{identifiers:select(isbn)}`` - The ISBN of the book"
116 msgstr "``{identifiers:select(isbn)}`` - 本の ISBN"
117
118 #: ../../../__w/calibre/calibre/manual/template_lang.rst:42
119 msgid ""
120 "If the metadata for the field for a given book is not defined then the field"
121 " in the template is replaced by the empty string (``''``). For example, "
122 "consider the following template::"
123 msgstr "特定の本のフィールドの書誌が定義されていない場合、テンプレートのフィールドは空の文字列 (``''``) に置き換えられます。たとえば、次のテンプレートについて考えてみましょう::"
124
125 #: ../../../__w/calibre/calibre/manual/template_lang.rst:46
126 msgid ""
127 "If Asimov's book \"Second Foundation\" is in the series \"Foundation\" then "
128 "the template produces::"
129 msgstr "Asimov の本 \"Second Foundation\" がシリーズ \"Foundation\" に含まれている場合、テンプレートは次のように生成します::"
130
131 #: ../../../__w/calibre/calibre/manual/template_lang.rst:50
132 msgid ""
133 "If a series has not been entered for the book then the template produces::"
134 msgstr "本のシリーズが入力されていない場合、テンプレートは次のように生成します::"
135
136 #: ../../../__w/calibre/calibre/manual/template_lang.rst:54
137 msgid ""
138 "The template processor automatically removes multiple slashes and leading or"
139 " trailing spaces."
140 msgstr "テンプレートプロセッサは、複数のスラッシュと先頭または末尾のスペースを自動的に削除します。"
141
142 #: ../../../__w/calibre/calibre/manual/template_lang.rst:57
143 msgid "Advanced formatting"
144 msgstr "高度な整形"
145
146 #: ../../../__w/calibre/calibre/manual/template_lang.rst:59
147 msgid ""
148 "In addition to metadata substitution, templates can conditionally include "
149 "additional text and control how substituted data is formatted."
150 msgstr "書誌の置換に加えて、テンプレートには条件付きで追加のテキストを含め、置換されたデータの整形方法を制御できます。"
151
152 #: ../../../__w/calibre/calibre/manual/template_lang.rst:61
153 msgid "**Conditionally including text**"
154 msgstr "**条件つきでテキストを含める**"
155
156 #: ../../../__w/calibre/calibre/manual/template_lang.rst:63
157 msgid ""
158 "Sometimes you want text to appear in the output only if a field is not "
159 "empty. A common case is ``series`` and ``series_index`` where you want "
160 "either nothing or the two values separated by a hyphen. calibre handles this"
161 " case using a special ``template expression`` syntax."
162 msgstr "フィールドが空でない場合にのみ、出力にテキストを表示したいというような場合があります。よくあるケースは ``series`` と ``series_index`` に対し、何も表示しないか、ハイフンで区切られた 2 つの値を連結して表示するかの切替です。 calibre は、特殊な ``テンプレート表現`` の構文を使用してこのケースを処理します。"
163
164 #: ../../../__w/calibre/calibre/manual/template_lang.rst:65
165 msgid ""
166 "For example and using the above Foundation example, assume you want the "
167 "template to produce `Foundation - 3 - Second Foundation`. This template "
168 "produces that output:"
169 msgstr "たとえば、上記の Foundation の例を使用して、テンプレートで `Foundation - 3 - Second Foundation` を生成するとします。このテンプレートはその出力を生成します:"
170
171 #: ../../../__w/calibre/calibre/manual/template_lang.rst:67
172 msgid "``{series} - {series_index} - {title}``"
173 msgstr "``{series} - {series_index} - {title}``"
174
175 #: ../../../__w/calibre/calibre/manual/template_lang.rst:69
176 msgid ""
177 "However, if a book has no series the template will produce `- - the title`, "
178 "which is probably not what you want. Generally, people want the result be "
179 "the title without the extraneous hyphens. You can accomplish this using the "
180 "following template syntax:"
181 msgstr "ただし本にシリーズがない場合、テンプレートは `- - タイトル` を生成することになりますが、これはおそらくあなたが望むものではないでしょう。一般的に人々は、無意味なハイフンの無いただのタイトルとなることを望むものです。これは、次のテンプレート構文を使用すれば達成できます:"
182
183 #: ../../../__w/calibre/calibre/manual/template_lang.rst:71
184 msgid "``{field:|prefix_text|suffix_text}``"
185 msgstr "``{field:|prefix_text|suffix_text}``"
186
187 #: ../../../__w/calibre/calibre/manual/template_lang.rst:73
188 msgid ""
189 "This ``template expression`` says that if ``field`` has the value `XXXX` "
190 "then the result will be `prefix_textXXXXXsuffix_text`. If ``field`` is empty"
191 " (has no value) then the result will be the empty string (nothing) because "
192 "the prefix and suffix are ignored. The prefix and suffix can contain blanks."
193 msgstr "この ``テンプレート表現`` は ``field`` の値が `XXXX` の場合、結果は `prefix_textXXXXXsuffix_text` になることを示しています。``field`` が空 (値がない) 場合、プレフィックスとサフィックスが無視されるため、結果は空の文字列 (なし) となります。プレフィックスとサフィックスには空白を含めることができます。"
194
195 #: ../../../__w/calibre/calibre/manual/template_lang.rst:75
196 msgid ""
197 "**Do not use subtemplates (`{ ... }`) or functions (see below) in the prefix"
198 " or the suffix.**"
199 msgstr "**プレフィックスとサフィックスには、サブテンプレート ( `{ ... }` ) や関数 (下を参照) を使用しないでください。**"
200
201 #: ../../../__w/calibre/calibre/manual/template_lang.rst:77
202 msgid ""
203 "Using this syntax, we can solve the above no-series problem with the "
204 "template::"
205 msgstr "この構文を使用すると、テンプレートで上記のシリーズなしの問題を解決できます。"
206
207 #: ../../../__w/calibre/calibre/manual/template_lang.rst:81
208 msgid ""
209 "The hyphens will be included only if the book has a series index, which it "
210 "has only if it has a series. Continuing the Foundation example again, the "
211 "template will produce `Foundation - 1 - Second Foundation`."
212 msgstr "ハイフンは、本にシリーズインデックスがある場合にのみ含まれます。シリーズインデックスはシリーズがある場合にのみ含まれます。 Foundationの例を再び続けると、テンプレートは `Foundation - 1 - Second Foundation` を生成します。"
213
214 #: ../../../__w/calibre/calibre/manual/template_lang.rst:83
215 #: ../../../__w/calibre/calibre/manual/template_lang.rst:293
216 #: ../../../__w/calibre/calibre/manual/template_lang.rst:469
217 msgid "Notes:"
218 msgstr "メモ:"
219
220 #: ../../../__w/calibre/calibre/manual/template_lang.rst:85
221 msgid ""
222 "You must include the colon after the ``lookup name`` if you are using a "
223 "prefix or a suffix."
224 msgstr "プレフィックスやサフィックスを使用している場合は、 ``ルックアップ名`` の後にコロンを含める必要があります。"
225
226 #: ../../../__w/calibre/calibre/manual/template_lang.rst:86
227 msgid ""
228 "You must use either no or both ``|`` characters. Using one, as in ``{field:|"
229 " - }``, is not allowed."
230 msgstr "``|`` 文字は使用しないか、両方使用する必要があります。 ``{field:| - }`` のように片方だけ使用することは許可されていません。"
231
232 #: ../../../__w/calibre/calibre/manual/template_lang.rst:87
233 msgid ""
234 "It is OK to provide no text for either the prefix or the suffix, such as in "
235 "``{series:|| - }``. The template ``{title:||}`` is the same as ``{title}``."
236 msgstr "プレフィックスやサフィックスにテキストを指定せず、 ``{series:|| - }`` にしてもかまいません。テンプレート ``{title:||}`` は ``{title}`` と同じです。"
237
238 #: ../../../__w/calibre/calibre/manual/template_lang.rst:89
239 msgid "**Formatting**"
240 msgstr "**書式設定**"
241
242 #: ../../../__w/calibre/calibre/manual/template_lang.rst:91
243 msgid ""
244 "Suppose you want the ``series_index`` to be formatted as three digits with "
245 "leading zeros. This does the trick:"
246 msgstr "``series_index`` を先行ゼロ付きの 3 桁に整形したいとします。次のようにすればそうできます:"
247
248 #: ../../../__w/calibre/calibre/manual/template_lang.rst:93
249 msgid "``{series_index:0>3s}`` - Three digits with leading zeros"
250 msgstr "``{series_index:0>3s}`` - 先行ゼロ付きの 3 桁"
251
252 #: ../../../__w/calibre/calibre/manual/template_lang.rst:95
253 msgid "For trailing zeros, use:"
254 msgstr "後置ゼロには、次を使います:"
255
256 #: ../../../__w/calibre/calibre/manual/template_lang.rst:97
257 msgid "``{series_index:0<3s}`` - Three digits with trailing zeros"
258 msgstr "``{series_index:0<3s}`` - 後置ゼロ付きの 3 桁"
259
260 #: ../../../__w/calibre/calibre/manual/template_lang.rst:99
261 msgid ""
262 "If you use series indices with fractional values, e.g., 1.1, you might want "
263 "the decimal points to line up. For example, you might want the indices 1 and"
264 " 2.5 to appear as 01.00 and 02.50 so that they will sort correctly on a "
265 "device that does lexical sorting. To do this, use:"
266 msgstr "1.1 などの小数値のシリーズインデックスを使用する場合は、小数点の位置を揃えたい場合があります。たとえば、インデックス 1 と 2.5 を 01.00 と 02.50 として表示して、辞書順に並べ替えを行うデバイスで正しく並べ替えられるようにすることができます。これを行うには、次を使用します:"
267
268 #: ../../../__w/calibre/calibre/manual/template_lang.rst:101
269 msgid ""
270 "``{series_index:0>5.2f}`` - Five characters consisting of two digits with "
271 "leading zeros, a decimal point, then 2 digits after the decimal point."
272 msgstr "``{series_index:0>5.2f}`` - 先行ゼロ付きの 2 桁、小数点、および小数点以下 2 桁で構成される 5 文字。"
273
274 #: ../../../__w/calibre/calibre/manual/template_lang.rst:103
275 msgid "If you want only the first two letters of the data, use:"
276 msgstr "データの最初の 2 文字だけが必要な場合は、次を使用します:"
277
278 #: ../../../__w/calibre/calibre/manual/template_lang.rst:105
279 msgid ""
280 "``{author_sort:.2}`` - Only the first two letters of the author sort name"
281 msgstr "``{author_sort:.2}`` - 著者読みの最初の 2 文字のみ"
282
283 #: ../../../__w/calibre/calibre/manual/template_lang.rst:107
284 msgid ""
285 "Much of the calibre template language formatting comes from Python. For more"
286 " details on the syntax of these advanced formatting operations see the "
287 "`Python documentation "
288 "<https://docs.python.org/3/library/string.html#formatstrings>`_."
289 msgstr "calibre テンプレート言語のフォーマットの多くは Python のものです。これらの高度なフォーマット操作の構文の詳細については、 `Python documentation <https://docs.python.org/3/library/string.html#formatstrings>`_ を参照してください。"
290
291 #: ../../../__w/calibre/calibre/manual/template_lang.rst:111
292 msgid "Using templates to define custom columns"
293 msgstr "テンプレートを使用してカスタム列を定義する"
294
295 #: ../../../__w/calibre/calibre/manual/template_lang.rst:113
296 msgid ""
297 "Templates can be used to display information that isn't in calibre metadata,"
298 " or to display metadata differently from calibre's normal format. For "
299 "example, you might want to show the ``ISBN``, a field that calibre does not "
300 "display. You can accomplish this creating a custom column with the type "
301 "`Column built from other columns` (hereafter called `composite columns`) and"
302 " providing a template to generate the displayed text. The column will "
303 "display the result of evaluating the template. For example, to display the "
304 "ISBN, create the column and enter ``{identifiers:select(isbn)}`` in the "
305 "template box. To display a column containing the values of two series custom"
306 " columns, separated by a comma, use ``{#series1:||,}{#series2}``."
307 msgstr "テンプレートを使用すると、calibre の書誌にない情報を表示したり、calibre の通常の形式とは異なる方法で書誌を表示したりできます。たとえば、calibre が表示しないフィールドである ISBN を表示したいことがあるかもしれません。これは、`他の列から構築された列` タイプ (以降、複合列と呼びます) を使用してカスタム列を作成し、表示されるテキストを生成するためのテンプレートを提供することで実現できます。この列には、テンプレートの評価結果が表示されます。たとえば、ISBN を表示するには、列を作成し、テンプレートボックスに ``{identifiers:select(isbn)}`` と入力します。 2 つのシリーズカスタム列の値をカンマで区切って含む列を表示するには、``{#series1:||,}{#series2}`` を使用します。"
308
309 #: ../../../__w/calibre/calibre/manual/template_lang.rst:115
310 msgid "Composite columns can use any template option, including formatting."
311 msgstr "複合列は、書式設定を含む任意のテンプレートオプションを使用できます。"
312
313 #: ../../../__w/calibre/calibre/manual/template_lang.rst:117
314 msgid ""
315 "Note: You cannot edit the data displayed in a composite column. Instead you "
316 "edit the source columns. If you edit a composite column, for example by "
317 "double-clicking it, calibre will open the template for editing, not the "
318 "underlying data."
319 msgstr "注: 複合列に表示されているデータを編集することはできません。代わりに、ソース列を編集します。複合列を編集する場合、たとえばダブルクリックした場合、calibreは、基になるデータではなく、編集用のテンプレートを開きます。"
320
321 #: ../../../__w/calibre/calibre/manual/template_lang.rst:121
322 msgid "Templates and plugboards"
323 msgstr "テンプレートとプラグボード"
324
325 #: ../../../__w/calibre/calibre/manual/template_lang.rst:123
326 msgid ""
327 "Plugboards are used for changing the metadata written into books during "
328 "send-to-device and save-to-disk operations. A plugboard permits you to "
329 "specify a template to provide the data to write into the book's metadata. "
330 "You can use plugboards to modify the following fields: authors, author_sort,"
331 " language, publisher, tags, title, title_sort. This feature helps people who"
332 " want to use different metadata in books on devices to solve sorting or "
333 "display issues."
334 msgstr "プラグボードは、デバイスへの送信およびディスクへの保存操作中に本に書き込まれる書誌を変更するために使用されます。プラグボードを使用すると、本の書誌に書き込むデータを提供するテンプレートを指定できます。プラグボードを使用すると authors, author_sort, language, publisher, tags, title, title_sort のフィールドを変更できます。この機能は、デバイス上の本で別の書誌を使用して、並べ替えや表示の問題を解決したい人に役立ちます。"
335
336 #: ../../../__w/calibre/calibre/manual/template_lang.rst:125
337 msgid ""
338 "When you create a plugboard, you specify the format and device for which the"
339 " plugboard is to be used. A special device is provided, ``save_to_disk``, "
340 "that is used when saving formats (as opposed to sending them to a device). "
341 "Once you have chosen the format and device, you choose the metadata fields "
342 "to change, providing templates to supply the new values. These templates are"
343 " `connected` to their destination fields, hence the name `plugboards`. You "
344 "can of course use composite columns in these templates."
345 msgstr "プラグボードを作成するときは、プラグボードを使用する形式とデバイスを指定します。形式を保存するときに使用される特別なデバイス ``save_to_disk`` が提供されます (デバイスに送信するのではありません)。形式とデバイスを選択したら、変更する書誌フィールドを選択し、新しい値を提供するためのテンプレートを提供します。これらのテンプレートは宛先フィールドに `接続` されているため、プラグボードという名前が付けられています。これらのテンプレートでは、もちろん複合列を使用できます。"
346
347 #: ../../../__w/calibre/calibre/manual/template_lang.rst:127
348 msgid ""
349 "Plugboards are quite flexible and can be written in Single Function Mode, "
350 "Template Program Mode, General Program Mode, or Python Template mode."
351 msgstr "プラグボードは非常に柔軟性が高く、単関数モード、テンプレートプログラム モード、一般プログラム モード、または Python テンプレートモードでも記述できます。"
352
353 #: ../../../__w/calibre/calibre/manual/template_lang.rst:129
354 msgid ""
355 "When a plugboard might apply (Content server, save to disk, or send to "
356 "device), calibre searches the defined plugboards to choose the correct one "
357 "for the given format and device. For example, to find the appropriate "
358 "plugboard for an EPUB book being sent to an ANDROID device, calibre searches"
359 " the plugboards using the following search order:"
360 msgstr "プラグボードが適用される可能性がある場合 (コンテンツサーバ、ディスクに保存、またはデバイスに送信)、calibre は定義されたプラグボードを検索して、指定された形式とデバイスに適したプラグボードを選択します。たとえば、ANDROID デバイスに送信される EPUB ブックに適切なプラグボードを見つけるために、calibre は次の検索順でプラグボードを検索します:"
361
362 #: ../../../__w/calibre/calibre/manual/template_lang.rst:133
363 msgid ""
364 "a plugboard with an exact match on format and device, e.g., ``EPUB`` and "
365 "``ANDROID``"
366 msgstr "形式とデバイスが完全に一致するプラグボード。例: ``EPUB`` かつ ``ANDROID``"
367
368 #: ../../../__w/calibre/calibre/manual/template_lang.rst:134
369 msgid ""
370 "a plugboard with an exact match on format and the special ``any device`` "
371 "choice, e.g., ``EPUB`` and ``any device``"
372 msgstr "形式が完全に一致し、特別な ``任意のデバイス`` を選択できるプラグボード。例: ``EPUB`` かつ ``任意のデバイス``"
373
374 #: ../../../__w/calibre/calibre/manual/template_lang.rst:135
375 msgid ""
376 "a plugboard with the special ``any format`` choice and an exact match on "
377 "device, e.g., ``any format`` and ``ANDROID``"
378 msgstr "特別な ``任意のフォーマット`` を選択し、デバイス上で完全に一致するプラグボード。例: ``任意のフォーマット`` かつ ``ANDROID``"
379
380 #: ../../../__w/calibre/calibre/manual/template_lang.rst:136
381 msgid "a plugboard with ``any format`` and ``any device``"
382 msgstr "``任意のフォーマット`` と ``任意のデバイス`` を備えたプラグボード"
383
384 #: ../../../__w/calibre/calibre/manual/template_lang.rst:138
385 msgid ""
386 "The tags and authors fields have special treatment, because both of these "
387 "fields can hold more than one item. A book can have many tags and many "
388 "authors. When you specify that one of these two fields is to be changed, the"
389 " template's result is examined to see if more than one item is there. For "
390 "tags, the result is cut apart wherever calibre finds a comma. For example, "
391 "if the template produces the value ``Thriller, Horror``, then the result "
392 "will be two tags, ``Thriller`` and ``Horror``. There is no way to put a "
393 "comma in the middle of a tag."
394 msgstr "タグフィールドと著者フィールドはどちらも複数のアイテムを保持できるため、特殊な扱いとなります。本にはいくつものタグと何人もの著者を含めることができます。これら 2 つのフィールドのいずれかを変更するように指定すると、テンプレートの結果に複数の項目がないか確認されます。タグの場合、calibre はカンマを見つけるたびに結果を分割します。たとえばテンプレートが値 ``Thriller, Horror`` を生成すると、結果は2つのタグ、``Thriller`` と ``Horror`` になります。タグの途中にカンマを入れる方法はありません。"
395
396 #: ../../../__w/calibre/calibre/manual/template_lang.rst:141
397 msgid ""
398 "The same thing happens for authors, but using a different character for the "
399 "cut, a `&` (ampersand) instead of a comma. For example, if the template "
400 "produces the value ``Blogs, Joe&Posts, Susan``, then the book will end up "
401 "with two authors, ``Blogs, Joe`` and ``Posts, Susan``. If the template "
402 "produces the value ``Blogs, Joe;Posts, Susan``, then the book will have one "
403 "author with a rather strange name."
404 msgstr "著者にも同じことが起こりますが、分割に別の文字、カンマの代わりに `&` (アンパサンド) を使用します。たとえばテンプレートが値 ``Blogs, Joe&Posts, Susan`` を生成すると、本の著者は ``Blogs, Joe`` と ``Posts, Susan`` の 2 人になります。テンプレートが ``Blogs, Joe;Posts, Susan`` という値を生成すると、その本の著者はかなり変わった名前の 1 人となります。"
405
406 #: ../../../__w/calibre/calibre/manual/template_lang.rst:143
407 msgid ""
408 "Plugboards affect the metadata written into the book when it is saved to "
409 "disk or written to the device. Plugboards do not affect the metadata used by"
410 " ``save to disk`` and ``send to device`` to create the file names. Instead, "
411 "file names are constructed using the templates entered on the appropriate "
412 "preferences window."
413 msgstr "プラグボードは、本がディスクに保存されるとき、またはデバイスに書き込まれるときに、本に書き込まれる書誌に影響を与えます。プラグボードは、ファイル名を作成するための ``ディスクに保存`` や ``デバイスに送信`` によって使われる書誌には影響しません。代わりに、ファイル名は、適切な設定ウィンドウに入力されたテンプレートを使用して作成されます。"
414
415 #: ../../../__w/calibre/calibre/manual/template_lang.rst:148
416 msgid "Using functions in templates - Single Function Mode"
417 msgstr "テンプレートでの関数の使用 - 単関数モード"
418
419 #: ../../../__w/calibre/calibre/manual/template_lang.rst:150
420 msgid ""
421 "Suppose you want to display the value of a field in upper case when that "
422 "field is normally in title case. You can do this using `template functions`."
423 " For example, to display the title in upper case use the ``uppercase`` "
424 "function, as in ``{title:uppercase()}``. To display it in title case, use "
425 "``{title:titlecase()}``."
426 msgstr "あるフィールドが通常はタイトルケースで、その値を大文字で表示したいと仮定します。`テンプレート関数` を使用すれば、それが可能です。たとえば、タイトルを大文字で表示するには ``uppercase`` 関数を使用して、 ``{title:uppercase()}`` とします。タイトルケースで表示するには ``{title:titlecase()}`` を使用します。"
427
428 #: ../../../__w/calibre/calibre/manual/template_lang.rst:152
429 msgid ""
430 "Functions go into the format part of the template, after the ``:`` and "
431 "before the first ``|`` or the closing ``}`` if no prefix/suffix is used. If "
432 "you have both a format and a function reference, the function comes after a "
433 "second ``:``. Functions return the value of the column specified in the "
434 "template, suitably modified."
435 msgstr "関数は、テンプレートのフォーマット部分に入ります。それは ``:`` の後、かつ最初の ``|`` またはプレフィックス/サフィックスが使われていれば閉じ括弧 ``}`` の前です。フォーマットと関数参照の両方がある場合、関数は 2 個目の ``:`` の後に来ます。関数は、テンプレートで指定された列の値を適切に変更して返します。"
436
437 #: ../../../__w/calibre/calibre/manual/template_lang.rst:154
438 msgid "The syntax for using functions is one of::"
439 msgstr "関数を使用するための構文は、次のいずれかです::"
440
441 #: ../../../__w/calibre/calibre/manual/template_lang.rst:161
442 msgid ""
443 "Function names must always be followed by opening and closing parentheses. "
444 "Some functions require extra values (arguments), and these go inside the "
445 "parentheses. Arguments are separated by commas. Literal commas (commas as "
446 "text, not argument separators) must be preceded by a backslash (``\\``) . "
447 "The last (or only) argument cannot contain a textual closing parenthesis."
448 msgstr "関数名の後には、必ず開き括弧と閉じ括弧を付ける必要があります。一部の関数は追加の値 (引数) を必要とし、これらは括弧内に入ります。引数はカンマで区切ります。リテラルコンマ (引数の区切り文字ではなくテキストとしてのカンマ) の前には、バックスラッシュ (``\\``) を付ける必要があります。最後の (または唯一の) 引数には、テキストの閉じ括弧を含めることはできません。"
449
450 #: ../../../__w/calibre/calibre/manual/template_lang.rst:163
451 msgid ""
452 "Functions are evaluated before format specifications and the prefix/suffix. "
453 "See further down for an example of using both a format and a function."
454 msgstr "関数は、フォーマット指定とプレフィックス/サフィックスの前に評価されます。フォーマットと関数の両方を使用する例については、さらに下を参照してください。"
455
456 #: ../../../__w/calibre/calibre/manual/template_lang.rst:165
457 msgid ""
458 "**Important**: If you have programming experience, please note that the "
459 "syntax in `Single Function Mode` is not what you expect. Strings are not "
460 "quoted and spaces are significant. All arguments are considered to be "
461 "constants; there are no expressions."
462 msgstr "**重要**: プログラミングの経験がある場合は、`単関数モード` の構文が思ったものと違うことに注意してください。文字列は引用符で囲まれておらず、スペースは重要です。すべての引数は定数と見なされます。式はありません。"
463
464 #: ../../../__w/calibre/calibre/manual/template_lang.rst:167
465 msgid ""
466 "**Do not use subtemplates (`{ ... }`) as function arguments.** Instead, use "
467 ":ref:`Template Program Mode <template_mode>` and :ref:`General Program Mode "
468 "<general_mode>`."
469 msgstr "**サブテンプレート ( `{ ... }` ) を関数の引数として使用しないでください。** 代わりに :ref:`テンプレートプログラムモード <template_mode>` および :ref:`一般プログラムモード <general_mode>` を使用してください。"
470
471 #: ../../../__w/calibre/calibre/manual/template_lang.rst:169
472 msgid "Notes on calling functions in Single Function Mode:"
473 msgstr "単関数モードでの関数の呼び出しに関する注意:"
474
475 #: ../../../__w/calibre/calibre/manual/template_lang.rst:171
476 msgid ""
477 "When functions are used in Single Function Mode, the first parameter, "
478 "``value``, is automatically replaced by the content of the field specified "
479 "in the template. For example, when the template ``{title:capitalize()}`` is "
480 "processed, the content of the ``title`` field is passed as the parameter "
481 "``value`` to the capitalize function."
482 msgstr "関数を単関数モードで使用する場合、最初のパラメータである ``value`` は、テンプレートで指定されたフィールドの内容に自動的に置き換えられます。例えば、テンプレート ``{title:capitalize()}`` が処理される場合、 ``title`` フィールドの内容がパラメータ ``value`` としてcapitalize関数に渡されます。"
483
484 #: ../../../__w/calibre/calibre/manual/template_lang.rst:172
485 msgid ""
486 "In the function documentation, the notation ``[something]*`` means that "
487 "``something`` can be repeated zero or more times. The notation "
488 "``[something]+`` means that the ``something`` is repeated one or more times "
489 "(must exist at least one time)."
490 msgstr "関数ドキュメントにおいて、 ``[something]*`` という表記は、 ``something`` が0回以上繰り返されることを意味します。 ``[something]+`` という表記は、 ``something`` が1回以上繰り返されること(少なくとも1回は存在する必要があること)を意味します。"
491
492 #: ../../../__w/calibre/calibre/manual/template_lang.rst:173
493 msgid ""
494 "Some functions use regular expressions. In the template language regular "
495 "expression matching is case-insensitive."
496 msgstr "一部の関数は正規表現を使用します。テンプレート言語における正規表現の一致判定では、大文字と小文字を区別しません。"
497
498 #: ../../../__w/calibre/calibre/manual/template_lang.rst:175
499 msgid ""
500 "Functions are documented in :ref:`template_functions_reference`. The "
501 "documentation tells you what arguments the functions require and what the "
502 "functions do. For example, here is the documentation of the "
503 ":ref:`ff_ifempty` function."
504 msgstr "関数については、 :ref:`template_functions_reference` に記載されています。このドキュメントには、各関数が必要とする引数と、その関数の機能が説明されています。例えば、以下は :ref:`ff_ifempty` 関数のドキュメントです。"
505
506 #: ../../../__w/calibre/calibre/manual/template_lang.rst:179
507 msgid ""
508 "You see that the function requires two arguments, ``value`` and "
509 "``text_if_empty``. However, because we are using Single Function Mode, we "
510 "omit the ``value`` argument, passing only ``text_if_empty``. For example, "
511 "this template::"
512 msgstr "この関数には ``value`` と ``text_if_empty`` という2つの引数が必要です。ただし、今回は単関数モードを使用しているため、``value`` 引数を省略し、``text_if_empty`` のみを渡します。例えば、このテンプレートは次のようになります:"
513
514 #: ../../../__w/calibre/calibre/manual/template_lang.rst:183
515 msgid ""
516 "shows the tags for a book, if any. If it has no tags then it shows `No tags "
517 "on this book`."
518 msgstr "本にタグがある場合は表示します。タグがない場合は、 `この本にはタグがありません` と表示されます。"
519
520 #: ../../../__w/calibre/calibre/manual/template_lang.rst:185
521 msgid ""
522 "The following functions are usable in Single Function Mode because their "
523 "first parameter is ``value``."
524 msgstr "以下の関数は、最初のパラメータが ``value`` であるため、単関数モードで使用可能です。"
525
526 #: ../../../__w/calibre/calibre/manual/template_lang.rst:227
527 msgid "**Using functions and formatting in the same template**"
528 msgstr "**同じテンプレートで関数と書式を使用する**"
529
530 #: ../../../__w/calibre/calibre/manual/template_lang.rst:229
531 msgid ""
532 "Suppose you have an integer custom column ``#myint`` that you want displayed"
533 " with leading zeros, as in ``003``. One way to do this is to use a format of"
534 " ``0>3s``. However, by default if a number (integer or float) equals zero "
535 "then the value is displayed as the empty string so zero values will produce "
536 "the empty string, not ``000``. If you want to see ``000`` values then you "
537 "use both the format string and the ``ifempty`` function to change the empty "
538 "value back to a zero. The template would be::"
539 msgstr "整数のカスタム列 ``#myint`` を ``003`` のように先行ゼロ付きで表示したいと仮定します。これを実現する方法のひとつは ``0>3s`` という書式を使用することです。ただしデフォルトでは数値 (整数または浮動小数点) がゼロに等しい場合には、その値は空の文字列として表示されるため、値ゼロは ``000`` ではなく空の文字列となります。値を ``000`` と表示したいのであれば、書式文字列と ``ifempty`` 関数を両方使用して空の値をゼロに戻してやります。そのテンプレートは次のようになるでしょう::"
540
541 #: ../../../__w/calibre/calibre/manual/template_lang.rst:233
542 msgid ""
543 "Note that you can use the prefix and suffix as well. If you want the number "
544 "to appear as ``[003]`` or ``[000]``, then use the template::"
545 msgstr "プレフィックスとサフィックスも使用できます。もし数字を ``[003]`` や ``[000]`` のように表示したいのであれば、次のテンプレートを使用します::"
546
547 #: ../../../__w/calibre/calibre/manual/template_lang.rst:240
548 msgid "General Program Mode"
549 msgstr "一般プログラムモード"
550
551 #: ../../../__w/calibre/calibre/manual/template_lang.rst:242
552 msgid ""
553 "`General Program Mode` (`GPM`) replaces `template expressions` with a "
554 "program written in the `template language`. The syntax of the language is "
555 "defined by the following grammar::"
556 msgstr "`一般プログラムモード` (`GPM`) は `テンプレート表現` を `テンプレート言語` で記述したプログラムに置き換えます。言語の構文は、次の文法で定義されます::"
557
558 #: ../../../__w/calibre/calibre/manual/template_lang.rst:295
559 msgid ""
560 "a ``top_expression`` always has a value. The value of an ``expression_list``"
561 " is the value of the last ``top_expression`` in the list. For example, the "
562 "value of the expression list ``1;2;'foobar';3`` is ``3``."
563 msgstr "``top_expression`` には常に値があります。``expression_list`` の値は、リストの最後の ``top_expression`` の値です。たとえば、式リストの値 ``1;2;'foobar';3`` は ``3`` です。"
564
565 #: ../../../__w/calibre/calibre/manual/template_lang.rst:296
566 msgid "In a logical context, any non-empty value is ``True``"
567 msgstr "論理的なコンテキストでは、空でない値はすべて ``True``"
568
569 #: ../../../__w/calibre/calibre/manual/template_lang.rst:297
570 msgid "In a logical context, the empty value is ``False``"
571 msgstr "論理的なコンテキストでは、空の値はすべて ``False``"
572
573 #: ../../../__w/calibre/calibre/manual/template_lang.rst:298
574 msgid ""
575 "Strings and numbers can be used interchangeably. For example, ``10`` and "
576 "``'10'`` are the same thing."
577 msgstr "文字列と数字は同じ意味で使用できます。たとえば ``10`` と ``'10'`` は同じものです。"
578
579 #: ../../../__w/calibre/calibre/manual/template_lang.rst:299
580 msgid ""
581 "Comments are lines starting with a '#' character, possibly preceded by "
582 "blanks or tabs."
583 msgstr "コメントは、 '#' 文字で始まる複数行で、その前に空白またはタブが入っていても構いません。"
584
585 #: ../../../__w/calibre/calibre/manual/template_lang.rst:301
586 msgid "**Operator precedence**"
587 msgstr "**演算子の優先順位**"
588
589 #: ../../../__w/calibre/calibre/manual/template_lang.rst:303
590 msgid ""
591 "The operator precedence (order of evaluation) from highest (evaluated first)"
592 " to lowest (evaluated last) is:"
593 msgstr "演算子の優先順位 (評価する順) の最高 (最初に評価) から最低 (最後に評価) までは、次のとおりです:"
594
595 #: ../../../__w/calibre/calibre/manual/template_lang.rst:305
596 msgid ""
597 "Function calls, constants, parenthesized expressions, statement expressions,"
598 " assignment expressions, field references."
599 msgstr "関数呼び出し、定数、括弧で囲まれた式、比較演算式、代入式、フィールド参照。"
600
601 #: ../../../__w/calibre/calibre/manual/template_lang.rst:306
602 msgid ""
603 "Unary plus (``+``) and minus (``-``). These operators evaluate right to "
604 "left."
605 msgstr "単項プラス (``+``) およびマイナス (``-``)。これらの演算子は右から左に評価します。"
606
607 #: ../../../__w/calibre/calibre/manual/template_lang.rst:308
608 msgid ""
609 "These and all the other arithmetic operators return integers if the "
610 "expression results in a fractional part equal to zero. For example, if an "
611 "expression returns ``3.0`` it is changed to ``3``."
612 msgstr "これらおよび他のすべての算術演算子は、式の小数部がゼロならば整数を返します。たとえば式が ``3.0`` を返す場合、それは ``3`` に変更されます。"
613
614 #: ../../../__w/calibre/calibre/manual/template_lang.rst:309
615 msgid ""
616 "Multiply (``*``) and divide (``/``). These operators are associative and "
617 "evaluate left to right. Use parentheses if you want to change the order of "
618 "evaluation."
619 msgstr "乗算 (``*``) と除算 (``/``)。これらの演算子は結合性があり、左から右に評価します。評価の順序を変更する場合は、括弧を使用してください。"
620
621 #: ../../../__w/calibre/calibre/manual/template_lang.rst:310
622 msgid ""
623 "Add (``+``) and subtract (``-``). These operators are associative and "
624 "evaluate left to right."
625 msgstr "加算 (``+``) と減算 (``-``)。これらの演算子は結合性があり、左から右に評価します。"
626
627 #: ../../../__w/calibre/calibre/manual/template_lang.rst:311
628 msgid ""
629 "Numeric and string comparisons. These operators return ``'1'`` if the "
630 "comparison succeeds, otherwise the empty string (``''``). Comparisons are "
631 "not associative: ``a < b < c`` is a syntax error."
632 msgstr "数値と文字列の比較。これらの演算子は、比較が成功した場合は ``'1'`` を返し、それ以外の場合は空の文字列 (``''``)を返します。比較は結合的ではありません。 ``a < b < c`` は構文エラーです。"
633
634 #: ../../../__w/calibre/calibre/manual/template_lang.rst:312
635 msgid ""
636 "String concatenation (``&``). The ``&`` operator returns a string formed by "
637 "concatenating the left-hand and right-hand expressions. Example: ``'aaa' & "
638 "'bbb'`` returns ``'aaabbb'``. The operator is associative and evaluates left"
639 " to right."
640 msgstr "文字列の連結 (``&``)。``&`` 演算子は、左辺と右辺の式を連結して形成された文字列を返します。例: ``'aaa' & 'bbb'`` は ``'aaabbb'`` を返します。演算子は結合性があり、左から右に評価します。"
641
642 #: ../../../__w/calibre/calibre/manual/template_lang.rst:313
643 msgid ""
644 "Unary logical not (``!``). This operator returns ``'1'`` if the expression "
645 "is False (evaluates to the empty string), otherwise ``''``."
646 msgstr "単項論理否定 (``!``)。この演算子は、式が False (空の文字列に評価される) なら ``'1'`` を返し、そうでなければ ``''`` を返します。"
647
648 #: ../../../__w/calibre/calibre/manual/template_lang.rst:314
649 msgid ""
650 "Logical and (``&&``). This operator returns '1' if both the left-hand and "
651 "right-hand expressions are True, or the empty string ``''`` if either is "
652 "False. It is associative, evaluates left to right, and does `short-"
653 "circuiting <https://chortle.ccsu.edu/java5/Notes/chap40/ch40_2.html>`_."
654 msgstr "論理積 (``&&``)。この演算子は、左辺と右辺の両方の式が True のときに '1' を返し、どちらかが False なら空の文字列 ``''`` を返します。これは結合的で、左から右に評価し、 `短絡評価 <https://chortle.ccsu.edu/java5/Notes/chap40/ch40_2.html>`_ を行います。"
655
656 #: ../../../__w/calibre/calibre/manual/template_lang.rst:315
657 msgid ""
658 "Logical or (``||``). This operator returns ``'1'`` if either the left-hand "
659 "or right-hand expression is True, or ``''`` if both are False. It is "
660 "associative, evaluates left to right, and does `short-circuiting "
661 "<https://chortle.ccsu.edu/java5/Notes/chap40/ch40_2.html>`_. It is an "
662 "`inclusive or`, returning ``'1'`` if both the left- and right-hand "
663 "expressions are True."
664 msgstr "論理和 (``||``)。この演算子は、左辺または右辺の式のいずれかが True であれば ``'1'`` を返し、両方とも False なら ``''`` を返します。これは結合的で、左から右に評価し、 `短絡評価 <https://chortle.ccsu.edu/java5/Notes/chap40/ch40_2.html>`_ を行います。 これは `包含的論理和` で、左辺または右辺の式の両方が True のときに ``'1'`` を返します。"
665
666 #: ../../../__w/calibre/calibre/manual/template_lang.rst:317
667 msgid "**Field references**"
668 msgstr "**フィールド参照**"
669
670 #: ../../../__w/calibre/calibre/manual/template_lang.rst:319
671 msgid ""
672 "A ``field_reference`` evaluates to the value of the metadata field named by "
673 "lookup name that follows the ``$`` or ``$$``. Using ``$`` is equivalent to "
674 "using the :ref:`ff_field` function. Using ``$$`` is equivalent to using the "
675 ":ref:`ff_raw_field` function. Examples::"
676 msgstr "``field_reference`` は、 ``$`` または ``$$`` に続くルックアップ名で指定された書誌データフィールドの値を評価します。 ``$`` を使用することは、 :ref:`ff_field` 関数を使用することと同等です。 ``$$`` を使用することは、 :ref:`ff_raw_field` 関数を使用することと同等です。例:"
677
678 #: ../../../__w/calibre/calibre/manual/template_lang.rst:326
679 msgid "**If expressions**"
680 msgstr "**if 文**"
681
682 #: ../../../__w/calibre/calibre/manual/template_lang.rst:328
683 msgid ""
684 "``If`` expressions first evaluate the ``condition``. If the ``condition`` is"
685 " True (a non-empty value) then the ``expression_list`` in the ``then`` "
686 "clause is evaluated. If it is False then if present the ``expression_list`` "
687 "in the ``elif`` or ``else`` clause is evaluated. The ``elif`` and ``else`` "
688 "parts are optional. The words ``if``, ``then``, ``elif``, ``else``, and "
689 "``fi`` are reserved; you cannot use them as identifier names. You can put "
690 "newlines and white space wherever they make sense. The ``condition`` is a "
691 "``top_expression`` not an ``expression_list``; semicolons are not allowed. "
692 "The ``expression_lists`` are semicolon-separated sequences of "
693 "``top_expressions``. An ``if`` expression returns the result of the last "
694 "``top_expression`` in the evaluated ``expression_list``, or the empty string"
695 " if no expression list was evaluated."
696 msgstr "``If`` 文は最初に ``condition`` を評価します。``condition`` が True (空でない値) であれば、``then`` 句の中にある ``expression_list`` が評価されます。False なら ``elif`` または ``else`` 句の中に ``expression_list`` があればそれが評価されます。``elif`` と ``else`` の部分はオプションです。``if``, ``then``, ``elif``, ``else``, および ``fi`` は予約語です。識別子の名前として使用することはできません。 意味のあるところならどこにでも改行と空白を置くことができます。``condition`` は ``top_expression`` であって ``expression_list`` ではありません。セミコロンは使用できません。``expression_lists`` は ``top_expressions`` のセミコロン区切りのシーケンスです。``if`` 文は評価した ``expression_list`` の中で最後の ``top_expression`` を返し、評価したものがなければ空の文字列を返します。"
697
698 #: ../../../__w/calibre/calibre/manual/template_lang.rst:330
699 msgid "Examples::"
700 msgstr "例::"
701
702 #: ../../../__w/calibre/calibre/manual/template_lang.rst:343
703 msgid "Nested ``if`` example::"
704 msgstr "入れ子になった ``if`` の例::"
705
706 #: ../../../__w/calibre/calibre/manual/template_lang.rst:356
707 msgid ""
708 "As said above, an ``if`` produces a value. This means that all the following"
709 " are equivalent::"
710 msgstr "上で説明したように ``if`` は値を生成します。これは、次のすべてが同等であることを意味します::"
711
712 #: ../../../__w/calibre/calibre/manual/template_lang.rst:362
713 msgid ""
714 "For example, this program returns the value of the ``series`` column if the "
715 "book has a series, otherwise the value of the ``title`` column::"
716 msgstr "たとえば、このプログラムは、本にシリーズがある場合は ``series`` 列の値を返し、そうでない場合は ``title`` 列の値を返します。"
717
718 #: ../../../__w/calibre/calibre/manual/template_lang.rst:366
719 msgid "**For expressions**"
720 msgstr "**for 文**"
721
722 #: ../../../__w/calibre/calibre/manual/template_lang.rst:368
723 msgid ""
724 "The ``for`` expression iterates over a list of values, processing them one "
725 "at a time. The ``list_expression`` must evaluate either to a metadata field "
726 "``lookup name`` e.g., ``tags`` or ``#genre``, or to a list of values. The "
727 ":ref:`ff_range` generates a list of numbers. If the result is a valid "
728 "``lookup name`` then the field's value is fetched and the separator "
729 "specified for that field type is used. If the result isn't a valid lookup "
730 "name then it is assumed to be a list of values. The list is assumed to be "
731 "separated by commas unless the optional keyword ``separator`` is supplied, "
732 "in which case the list values must be separated by the result of evaluating "
733 "the ``separator_expr``. A separator cannot be used if the list is generated "
734 "by ``range()``. Each value in the list is assigned to the specified variable"
735 " then the ``expression_list`` is evaluated. You can use ``break`` to jump "
736 "out of the loop, and ``continue`` to jump to the beginning of the loop for "
737 "the next iteration."
738 msgstr "``for`` 式は値のリストを順番に繰り返し、値を1個づつ処理します。 ``list_expression`` は、書誌データフィールドの「ルックアップ名」(例: ``tags`` や ``#genre`` )または値のリストのいずれかを評価する必要があります。 :ref:`ff_range` は数値のリストを生成します。結果が有効な ``ルックアップ名`` である場合、そのフィールドの値が取得され、そのフィールドタイプに指定された区切り文字が使用されます。結果が有効なルックアップ名でない場合は、値のリストとみなされます。リストは、オプションのキーワード ``separator`` が指定されていない限り、カンマで区切られているとみなされます。指定されている場合は、 ``separator_expr`` を評価した結果でリストの値が区切られている必要があります。 ``range()`` によって生成されたリストには、区切り文字を使用できません。リスト内の各値は指定された変数に代入され、その後 ``expression_list`` が評価されます。 ``break`` を使用してループから抜け出すことができ、 ``continue`` を使用して次の反復処理のためにループの先頭に戻ることができます。"
739
740 #: ../../../__w/calibre/calibre/manual/template_lang.rst:370
741 msgid ""
742 "Example: This template removes the first hierarchical name for each value in"
743 " Genre (``#genre``), constructing a list with the new names::"
744 msgstr "例: このテンプレートは、ジャンル (``#genre``) の各値の最初の階層名を削除し、新しい名前でリストを作成します::"
745
746 #: ../../../__w/calibre/calibre/manual/template_lang.rst:380
747 msgid ""
748 "If the original Genre is `History.Military, Science Fiction.Alternate "
749 "History, ReadMe` then the template returns `Military, Alternate History, "
750 "ReadMe`. You could use this template in calibre's :guilabel:`Edit metadata "
751 "in bulk -> Search & replace` with :guilabel:`Search for` set to ``template``"
752 " to strip off the first level of the hierarchy and assign the resulting "
753 "value to Genre."
754 msgstr "元のジャンルが `History.Military, Science Fiction.Alternate History, ReadMe` の場合、テンプレートは `Military, Alternate History, ReadMe` を返します。このテンプレートを calibre の :guilabel:`書誌を一括編集 -> 検索と置換` で :guilabel:`検索` に ``template`` を設定して階層の最初のレベルを取り除き、結果の値をジャンルに割り当てます。"
755
756 #: ../../../__w/calibre/calibre/manual/template_lang.rst:383
757 msgid ""
758 "Note: the last line in the template, ``new_tags``, isn't strictly necessary "
759 "in this case because ``for`` returns the value of the last top_expression in"
760 " the expression list. The value of an assignment is the value of its "
761 "expression, so the value of the ``for`` statement is what was assigned to "
762 "``new_tags``."
763 msgstr "注: この場合、テンプレートの最後の行である ``new_tags`` は必ずしも必要ではありません。これは、``for`` が式リストの最後の top_expression の値を返すためです。割り当ての値はその式の値であるため、``for`` 文の値は ``new_tags`` に割り当てられたものです。"
764
765 #: ../../../__w/calibre/calibre/manual/template_lang.rst:385
766 msgid "**with expressions**"
767 msgstr "**with式**"
768
769 #: ../../../__w/calibre/calibre/manual/template_lang.rst:387
770 msgid "The ``with`` expression:"
771 msgstr "``with`` 式:"
772
773 #: ../../../__w/calibre/calibre/manual/template_lang.rst:389
774 msgid ""
775 "changes the current book to the book with calibre book id (an integer) "
776 "produced by evaluating the ``top_expression``."
777 msgstr "現在の本を ``top_expression`` を評価することによって生成された calibre ブックID (整数) を持つ本に変更します。"
778
779 #: ../../../__w/calibre/calibre/manual/template_lang.rst:390
780 msgid "runs the ``expression_list``."
781 msgstr "``expression_list`` を実行"
782
783 #: ../../../__w/calibre/calibre/manual/template_lang.rst:391
784 msgid "then resets the current book back to what it was."
785 msgstr "その後、カレントの本を元に戻します。"
786
787 #: ../../../__w/calibre/calibre/manual/template_lang.rst:393
788 msgid ""
789 "The ``with`` expression returns the result of the last ``top_expression`` in"
790 " the evaluated ``expression_list``, or the empty string if no expression "
791 "list was evaluated."
792 msgstr "``with`` 式は、評価された ``expression_list`` 内の最後の ``top_expression`` の結果を返します。式リストが評価されなかった場合は空の文字列を返します。"
793
794 #: ../../../__w/calibre/calibre/manual/template_lang.rst:396
795 msgid ""
796 "For example, this template returns a list of the titles of each book "
797 "selected in the GUI::"
798 msgstr "たとえば、このテンプレートは GUI で選択された複数の本のタイトルのリストを返します:"
799
800 #: ../../../__w/calibre/calibre/manual/template_lang.rst:408
801 msgid "**Return stmt**"
802 msgstr "**Return 文**"
803
804 #: ../../../__w/calibre/calibre/manual/template_lang.rst:410
805 msgid ""
806 "Return the value of the ``expression``. If executed in a function then it "
807 "returns the value of the expression to the caller. If executed in the "
808 "outermost context (the template) then it sets the value of the template to "
809 "the value of the expression and exits the template."
810 msgstr "``式`` の値を返します。関数内で実行された場合は、式の値を呼び出し元に返します。最上位のコンテキスト(テンプレート)で実行された場合は、テンプレートの値が式の値に設定され、テンプレートの実行が終了します。"
811
812 #: ../../../__w/calibre/calibre/manual/template_lang.rst:412
813 msgid "**Function definition**"
814 msgstr "**関数の定義**"
815
816 #: ../../../__w/calibre/calibre/manual/template_lang.rst:414
817 msgid ""
818 "If you have repeated code in a template then you can put that code into a "
819 "local function. The ``def`` keyword starts the definition. It is followed by"
820 " the function name, the argument list, then the code in the function. The "
821 "function definition ends with the ``fed`` keyword."
822 msgstr "テンプレート内に繰り返し出現するコードを、ローカル関数にまとめることもできます。関数の定義は ``def`` キーワードで始まり、その後に関数名、引数リスト、そして関数内のコードが続きます。関数の定義は ``fed`` キーワードで終了します。"
823
824 #: ../../../__w/calibre/calibre/manual/template_lang.rst:416
825 msgid ""
826 "Arguments are positional. When a function is called the supplied arguments "
827 "are matched left to right against the defined parameters, with the value of "
828 "the argument assigned to the parameter. It is an error to provide more "
829 "arguments than defined parameters. Parameters can have default values, such "
830 "as ``a = 25``. If an argument is not supplied for that parameter then the "
831 "default value is used, otherwise the parameter is set to the empty string."
832 msgstr "引数はキーワード引数です。関数が呼び出されると、指定された引数が定義されたパラメータに対して左から右に照合され、引数の値がパラメータに割り当てられます。定義されたパラメータよりも多くの引数を指定するとエラーになります。パラメータには、``a = 25`` などのデフォルト値を設定できます。そのパラメータに引数が指定されていない場合はデフォルト値が使用され、それ以外の場合はパラメータが空の文字列に設定されます。"
833
834 #: ../../../__w/calibre/calibre/manual/template_lang.rst:418
835 msgid "The ``return`` statement can be used in a local function."
836 msgstr "``return`` 文はローカル関数の中で使用できます。"
837
838 #: ../../../__w/calibre/calibre/manual/template_lang.rst:420
839 msgid "A function must be defined before it can be used."
840 msgstr "関数は、使用する前に定義する必要があります。"
841
842 #: ../../../__w/calibre/calibre/manual/template_lang.rst:422
843 msgid ""
844 "Example: This template computes an approximate duration in years, months, "
845 "and days from a number of days. The function ``to_plural()`` formats the "
846 "computed values. Note that the example also uses the ``&`` operator::"
847 msgstr "例: このテンプレートは、日数から年、月、日でおおよその期間を計算します。関数 `to_plural()`` は、計算された値を整形します。ただしこの例では ``&`` 演算子も使用しています::eo"
848
849 #: ../../../__w/calibre/calibre/manual/template_lang.rst:437
850 msgid "**Relational operators**"
851 msgstr "**関係演算子**"
852
853 #: ../../../__w/calibre/calibre/manual/template_lang.rst:439
854 msgid ""
855 "Relational operators return ``'1'`` if the comparison is true, otherwise the"
856 " empty string (``''``)."
857 msgstr "関係演算子は、比較が真の場合は ``'1'`` を返し、それ以外の場合は空文字列( ``''`` )を返します。"
858
859 #: ../../../__w/calibre/calibre/manual/template_lang.rst:441
860 msgid ""
861 "There are two forms of relational operators: string comparisons and numeric "
862 "comparisons."
863 msgstr "関係演算子は 2 種類あり、それは文字列比較と数値比較です。"
864
865 #: ../../../__w/calibre/calibre/manual/template_lang.rst:443
866 msgid ""
867 "String comparisons do case-insensitive string comparison using lexical "
868 "order. The supported string comparison operators are ``==``, ``!=``, ``<``, "
869 "``<=``, ``>``, ``>=``, ``in``, ``inlist``, and ``inlist_field``. For the "
870 "``in``, ``inlist``, and ``inlist_field`` operators, the result of the left "
871 "hand expression is interpreted as a regular expression pattern. They are "
872 "true if the value of left-hand regular expression matches the value of the "
873 "right hand expression. The regular expressions are case-insensitive."
874 msgstr "文字列比較は、辞書順に基づいた大文字小文字を区別しない比較を行います。サポートされている文字列比較演算子は、 ``==`` 、 ``!=`` 、 ``<`` 、 ``<=`` 、 ``>`` 、 ``>=`` 、 ``in`` 、 ``inlist`` 、および ``inlist_field`` です。 ``in`` 、 ``inlist`` 、および ``inlist_field`` 演算子の場合、左辺の式の評価結果は正規表現パターンとして解釈されます。これらの演算子は、左辺の正規表現が右辺の値に一致する場合に真となります。正規表現は、大文字小文字を区別しません。"
875
876 #: ../../../__w/calibre/calibre/manual/template_lang.rst:446
877 msgid ""
878 "The ``inlist`` operator is true if the left hand regular expression matches "
879 "any one of the items in the right hand list where the items in the list are "
880 "separated by commas. The ``inlist_field`` operator is true if the left hand "
881 "regular expression matches any of the items in the field (column) named by "
882 "the right hand expression, using the separator defined for the field. NB: "
883 "the ``inlist_field`` operator requires the right hand expression to evaluate"
884 " to a field name, while the ``inlist`` operator requires the right hand "
885 "expression to evaluate to a string containing a comma-separated list. "
886 "Because of this difference, ``inlist_field`` is substantially faster than "
887 "``inlist`` because no string conversions or list constructions are done."
888 msgstr "``inlist`` 演算子は、左側の正規表現が右側のカンマ区切りリスト内のいずれかの項目に一致する場合に真となります。 ``inlist_field`` 演算子は、左側の正規表現が右側の式で指定されたフィールド(列)内のいずれかの項目に一致する場合に真となります。この場合、フィールドに定義された区切り文字が使用されます。注: ``inlist_field`` 演算子は、右側の式がフィールド名に評価されることを必要としますが、 ``inlist`` 演算子は、右側の式がカンマ区切りリストを含む文字列に評価されることを必要とします。この違いにより、 ``inlist_field`` は文字列変換やリスト構築が行われないため、``inlist`` よりも大幅に高速です。"
889
890 #: ../../../__w/calibre/calibre/manual/template_lang.rst:448
891 msgid ""
892 "The numeric comparison operators are ``==#``, ``!=#``, ``<#``, ``<=#``, "
893 "``>#``, ``>=#``. The left and right expressions must evaluate to numeric "
894 "values with two exceptions: both the string value \"None\" (undefined field)"
895 " and the empty string evaluate to the value zero."
896 msgstr "数値比較演算子は、``==#``, ``!=#``, ``<#``, ``<=#``, ``>#``, ``>=#`` です。左と右の式は、2 つの例外を除いて数値に評価される必要があります。文字列値 \"None\" (未定義のフィールド) と空の文字列の両方が値ゼロに評価されます。"
897
898 #: ../../../__w/calibre/calibre/manual/template_lang.rst:450
899 msgid "Examples:"
900 msgstr "例:"
901
902 #: ../../../__w/calibre/calibre/manual/template_lang.rst:452
903 msgid ""
904 "``program: field('series') == 'foo'`` returns ``'1'`` if the book's series "
905 "is `foo`, otherwise ``''``."
906 msgstr "``program: field('series') == 'foo'`` は、本のシリーズが `foo` であれば ``'1'`` を返し、そうでなければ ``''`` を返します。"
907
908 #: ../../../__w/calibre/calibre/manual/template_lang.rst:453
909 msgid ""
910 "``program: 'f.o' in field('series')`` returns ``'1'`` if the book's series "
911 "matches the regular expression ``f.o`` (e.g., `foo`, `Off Onyx`, etc.), "
912 "otherwise ``''``."
913 msgstr "``program: 'f.o' in field('series')`` は、本のシリーズが正規表現 ``f.o`` (例: `foo`, `Off Onyx`, など) とマッチすれば ``'1'`` を返し、そうでなければ ``''`` を返します。"
914
915 #: ../../../__w/calibre/calibre/manual/template_lang.rst:454
916 msgid ""
917 "``program: 'science' inlist $#genre`` returns ``'1'`` if any of the values "
918 "retrieved from the book's genres match the regular expression ``science``, "
919 "e.g., `Science`, `History of Science`, `Science Fiction` etc., otherwise "
920 "``''``."
921 msgstr "``program: 'science' inlist $#genre`` は、本のジャンルから取得された値のいずれかが正規表現  ``science`` に一致する場合(例: `Science` 、 `History of Science` 、 `Science Fiction` など)は ``1`` を返し、そうでない場合は ``''`` を返します。"
922
923 #: ../../../__w/calibre/calibre/manual/template_lang.rst:455
924 msgid ""
925 "``program: '^science$' inlist $#genre`` returns ``'1'`` if any of the book's"
926 " genres exactly match the regular expression ``^science$``, e.g., `Science`,"
927 " otherwise ``''``. The genres `History of Science` and `Science Fiction` "
928 "don't match."
929 msgstr "``program: '^science$' inlist $#genre`` は、本のジャンルのいずれかが正規表現 `^science$` に完全に一致する場合(例: `Science` )は ``'1'`` を返し、そうでない場合は ``''`` を返します。 ジャンルが `History of Science` や `Science Fiction` は一致しません。"
930
931 #: ../../../__w/calibre/calibre/manual/template_lang.rst:456
932 msgid ""
933 "``program: 'asimov' inlist $authors`` returns ``'1'`` if any author matches "
934 "the regular expression ``asimov``, e.g., `Asimov, Isaac` or `Isaac Asimov`, "
935 "otherwise ``''``."
936 msgstr "``program: 'asimov' inlist $authors`` は、いずれかの著者が正規表現 `asimov` に一致する場合(例: `Asimov, Isaac` や `Isaac Asimov` )、``'1'`` を返し、そうでない場合は ``''`` を返します。"
937
938 #: ../../../__w/calibre/calibre/manual/template_lang.rst:457
939 msgid ""
940 "``program: 'asimov' inlist_field 'authors'`` returns ``'1'`` if any author "
941 "matches the regular expression ``asimov``, e.g., `Asimov, Isaac` or `Isaac "
942 "Asimov`, otherwise ``''``."
943 msgstr "``program: 'asimov' inlist_field 'authors'`` は、いずれかの著者が正規表現 ``asimov`` に一致する場合(例:`Asimov, Isaac` や `Isaac Asimov` )、``'1'`` を返し、そうでない場合は ``''`` を返します。"
944
945 #: ../../../__w/calibre/calibre/manual/template_lang.rst:458
946 msgid ""
947 "``program: 'asimov$' inlist_field 'authors'`` returns ``'1'`` if any author "
948 "matches the regular expression ``asimov$``, e.g., `Isaac Asimov`, otherwise "
949 "``''``. It doesn't match `Asimov, Isaac` because of the ``$`` anchor in the "
950 "regular expression."
951 msgstr "``program: 'asimov$' inlist_field 'authors'`` は、いずれかの著者が正規表現 ``asimov$`` に一致する場合(例: `Isaac Asimov` )は ``'1'`` を返し、そうでない場合は ``''`` を返します。正規表現に ``$`` アンカーが含まれているため、`Asimov, Isaac` には一致しません。"
952
953 #: ../../../__w/calibre/calibre/manual/template_lang.rst:459
954 msgid ""
955 "``program: if field('series') != 'foo' then 'bar' else 'mumble' fi`` returns"
956 " ``'bar'`` if the book's series is not `foo`. Otherwise it returns "
957 "``'mumble'``."
958 msgstr "``program: if field('series') != 'foo' then 'bar' else 'mumble' fi`` は 本のシリーズが `foo` と等しくない場合は ``'bar'`` を返し、そうでない場合は ``'mumble'`` を返します。"
959
960 #: ../../../__w/calibre/calibre/manual/template_lang.rst:460
961 msgid ""
962 "``program: if field('series') == 'foo' || field('series') == '1632' then "
963 "'yes' else 'no' fi`` returns ``'yes'`` if series is either `foo` or `1632`, "
964 "otherwise ``'no'``."
965 msgstr "``program: if field('series') == 'foo' || field('series') == '1632' then 'yes' else 'no' fi`` は 本のシリーズが `foo` か、`1632` と等しい場合は ``'yes'`` を返し、そうでない場合は ``'no'`` を返します。"
966
967 #: ../../../__w/calibre/calibre/manual/template_lang.rst:461
968 msgid ""
969 "``program: if '^(foo|1632)$' in field('series') then 'yes' else 'no' fi`` "
970 "returns ``'yes'`` if series is either `foo` or `1632`, otherwise ``'no'``."
971 msgstr "``program: if '^(foo|1632)$' in field('series') then 'yes' else 'no' fi`` は 本のシリーズが `foo` か、`1632` と等しい場合は ``'yes'`` を返し、そうでない場合は ``'no'`` を返します。"
972
973 #: ../../../__w/calibre/calibre/manual/template_lang.rst:462
974 msgid ""
975 "``program: if 11 > 2 then 'yes' else 'no' fi`` returns ``'no'`` because the "
976 "``>`` operator does a lexical comparison."
977 msgstr "``program: if 11 > 2 then 'yes' else 'no' fi`` は ``'no'`` を返します。なぜなら ``>`` 演算子が辞書比較を行うからです。"
978
979 #: ../../../__w/calibre/calibre/manual/template_lang.rst:463
980 msgid ""
981 "``program: if 11 ># 2 then 'yes' else 'no' fi`` returns ``'yes'`` because "
982 "the ``>#`` operator does a numeric comparison."
983 msgstr "``program: if 11 ># 2 then 'yes' else 'no' fi`` は ``'yes'`` を返します。なぜなら ``>#`` 演算子は数値比較を行うからです。"
984
985 #: ../../../__w/calibre/calibre/manual/template_lang.rst:465
986 msgid "**Functions in General Program Mode**"
987 msgstr "**一般プログラムモードの関数**"
988
989 #: ../../../__w/calibre/calibre/manual/template_lang.rst:467
990 msgid ""
991 "See :ref:`template_functions_reference` for the list of functions built into"
992 " the template language."
993 msgstr "テンプレート言語に組み込まれている関数の一覧については、:ref:`template_functions_reference` を参照してください。"
994
995 #: ../../../__w/calibre/calibre/manual/template_lang.rst:471
996 msgid ""
997 "As opposed to :ref:`Single Function Mode <single_mode>`, in General Program "
998 "Mode you must specify the first parameter ``value``."
999 msgstr "単関数モードとは異なり、一般プログラムモードでは、最初のパラメータである ``value`` を指定する必要があります。"
1000
1001 #: ../../../__w/calibre/calibre/manual/template_lang.rst:472
1002 msgid "All parameters are expression_lists (see the grammar above)."
1003 msgstr "すべてのパラメータは式リストです(上記の文法を参照)。"
1004
1005 #: ../../../__w/calibre/calibre/manual/template_lang.rst:477
1006 msgid "More complex programs in template expressions - Template Program Mode"
1007 msgstr "より複雑なテンプレート表現のプログラム - テンプレートプログラムモード"
1008
1009 #: ../../../__w/calibre/calibre/manual/template_lang.rst:479
1010 msgid ""
1011 "`Template Program Mode` (`TPM`) is a blend of :ref:`General Program Mode "
1012 "<general_mode>` and :ref:`Single Function Mode <single_mode>`. `TPM` differs"
1013 " from Single Function Mode in that it permits writing template expressions "
1014 "that refer to other metadata fields, use nested functions, modify variables,"
1015 " and do arithmetic. It differs from `General Program Mode` in that the "
1016 "template is contained between ``{`` and ``}`` characters and doesn't begin "
1017 "with the word ``program:``. The program portion of the template is a General"
1018 " Program Mode expression list."
1019 msgstr "`テンプレートプログラムモード` (`TPM`) は、 :ref:`一般プログラムモード <general_mode>` and :ref:`単関数モード <single_mode>` を組み合わせたものです。 `TPM` は、他の書誌フィールドを参照し、ネストされた関数を使用し、変数を変更し、算術演算を実行するテンプレート式を記述できるという点で、単関数モードとは異なります。このテンプレートが ``{`` と ``}`` 文字の間に置かれ、``program:`` という部分で始まらないという点で、`一般プログラムモード` とは異なります。テンプレートのプログラム部分は、一般プログラムモードの式リストです。"
1020
1021 #: ../../../__w/calibre/calibre/manual/template_lang.rst:482
1022 msgid ""
1023 "Example: assume you want a template to show the series for a book if it has "
1024 "one, otherwise show the value of a custom field #genre. You cannot do this "
1025 "in the :ref:`Single Function Mode <single_mode>` because you cannot make "
1026 "reference to another metadata field within a template expression. In `TPM` "
1027 "you can, as the following expression demonstrates::"
1028 msgstr "例: テンプレートで、ある本がシリーズものならシリーズを表示し、そうでなければカスタムフィールド #genre の値を表示したいと仮定します。:ref:`単関数モード <single_mode>` ではテンプレートの式の中からは別の書誌フィールドを参照できないため、この処理は実現できません。 `TPM` でなら可能です。次の式のようにします::"
1029
1030 #: ../../../__w/calibre/calibre/manual/template_lang.rst:487
1031 msgid "The example shows several things:"
1032 msgstr "例からはいくつかのことがわかります:"
1033
1034 #: ../../../__w/calibre/calibre/manual/template_lang.rst:489
1035 msgid ""
1036 "`TPM` is used if the expression begins with ``:'`` and ends with ``'}``. "
1037 "Anything else is assumed to be in :ref:`Single Function Mode <single_mode>`."
1038 msgstr "式が ``:'`` で始まり ``'}`` で終わる場合は `TPM` が使用されます。それ以外の場合は、:ref:`単関数モード`であるとみなされます。"
1039
1040 #: ../../../__w/calibre/calibre/manual/template_lang.rst:491
1041 msgid ""
1042 "If the template contains a prefix and suffix, the expression ends with "
1043 "``'|`` where the ``|`` is the delimiter for the prefix. Example::"
1044 msgstr "テンプレートにプレフィックスとサフィックスが含まれている場合、式は ``'|`` で終わります。ここで ``|`` はプレフィックスの区切り文字です。例::"
1045
1046 #: ../../../__w/calibre/calibre/manual/template_lang.rst:495
1047 msgid ""
1048 "Functions must be given all their arguments. For example, the standard "
1049 "built-in functions must be given the initial parameter ``value``."
1050 msgstr "関数にはすべての引数を指定する必要があります。例えば、標準の組み込み関数には、最初のパラメータである ``value`` を指定する必要があります。"
1051
1052 #: ../../../__w/calibre/calibre/manual/template_lang.rst:496
1053 msgid ""
1054 "The variable ``$`` is usable as the ``value`` argument and stands for the "
1055 "value of the field named in the template, ``series`` in this case."
1056 msgstr "変数 ``$`` は ``value`` 引数として使用され、テンプレートで指定されたフィールド(この場合は ``series`` )の値を示します。"
1057
1058 #: ../../../__w/calibre/calibre/manual/template_lang.rst:497
1059 msgid "white space is ignored and can be used anywhere within the expression."
1060 msgstr "空白は無視され、式の中のどこでも使用できます。"
1061
1062 #: ../../../__w/calibre/calibre/manual/template_lang.rst:498
1063 msgid ""
1064 "constant strings are enclosed in matching quotes, either ``'`` or ``\"``."
1065 msgstr "定数文字列は対になる引用符、``'`` または ``\"`` のいずれかで囲まれます。"
1066
1067 #: ../../../__w/calibre/calibre/manual/template_lang.rst:500
1068 msgid ""
1069 "In `TPM`, using ``{`` and ``}`` characters in string literals can lead to "
1070 "errors or unexpected results because they confuse the template processor. It"
1071 " tries to treat them as template expression boundaries, not characters. In "
1072 "some but not all cases you can replace a ``{`` with ``[[`` and a ``}`` with "
1073 "`]]`. Advice: if your program contains ``{`` and ``}`` characters then you "
1074 "should use `General Program Mode`."
1075 msgstr "`TPM` では、文字列リテラル内で ``{`` と ``}`` の文字を使用すると、テンプレートプロセッサがこれらの文字をテンプレート式の区切り文字として認識してしまうため、エラーや予期せぬ結果が発生する可能性があります。場合によっては、 ``{`` を `` [[`` に、 ``}`` を ``]]`` に置き換えることで対応できます。アドバイス:プログラムに ``{`` と ``}`` の文字が含まれている場合は、 `一般プログラムモード` を使用してください。"
1076
1077 #: ../../../__w/calibre/calibre/manual/template_lang.rst:505
1078 msgid "Python Template Mode"
1079 msgstr "Python テンプレートモード"
1080
1081 #: ../../../__w/calibre/calibre/manual/template_lang.rst:507
1082 msgid ""
1083 "Python Template Mode (PTM) lets you write templates using native Python and "
1084 "the `calibre API <https://manual.calibre-ebook.com/develop.html#api-"
1085 "documentation-for-various-parts-of-calibre>`_. The database API will be of "
1086 "most use; further discussion is beyond the scope of this manual. PTM "
1087 "templates are faster and can do more complicated operations but you must "
1088 "know how to write code in Python using the calibre API."
1089 msgstr "Pythonテンプレートモード(PTM)を使用すると、ネイティブPythonと `calibre API <https://manual.calibre-ebook.com/develop.html#api-documentation-for-various-parts-of-calibre>`_ を使ってテンプレートを作成できます。データベースAPIがもっともよく使われますが、詳細については、このマニュアルの範囲外です。PTMテンプレートは高速で、より複雑な処理を実行できますが、calibre APIを使用してPythonでコードを書く方法を知っている必要があります。"
1090
1091 #: ../../../__w/calibre/calibre/manual/template_lang.rst:509
1092 msgid "A PTM template begins with:"
1093 msgstr "PTM テンプレートは次で始まります:"
1094
1095 #: ../../../__w/calibre/calibre/manual/template_lang.rst:527
1096 msgid ""
1097 "You can add the above text to your template using the context menu, usually "
1098 "accessed with a right click. The comments are not significant and can be "
1099 "removed. You must use python indenting."
1100 msgstr "上記のテキストは、通常右クリックで表示されるコンテキストメニューを使用してテンプレートに追加できます。コメントは本質的ではないため、削除しても構いません。Pythonのインデント規則に従う必要があります。"
1101
1102 #: ../../../__w/calibre/calibre/manual/template_lang.rst:529
1103 msgid ""
1104 "The context object supports ``str(context)`` that returns a string of the "
1105 "context's contents, and ``context.attributes`` that returns a list of the "
1106 "attribute names in the context."
1107 msgstr "コンテキストオブジェクトは、コンテキストの内容を文字列として返す ``str(context)`` と、コンテキスト内の属性名のリストを返す ``context.attributes`` をサポートしています。"
1108
1109 #: ../../../__w/calibre/calibre/manual/template_lang.rst:531
1110 msgid ""
1111 "The ``context.funcs`` attribute allows calling Built-in and User template "
1112 "functions, and Stored GPM/Python templates, so that you can execute them "
1113 "directly in your code. The functions are retrieved using their names. If the"
1114 " name conflicts with a Python keyword, add an underscore to the end of the "
1115 "name. Examples:"
1116 msgstr "``context.funcs`` 属性を使用すると、組み込みテンプレート関数、ユーザー定義テンプレート関数、および保存済みのGPM/Pythonテンプレートを呼び出すことができ、コード内で直接実行できます。関数は名前を使用して取得されます。名前がPythonのキーワードと競合する場合は、名前の末尾にアンダースコアを追加してください。例:"
1117
1118 #: ../../../__w/calibre/calibre/manual/template_lang.rst:538
1119 msgid ""
1120 "Here is an example of a PTM template that produces a list of all the authors"
1121 " for a series. The list is stored in a `Column built from other columns, "
1122 "behaves like tags`. It shows in :guilabel:`Book details` and has the "
1123 ":guilabel:`on separate lines` checked (in :guilabel:`Preferences->Look & "
1124 "feel->Book details`). That option requires the list to be comma-separated. "
1125 "To satisfy that requirement the template converts commas in author names to "
1126 "semicolons then builds a comma-separated list of authors. The authors are "
1127 "then sorted, which is why the template uses author_sort."
1128 msgstr "これは、シリーズのすべての著者のリストを作成するPTMテンプレートの例です。このリストは、`他の列から構築された列(タグのように動作する)`に保存されます。これは :guilabel:`本の詳細` セクションに表示され、:guilabel:`個別の行に表示` オプションがオンになっています( :guilabel:`環境設定 -> 外観 -> 本の詳細` )。このオプションでは、リストがカンマ区切りである必要があります。この要件を満たすために、テンプレートは著者名に含まれるカンマをセミコロンに変換してから、カンマ区切りの著者リストを作成します。その後、著者はソートされるため、テンプレートでは author_sort を使用しています。"
1129
1130 #: ../../../__w/calibre/calibre/manual/template_lang.rst:559
1131 msgid "The output in :guilabel:`Book details` looks like this:"
1132 msgstr ":guilabel:`本の詳細` の出力はこのようです:"
1133
1134 #: ../../../__w/calibre/calibre/manual/template_lang.rst:561
1135 msgid "E-book conversion dialog"
1136 msgstr "電子書籍変換ダイアログ"
1137
1138 #: ../../../__w/calibre/calibre/manual/template_lang.rst:569
1139 msgid "Templates and URLs"
1140 msgstr "テンプレートとURL"
1141
1142 #: ../../../__w/calibre/calibre/manual/template_lang.rst:571
1143 msgid "You can use templates to construct URLs. Two cases are described here:"
1144 msgstr "テンプレートを使用してURLを構築することができます。ここでは2つのケースについて説明します:"
1145
1146 #: ../../../__w/calibre/calibre/manual/template_lang.rst:573
1147 msgid "Custom column :guilabel:`Book details` search URLs"
1148 msgstr "カスタム列 :guilabel:`書籍詳細` 検索URL"
1149
1150 #: ../../../__w/calibre/calibre/manual/template_lang.rst:574
1151 msgid "The calibre URL scheme"
1152 msgstr "calibre URLスキーム"
1153
1154 #: ../../../__w/calibre/calibre/manual/template_lang.rst:576
1155 msgid "**Custom column book details search URLs**"
1156 msgstr "**カスタム列書籍詳細検索URL**"
1157
1158 #: ../../../__w/calibre/calibre/manual/template_lang.rst:578
1159 msgid ""
1160 "When you create a custom column you can provide a URL to be used in "
1161 ":guilabel:`Book details` using a template. For example, if you have a custom"
1162 " column for `Translators` you can define a URL to take you to a site for "
1163 "translators. Book details search URLs can be provided for `Text`, "
1164 "`Enumerated`, `Series`, and `Column built from other column` column types."
1165 msgstr "カスタム列を作成する際、テンプレートを使用して :guilabel:`書籍詳細` で使用するURLを指定できます。たとえば、``翻訳者`` 用のカスタム列を作成する場合、翻訳者向けのウェブサイトにアクセスできるURLを定義できます。書籍詳細検索用URLは、``テキスト`` 、 ``列挙型`` 、 ``シリーズ`` 、 ``他の列から構築された列`` の各列タイプで指定可能です。"
1166
1167 #: ../../../__w/calibre/calibre/manual/template_lang.rst:580
1168 msgid ""
1169 "When an item with a `search template` is clicked in :guilabel:`Book details`"
1170 " the template is evaluated. It is provided the normal book metadata. It is "
1171 "also provided three additional fields:"
1172 msgstr ":guilabel:`書籍詳細` に `検索テンプレート` が設定された項目をクリックすると、そのテンプレートが評価されます。テンプレートには通常の本の書誌データに加え、以下の3つの追加フィールドが提供されます:"
1173
1174 #: ../../../__w/calibre/calibre/manual/template_lang.rst:582
1175 msgid "``item_value``: the value of the clicked item."
1176 msgstr "``item_value``: クリックされた項目の値"
1177
1178 #: ../../../__w/calibre/calibre/manual/template_lang.rst:583
1179 msgid ""
1180 "``item_value_quoted``: the value of clicked item, URL-encoded. Special "
1181 "characters are escaped to make them valid in URLs and spaces are replaced by"
1182 " ``'+'`` (plus) signs."
1183 msgstr "``item_value_quoted``: クリックされたアイテムの値。URLエンコードされています。特殊文字はURLで有効になるようにエスケープされ、スペースは ``'+'`` (プラス) 記号に置き換えられます。"
1184
1185 #: ../../../__w/calibre/calibre/manual/template_lang.rst:584
1186 msgid ""
1187 "``item_value_no_plus``: the value of clicked item, URL-encoded. Special "
1188 "characters are escaped to make them valid in URLs and spaces are replaced by"
1189 " the ``%20``, not plus."
1190 msgstr "``item_value_no_plus``: クリックされたアイテムの値。URLエンコード済み。特殊文字はURLで有効になるようにエスケープされ、スペースはプラス記号ではなく``%20`` に置き換えられます。"
1191
1192 #: ../../../__w/calibre/calibre/manual/template_lang.rst:586
1193 msgid ""
1194 "There are several ways to construct the URL. The following use Wikipedia as "
1195 "an example."
1196 msgstr "URLを構築する方法はいくつかあります。以下ではWikipediaを例として説明します。"
1197
1198 #: ../../../__w/calibre/calibre/manual/template_lang.rst:588
1199 msgid "The simplest is a basic template::"
1200 msgstr "一番単純なのは基本テンプレートです::"
1201
1202 #: ../../../__w/calibre/calibre/manual/template_lang.rst:592
1203 msgid ""
1204 "In some cases you might want to do more processing. There are four template "
1205 "functions you can use, depending on the complexity of the processing."
1206 msgstr "場合によっては、さらに高度な処理が必要になることがあります。処理の複雑さに応じて、4種類のテンプレート関数を使用できます。"
1207
1208 #: ../../../__w/calibre/calibre/manual/template_lang.rst:599
1209 msgid ""
1210 "For example, assume you have a custom column `Translators` "
1211 "(``#translators``) where the names are `Last name, First name`. You might "
1212 "need to convert the name to `First name Last name` when creating the URL. "
1213 "You can use the :ref:`ff_make_url` function to do this::"
1214 msgstr "例えば、カスタム列 `Translators` (``#translators``) があり、名前が `Last name, First name` になっているとします。URLを作成する際に、名前を `First name Last name` に変換する必要があるかもしれません。:ref:`ff_make_url` 関数を使用すると、この変換が可能です。"
1215
1216 #: ../../../__w/calibre/calibre/manual/template_lang.rst:603
1217 msgid ""
1218 "If we assume that the translator's name is `Boy-Żeleński, Tadeusz` then the "
1219 "above template produces the link::"
1220 msgstr "翻訳者の名前が `Boy-Żeleński, Tadeusz` であると仮定すると、上記のテンプレートは次のリンクを生成します::"
1221
1222 #: ../../../__w/calibre/calibre/manual/template_lang.rst:607
1223 msgid ""
1224 "Note that the person's first name is now first, the space is now a plus, and"
1225 " that the non-English characters in the last name are URL-encoded."
1226 msgstr "なお、名前の順番が姓から名に変わり、スペースがプラス記号に置き換えられ、姓に含まれる英語以外の文字はURLエンコードされていることに注意してください。"
1227
1228 #: ../../../__w/calibre/calibre/manual/template_lang.rst:609
1229 msgid ""
1230 "The functions :ref:`ff_make_url_extended`, :ref:`ff_query_string`, and "
1231 ":ref:`ff_encode_for_url` might be useful depending upon any additional "
1232 "processing complexity."
1233 msgstr "追加の処理の複雑さに応じて、:ref:`ff_make_url_extended` 、 :ref:`ff_query_string` 、および :ref:`ff_encode_for_url` といった関数が役立つ場合があります。"
1234
1235 #: ../../../__w/calibre/calibre/manual/template_lang.rst:611
1236 msgid "**The calibre URL scheme**"
1237 msgstr "**calibre URLスキーム**"
1238
1239 #: ../../../__w/calibre/calibre/manual/template_lang.rst:613
1240 msgid ""
1241 "Calibre supports several different URLs to navigate your calibre libraries. "
1242 "This section shows how to use templates to construct some of the URLs. See "
1243 ":doc:`url_scheme` for details on the URLs available."
1244 msgstr "calibreは、calibreライブラリを操作するための様々なURLをサポートしています。このセクションでは、テンプレートを使用してこれらのURLを構築する方法を説明します。利用可能なURLの詳細については、:doc:`url_scheme` を参照してください。"
1245
1246 #: ../../../__w/calibre/calibre/manual/template_lang.rst:616
1247 msgid "Switch to a specific library. The syntax of this URL is::"
1248 msgstr "指定したライブラリに切り替えます。URLの構文は次のとおりです::"
1249
1250 #: ../../../__w/calibre/calibre/manual/template_lang.rst:620
1251 msgid ""
1252 "``Library_Name`` must be replaced with the name of the calibre library you "
1253 "wish to open. The library name is shown in the title bar of the window. It "
1254 "is a simple name, not the file path to the library. You must spell it as "
1255 "shown in the title bar, including letter case. The character ``_`` "
1256 "(underscore) stands for the current library. If the name contains any spaces"
1257 " or special characters then it must be hex encoded using the "
1258 ":ref:`ff_to_hex` function, as in the following example::"
1259 msgstr "``Library_Name`` は、開きたいcalibreライブラリの名前に置き換える必要があります。ライブラリ名はウィンドウのタイトルバーに表示されます。これはファイルパスではなく、単純な名前です。タイトルバーに表示されているとおりに、大文字と小文字を含めて正確に入力してください。``_`` (アンダースコア)は現在のライブラリを表します。名前の中にスペースや特殊文字が含まれている場合は、次の例のように、:ref:`ff_to_hex` 関数を使用して16進数エンコードする必要があります。"
1260
1261 #: ../../../__w/calibre/calibre/manual/template_lang.rst:628
1262 msgid "The template generates the URL::"
1263 msgstr "テンプレートは URL を生成します::"
1264
1265 #: ../../../__w/calibre/calibre/manual/template_lang.rst:632
1266 msgid ""
1267 "You can replace the ``current_library_name()`` function with the actual name"
1268 " of the library, as in::"
1269 msgstr " ``current_library_name()`` 関数を、次のように実際のライブラリ名に置き換えることができます::"
1270
1271 #: ../../../__w/calibre/calibre/manual/template_lang.rst:636
1272 msgid ""
1273 "Links to show books. These links select a book in the calibre library. The "
1274 "syntax for this URL is::"
1275 msgstr "本を表示するためのリンクです。これらのリンクをクリックすると、calibreライブラリ内の本が選択されます。このURLの構文は以下のとおりです::"
1276
1277 #: ../../../__w/calibre/calibre/manual/template_lang.rst:640
1278 msgid ""
1279 "The ``book id`` is the numeric calibre id for the book, available to "
1280 "templates as ``$id``. As above, the library name might need to be hex "
1281 "encoded. Here is an example::"
1282 msgstr "``book id`` は、本の calibre ID の数値で、テンプレートでは ``$id`` として使用できます。上記と同様に、ライブラリ名は 16 進数でエンコードする必要がある場合があります。以下に例を示します::"
1283
1284 #: ../../../__w/calibre/calibre/manual/template_lang.rst:645
1285 msgid "It produces the URL::"
1286 msgstr "次の URL が生成されます::"
1287
1288 #: ../../../__w/calibre/calibre/manual/template_lang.rst:649
1289 msgid ""
1290 "Searching for books. These links search for books in the specified calibre "
1291 "library. The syntax for this URL is::"
1292 msgstr "本を検索します。これらのリンクは、指定されたcalibreライブラリ内の本を検索します。このURLの構文は以下のとおりです::"
1293
1294 #: ../../../__w/calibre/calibre/manual/template_lang.rst:654
1295 msgid ""
1296 "where `query` is any valid calibre search expression. You must hex encode "
1297 "any query containing spaces or special characters, which generally means all"
1298 " of them. For example, the calibre search expression for searching for a "
1299 "hierarchical tag beginning with 'AA' is ``tags:\"=.AA\"``. This template "
1300 "constructs a search URL for that expression::"
1301 msgstr "ここで `query` は有効なcalibre検索式です。スペースや特殊文字を含む検索式はすべて16進数エンコードする必要があります。つまり、ほとんどすべての検索式が該当します。例えば、 'AA' で始まる階層タグを検索するためのcalibre検索式は ``tags:\"=.AA\"`` です。このテンプレートは、その検索式に対応する検索URLを生成します::"
1302
1303 #: ../../../__w/calibre/calibre/manual/template_lang.rst:660
1304 msgid "The resulting URL is::"
1305 msgstr "結果の URL は次のようになります::"
1306
1307 #: ../../../__w/calibre/calibre/manual/template_lang.rst:664
1308 msgid ""
1309 "Here is an example of the same URL built using the "
1310 ":ref:``ff_make_url_extended`` function instead of :ref:`ff_strcat`::"
1311 msgstr "以下は、:ref:`ff_strcat` 関数ではなく :ref:`ff_make_url_extended` 関数を使用して構築された同じURLの例です::"
1312
1313 #: ../../../__w/calibre/calibre/manual/template_lang.rst:669
1314 msgid ""
1315 "Open a book details window on a book in some library. The syntax for this "
1316 "URL is::"
1317 msgstr "いずれかのライブラリにある本について、本の詳細ウィンドウを開きます。このURLの構文は以下のとおりです::"
1318
1319 #: ../../../__w/calibre/calibre/manual/template_lang.rst:673
1320 msgid "An example template is::"
1321 msgstr "テンプレートの例は次のとおりです::"
1322
1323 #: ../../../__w/calibre/calibre/manual/template_lang.rst:677
1324 #: ../../../__w/calibre/calibre/manual/template_lang.rst:694
1325 msgid "which produces the URL::"
1326 msgstr "これにより、次の URL が生成されます::"
1327
1328 #: ../../../__w/calibre/calibre/manual/template_lang.rst:681
1329 msgid ""
1330 "Open the notes associated with an author/series/etc. The syntax of the URL "
1331 "is::"
1332 msgstr "著者やシリーズなどに関連付けられた注釈を開きます。URLの構文は以下のとおりです::"
1333
1334 #: ../../../__w/calibre/calibre/manual/template_lang.rst:686
1335 msgid ""
1336 "``Field_Name`` is the lookup name of the field. If the field is a custom "
1337 "column then replace the ``#`` character with an underscore (``_``). "
1338 "``Item_Id`` is the internal numeric ID of the value in the field. There "
1339 "isn't a template function that returns the ``Item_Id``, so templates will "
1340 "normally use the second form, ``Hex_Encoded_Item_Name``. Here is a sample "
1341 "template that opens the note for the person ``Boy-Żeleński, Tadeusz`` in the"
1342 " field ``#authtest``::"
1343 msgstr "``Field_Name`` はフィールドの検索名です。フィールドがカスタム列の場合は、 ``#`` 文字をアンダースコア( ``_`` )に置き換えてください。 ``Item_Id`` は、フィールド内の値の内部数値IDです。 ``Item_Id`` を返すテンプレート関数はないため、テンプレートでは通常、2番目の形式である ``Hex_Encoded_Item_Name`` を使用します。以下は、 ``#authtest`` フィールドにある ``Boy-Żeleński, Tadeusz`` という人物のメモを開くサンプルテンプレートです::"
1344
1345 #: ../../../__w/calibre/calibre/manual/template_lang.rst:700
1346 msgid "Stored templates"
1347 msgstr "保存済みテンプレート"
1348
1349 #: ../../../__w/calibre/calibre/manual/template_lang.rst:702
1350 msgid ""
1351 "Both :ref:`General Program Mode <general_mode>` and :ref:`Python Template "
1352 "Mode <python_mode>` support saving templates and calling those templates "
1353 "from another template, much like calling stored functions. You save "
1354 "templates using :guilabel:`Preferences->Advanced->Template functions`. More "
1355 "information is provided in that dialog. You call a template the same way you"
1356 " call a function, passing positional arguments if desired. An argument can "
1357 "be any expression. Examples of calling a template, assuming the stored "
1358 "template is named ``foo``:"
1359 msgstr ":ref:`一般プログラム モード ` と :ref:`Python テンプレート モード ` は両方とも、ストアド関数の呼び出しと同様に、テンプレートの保存と別のテンプレートからの呼び出しをサポートしています。テンプレートを保存するには、[設定 -> 詳細設定 -> テンプレート機能] を使用します。詳細については、そのダイアログに表示されます。関数を呼び出すのと同じ方法でテンプレートを呼び出し、必要に応じて位置引数を渡します。引数には任意の式を指定できます。保存されたテンプレートの名前が ``foo`` であると仮定して、テンプレートを呼び出す例:"
1360
1361 #: ../../../__w/calibre/calibre/manual/template_lang.rst:704
1362 msgid "``foo()`` -- call the template passing no arguments."
1363 msgstr "``foo()`` -- 引数を渡さずにテンプレートを呼び出します。"
1364
1365 #: ../../../__w/calibre/calibre/manual/template_lang.rst:705
1366 msgid ""
1367 "``foo(a, b)`` call the template passing the values of the two variables "
1368 "``a`` and ``b``."
1369 msgstr "``foo(a, b)`` は、2 つの変数 ``a`` と ``b`` の値を渡すテンプレートを呼び出します。"
1370
1371 #: ../../../__w/calibre/calibre/manual/template_lang.rst:706
1372 msgid ""
1373 "``foo(if field('series') then field('series_index') else 0 fi)`` -- if the "
1374 "book has a ``series`` then pass the ``series_index``, otherwise pass the "
1375 "value ``0``."
1376 msgstr "``foo(if field('series') then field('series_index') else 0 fi)`` -- 本に ``series`` があれば ``series_index`` を渡し、そうでなければ値 ``0`` を渡します。"
1377
1378 #: ../../../__w/calibre/calibre/manual/template_lang.rst:708
1379 msgid ""
1380 "In GPM you retrieve the arguments passed in the call to the stored template "
1381 "using the ``arguments`` function. It both declares and initializes local "
1382 "variables, effectively parameters. The variables are positional; they get "
1383 "the value of the parameter given in the call in the same position. If the "
1384 "corresponding parameter is not provided in the call then ``arguments`` "
1385 "assigns that variable the provided default value. If there is no default "
1386 "value then the variable is set to the empty string. For example, the "
1387 "following ``arguments`` function declares 2 variables, ``key``, "
1388 "``alternate``::"
1389 msgstr "GPMでは、保存されたテンプレートの呼び出し時に渡された引数を、 ``arguments`` 関数を使用して取得します。この関数はローカル変数を宣言し、同時に初期化します。これらの変数は位置に基づいており、呼び出し時に同じ位置で指定された引数の値が代入されます。呼び出し時に対応する引数が指定されていない場合、 ``arguments`` 関数はその変数に指定されたデフォルト値を代入します。デフォルト値が指定されていない場合は、変数は空の文字列に設定されます。例えば、次の ``arguments`` 関数は、``key`` と ``alternate`` という2つの変数を宣言します::"
1390
1391 #: ../../../__w/calibre/calibre/manual/template_lang.rst:712
1392 msgid "Examples, again assuming the stored template is named ``foo``:"
1393 msgstr "例として、保存されたテンプレートの名前が今回も ``foo`` であると仮定します:"
1394
1395 #: ../../../__w/calibre/calibre/manual/template_lang.rst:714
1396 msgid ""
1397 "``foo('#myseries')`` -- argument ``key`` is assigned the value "
1398 "``'myseries'`` and the argument ``alternate`` is assigned the default value "
1399 "``'series'``."
1400 msgstr "``foo('#myseries')`` -- 引数 ``key`` には値 ``'myseries'`` が割り当てられ、引数 ``alternate`` にはデフォルト値 ``'series'`` が割り当てられます。"
1401
1402 #: ../../../__w/calibre/calibre/manual/template_lang.rst:715
1403 msgid ""
1404 "``foo('series', '#genre')`` the variable ``key`` is assigned the value "
1405 "``'series'`` and the variable ``alternate`` is assigned the value "
1406 "``'#genre'``."
1407 msgstr "``foo('series', '#genre')`` 変数 ``key`` には値 ``'series'`` が割り当てられ、変数 ``alternate`` には値 ``'#genre'`` が割り当てられます。"
1408
1409 #: ../../../__w/calibre/calibre/manual/template_lang.rst:716
1410 msgid ""
1411 "``foo()`` -- the variable ``key`` is assigned the empty string and the "
1412 "variable ``alternate`` is assigned the value ``'series'``."
1413 msgstr "``foo()`` -- 変数 ``key`` には空の文字列が割り当てられ、変数 ``alternate`` には値 ``'series'`` が割り当てられます。"
1414
1415 #: ../../../__w/calibre/calibre/manual/template_lang.rst:718
1416 msgid ""
1417 "In PTM the arguments are passed in the ``arguments`` parameter, which is a "
1418 "list of strings. There isn't any way to specify default values. You must "
1419 "check the length of the ``arguments`` list to be sure that the number of "
1420 "arguments is what you expect."
1421 msgstr "PTMでは、引数は文字列のリストである ``arguments`` パラメータで渡されます。デフォルト値を指定する方法はありません。引数の数が想定どおりであることを確認するには、 ``arguments`` リストの長さをチェックする必要があります。"
1422
1423 #: ../../../__w/calibre/calibre/manual/template_lang.rst:720
1424 msgid ""
1425 "An easy way to test stored templates is using the ``Template tester`` "
1426 "dialog. For ease of access give it a keyboard shortcut in "
1427 ":guilabel:`Preferences->Advanced->Keyboard shortcuts->Template tester`. "
1428 "Giving the ``Stored templates`` dialog a shortcut will help switching more "
1429 "rapidly between the tester and editing the stored template's source code."
1430 msgstr "保存済みテンプレートをテストする簡単な方法は、 ``テンプレートテスタ`` ダイアログを使用することです。アクセスしやすくするには、:guilabel:`環境設定->高度な設定->キーボードショートカット->テンプレートテスタ` でキーボードショートカットを指定します。 ``保存済みテンプレート`` ダイアログにショートカットを指定すると、テスタをすばやく切り替えたり、保存されたテンプレートのソースコードを編集したりするのに役立ちます。"
1431
1432 #: ../../../__w/calibre/calibre/manual/template_lang.rst:723
1433 msgid "Providing additional information to templates"
1434 msgstr "テンプレートに追加情報を与える"
1435
1436 #: ../../../__w/calibre/calibre/manual/template_lang.rst:725
1437 msgid ""
1438 "A developer can choose to pass additional information to the template "
1439 "processor, such as application-specific book metadata or information about "
1440 "what the processor is being asked to do. A template can access this "
1441 "information and use it during the evaluation."
1442 msgstr "開発者は、アプリケーション固有の本の書誌やプロセッサに要求されていることに関する情報など、追加情報をテンプレートプロセッサに渡すことを選択できます。テンプレートはこの情報にアクセスして、評価中に使用できます。"
1443
1444 #: ../../../__w/calibre/calibre/manual/template_lang.rst:727
1445 msgid "**Developer: how to pass additional information**"
1446 msgstr "**開発者: 追加情報の渡し方**"
1447
1448 #: ../../../__w/calibre/calibre/manual/template_lang.rst:729
1449 msgid ""
1450 "The additional information is a Python dictionary containing pairs "
1451 "``variable_name: variable_value`` where the values must be strings. The "
1452 "template can access the dictionary, creating template local variables named "
1453 "``variable_name`` containing the value ``variable_value``. The user cannot "
1454 "change the name so it is best to use names that won't collide with other "
1455 "template local variables, for example by prefixing the name with an "
1456 "underscore."
1457 msgstr "追加情報は、``変数名と値`` のペアで構成されるPython辞書形式で提供されます。値は文字列のみ許されます。テンプレートはこの辞書にアクセスし、キーである変数名と同じ名前のテンプレートローカル変数を作成し、そこに値として対応する文字列を格納します。ユーザーは変数名を変更できないため、他のテンプレートローカル変数と名前が重複しないように、例えばアンダースコアを先頭に付けるなど、衝突しない名前を使用することが適切です。"
1458
1459 #: ../../../__w/calibre/calibre/manual/template_lang.rst:731
1460 msgid ""
1461 "This dictionary is passed to the template processor (the ``formatter``) "
1462 "using the named parameter ``global_vars=your_dict``. The full method "
1463 "signature is::"
1464 msgstr "この辞書は、名前付きパラメータ ``global_vars=your_dict`` を使用してテンプレートプロセッサ( ``formatter`` )に渡されます。メソッドの完全なシグネチャは次のとおりです::"
1465
1466 #: ../../../__w/calibre/calibre/manual/template_lang.rst:739
1467 msgid "**Template writer: how to access the additional information**"
1468 msgstr "**テンプレート作者: 追加情報のアクセス方法**"
1469
1470 #: ../../../__w/calibre/calibre/manual/template_lang.rst:741
1471 msgid ""
1472 "You access the additional information (the ``globals`` dictionary) in a "
1473 "template using the template function::"
1474 msgstr "テンプレート内で追加情報( ``globals`` 辞書)にアクセスするには、テンプレート関数を使用します::"
1475
1476 #: ../../../__w/calibre/calibre/manual/template_lang.rst:745
1477 msgid ""
1478 "where ``id`` is any legal variable name. This function checks whether the "
1479 "additional information provided by the developer contains the name. If it "
1480 "does then the function assigns the provided value to a template local "
1481 "variable with that name. If the name is not in the additional information "
1482 "and if an ``expression`` is provided, the ``expression`` is evaluated and "
1483 "the result is assigned to the local variable. If neither a value nor an "
1484 "expression is provided, the function assigns the empty string (``''``) to "
1485 "the local variable."
1486 msgstr "ここで、``id`` は任意の有効な変数名です。この関数は、開発者から提供された追加情報に名前が含まれているかどうかを確認します。その場合、関数は提供された値をその名前のテンプレートローカル変数に割り当てます。名前が追加情報に含まれておらず、式が指定されている場合、式が評価され、結果がローカル変数に割り当てられます。値も式も指定されていない場合、関数は空の文字列 (``''``) をローカル変数に割り当てます。"
1487
1488 #: ../../../__w/calibre/calibre/manual/template_lang.rst:747
1489 msgid ""
1490 "A template can set a value in the ``globals`` dictionary using the template "
1491 "function::"
1492 msgstr "テンプレートは、テンプレート関数を使用して ``globals`` 辞書に値を設定できます::"
1493
1494 #: ../../../__w/calibre/calibre/manual/template_lang.rst:751
1495 msgid ""
1496 "This function sets the ``globals`` dictionary key:value pair ``id:value`` "
1497 "where ``value`` is the value of the template local variable ``id``. If that "
1498 "local variable doesn't exist then ``value`` is set to the result of "
1499 "evaluating ``expression``."
1500 msgstr "この関数は、 ``globals`` 辞書にキーと値のペア ``id:value`` を設定します。ここで ``value`` はテンプレートのローカル変数 ``id`` の値です。もしそのローカル変数が存在しない場合は、``value`` は ``expression`` を評価した結果の値に設定されます。"
1501
1502 #: ../../../__w/calibre/calibre/manual/template_lang.rst:754
1503 msgid "Notes on the difference between modes"
1504 msgstr "モード間の違いに関する注意事項"
1505
1506 #: ../../../__w/calibre/calibre/manual/template_lang.rst:756
1507 msgid ""
1508 "The three program modes, :ref:`Single Function Mode <single_mode>` (SFM), "
1509 ":ref:`Template Program Mode <template_mode>` (`TPM`), and :ref:`General "
1510 "Program Mode <general_mode>` (`GPM`), work differently. SFM is intended to "
1511 "be 'simple' so it hides a lot of programming language bits."
1512 msgstr "3つのプログラムモード、 :ref:`単関数モード <single_mode>` (SFM), :ref:`テンプレートプログラムモード <template_mode>` (`TPM`), and :ref:`一般プログラムモード <general_mode>` (`GPM`)は、それぞれ動作が異なります。 SFMは「シンプル」を目指しているため、多くのプログラミング言語情報を隠します。"
1513
1514 #: ../../../__w/calibre/calibre/manual/template_lang.rst:758
1515 msgid "Differences:"
1516 msgstr "相違点:"
1517
1518 #: ../../../__w/calibre/calibre/manual/template_lang.rst:760
1519 msgid ""
1520 "In SFM the value of the column is always passed as an 'invisible' first "
1521 "argument to a function included in the template."
1522 msgstr "SFM では、列の値は常に「非表示」の最初の引数としてテンプレートに含まれる関数に渡されます。"
1523
1524 #: ../../../__w/calibre/calibre/manual/template_lang.rst:761
1525 msgid ""
1526 "SFM doesn't support the difference between variables and strings; all values"
1527 " are strings."
1528 msgstr "SFMは、変数と文字列の違いをサポートしていません。すべての値は文字列です。"
1529
1530 #: ../../../__w/calibre/calibre/manual/template_lang.rst:762
1531 msgid ""
1532 "The following SFM template returns either the series name or the string \"no"
1533 " series\"::"
1534 msgstr "次のSFMテンプレートは、シリーズ名か文字列 \"no series\" のいずれかを返します::"
1535
1536 #: ../../../__w/calibre/calibre/manual/template_lang.rst:766
1537 msgid "The equivalent template in `TPM` is ::"
1538 msgstr "`TPM` で同等のテンプレートは ::"
1539
1540 #: ../../../__w/calibre/calibre/manual/template_lang.rst:770
1541 msgid "The equivalent template in `GPM` is::"
1542 msgstr "`GPM` で同等のテンプレートは::"
1543
1544 #: ../../../__w/calibre/calibre/manual/template_lang.rst:774
1545 msgid ""
1546 "The first argument to ``ifempty`` is the value of the field ``series``. The "
1547 "second argument is the string ``no series``. In SFM the first argument, the "
1548 "value of the field, is automatically passed (the invisible argument)."
1549 msgstr "``ifempty`` の最初の引数は、フィールド ``series`` の値です。 2 番目の引数は文字列 ``no series`` です。 SFMでは、最初の引数であるフィールドの値が自動的に渡されます (非表示の引数)。"
1550
1551 #: ../../../__w/calibre/calibre/manual/template_lang.rst:775
1552 msgid ""
1553 "Several template functions, for example ``booksize()`` and "
1554 "``current_library_name()``, take no arguments. Because of the 'invisible "
1555 "argument' you cannot use these functions in SFM."
1556 msgstr "``booksize()`` や ``current_library_name()`` などのテンプレート関数には引数を受け取らないものがいくつかあります。 「目に見えない引数」を使用するせいで、SFMではこれらの関数は使用できません。"
1557
1558 #: ../../../__w/calibre/calibre/manual/template_lang.rst:776
1559 msgid ""
1560 "Nested functions, where a function calls another function to compute an "
1561 "argument, cannot be used in SFM. For example this template, intended to "
1562 "return the first 5 characters of the series value uppercased, won't work in "
1563 "SFM::"
1564 msgstr "関数が別の関数を呼び出して引数を計算する入れ子関数は、SFMでは使用できません。たとえば、大文字のシリーズ値の最初の 5 文字を​​返すことを目的としたこのテンプレートは、SFMでは機能しません::"
1565
1566 #: ../../../__w/calibre/calibre/manual/template_lang.rst:780
1567 msgid ""
1568 "`TPM` and `GPM` support nested functions. The above template in `TPM` would "
1569 "be::"
1570 msgstr "`TPM` と `GPM` は、入れ子の関数をサポートします。 `TPM` の上記のテンプレートは次のようになります。"
1571
1572 #: ../../../__w/calibre/calibre/manual/template_lang.rst:784
1573 msgid "In `GPM` it would be::"
1574 msgstr "`GPM` では次のようになります::"
1575
1576 #: ../../../__w/calibre/calibre/manual/template_lang.rst:788
1577 msgid ""
1578 "As noted in the above :ref:`Template Program Mode <template_mode>` section, "
1579 "using ``{`` and ``}`` characters in `TPM` string literals can lead to errors"
1580 " or unexpected results because they confuse the template processor. It tries"
1581 " to treat them as template boundaries, not characters. In some but not all "
1582 "cases you can replace a ``{`` with ``[[`` and a ``}`` with `]]`. Generally, "
1583 "if your program contains ``{`` and ``}`` characters then you should use "
1584 "`General Program Mode`."
1585 msgstr "上記のテンプレートプログラムモードのセクションで説明したように、TPM文字列リテラルで ``{`` および ``}`` 文字を使用すると、テンプレートプロセッサが混乱するため、エラーや予期しない結果が発生する可能性があります。それらを文字ではなくテンプレート境界として処理しようとします。すべてではありませんが ``{`` を ``[[`` に、そして ``}`` を ``]]`` に置き換えることができる場合もあります。一般的に、プログラムに ``{`` や ``}`` の文字が含まれている場合には `一般プログラムモード` を使用すべきです。"
1586
1587 #: ../../../__w/calibre/calibre/manual/template_lang.rst:792
1588 msgid "User-defined Python template functions"
1589 msgstr "ユーザ定義の Python テンプレート関数"
1590
1591 #: ../../../__w/calibre/calibre/manual/template_lang.rst:794
1592 msgid ""
1593 "You can add your own Python functions to the template processor. Such "
1594 "functions can be used in any of the three template programming modes. The "
1595 "functions are added by going to :guilabel:`Preferences -> Advanced -> "
1596 "Template functions`. Instructions are shown in that dialog. Note that you "
1597 "can use `Python Templates` for a similar purpose. As calling user-defined "
1598 "functions is faster than calling a Python template, user-defined functions "
1599 "might be more efficient depending on the complexity of what the function or "
1600 "template does."
1601 msgstr "テンプレートプロセッサに独自のPython関数を追加できます。これらの関数は、3つのテンプレートプログラミングモードすべてで使用可能です。関数を追加するには、:guilabel:`環境設定 -> 詳細設定 -> テンプレート関数` を選択してください。詳しい手順は、このダイアログに表示されています。なお、同様の目的で `Pythonテンプレート` を使用することもできます。ユーザー定義関数を呼び出す方がPythonテンプレートを呼び出すよりも高速であるため、関数またはテンプレートの処理内容の複雑さによっては、ユーザー定義関数の方が効率的になる場合があります。"
1602
1603 #: ../../../__w/calibre/calibre/manual/template_lang.rst:797
1604 msgid "Special notes for using templates in different contexts"
1605 msgstr "異なるコンテキストでテンプレートを使用するときの特別な注意"
1606
1607 #: ../../../__w/calibre/calibre/manual/template_lang.rst:799
1608 msgid ""
1609 "In the GUI (:guilabel:`Columns made from other columns` and "
1610 ":guilabel:`Template searches`):"
1611 msgstr "GUI(:guilabel:`他の列から作成された列` および :guilabel:`テンプレート検索` )では:"
1612
1613 #: ../../../__w/calibre/calibre/manual/template_lang.rst:801
1614 msgid "GPM templates work as before."
1615 msgstr "GPMテンプレートは以前と同様に機能します。"
1616
1617 #: ../../../__w/calibre/calibre/manual/template_lang.rst:802
1618 msgid "Python templates have full access to the calibre database."
1619 msgstr "Pythonテンプレートは、calibreデータベースにフルアクセスできます。"
1620
1621 #: ../../../__w/calibre/calibre/manual/template_lang.rst:804
1622 msgid "In icon rules:"
1623 msgstr "アイコンルールでは:"
1624
1625 #: ../../../__w/calibre/calibre/manual/template_lang.rst:806
1626 msgid ""
1627 "icon rule templates have no book data so field-based functions such as "
1628 ":ref:`ff_format_date_field`, :ref:`ff_list_count_field`, and "
1629 ":ref:`ff_check_yes_no` won't work."
1630 msgstr "アイコンルールテンプレートには本のデータが含まれていないため、`:ref:`ff_format_date_field` 、 `:ref:`ff_list_count_field` 、 `:ref:`ff_check_yes_no` といったフィールドベースの関数は機能しません。"
1631
1632 #: ../../../__w/calibre/calibre/manual/template_lang.rst:808
1633 msgid "In the Content server:"
1634 msgstr "コンテンツサーバでは:"
1635
1636 #: ../../../__w/calibre/calibre/manual/template_lang.rst:810
1637 msgid ""
1638 "Templates have access to the new API but not the old API (LibraryDatabase)."
1639 msgstr "テンプレートは新しいAPIにはアクセスできますが、古いAPI(ライブラリデータベース)にはアクセスできません。"
1640
1641 #: ../../../__w/calibre/calibre/manual/template_lang.rst:811
1642 msgid ""
1643 "Because of the above, the following formatter functions are not guaranteed "
1644 "to work in GPM templates (composite columns, icon rules, etc) and should be "
1645 "avoided if you use the content server:"
1646 msgstr "以上の理由により、以下のフォーマッタ関数はGPMテンプレート(複合列、アイコンルールなど)では正常に動作することが保証されないため、コンテンツサーバーを使用する場合は使用を避けてください。"
1647
1648 #: ../../../__w/calibre/calibre/manual/template_lang.rst:813
1649 msgid ":ref:`ff_connected_device_name`"
1650 msgstr ":ref:`ff_connected_device_name`"
1651
1652 #: ../../../__w/calibre/calibre/manual/template_lang.rst:814
1653 msgid ":ref:`ff_connected_device_uuid`"
1654 msgstr ":ref:`ff_connected_device_uuid`"
1655
1656 #: ../../../__w/calibre/calibre/manual/template_lang.rst:815
1657 msgid ":ref:`ff_current_virtual_library_name`"
1658 msgstr ":ref:`ff_current_virtual_library_name`"
1659
1660 #: ../../../__w/calibre/calibre/manual/template_lang.rst:816
1661 msgid ":ref:`ff_is_marked`"
1662 msgstr ":ref:`ff_is_marked`"
1663
1664 #: ../../../__w/calibre/calibre/manual/template_lang.rst:817
1665 msgid ":ref:`ff_virtual_libraries`"
1666 msgstr ":ref:`ff_virtual_libraries`"
1667
1668 #: ../../../__w/calibre/calibre/manual/template_lang.rst:820
1669 msgid "Special notes for save/send templates"
1670 msgstr "テンプレートの保存/送信に関する特記事項"
1671
1672 #: ../../../__w/calibre/calibre/manual/template_lang.rst:822
1673 msgid ""
1674 "Special processing is applied when a template is used in a :guilabel:`Save "
1675 "to disk` or :guilabel:`Send to device` template. The values of the fields "
1676 "are cleaned, replacing characters that are special to file systems with "
1677 "underscores, including slashes. This means that field text cannot be used to"
1678 " create folders. However, slashes are not changed in prefix or suffix "
1679 "strings, so slashes in these strings will cause folders to be created. "
1680 "Because of this, you can create variable-depth folder structure."
1681 msgstr " :guilabel:`ディスクに保存` または :guilabel:`デバイスに送信` テンプレートでテンプレートを使用する場合、特別な処理が適用されます。フィールドの値はクリーンアップされ、ファイルシステムで特殊な意味を持つ文字(スラッシュを含む)はアンダースコアに置き換えられます。つまり、フィールドのテキストを使用してフォルダを作成することはできません。ただし、プレフィックスまたはサフィックス文字列内のスラッシュは変更されないため、これらの文字列にスラッシュが含まれている場合はフォルダが作成されます。これにより、可変な深さのフォルダ構造を作成できます。"
1682
1683 #: ../../../__w/calibre/calibre/manual/template_lang.rst:824
1684 msgid ""
1685 "For example, assume we want the folder structure `series/series_index - "
1686 "title`, with the caveat that if series does not exist, then the title should"
1687 " be in the top folder. The template to do this is::"
1688 msgstr "たとえば、フォルダの構造を `series/series_index - title` としたいが、シリーズが存在しない場合はタイトルを最上位のフォルダに配置したいと仮定します。これを行うためのテンプレートは次のとおりです::"
1689
1690 #: ../../../__w/calibre/calibre/manual/template_lang.rst:828
1691 msgid "The slash and the hyphen appear only if series is not empty."
1692 msgstr "スラッシュとハイフンは、シリーズが空でない場合にのみ表示されます。"
1693
1694 #: ../../../__w/calibre/calibre/manual/template_lang.rst:830
1695 msgid ""
1696 "The lookup function lets us do even fancier processing. For example, assume "
1697 "that if a book has a series, then we want the folder structure "
1698 "`series/series index - title.fmt`. If the book does not have a series then "
1699 "we want the folder structure `genre/author_sort/title.fmt`. If the book has "
1700 "no genre then we want to use 'Unknown'. We want two completely different "
1701 "paths, depending on the value of series."
1702 msgstr "ルックアップ関数を使用すると、さらに高度な処理を実行できます。たとえば、本にシリーズがあるときにはフォルダ構造を `series/series index - title.fmt` にしたいと仮定します。そして本にシリーズがない場合は、フォルダ構造を `genre/author_sort/title.fmt` にしたいものとします。その本にジャンルがない場合は 'Unknown' を使用します。series の値に応じて、2つの完全に異なるパスが必要です。"
1703
1704 #: ../../../__w/calibre/calibre/manual/template_lang.rst:832
1705 msgid "To accomplish this, we:"
1706 msgstr "これを達成するには:"
1707
1708 #: ../../../__w/calibre/calibre/manual/template_lang.rst:834
1709 msgid ""
1710 "Create a composite field (give it lookup name #aa) containing "
1711 "``{series}/{series_index} - {title}``. If the series is not empty, then this"
1712 " template will produce `series/series_index - title`."
1713 msgstr "``{series}/{series_index} - {title}`` を含む複合フィールドを作成します (ルックアップ名 #aa を指定します)。シリーズが空でなければ、このテンプレートは `series/series_index - title` を生成します。"
1714
1715 #: ../../../__w/calibre/calibre/manual/template_lang.rst:835
1716 msgid ""
1717 "Create a composite field (give it lookup name #bb) containing "
1718 "``{#genre:ifempty(Unknown)}/{author_sort}/{title}``. This template produces "
1719 "`genre/author_sort/title`, where an empty genre is replaced with `Unknown`."
1720 msgstr "``{#genre:ifempty(Unknown)}/{author_sort}/{title}`` を含む複合フィールドを作成します (ルックアップ名 #bb を指定します)。このテンプレートは `genre/author_sort/title` を生成し、空のジャンルは `Unknown` に置き換えられます。"
1721
1722 #: ../../../__w/calibre/calibre/manual/template_lang.rst:836
1723 msgid ""
1724 "Set the save template to ``{series:lookup(.,#aa,#bb)}``. This template "
1725 "chooses composite field ``#aa`` if series is not empty and composite field "
1726 "``#bb`` if series is empty. We therefore have two completely different save "
1727 "paths, depending on whether or not `series` is empty."
1728 msgstr "保存テンプレートを ``{series:lookup(.,#aa,#bb)}`` に設定します。このテンプレートは、シリーズが空でない場合は複合フィールド ``#aa`` を、シリーズが空の場合は複合フィールド ``#bb`` を選択します。したがって、 ``series`` が空であるかどうかによって、完全に異なる2つの保存パスを提供することになります。"
1729
1730 #: ../../../__w/calibre/calibre/manual/template_lang.rst:839
1731 msgid "Tips"
1732 msgstr "ヒント"
1733
1734 #: ../../../__w/calibre/calibre/manual/template_lang.rst:841
1735 msgid ""
1736 "Use the Template Tester to test templates. Add the tester to the context "
1737 "menu for books in the library and/or give it a keyboard shortcut."
1738 msgstr "テンプレートテスタを使用してテンプレートをテストします。テスタをライブラリ内の本のコンテキストメニューに追加するか、キーボードショートカットを指定します。"
1739
1740 #: ../../../__w/calibre/calibre/manual/template_lang.rst:842
1741 msgid ""
1742 "Templates can use other templates by referencing composite columns built "
1743 "with the desired template. Alternatively, you can use Stored Templates."
1744 msgstr "テンプレートは、他のテンプレートを使用できます。それをするには、使用したいテンプレートの作成した複合列を参照します。または、保存済みテンプレートを使用することもできます。"
1745
1746 #: ../../../__w/calibre/calibre/manual/template_lang.rst:843
1747 msgid ""
1748 "In a plugboard, you can set a field to empty (or whatever is equivalent to "
1749 "empty) by using the special template ``{}``. This template will always "
1750 "evaluate to an empty string."
1751 msgstr "プラグボードでは、特殊なテンプレート ``{}`` を使用することで、フィールドを空(または空に相当するもの)に設定できます。このテンプレートは常に空の文字列として評価されます。"
1752
1753 #: ../../../__w/calibre/calibre/manual/template_lang.rst:844
1754 msgid ""
1755 "The technique described above to show numbers even if they have a zero value"
1756 " works with the standard field series_index."
1757 msgstr "ゼロ値であっても数値を表示する上記の手法は、標準フィールド series_index で機能します。"
1758
1759 #: ../../../__w/calibre/calibre/manual/template_lang.rst:849
1760 msgid "Template function reference"
1761 msgstr "テンプレート関数リファレンス"