Debian Codegraph @

man-pages/zh_TW/man1/calibre-debug.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 "CALIBRE-DEBUG" "1" "9月 18, 2026" "9.15.0" "calibre"
32 .SH NAME
33 calibre-debug \- calibre-debug
34 .INDENT 0.0
35 .INDENT 3.5
36 .sp
37 .EX
38 calibre\-debug [選項]
39 .EE
40 .UNINDENT
41 .UNINDENT
42 .sp
43 Various command line interfaces useful for debugging calibre. With no options,
44 this command starts an embedded Python interpreter. You can also run the main
45 calibre GUI, the calibre E\-book viewer and the calibre editor in debug mode.
46 .sp
47 It also contains interfaces to various bits of calibre that do not have
48 dedicated command line tools, such as font subsetting, the E\-book diff tool and so
49 on.
50 .sp
51 You can also use \fBcalibre\-debug\fP to run standalone scripts. To do that use it like this:
52 .INDENT 0.0
53 .INDENT 3.5
54 \fBcalibre\-debug\fP \-e myscript.py \fB\-\-\fP \fB\-\-option1\fP \fB\-\-option2\fP file1 file2 ...
55 .UNINDENT
56 .UNINDENT
57 .sp
58 Everything after the \fB\-\-\fP is passed to the script. You can also use \fBcalibre\-debug\fP
59 as a shebang in scripts, like this:
60 .INDENT 0.0
61 .INDENT 3.5
62 #!/usr/bin/env \-S \fBcalibre\-debug\fP \-e \fB\-\-\fP \-\-
63 .UNINDENT
64 .UNINDENT
65 .sp
66 每当向具有它们自己空间的:command:
67 .nf
68 \(ga
69 .fi
70 calibre\-debug\(ga传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq
71 .SH [選項]
72 .INDENT 0.0
73 .TP
74 .B \-\-add\-simple\-plugin
75 藉由指定包含外掛代碼的 py 檔案路徑,來加入簡單外掛(即只由一個 .py 檔案組成的外掛)
76 .UNINDENT
77 .INDENT 0.0
78 .TP
79 .B \-\-command, \-c
80 執行 Python 程式碼
81 .UNINDENT
82 .INDENT 0.0
83 .TP
84 .B \-\-debug\-device\-driver, \-d
85 已發現偵錯裝置
86 .UNINDENT
87 .INDENT 0.0
88 .TP
89 .B \-\-default\-programs
90 從 Windows 預設程式註冊 / 註銷 calibre。 \fB\-\-default\-programs\fP = \fB(register|unregister)\fP
91 .UNINDENT
92 .INDENT 0.0
93 .TP
94 .B \-\-diff
95 執行calibre diff工具。例如: calibre\-debug \fB\-\-diff\fP file1 file2
96 .UNINDENT
97 .INDENT 0.0
98 .TP
99 .B \-\-edit\-book
100 Launch the calibre \fB\(dq\fPEdit book\fB\(dq\fP tool in debug mode. As with \-g use \fB\-\-\fP to pass command line arguments.
101 .UNINDENT
102 .INDENT 0.0
103 .TP
104 .B \-\-exec\-file, \-e
105 執行存有 Python 程式碼的檔案
106 .UNINDENT
107 .INDENT 0.0
108 .TP
109 .B \-\-explode\-book, \-x
110 將書解體到指定目錄中。 用法: \-x file.epub output_dir 將圖書匯出為 HTML 檔案和中繼資料的集合,您可以使用標準 HTML 編輯工具對其進行編輯。該用法適用於 EPUB、AZW3、HTMLZ 和 DOCX 檔案。
111 .UNINDENT
112 .INDENT 0.0
113 .TP
114 .B \-\-export\-all\-calibre\-data
115 Export all calibre data (books/settings/plugins). Normally, you will be asked for the export folder and the libraries to export. You can also specify them as command line arguments to skip the questions. Use absolute paths for the export folder and libraries. The special keyword \fB\(dq\fPall\fB\(dq\fP can be used to export all libraries. Examples: calibre\-debug \fB\-\-export\-all\-calibre\-data\fP # for interactive use calibre\-debug \fB\-\-export\-all\-calibre\-data\fP /path/to/empty/export/folder /path/to/library/folder1 /path/to/library2 calibre\-debug \fB\-\-export\-all\-calibre\-data\fP /export/folder all # export all known libraries
116 .UNINDENT
117 .INDENT 0.0
118 .TP
119 .B \-\-gui, \-g
120 Run the GUI with debugging enabled. Debug output is printed to stdout and stderr. To pass command line arguments use \fB\-\-\fP followed by the arguments, for example: calibre\-debug \-g \fB\-\-\fP /path/to/ebook
121 .UNINDENT
122 .INDENT 0.0
123 .TP
124 .B \-\-gui\-debug
125 以偵錯主控台啟動GUI,並將記錄日誌寫入到指定路徑,僅供內部使用,使用 \-g選項啟動以偵錯主控台啟動GUI。
126 .UNINDENT
127 .INDENT 0.0
128 .TP
129 .B \-\-help, \-h
130 顯示說明訊息並退出
131 .UNINDENT
132 .INDENT 0.0
133 .TP
134 .B \-\-implode\-book, \-i
135 聚合以前炸開過的書籍。 用法:\-i output_dir file.epub 從 output_dir 的檔案中匯入該圖書,該檔案必須是由之前呼叫 \fB\-\-explode\-book\fP 建立的。一定要指定與炸開時使用的檔案類型相同的檔案類型。
136 .UNINDENT
137 .INDENT 0.0
138 .TP
139 .B \-\-import\-calibre\-data
140 匯入先前匯出的calibre數據
141 .UNINDENT
142 .INDENT 0.0
143 .TP
144 .B \-\-inspect\-mobi, \-m
145 查看指定目錄的 MOBI 檔案
146 .UNINDENT
147 .INDENT 0.0
148 .TP
149 .B \-\-kepubify
150 Convert the specified EPUB file to KEPUB without doing a full conversion. This is what the Kobo driver does when sending files to the device.
151 .UNINDENT
152 .INDENT 0.0
153 .TP
154 .B \-\-paths
155 設定 calibre 環境時輸出路徑是必需的
156 .UNINDENT
157 .INDENT 0.0
158 .TP
159 .B \-\-run\-plugin, \-r
160 Run a plugin that provides a command line interface. For example: calibre\-debug \-r \fB\(dq\fPPlugin name\fB\(dq\fP \fB\-\-\fP file1 \fB\-\-option1\fP Everything after the \fB\-\-\fP will be passed to the plugin as arguments.
161 .UNINDENT
162 .INDENT 0.0
163 .TP
164 .B \-\-run\-test, \-t
165 Run the named test(s). Use the special value \fB\(dq\fPall\fB\(dq\fP to run all tests. If the test name starts with a period it is assumed to be a module name. If the test name starts with @ it is assumed to be a category name.
166 .UNINDENT
167 .INDENT 0.0
168 .TP
169 .B \-\-run\-without\-debug
170 Don\fB\(aq\fPt run with the DEBUG flag set
171 .UNINDENT
172 .INDENT 0.0
173 .TP
174 .B \-\-shutdown\-running\-calibre, \-s
175 原因是有執行中的 calibre 實體,如果有,應該將它關閉,注意如果有任何執行中的工作,它們會被直接中止,因此請小心使用。
176 .UNINDENT
177 .INDENT 0.0
178 .TP
179 .B \-\-subset\-font, \-f
180 將特定字體子集化,使用在這個選項之後使用「\-\-」以向字體子集程式傳送選項
181 .UNINDENT
182 .INDENT 0.0
183 .TP
184 .B \-\-test\-build
185 測試構建中的二進制模組
186 .UNINDENT
187 .INDENT 0.0
188 .TP
189 .B \-\-un\-kepubify
190 Convert the specified KEPUB file to EPUB without doing a full conversion. This is what the Kobo driver does when importing files from the device.
191 .UNINDENT
192 .INDENT 0.0
193 .TP
194 .B \-\-version
195 顯示程式版本編號並退出
196 .UNINDENT
197 .INDENT 0.0
198 .TP
199 .B \-\-viewer, \-w
200 Run the E\-book viewer in debug mode. As with \-g use \fB\-\-\fP to pass command line arguments.
201 .UNINDENT
202 .SH Author
203 Kovid Goyal
204 .SH Copyright
205 Kovid Goyal
206 .\" End of generated man page.