Scroll to navigation

CALIBRE-DEBUG(1) calibre CALIBRE-DEBUG(1)

NAME

calibre-debug - 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"

[选项]

通过指定包含插件代码的文件来添加简单插件(例如,一个python脚本)

运行 Python 代码。

设备检测调试

从 Windows 默认程序注册 / 取消注册 calibre。 --default-programs = (register|unregister)

启动 calibre diff工具。例如: calibre-debug --diff file1 file2

用调试模式启动 calibre "编辑书籍"工具。

运行文件中的 Python 代码。

将书解体到指定目录中。 用法: -x file.epub output_dir 将图书导出为HTML文件和元数据的集合,您可以使用标准HTML编辑工具对其进行编辑。该用法适用于EPUB、AZW3、HTMLZ和DOCX文件。

导出所有 calibre 数据(书籍/设置/插件)。通常,系统会要求您提供导出文件夹和要导出的库。您还可以将它们指定为命令行参数以跳过这些问题。使用导出文件夹和库的绝对路径。特殊关键字“all”可用于导出所有库。

供内部使用

在调试模式下运行用户界面。调试输出信息打印到 stdout 与 stderr 。

以调试控制台运行用户界面,日志输出到指定路径。仅适用于内部使用,用 -g 参数运行用户界面于调试模式。

显示此帮助信息并退出

聚合以前炸开过的书籍。 用法:-i output_dir file.epub 从output_dir的文件中导入该图书,该文件必须是由之前调用:option:
`
--explode-book`创建的。一定要指定与炸开时使用的文件类型相同的文件类型。

导入现有 calibre 数据

查看指定目录的 MOBI 文件

设置 calibre 环境时输出路径是必需的

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 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.

Don't run with the DEBUG flag set

本操作会导致正在运行的 calibre 关闭。请注意:如果正在执行某些任务,那么这些任务会被强行中断。

将指定的字体归为子集。在此选项后使用 -- 来传递选项到字体归类程序。

测试构建中的二进制模组

显示程序版本号并退出

用调试模式打开电子书阅读器

AUTHOR

Kovid Goyal

COPYRIGHT

Kovid Goyal

八月 12, 2022 6.3.0