Debian Codegraph @

man-pages/zh_TW/man1/calibredb.1

raw
1 .\" Man page generated from reStructuredText
2 .\" by the Docutils 0.22.4 manpage writer.
3 .
4 .
5 .nr rst2man-indent-level 0
6 .
7 .de1 rstReportMargin
8 \\$1 \\n[an-margin]
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
11 -
12 \\n[rst2man-indent0]
13 \\n[rst2man-indent1]
14 \\n[rst2man-indent2]
15 ..
16 .de1 INDENT
17 .\" .rstReportMargin pre:
18 . RS \\$1
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
22 ..
23 .de UNINDENT
24 . RE
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30 ..
31 .TH "CALIBREDB" "1" "9月 18, 2026" "9.15.0" "calibre"
32 .SH NAME
33 calibredb \- calibredb
34 .INDENT 0.0
35 .INDENT 3.5
36 .sp
37 .EX
38 calibredb command [options] [arguments]
39 .EE
40 .UNINDENT
41 .UNINDENT
42 .sp
43 \fBcalibredb\fP is the command line interface to the calibre database. It has
44 several sub\-commands, documented below.
45 .sp
46 \fBcalibredb\fP can be used to manipulate either a calibre database
47 specified by path or a calibre Content server running either on
48 the local machine or over the internet. You can start a calibre
49 Content server using either the \fBcalibre\-server\fP
50 program or in the main calibre program click Connect/share  → 
51 Start Content server\&. Since \fBcalibredb\fP can make changes to your
52 calibre libraries, you must setup authentication on the server first. There
53 are two ways to do that:
54 .INDENT 0.0
55 .INDENT 3.5
56 .INDENT 0.0
57 .IP \(bu 2
58 If you plan to connect only to a server running on the same computer,
59 you can simply use the \fB\-\-enable\-local\-write\fP option of the
60 Content server, to allow any program, including calibredb, running on
61 the local computer to make changes to your calibre data. When running
62 the server from the main calibre program, this option is in
63 Preferences → Sharing over the net → Advanced\&. Be careful though,
64 because some browsers, primarily Firefox, allow arbitrary websites to also
65 access local servers. If you use Firefox, it is better to setup username
66 and password, as described below. Local Network Access restriction has
67 still not been implemented as of Firefox v149.
68 .IP \(bu 2
69 If you want to enable access over the internet, then you should setup
70 user accounts on the server and use the \fB\-\-username\fP and \fB\-\-password\fP
71 options to \fBcalibredb\fP to give it access. You can setup
72 user authentication for \fBcalibre\-server\fP by using the \fB\-\-enable\-auth\fP
73 option and using \fB\-\-manage\-users\fP to create the user accounts.
74 If you are running the server from the main calibre program, use
75 Preferences → Sharing over the net → Require username/password\&.
76 .UNINDENT
77 .UNINDENT
78 .UNINDENT
79 .sp
80 To connect to a running Content server, pass the URL of the server to the
81 \fB\-\-with\-library\fP option, see the documentation of that option for
82 details and examples.
83 .INDENT 0.0
84 .IP \(bu 2
85 通用選項
86 .IP \(bu 2
87 list
88 .IP \(bu 2
89 add
90 .INDENT 2.0
91 .IP \(bu 2
92 正在從資料夾中加入
93 .UNINDENT
94 .IP \(bu 2
95 remove
96 .IP \(bu 2
97 add_format
98 .IP \(bu 2
99 remove_format
100 .IP \(bu 2
101 show_metadata
102 .IP \(bu 2
103 set_metadata
104 .IP \(bu 2
105 export
106 .IP \(bu 2
107 catalog
108 .INDENT 2.0
109 .IP \(bu 2
110 EPUB 選項
111 .UNINDENT
112 .IP \(bu 2
113 saved_searches
114 .IP \(bu 2
115 add_custom_column
116 .IP \(bu 2
117 custom_columns
118 .IP \(bu 2
119 remove_custom_column
120 .IP \(bu 2
121 set_custom
122 .IP \(bu 2
123 restore_database
124 .IP \(bu 2
125 check_library
126 .IP \(bu 2
127 list_categories
128 .IP \(bu 2
129 backup_metadata
130 .IP \(bu 2
131 clone
132 .IP \(bu 2
133 embed_metadata
134 .IP \(bu 2
135 search
136 .IP \(bu 2
137 fts_index
138 .IP \(bu 2
139 fts_search
140 .UNINDENT
141 .SH 通用選項
142 .INDENT 0.0
143 .TP
144 .B \-\-help, \-h
145 顯示說明訊息並退出
146 .UNINDENT
147 .INDENT 0.0
148 .TP
149 .B \-\-library\-path, \-\-with\-library
150 Path to the calibre library. Default is to use the path stored in the settings. You can also connect to a calibre Content server to perform actions on remote libraries. To do so use a URL of the form: \%<http://\:hostname:port/#\:library_id> for example, \%<http://\:localhost:8080/#\:mylibrary>\&. library_id is the library id of the library you want to connect to on the Content server. You can use the special library_id value of \- to get a list of library ids available on the server. For details on how to setup access via a Content server, see \%<https://\:manual\:.calibre-ebook\:.com/\:generated/\:en/\:calibredb\:.html>\&.
151 .UNINDENT
152 .INDENT 0.0
153 .TP
154 .B \-\-password
155 用來連線至 calibre 伺服器的密碼。要使用標準輸入中讀取密碼,請使用特殊值:<stdin>。如果要從檔案中讀取密碼,請使用:<f:/path/to/file>( 例如: <f: 檔案的完整路徑以及後置 >)。前方所寫的角括號是必須使用的,請記得在命令介面中使用跳脫字元或是引號。
156 .UNINDENT
157 .INDENT 0.0
158 .TP
159 .B \-\-timeout
160 透過網路連接到 calibre 書庫時的逾時時間,以秒為單位。預設值為兩分鍾。
161 .UNINDENT
162 .INDENT 0.0
163 .TP
164 .B \-\-username
165 登入Calibre網路伺服器時所用之使用者名稱
166 .UNINDENT
167 .INDENT 0.0
168 .TP
169 .B \-\-version
170 顯示程式版本編號並退出
171 .UNINDENT
172 .SH LIST
173 .INDENT 0.0
174 .INDENT 3.5
175 .sp
176 .EX
177 calibredb list [options]
178 .EE
179 .UNINDENT
180 .UNINDENT
181 .sp
182 列出 calibre 資料庫中可用書本。
183 .sp
184 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
185 .INDENT 0.0
186 .TP
187 .B \-\-ascending
188 以遞增次序排列結果
189 .UNINDENT
190 .INDENT 0.0
191 .TP
192 .B \-\-fields, \-f
193 在列出資料庫中書籍時要顯示的欄位。應該是逗號分隔的欄位列表。 可用欄位: author_sort, authors, comments, cover, formats, identifiers, isbn, languages, last_modified, pubdate, publisher, rating, series, series_index, size, tags, template, timestamp, title, uuid 預設值:title,authors。特殊欄位「all」可用於選擇所有欄位。除了上述內建欄位之外,自訂欄位還等價於*field_name,例如,對於自訂欄位#rating,使用名稱:*rating
194 .UNINDENT
195 .INDENT 0.0
196 .TP
197 .B \-\-for\-machine
198 產生適用於機器讀取用的JSON檔案,線寬及分隔符號將被忽略。
199 .UNINDENT
200 .INDENT 0.0
201 .TP
202 .B \-\-limit
203 結果顯示的最大數目。預設:全部
204 .UNINDENT
205 .INDENT 0.0
206 .TP
207 .B \-\-line\-width, \-w
208 輸出中單一行的最大寬度。預設值為偵測螢幕大小。
209 .UNINDENT
210 .INDENT 0.0
211 .TP
212 .B \-\-prefix
213 所有檔案路徑的前綴。預設值為書庫資料夾的絕對路徑。
214 .UNINDENT
215 .INDENT 0.0
216 .TP
217 .B \-\-search, \-s
218 以搜尋的查詢來過濾結果。要了解搜尋的查詢格式,請參閱使用者手冊中的搜尋相關文件。預設值為不做任何過濾。
219 .UNINDENT
220 .INDENT 0.0
221 .TP
222 .B \-\-separator
223 用來分離欄位的字串。預設為空白。
224 .UNINDENT
225 .INDENT 0.0
226 .TP
227 .B \-\-sort\-by
228 The field by which to sort the results. You can specify multiple fields by separating them with commas. Available fields: author_sort, authors, comments, cover, formats, identifiers, isbn, languages, last_modified, pubdate, publisher, rating, series, series_index, size, tags, template, timestamp, title, uuid Default: id. In addition to the builtin fields above, custom fields are also available as *field_name, for example, for a custom field #rating, use the name: *rating
229 .UNINDENT
230 .INDENT 0.0
231 .TP
232 .B \-\-template
233 The template to run if \fB\(dq\fPtemplate\fB\(dq\fP is in the field list. Note that templates are ignored while connecting to a calibre server. Default: None
234 .UNINDENT
235 .INDENT 0.0
236 .TP
237 .B \-\-template_file, \-t
238 Path to a file containing the template to run if \fB\(dq\fPtemplate\fB\(dq\fP is in the field list. Default: None
239 .UNINDENT
240 .INDENT 0.0
241 .TP
242 .B \-\-template_heading
243 Heading for the template column. Default: template. This option is ignored if the option \fB\-\-for\-machine\fP is set
244 .UNINDENT
245 .SH ADD
246 .INDENT 0.0
247 .INDENT 3.5
248 .sp
249 .EX
250 calibredb add [選項] file1 file2 file3 ...
251 .EE
252 .UNINDENT
253 .UNINDENT
254 .sp
255 加入指定檔案為書籍到資料庫。您可以指定目錄,請檢視下面目錄相關選項。
256 .sp
257 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
258 .INDENT 0.0
259 .TP
260 .B \-\-authors, \-a
261 編輯已加入的書本作者
262 .UNINDENT
263 .INDENT 0.0
264 .TP
265 .B \-\-automerge, \-m
266 如果找到具有相似標題和作者的圖書,請自動將傳入格式(檔案)合併到現有圖書記錄中。值「Ignore」表示丟棄重複的格式。值「overwrite」表示書庫中的重複格式將被新加入的檔案覆蓋。值「new_record」表示將重複的格式放入新的圖書記錄中。
267 .UNINDENT
268 .INDENT 0.0
269 .TP
270 .B \-\-cover, \-c
271 供已加入書本使用之書本封面路徑
272 .UNINDENT
273 .INDENT 0.0
274 .TP
275 .B \-\-duplicates, \-d
276 即使已經存在,也加入書籍到資料庫中。 根據書名和作者進行比較。 請注意,\fB\-\-automerge\fP 選項優先。
277 .UNINDENT
278 .INDENT 0.0
279 .TP
280 .B \-\-empty, \-e
281 加入空的電子書(沒有格式的書本)
282 .UNINDENT
283 .INDENT 0.0
284 .TP
285 .B \-\-identifier, \-I
286 為這本書設定識別項,例如 \-I asin:XXX \-I isbn:YYY
287 .UNINDENT
288 .INDENT 0.0
289 .TP
290 .B \-\-isbn, \-i
291 編輯已加入的書本 ISBN
292 .UNINDENT
293 .INDENT 0.0
294 .TP
295 .B \-\-languages, \-l
296 以逗號分隔的語言清單(最好使用ISO639所規範的語言格式,不過有些語言的名稱也能夠識別)
297 .UNINDENT
298 .INDENT 0.0
299 .TP
300 .B \-\-series, \-s
301 編輯已加入的書本系列
302 .UNINDENT
303 .INDENT 0.0
304 .TP
305 .B \-\-series\-index, \-S
306 編輯已加入的書本編號
307 .UNINDENT
308 .INDENT 0.0
309 .TP
310 .B \-\-tags, \-T
311 編輯已加入的書本標籤
312 .UNINDENT
313 .INDENT 0.0
314 .TP
315 .B \-\-title, \-t
316 編輯已加入的書本標題
317 .UNINDENT
318 .SS 正在從資料夾中加入
319 .sp
320 用來控制從資料夾中加入書本的選項。預設情況下,只會加入具有已知電子書檔案類型的檔案。
321 .INDENT 0.0
322 .TP
323 .B \-\-add
324 檔名 (glob) 模式,在掃描資料夾中的檔案時將加入與此模式相符的檔案,即使這些檔案不是已知的電子書檔案類型。可以為多個模式多次指定。
325 .UNINDENT
326 .INDENT 0.0
327 .TP
328 .B \-\-ignore
329 檔名模式 (glob) ,在掃瞄資料夾中的檔案時,與此模式相符的檔案將被忽略。可以為多個模式多次指定。例如:*.pdf 將忽略所有 PDF 檔案
330 .UNINDENT
331 .INDENT 0.0
332 .TP
333 .B \-\-one\-book\-per\-directory, \-1
334 假定每個資料夾只有一本書,而在其中的所有檔案都是那本書的不同電子書格式
335 .UNINDENT
336 .INDENT 0.0
337 .TP
338 .B \-\-recurse, \-r
339 遞迴地處理資料夾
340 .UNINDENT
341 .SH REMOVE
342 .INDENT 0.0
343 .INDENT 3.5
344 .sp
345 .EX
346 calibredb remove ids
347 .EE
348 .UNINDENT
349 .UNINDENT
350 .sp
351 從資料庫移除指定 id 的書籍。ids 應為以逗號分隔的 id 號列表(您可以使用搜尋命令來取得 id 號)。例如,23,34,57\-85 (如果指定一個區間,該區間的最後一個數字不會被包括在內)。
352 .sp
353 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
354 .INDENT 0.0
355 .TP
356 .B \-\-permanent
357 不要使用 資源回收筒
358 .UNINDENT
359 .SH ADD_FORMAT
360 .INDENT 0.0
361 .INDENT 3.5
362 .sp
363 .EX
364 calibredb add_format [options] id ebook_file
365 .EE
366 .UNINDENT
367 .UNINDENT
368 .sp
369 用 ebook_file 將電子書加入到由 id 標識的邏輯圖書的可用格式中。如果格式已經存在,則取代它,除非指定了不取代選項。
370 .sp
371 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
372 .INDENT 0.0
373 .TP
374 .B \-\-as\-extra\-data\-file
375 將檔案作為額外的數據檔案而不是電子書格式新增到書籍中
376 .UNINDENT
377 .INDENT 0.0
378 .TP
379 .B \-\-dont\-replace
380 在格式已存在時不要取代
381 .UNINDENT
382 .SH REMOVE_FORMAT
383 .INDENT 0.0
384 .INDENT 3.5
385 .sp
386 .EX
387 calibredb remove_format [options] id fmt
388 .EE
389 .UNINDENT
390 .UNINDENT
391 .sp
392 從 ID 辨識的邏輯書中刪除 fmt 格式。您可以透過使用搜尋命令取得 ID。fmt 應該是形如 LRF 或 TXT 或 EPUB 的一個檔案副檔名。如果邏輯書沒有 fmt 可用則什麼也不做。
393 .sp
394 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
395 .SH SHOW_METADATA
396 .INDENT 0.0
397 .INDENT 3.5
398 .sp
399 .EX
400 calibredb show_metadata [options] id
401 .EE
402 .UNINDENT
403 .UNINDENT
404 .sp
405 顯示在 calibre 資料庫中儲存的 id 所標識的圖書的中繼資料。
406 id 是來自搜尋命令的 id 編號。
407 .sp
408 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
409 .INDENT 0.0
410 .TP
411 .B \-\-as\-opf
412 以 OPF 格式(XML) 列印詮釋資料
413 .UNINDENT
414 .SH SET_METADATA
415 .INDENT 0.0
416 .INDENT 3.5
417 .sp
418 .EX
419 calibredb set_metadata [options] book_id [/path/to/metadata.opf]
420 .EE
421 .UNINDENT
422 .UNINDENT
423 .sp
424 Set the metadata stored in the calibre database for the book identified by
425 book_id from the OPF file metadata.opf. book_id is a book id number from the
426 search command. You can get a quick feel for the OPF format by using the
427 \-\-as\-opf switch to the show_metadata command. You can also set the metadata of
428 individual fields with the \-\-field option. If you use the \-\-field option, there
429 is no need to specify an OPF file.
430 .sp
431 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
432 .INDENT 0.0
433 .TP
434 .B \-\-field, \-f
435 設定欄位。格式是field_name:value,例如:\fB\-\-field\fP tags:tag1,tag2。使用:option:\fI\-\-list\-fields\(ga來取得所有欄位名稱的列表。您可以多次指定此選項來設定多個欄位。注意:對於語言,您必須使用ISO639語言代碼 (例如en代表英文,fr代表法語等)。對於識別項,語法是:option:\fP\-\-field\(ga identifiers:isbn:XXXX,doi:YYYYY。對於布林(是/否)欄位使用真與假或是和否。
436 .UNINDENT
437 .INDENT 0.0
438 .TP
439 .B \-\-list\-fields, \-l
440 列出所有 \fB\-\-field\fP 選項所可以使用的詮釋資料欄位
441 .UNINDENT
442 .SH EXPORT
443 .INDENT 0.0
444 .INDENT 3.5
445 .sp
446 .EX
447 calibredb export [options] ids
448 .EE
449 .UNINDENT
450 .UNINDENT
451 .sp
452 Export the books specified by ids (a comma separated list) to the filesystem.
453 The \fBexport\fP operation saves all formats of the book, its cover and metadata (in
454 an OPF file). Any extra data files associated with the book are also saved.
455 You can get id numbers from the search command.
456 .sp
457 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
458 .INDENT 0.0
459 .TP
460 .B \-\-all
461 匯出資料庫中所有的書本,忽略 id 列表。
462 .UNINDENT
463 .INDENT 0.0
464 .TP
465 .B \-\-dont\-asciiize
466 讓 calibre 將所有非英文字元轉換成英文對應字元的檔名。如果儲存到不完全支援 Unicode 檔名的舊檔案系統中,這將非常有用。 指定這個開關會關閉這個行為。
467 .UNINDENT
468 .INDENT 0.0
469 .TP
470 .B \-\-dont\-save\-cover
471 Normally, calibre will save the cover in a separate file along with the actual e\-book files. 指定這個開關會關閉這個行為。
472 .UNINDENT
473 .INDENT 0.0
474 .TP
475 .B \-\-dont\-save\-extra\-files
476 Save any data files associated with the book when saving the book 指定這個開關會關閉這個行為。
477 .UNINDENT
478 .INDENT 0.0
479 .TP
480 .B \-\-dont\-update\-metadata
481 通常calibre將會更新從書庫中所儲存的詮釋資料,這會讓儲存至磁碟變慢。 指定這個開關會關閉這個行為。
482 .UNINDENT
483 .INDENT 0.0
484 .TP
485 .B \-\-dont\-write\-opf
486 通常calibre會把詮釋資料寫入個別的OPF檔,和真實的電子書分離。 指定這個開關會關閉這個行為。
487 .UNINDENT
488 .INDENT 0.0
489 .TP
490 .B \-\-formats
491 每本書本的格式列表,逗號間隔。預設保存所有可用格式。
492 .UNINDENT
493 .INDENT 0.0
494 .TP
495 .B \-\-progress
496 回報進度
497 .UNINDENT
498 .INDENT 0.0
499 .TP
500 .B \-\-replace\-whitespace
501 以底線替代空格。
502 .UNINDENT
503 .INDENT 0.0
504 .TP
505 .B \-\-single\-dir
506 匯出全部的書本到單一個資料夾中
507 .UNINDENT
508 .INDENT 0.0
509 .TP
510 .B \-\-template
511 The template to control the filename and folder structure of the saved files. Default is \fB\(dq\fP{author_sort}/{title}/{title} \- {authors}\fB\(dq\fP which will save books into a per\-author subfolder with filenames containing title and author. Available controls are: {author_sort, authors, id, isbn, languages, last_modified, pages, pubdate, publisher, rating, series, series_index, tags, timestamp, title}
512 .UNINDENT
513 .INDENT 0.0
514 .TP
515 .B \-\-timefmt
516 顯示日期的格式。 %d \- 日、 %b \- 月、 %m \- 數字月、 %Y \- 年。預設值為: %b, %Y
517 .UNINDENT
518 .INDENT 0.0
519 .TP
520 .B \-\-to\-dir
521 匯出書本到指定的資料夾中,預設為: .
522 .UNINDENT
523 .INDENT 0.0
524 .TP
525 .B \-\-to\-lowercase
526 路徑轉換為小寫。
527 .UNINDENT
528 .SH CATALOG
529 .INDENT 0.0
530 .INDENT 3.5
531 .sp
532 .EX
533 calibredb catalog /path/to/destination.(csv|epub|mobi|xml...) [options]
534 .EE
535 .UNINDENT
536 .UNINDENT
537 .sp
538 以Path/to/Destination extension指定的格式匯出目錄。
539 選項控制列目在產生的目錄輸出中的顯示方式。
540 請注意,不同的目錄格式支援不同的選項集。
541 要檢視不同的選項,請指定輸出檔案的名稱,然後指定
542 \-\-help選項。
543 .sp
544 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
545 .INDENT 0.0
546 .TP
547 .B \-\-ids, \-i
548 逗號分割資料庫 ID 到書目的列表。 一旦聲明,則忽略 \fB\-\-search\fP 預設值:全部
549 .UNINDENT
550 .INDENT 0.0
551 .TP
552 .B \-\-search, \-s
553 為搜尋查詢過濾結果。搜尋查詢格式請參見使用者手冊中搜尋相關內容。預設:不過濾
554 .UNINDENT
555 .INDENT 0.0
556 .TP
557 .B \-\-verbose, \-v
558 顯示詳細的輸出資訊,便於除錯。
559 .UNINDENT
560 .SS EPUB 選項
561 .INDENT 0.0
562 .TP
563 .B \-\-catalog\-title
564 生成目录的标题用作元数据标题。 默认值:\fB\(aq\fPMy Books\fB\(aq\fP 适用于:AZW3,ePub,MOBI 等输出格式
565 .UNINDENT
566 .INDENT 0.0
567 .TP
568 .B \-\-cross\-reference\-authors
569 为具有多个作者的书籍在作者节中创建交叉引用。 默认值: \fB\(aq\fPFalse\fB\(aq\fP 适用于: AZW3, EPUB, MOBI输出格式
570 .UNINDENT
571 .INDENT 0.0
572 .TP
573 .B \-\-debug\-pipeline
574 Save the output from different stages of the conversion pipeline to the specified folder. Useful if you are unsure at which stage of the conversion process a bug is occurring. Default: \fB\(aq\fPNone\fB\(aq\fP Applies to: AZW3, EPUB, MOBI output formats
575 .UNINDENT
576 .INDENT 0.0
577 .TP
578 .B \-\-exclude\-genre
579 描述以排除类型的标签正则表达式。 默认值: \fB\(aq\fP[.+]|^+$\fB\(aq\fP 不包括括号内的标签,例如 \fB\(aq\fP[Project Gutenberg]\fB\(aq\fP, 和 \fB\(aq\fP+\fB\(aq\fP, 默认的用于阅读书籍的标签。 适用于: AZW3, EPUB, MOBI 输出格式
580 .UNINDENT
581 .INDENT 0.0
582 .TP
583 .B \-\-exclusion\-rules
584 指定用於從產生的目錄中排除書籍的規則。 排除規則的模型是(\fB\(aq\fP<rule name>\fB\(aq\fP,\fB\(aq\fP標籤\fB\(aq\fP,\fB\(aq\fP<comma\-separated list of tags>\fB\(aq\fP) 或(\fB\(aq\fP<rule name>\fB\(aq\fP,\fB\(aq\fP<custom column>\fB\(aq\fP,\fB\(aq\fP<pattern>\fB\(aq\fP)。 例如: ((\fB\(aq\fP已封存的書籍\fB\(aq\fP,\fB\(aq\fP#狀態\fB\(aq\fP,\fB\(aq\fP已封存\fB\(aq\fP),) 將在自訂列「狀態」中排除值為「已封存」的圖書。定義多個規則時,將套用所有規則。 預設: \fB\(dq\fP((\fB\(aq\fPCatalogs\fB\(aq\fP,\fB\(aq\fPTags\fB\(aq\fP,\fB\(aq\fPCatalog\fB\(aq\fP),)\fB\(dq\fP 適用於: AZW3, EPUB, MOBI 輸出格式
585 .UNINDENT
586 .INDENT 0.0
587 .TP
588 .B \-\-generate\-authors
589 目录中包括“作者”部分。 默认值: \fB\(aq\fPFalse\fB\(aq\fP 适用于: AZW3, EPUB, MOBI 输出格式
590 .UNINDENT
591 .INDENT 0.0
592 .TP
593 .B \-\-generate\-descriptions
594 目录中包括“描述”部分。 默认值: \fB\(aq\fPFalse\fB\(aq\fP 适用于: AZW3, EPUB, MOBI 输出格式
595 .UNINDENT
596 .INDENT 0.0
597 .TP
598 .B \-\-generate\-genres
599 目录中包括“类型”部分。 默认值: \fB\(aq\fPFalse\fB\(aq\fP 适用于: AZW3, EPUB, MOBI 输出格式
600 .UNINDENT
601 .INDENT 0.0
602 .TP
603 .B \-\-generate\-recently\-added
604 目录中包括“最近添加”部分。 默认值: \fB\(aq\fPFalse\fB\(aq\fP 适用于: AZW3, EPUB, MOBI 输出格式
605 .UNINDENT
606 .INDENT 0.0
607 .TP
608 .B \-\-generate\-series
609 目录中包括“丛书系列”部分。 默认值: \fB\(aq\fPFalse\fB\(aq\fP 适用于: AZW3, EPUB, MOBI 输出格式
610 .UNINDENT
611 .INDENT 0.0
612 .TP
613 .B \-\-generate\-titles
614 目录中包括“标题”部分。 默认值: \fB\(aq\fPFalse\fB\(aq\fP 适用于: AZW3, EPUB, MOBI 输出格式
615 .UNINDENT
616 .INDENT 0.0
617 .TP
618 .B \-\-genre\-source\-field
619 “类型”部分的源字段。 默认值: \fB\(aq\fP標籤\fB\(aq\fP 适用于: AZW3, EPUB, MOBI 输出格式
620 .UNINDENT
621 .INDENT 0.0
622 .TP
623 .B \-\-header\-note\-source\-field
624 包含要在描述标头中插入的注释文本的自定义域。 默认值: \fB\(aq\fP\fB\(aq\fP 适用于: AZW3, EPUB, MOBI输出格式
625 .UNINDENT
626 .INDENT 0.0
627 .TP
628 .B \-\-merge\-comments\-rule
629 #<custom field>:[before|after]:[True|False] 指定: <custom field> 包含與註解合併的註解的自訂欄位 [before|after] 關於註解的註解放置位置 [True|False] \- 在備註和註解之間插入水平規則 預設值: \fB\(aq\fP::\fB\(aq\fP 適用於: AZW3, EPUB, MOBI 輸出格式
630 .UNINDENT
631 .INDENT 0.0
632 .TP
633 .B \-\-output\-profile
634 指定输出配置文件。在某些情况下,输出配置文件用于优化某些设备的书目分类。例如,\fB\(aq\fPkindle\fB\(aq\fP 或 \fB\(aq\fPkindle_dx\fB\(aq\fP 以章节和文章的方式来生成目录结构。默认:\fB\(aq\fPNone\fB\(aq\fP 适用于:AZW3、EPUB、MOBI 等输出格式
635 .UNINDENT
636 .INDENT 0.0
637 .TP
638 .B \-\-prefix\-rules
639 指定用於包括表示已讀書籍,收藏清單項目和其他使用者定前綴的前綴的規則。 前綴規則的模型 (\fB\(aq\fP<rule name>\fB\(aq\fP,\fB\(aq\fP<source field>\fB\(aq\fP,\fB\(aq\fP<pattern>\fB\(aq\fP,\fB\(aq\fP<prefix>\fB\(aq\fP)。 當定義了多個規則時,將使用第一個相符規則。 預設規則: \fB\(dq\fP((\fB\(aq\fPRead books\fB\(aq\fP,\fB\(aq\fPtags\fB\(aq\fP,\fB\(aq\fP+\fB\(aq\fP,\fB\(aq\fP✓\fB\(aq\fP),(\fB\(aq\fPWishlist item\fB\(aq\fP,\fB\(aq\fPtags\fB\(aq\fP,\fB\(aq\fPWishlist\fB\(aq\fP,\fB\(aq\fP×\fB\(aq\fP))\fB\(dq\fP 適用於:AZW3, EPUB, MOBI 輸出格式
640 .UNINDENT
641 .INDENT 0.0
642 .TP
643 .B \-\-preset
644 使用GUI目录生成器创建的命名预设。 预设指定用于构建目录的所有设置。 默认值: \fB\(aq\fPNone\fB\(aq\fP 适用于: AZW3, EPUB, MOBI 输出格式
645 .UNINDENT
646 .INDENT 0.0
647 .TP
648 .B \-\-thumb\-width
649 目录中书籍封面的大小提示(英寸)。 范围: 1.0 \- 2.0 默认值: \fB\(aq\fP1.0\fB\(aq\fP 适用于: AZW3, EPUB, MOBI 输出格式
650 .UNINDENT
651 .INDENT 0.0
652 .TP
653 .B \-\-use\-existing\-cover
654 在產生目錄時取代現有的封面。 預設值: \fB\(aq\fPFalse\fB\(aq\fP 適用於: AZW3, EPUB, MOBI 輸出格式
655 .UNINDENT
656 .SH SAVED_SEARCHES
657 .INDENT 0.0
658 .INDENT 3.5
659 .sp
660 .EX
661 calibredb saved_searches [options] (list|add|remove)
662 .EE
663 .UNINDENT
664 .UNINDENT
665 .sp
666 管理儲存在該資料庫中的儲存搜尋。
667 如果嘗試加入已經存在的一個名稱查詢,
668 則它將被取代。
669 .sp
670 加入語法:
671 .sp
672 calibredb \fBsaved_searches\fP add search_name search_expression
673 .sp
674 刪除語法:
675 .sp
676 calibredb \fBsaved_searches\fP remove search_name
677 .sp
678 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
679 .SH ADD_CUSTOM_COLUMN
680 .INDENT 0.0
681 .INDENT 3.5
682 .sp
683 .EX
684 calibredb add_custom_column [options] label name datatype
685 .EE
686 .UNINDENT
687 .UNINDENT
688 .sp
689 建立一個自訂的欄位,標籤名為機器讀取用的名稱,不能包含空格或冒號。名稱則是方便人類閱讀。資料類型可為:bool, comments, composite, datetime, enumeration, float, int, rating, series, text
690 .sp
691 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
692 .INDENT 0.0
693 .TP
694 .B \-\-display
695 一個自訂選項如何解釋該列中資料的字典。這是一個 JSON 字串。對於枚舉列,使用 \fB\-\-display\fP\fB\(dq\fP{\e \fB\(dq\fPenum_values\e \fB\(dq\fP:[\e \fB\(dq\fPval1\e \fB\(dq\fP, \e \fB\(dq\fPval2\e \fB\(dq\fP]}\fB\(dq\fP 有許多選項可以進入顯示變數,按列類型的選項是: composite: composite_template, composite_sort, make_category,contains_html, use_decorations datetime: date_format enumeration: enum_values, enum_colors, use_decorations int, float: number_format text: is_names, use_decorations 找到適當組合的最好方法是在 GUI 中建立適當類型的自訂列,然後檢視圖書的備份 OPF (確保自從加入該列以來已經建立了新的 OPF)。在 OPF 中的新列中,您將看到 JSON 的「顯示」。
696 .UNINDENT
697 .INDENT 0.0
698 .TP
699 .B \-\-is\-multiple
700 這個欄位儲存類似標籤的資料(例如多個逗號分隔的數值)。只有在資料類型為文字時套用。
701 .UNINDENT
702 .SH CUSTOM_COLUMNS
703 .INDENT 0.0
704 .INDENT 3.5
705 .sp
706 .EX
707 calibredb custom_columns [options]
708 .EE
709 .UNINDENT
710 .UNINDENT
711 .sp
712 列出可用的自訂列欄位。顯示欄位標籤和 ids。
713 .sp
714 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
715 .INDENT 0.0
716 .TP
717 .B \-\-details, \-d
718 顯示每個欄位的詳細資料。
719 .UNINDENT
720 .SH REMOVE_CUSTOM_COLUMN
721 .INDENT 0.0
722 .INDENT 3.5
723 .sp
724 .EX
725 calibredb remove_custom_column [options] label
726 .EE
727 .UNINDENT
728 .UNINDENT
729 .sp
730 用標籤刪除的自訂列標識。可以使用custom_columns command命令檢視可用列
731 .sp
732 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
733 .INDENT 0.0
734 .TP
735 .B \-\-force, \-f
736 不需要進行詢問確認
737 .UNINDENT
738 .SH SET_CUSTOM
739 .INDENT 0.0
740 .INDENT 3.5
741 .sp
742 .EX
743 calibredb set_custom [options] column id value
744 .EE
745 .UNINDENT
746 .UNINDENT
747 .sp
748 為 id 標識的書設定自訂列的值。
749 您可以使用搜尋命令取得 id 列表。
750 您可以使用 custom_columns 命令取得自訂列名的列表。
751 .sp
752 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
753 .INDENT 0.0
754 .TP
755 .B \-\-append, \-a
756 如果欄位可存多值,將選定的屬性加入現有屬性中,而非取代。
757 .UNINDENT
758 .SH RESTORE_DATABASE
759 .INDENT 0.0
760 .INDENT 3.5
761 .sp
762 .EX
763 calibredb restore_database [options]
764 .EE
765 .UNINDENT
766 .UNINDENT
767 .sp
768 Restore this database from the metadata stored in OPF files in each
769 folder of the calibre library. This is useful if your metadata.db file
770 has been corrupted.
771 .sp
772 WARNING: This command completely regenerates your database. You will lose
773 all saved searches, user categories, plugboards, stored per\-book conversion
774 settings, and custom recipes. Restored metadata will only be as accurate as
775 what is found in the OPF files.
776 .sp
777 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
778 .INDENT 0.0
779 .TP
780 .B \-\-really\-do\-it, \-r
781 確實執行還原。這個指令除非指定這個選項否則不會執行。
782 .UNINDENT
783 .SH CHECK_LIBRARY
784 .INDENT 0.0
785 .INDENT 3.5
786 .sp
787 .EX
788 calibredb check_library [options]
789 .EE
790 .UNINDENT
791 .UNINDENT
792 .sp
793 對表示書庫的檔案系統執行一些檢查。產生報告是 invalid_titles, extra_titles, invalid_authors, extra_authors, missing_formats, extra_formats, extra_files, missing_covers, extra_covers, malformed_formats, malformed_paths, failed_folders
794 .sp
795 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
796 .INDENT 0.0
797 .TP
798 .B \-\-csv, \-c
799 輸出為 CSV
800 .UNINDENT
801 .INDENT 0.0
802 .TP
803 .B \-\-ignore_extensions, \-e
804 以逗號分割忽略的副檔名。 預設值:全部
805 .UNINDENT
806 .INDENT 0.0
807 .TP
808 .B \-\-ignore_names, \-n
809 以逗號分割忽略的檔名。 預設值:全部
810 .UNINDENT
811 .INDENT 0.0
812 .TP
813 .B \-\-report, \-r
814 以逗號分割報告清單。 預設值:全部
815 .UNINDENT
816 .INDENT 0.0
817 .TP
818 .B \-\-vacuum\-fts\-db
819 清空全文搜尋資料庫。這可能非常緩慢且佔用大量記憶體,具體取決於資料庫的大小。
820 .UNINDENT
821 .SH LIST_CATEGORIES
822 .INDENT 0.0
823 .INDENT 3.5
824 .sp
825 .EX
826 calibredb list_categories [options]
827 .EE
828 .UNINDENT
829 .UNINDENT
830 .sp
831 在資料庫中產生一個目錄資訊的報告。
832 該資訊與標籤窗格中顯示的資訊等效。
833 .sp
834 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
835 .INDENT 0.0
836 .TP
837 .B \-\-categories, \-r
838 以逗號分割分類查詢名稱。 預設值:全部
839 .UNINDENT
840 .INDENT 0.0
841 .TP
842 .B \-\-csv, \-c
843 輸出為 CSV
844 .UNINDENT
845 .INDENT 0.0
846 .TP
847 .B \-\-dialect
848 指定輸出的CSV檔案格式,格式: excel, excel\-tab, unix
849 .UNINDENT
850 .INDENT 0.0
851 .TP
852 .B \-\-item_count, \-i
853 只列出每個分類中的書本總數,而不是列出每個分類中的書本。
854 .UNINDENT
855 .INDENT 0.0
856 .TP
857 .B \-\-width, \-w
858 輸出中單一行的最大寬度。預設值為偵測螢幕大小。
859 .UNINDENT
860 .SH BACKUP_METADATA
861 .INDENT 0.0
862 .INDENT 3.5
863 .sp
864 .EX
865 calibredb backup_metadata [選項]
866 .EE
867 .UNINDENT
868 .UNINDENT
869 .sp
870 將儲存在資料庫中的中繼資料備份到每個圖書資料夾中的
871 單個 OPF 檔案中。這通常是自動發生的,但是您可以執行
872 此命令來強制重新產生 OPF 檔案,並使用 \-\-all 選項。
873 .sp
874 請注意,通常不需要這樣做,因為每次中繼資料變更時,
875 OPF 檔案都會自動備份。
876 .sp
877 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
878 .INDENT 0.0
879 .TP
880 .B \-\-all
881 此命令通常僅對於過時的OPT檔案進行操作,此選項會使它在所有的書本上操作。
882 .UNINDENT
883 .SH CLONE
884 .INDENT 0.0
885 .INDENT 3.5
886 .sp
887 .EX
888 calibredb 複製到 path/to/new/library
889 .EE
890 .UNINDENT
891 .UNINDENT
892 .sp
893 建立目前書庫的副本。它建立了一個新的、空的書庫,它所有的自訂列、虛擬書庫和其他設定與目前書庫相同。
894 .sp
895 副本書庫將沒有任何書籍。如果您想要建立一個完整的副本書庫,包括所有的書籍,那麼只需使用您的檔案系統工具來複製書庫資料夾。
896 .sp
897 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
898 .SH EMBED_METADATA
899 .INDENT 0.0
900 .INDENT 3.5
901 .sp
902 .EX
903 calibredb embed_metadata [options] book_id
904 .EE
905 .UNINDENT
906 .UNINDENT
907 .sp
908 從 calibre 資料庫中的中繼資料更新儲存在 calibre 書庫中的實際圖書檔案中的中繼資料。
909 通常,只有從 calibre 匯出檔案時才更新中繼資料,如果希望檔案就地更新,則此命
910 令很有用。請注意,不同的檔案格式支援不同數量的中繼資料。您可以使用book_id
911 的特殊值「all」來更新所有書籍中的中繼資料。還可以指定許多由空間分隔的書籍 ID
912 和由連字號分隔的 ID 範圍。例如:calibredb \fBembed_metadata\fP 1 2 10\-15 23
913 .sp
914 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
915 .INDENT 0.0
916 .TP
917 .B \-\-only\-formats, \-f
918 只更新特定格式檔案的詮釋資料,可以指定多個檔案格式。預設值將會更新所有格式的檔案。
919 .UNINDENT
920 .SH SEARCH
921 .INDENT 0.0
922 .INDENT 3.5
923 .sp
924 .EX
925 calibredb search [options] search expression
926 .EE
927 .UNINDENT
928 .UNINDENT
929 .sp
930 搜尋書庫中指定的搜尋項目,返回與搜尋運算式相符的以逗號分隔的圖書ID列表。輸出格式對於輸入格式接受ID列表的其他命令非常有用。
931 搜尋運算式可以是來自calibre強大的搜尋查詢語言中的任何內容,例如:calibredb \fBsearch\fP author:asimov \(aqtitle:\(dqi robot\(dq\(aq
932 .sp
933 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
934 .INDENT 0.0
935 .TP
936 .B \-\-limit, \-l
937 結果回傳結果的最大數目。預設回傳全部結果
938 .UNINDENT
939 .SH FTS_INDEX
940 .INDENT 0.0
941 .INDENT 3.5
942 .sp
943 .EX
944 calibredb fts_index [options] enable/disable/status/reindex
945 .EE
946 .UNINDENT
947 .UNINDENT
948 .sp
949 Control the Full text search indexing process.
950 .INDENT 0.0
951 .TP
952 .B enable
953 Turns on FTS indexing for this library
954 .TP
955 .B disable
956 Turns off FTS indexing for this library
957 .TP
958 .B status
959 Shows the current indexing status
960 .TP
961 .B reindex
962 Can be used to re\-index either particular books or
963 the entire library. To re\-index particular books
964 specify the book ids as additional arguments after the
965 reindex command. If no book ids are specified the
966 entire library is re\-indexed.
967 .UNINDENT
968 .sp
969 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
970 .INDENT 0.0
971 .TP
972 .B \-\-indexing\-speed
973 索引的速度。使用快速索引可使用所有電腦資源進行快速索引,使用慢速索引可使用較少的資源進行索引。請注意,每次呼叫索引後,索引速度都會重設為 Slow。
974 .UNINDENT
975 .INDENT 0.0
976 .TP
977 .B \-\-wait\-for\-completion
978 等到所有圖書都被編入索引,定期顯示索引進度
979 .UNINDENT
980 .SH FTS_SEARCH
981 .INDENT 0.0
982 .INDENT 3.5
983 .sp
984 .EX
985 calibredb fts_search [options] search expression
986 .EE
987 .UNINDENT
988 .UNINDENT
989 .sp
990 Do a full text search on the entire library or a subset of it.
991 .sp
992 每当向具有它们自己空间的calibredb传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
993 .INDENT 0.0
994 .TP
995 .B \-\-do\-not\-match\-on\-related\-words
996 僅比對精確字詞,而非相關字詞。因此 correction 將不會比對到 correcting。
997 .UNINDENT
998 .INDENT 0.0
999 .TP
1000 .B \-\-include\-snippets
1001 包括每個匹配項相關的文字片段。請注意,這會使搜索速度慢得多。
1002 .UNINDENT
1003 .INDENT 0.0
1004 .TP
1005 .B \-\-indexing\-threshold
1006 How much of the library must be indexed before searching is allowed, as a percentage. Defaults to 90
1007 .UNINDENT
1008 .INDENT 0.0
1009 .TP
1010 .B \-\-match\-end\-marker
1011 用於指示 程式碼 片段中相符字詞結束的標記
1012 .UNINDENT
1013 .INDENT 0.0
1014 .TP
1015 .B \-\-match\-start\-marker
1016 用於指示 程式碼 片段中相符字詞開始的標記
1017 .UNINDENT
1018 .INDENT 0.0
1019 .TP
1020 .B \-\-output\-format
1021 The format to output the search results in. Either \fB\(dq\fPtext\fB\(dq\fP for plain text or \fB\(dq\fPjson\fB\(dq\fP for JSON output.
1022 .UNINDENT
1023 .INDENT 0.0
1024 .TP
1025 .B \-\-restrict\-to
1026 Restrict the searched books, either using a search expression or ids. For example: ids:1,2,3 to restrict by ids or search:tag:foo to restrict to books having the tag foo.
1027 .UNINDENT
1028 .SH Author
1029 Kovid Goyal
1030 .SH Copyright
1031 Kovid Goyal
1032 .\" End of generated man page.