Debian Codegraph @

man-pages/zh_HK/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 Add the file as an extra data file to the book, not an ebook format
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 [选项] 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 Normally, calibre will update the metadata in the saved files from what is in the calibre library. Makes saving to disk slower. 指定這個開關會關閉這個行為。
482 .UNINDENT
483 .INDENT 0.0
484 .TP
485 .B \-\-dont\-write\-opf
486 Normally, calibre will write the metadata into a separate OPF file along with the actual e\-book files. 指定這個開關會關閉這個行為。
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 Vacuum the full text search database. This can be very slow and memory intensive, depending on the size of the database.
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搜索 [选项] 搜索表达式
926 .EE
927 .UNINDENT
928 .UNINDENT
929 .sp
930 搜索书库中指定的搜索项,返回与搜索表达式匹配的以逗号分隔的图书ID列表。输出格式对于输入格式接受ID列表的其他命令非常有用。
931 搜索表达式可以是来自calibre强大的搜索查询语言中的任何内容,例如:calibredb 搜索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 The speed of indexing. Use fast for fast indexing using all your computers resources and slow for less resource intensive indexing. Note that the speed is reset to slow after every invocation.
974 .UNINDENT
975 .INDENT 0.0
976 .TP
977 .B \-\-wait\-for\-completion
978 Wait till all books are indexed, showing indexing progress periodically
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 Only match on exact words not related words. So correction will not match correcting.
997 .UNINDENT
998 .INDENT 0.0
999 .TP
1000 .B \-\-include\-snippets
1001 Include snippets of the text surrounding each match. Note that this makes searching much slower.
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 The marker used to indicate the end of a matched word inside a snippet
1012 .UNINDENT
1013 .INDENT 0.0
1014 .TP
1015 .B \-\-match\-start\-marker
1016 The marker used to indicate the start of a matched word inside a snippet
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.