.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "CALIBRE-DEBUG" "1" "6月 17, 2022" "5.44.0" "calibre" .SH NAME calibre-debug \- calibre-debug .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C calibre\-debug [選項] .ft P .fi .UNINDENT .UNINDENT .sp 多種命令行介面在排除 calibre 的故障時很有用。這個命令將無條件 地開啟內建的 python 編譯器。您也可以在 debug 模式下執行主 要的 cailbre GUI,calibre 閱讀器和 calibre 編輯器。 .sp 它同時也包含了部分沒有命令行工具的 calibre 介面,比如字型子集,電子書區分 工具等等。 .sp 您也能用 \fBcalibre\-debug\fP 來執行獨立的指令碼。像這樣來操作: .sp \fBcalibre\-debug\fP myscript.py \fB\-\-\fP \fB\-\-option1\fP \fB\-\-option2\fP file1 file2 ... .sp 在 \fB\-\-\fP 後的的所有東西都被傳輸到了指令碼裡。 .sp 每当向具有它们自己空间的:command: .nf \(ga .fi calibre\-debug\(ga传递参数时,用引号括起这些参数。例如: \(dq/some path/with spaces\(dq .SH [選項] .INDENT 0.0 .TP .B \-\-add\-simple\-plugin 藉由指定包含外掛代碼的 py 檔案路徑,來加入簡單外掛(即只由一個 .py 檔案組成的外掛) .UNINDENT .INDENT 0.0 .TP .B \-\-command, \-c 執行 Python 程式碼 .UNINDENT .INDENT 0.0 .TP .B \-\-debug\-device\-driver, \-d 已發現偵錯裝置 .UNINDENT .INDENT 0.0 .TP .B \-\-default\-programs 從 Windows 預設程式註冊 / 註銷 calibre。 \fI\%\-\-default\-programs\fP = \fB(register|unregister)\fP .UNINDENT .INDENT 0.0 .TP .B \-\-diff 執行calibre diff工具。例如: calibre\-debug \fI\%\-\-diff\fP file1 file2 .UNINDENT .INDENT 0.0 .TP .B \-\-edit\-book, \-t 啟動書本編輯工具並進入偵錯模式 .UNINDENT .INDENT 0.0 .TP .B \-\-exec\-file, \-e 執行存有 Python 程式碼的檔案 .UNINDENT .INDENT 0.0 .TP .B \-\-explode\-book, \-x 将书解体到指定目录中。 用法: \-x file.epub output_dir 将图书导出为HTML文件和元数据的集合,您可以使用标准HTML编辑工具对其进行编辑。该用法适用于EPUB、AZW3、HTMLZ和DOCX文件。 .UNINDENT .INDENT 0.0 .TP .B \-\-export\-all\-calibre\-data 匯出所有 calibre 資料 (書籍/設定/外掛)。通常,系統會要求您提供匯出資料夾和要匯出的資料庫。您還可以將它們指定為命令行參數以略過這些問題。使用匯出資料夾和資料庫的絕對路徑。特殊關鍵字「all」可用於匯出所有資料庫。 .UNINDENT .INDENT 0.0 .TP .B \-\-fix\-multiprocessing 供內部使用 .UNINDENT .INDENT 0.0 .TP .B \-\-gui, \-g 開啟偵錯模式介面。Debug將輸出至 stdout 與 stderr 。 .UNINDENT .INDENT 0.0 .TP .B \-\-gui\-debug 以偵錯主控台啟動GUI,並將記錄日誌寫入到指定路徑,僅供內部使用,使用 \-g選項啟動以偵錯主控台啟動GUI。 .UNINDENT .INDENT 0.0 .TP .B \-\-help, \-h 顯示說明訊息並退出 .UNINDENT .INDENT 0.0 .TP .B \-\-implode\-book, \-i 聚合以前炸開過的書籍。 用法:\-i output_dir file.epub 從 output_dir 的檔案中匯入該圖書,該檔案必須是由之前呼叫 \fI\%\-\-explode\-book\fP 建立的。一定要指定與炸開時使用的檔案類型相同的檔案類型。 .UNINDENT .INDENT 0.0 .TP .B \-\-import\-calibre\-data 匯入先前匯出的calibre數據 .UNINDENT .INDENT 0.0 .TP .B \-\-inspect\-mobi, \-m 查看指定目錄的 MOBI 檔案 .UNINDENT .INDENT 0.0 .TP .B \-\-paths 設定 calibre 環境時輸出路徑是必需的 .UNINDENT .INDENT 0.0 .TP .B \-\-reinitialize\-db 將指定路徑的calibre SQLite 資料庫重新初始化,這對資料庫損毀有所幫助。 .UNINDENT .INDENT 0.0 .TP .B \-\-run\-plugin, \-r 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. .UNINDENT .INDENT 0.0 .TP .B \-\-shutdown\-running\-calibre, \-s 原因是有執行中的 calibre 實體,如果有,應該將它關閉,注意如果有任何執行中的工作,它們會被直接中止,因此請小心使用。 .UNINDENT .INDENT 0.0 .TP .B \-\-subset\-font, \-f 將特定字體子集化,使用在這個選項之後使用「\-\-」以向字體子集程式傳送選項 .UNINDENT .INDENT 0.0 .TP .B \-\-test\-build 測試構建中的二進制模組 .UNINDENT .INDENT 0.0 .TP .B \-\-version 顯示程式版本編號並退出 .UNINDENT .INDENT 0.0 .TP .B \-\-viewer, \-w 啟動電子書閱讀器並進入偵錯模式 .UNINDENT .SH AUTHOR Kovid Goyal .SH COPYRIGHT Kovid Goyal .\" Generated by docutils manpage writer. .