Debian Codegraph @

man-pages/vi/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" "tháng 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 [options]
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 Whenever you pass arguments to \fBcalibre\-debug\fP that have spaces in them, enclose the arguments in quotation marks. For example: \(dq/some path/with spaces\(dq
67 .SH [CÁC TÙY CHỌN]
68 .INDENT 0.0
69 .TP
70 .B \-\-add\-simple\-plugin
71 Thêm một plugin đơn giản (vd như một plugin có một file .py duy nhất) bằng cách trỏ đường dẫn đến file py chứa code cho plugin.
72 .UNINDENT
73 .INDENT 0.0
74 .TP
75 .B \-\-command, \-c
76 Run Python code.
77 .UNINDENT
78 .INDENT 0.0
79 .TP
80 .B \-\-debug\-device\-driver, \-d
81 Gỡ lỗi cho quá trình tìm thiết bị
82 .UNINDENT
83 .INDENT 0.0
84 .TP
85 .B \-\-default\-programs
86 (Un)register calibre from Windows Default Programs. \fB\-\-default\-programs\fP = \fB(register|unregister)\fP
87 .UNINDENT
88 .INDENT 0.0
89 .TP
90 .B \-\-diff
91 Chạy công cụ calibre diff. Ví dụ: calibre\-debug \fB\-\-diff\fP file1 file2
92 .UNINDENT
93 .INDENT 0.0
94 .TP
95 .B \-\-edit\-book
96 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.
97 .UNINDENT
98 .INDENT 0.0
99 .TP
100 .B \-\-exec\-file, \-e
101 Run the Python code in file.
102 .UNINDENT
103 .INDENT 0.0
104 .TP
105 .B \-\-explode\-book, \-x
106 Explode the book into the specified folder. Usage: \-x file.epub output_dir Exports the book as a collection of HTML files and metadata, which you can edit using standard HTML editing tools. Works with EPUB, AZW3, HTMLZ and DOCX files.
107 .UNINDENT
108 .INDENT 0.0
109 .TP
110 .B \-\-export\-all\-calibre\-data
111 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
112 .UNINDENT
113 .INDENT 0.0
114 .TP
115 .B \-\-gui, \-g
116 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
117 .UNINDENT
118 .INDENT 0.0
119 .TP
120 .B \-\-gui\-debug
121 Chạy chương trình với debug console và ghi log vào một đường dẫn nhất định. Chỉ dùng cho nội bộ. Dùng cú pháp \-g để chạy chương trình trong chế độ sửa lỗi.
122 .UNINDENT
123 .INDENT 0.0
124 .TP
125 .B \-\-help, \-h
126 show this help message and exit
127 .UNINDENT
128 .INDENT 0.0
129 .TP
130 .B \-\-implode\-book, \-i
131 Implode a previously exploded book. Usage: \-i output_dir file.epub Imports the book from the files in output_dir which must have been created by a previous call to \fB\-\-explode\-book\fP\&. Be sure to specify the same file type as was used when exploding.
132 .UNINDENT
133 .INDENT 0.0
134 .TP
135 .B \-\-import\-calibre\-data
136 Nhập dữ liệu calibre đã xuất trước đó
137 .UNINDENT
138 .INDENT 0.0
139 .TP
140 .B \-\-inspect\-mobi, \-m
141 Kiểm tra file MOBI tại các đường dẫn đã định
142 .UNINDENT
143 .INDENT 0.0
144 .TP
145 .B \-\-kepubify
146 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.
147 .UNINDENT
148 .INDENT 0.0
149 .TP
150 .B \-\-paths
151 Tạo đầu ra các đường dẫn cần để thiết lập calibre
152 .UNINDENT
153 .INDENT 0.0
154 .TP
155 .B \-\-run\-plugin, \-r
156 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.
157 .UNINDENT
158 .INDENT 0.0
159 .TP
160 .B \-\-run\-test, \-t
161 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.
162 .UNINDENT
163 .INDENT 0.0
164 .TP
165 .B \-\-run\-without\-debug
166 Don\fB\(aq\fPt run with the DEBUG flag set
167 .UNINDENT
168 .INDENT 0.0
169 .TP
170 .B \-\-shutdown\-running\-calibre, \-s
171 Khiến bản calibre đang thực thi có thể kết thúc. Lưu ý rằng nếu có tác vụ đang thực thi, chúng sẽ được âm thầm hủy bỏ , do đó, sử dụng cẩn thận.
172 .UNINDENT
173 .INDENT 0.0
174 .TP
175 .B \-\-subset\-font, \-f
176 Subset font đã định. Bạn có thể dùng \fB\-\-\fP sau tùynày để một chương trình subset font chữ khác có thể nhận được tùy chọn từ calibre.
177 .UNINDENT
178 .INDENT 0.0
179 .TP
180 .B \-\-test\-build
181 Thử nghiệm các module nhị phân
182 .UNINDENT
183 .INDENT 0.0
184 .TP
185 .B \-\-un\-kepubify
186 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.
187 .UNINDENT
188 .INDENT 0.0
189 .TP
190 .B \-\-version
191 show program\fB\(aq\fPs version number and exit
192 .UNINDENT
193 .INDENT 0.0
194 .TP
195 .B \-\-viewer, \-w
196 Run the E\-book viewer in debug mode. As with \-g use \fB\-\-\fP to pass command line arguments.
197 .UNINDENT
198 .SH Author
199 Kovid Goyal
200 .SH Copyright
201 Kovid Goyal
202 .\" End of generated man page.