calibre-debug - calibre-debug
Various command line interfaces useful for debugging calibre. With
no options, this command starts an embedded Python interpreter. You can also
run the main calibre GUI, the calibre E-book viewer and the calibre editor
in debug mode.
It also contains interfaces to various bits of calibre that do not
have dedicated command line tools, such as font subsetting, the E-book diff
tool and so on.
You can also use calibre-debug to run standalone scripts.
To do that use it like this:
calibre-debug -e myscript.py --
--option1 --option2 file1 file2 ...
Everything after the -- is passed to the script. You can
also use calibre-debug as a shebang in scripts, like this:
#!/usr/bin/env -S calibre-debug -e --
--
每当向具有它们自己空间的:command:
`
calibre-debug`传递参数时,用引号括起这些参数。例如:
"/some path/with spaces"
- --default-programs
- 從 Windows 預設程式註冊 /
註銷 calibre。 --default-programs =
(register|unregister)
- --diff
- 執行calibre
diff工具。例如: calibre-debug
--diff file1 file2
- --explode-book,
-x
- 將書解體到指定目錄中。
用法: -x file.epub output_dir
將圖書匯出為 HTML
檔案和中繼資料的集合,您可以使用標準
HTML
編輯工具對其進行編輯。該用法適用於
EPUB、AZW3、HTMLZ 和 DOCX 檔案。
- --export-all-calibre-data
- 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
"all" can be used to export all libraries.
Examples: calibre-debug --export-all-calibre-data # for interactive
use calibre-debug --export-all-calibre-data
/path/to/empty/export/folder /path/to/library/folder1 /path/to/library2
calibre-debug --export-all-calibre-data /export/folder all # export
all known libraries
- --gui, -g
- 開啟偵錯模式介面。Debug將輸出至
stdout 與 stderr 。
- --gui-debug
- 以偵錯主控台啟動GUI,並將記錄日誌寫入到指定路徑,僅供內部使用,使用
-g選項啟動以偵錯主控台啟動GUI。
- --implode-book,
-i
- 聚合以前炸開過的書籍。
用法:-i output_dir file.epub 從 output_dir
的檔案中匯入該圖書,該檔案必須是由之前呼叫
--explode-book
建立的。一定要指定與炸開時使用的檔案類型相同的檔案類型。
- --run-plugin, -r
- Run a plugin that provides a command line interface. For example:
calibre-debug -r "Plugin name" -- file1
--option1 Everything after the -- will be passed to the
plugin as arguments.
- --run-test,
-t
- Run the named test(s). Use the special value "all"
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.