Debian Codegraph @

man-pages/kn/man1/ebook-polish.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 "EBOOK-POLISH" "1" "ಸೆಪ್ಟೆಂಬರ್ 18, 2026" "9.15.0" "calibre"
32 .SH NAME
33 ebook-polish \- ebook-polish
34 .INDENT 0.0
35 .INDENT 3.5
36 .sp
37 .EX
38 ebook\-polish [options] input_file [output_file]
39 .EE
40 .UNINDENT
41 .UNINDENT
42 .sp
43 Polishing books is all about putting the shine of perfection onto
44 your carefully crafted e\-books.
45 .sp
46 Polishing tries to minimize the changes to the internal code of your e\-book.
47 Unlike conversion, it does not flatten CSS, rename files, change font
48 sizes, adjust margins, etc. Every action performs only the minimum set of
49 changes needed for the desired effect.
50 .sp
51 You should use this tool as the last step in your e\-book creation process.
52 .sp
53 Note that polishing only works on files in the AZW3ಅಥವಾ EPUBಅಥವಾ KEPUB formats.
54 .sp
55 Whenever you pass arguments to \fBebook\-polish\fP that have spaces in them, enclose the arguments in quotation marks. For example: \(dq/some path/with spaces\(dq
56 .SH [ಆಯ್ಕೆಗಳು]
57 .INDENT 0.0
58 .TP
59 .B \-\-add\-soft\-hyphens, \-H
60 Add soft hyphens to all words in the book. This allows the book to be rendered better when the text is justified, in readers that do not support hyphenation.
61 .UNINDENT
62 .INDENT 0.0
63 .TP
64 .B \-\-compress\-images, \-i
65 Losslessly compress images in the book, to reduce the filesize, without affecting image quality.
66 .UNINDENT
67 .INDENT 0.0
68 .TP
69 .B \-\-cover, \-c
70 Path to a cover image. Changes the cover specified in the e\-book. If no cover is present, or the cover is not properly identified, inserts a new cover.
71 .UNINDENT
72 .INDENT 0.0
73 .TP
74 .B \-\-download\-external\-resources, \-d
75 Download external resources such as images, stylesheets, etc. that point to URLs instead of files in the book. All such resources will be downloaded and added to the book so that the book no longer references any external resources.
76 .UNINDENT
77 .INDENT 0.0
78 .TP
79 .B \-\-embed\-fonts, \-e
80 Embed all fonts that are referenced in the document and are not already embedded. This will scan your computer for the fonts, and if they are found, they will be embedded into the document. Please ensure that you have the proper license for embedding the fonts used in this document.
81 .UNINDENT
82 .INDENT 0.0
83 .TP
84 .B \-\-help, \-h
85 ಈ ಸಹಾಯ ಸಂದೇಶವನ್ನು ಪ್ರದರ್ಶಿಸಿ ಮತ್ತು ನಿರ್ಗಮಿಸಿ
86 .UNINDENT
87 .INDENT 0.0
88 .TP
89 .B \-\-jacket, \-j
90 Insert a \fB\(dq\fPbook jacket\fB\(dq\fP page at the start of the book that contains all the book metadata such as title, tags, authors, series, comments, etc. Any previous book jacket will be replaced.
91 .UNINDENT
92 .INDENT 0.0
93 .TP
94 .B \-\-opf, \-o
95 Path to an OPF file. The metadata in the book is updated from the OPF file.
96 .UNINDENT
97 .INDENT 0.0
98 .TP
99 .B \-\-remove\-jacket
100 Remove a previous inserted book jacket page.
101 .UNINDENT
102 .INDENT 0.0
103 .TP
104 .B \-\-remove\-soft\-hyphens
105 Remove soft hyphens from all text in the book.
106 .UNINDENT
107 .INDENT 0.0
108 .TP
109 .B \-\-remove\-unused\-css, \-u
110 Remove all unused CSS rules from stylesheets and <style> tags. Some books created from production templates can have a large number of extra CSS rules that don\fB\(aq\fPt match any actual content. These extra rules can slow down readers that need to parse them all.
111 .UNINDENT
112 .INDENT 0.0
113 .TP
114 .B \-\-smarten\-punctuation, \-p
115 Convert plain text dashes, ellipsis, quotes, multiple hyphens, etc. into their typographically correct equivalents. Note that the algorithm can sometimes generate incorrect results, especially when single quotes at the start of contractions are involved.
116 .UNINDENT
117 .INDENT 0.0
118 .TP
119 .B \-\-subset\-fonts, \-f
120 Subsetting fonts means reducing an embedded font to contain only the characters used from that font in the book. This greatly reduces the size of the font files (halving the font file sizes is common). For example, if the book uses a specific font for headers, then subsetting will reduce that font to contain only the characters present in the actual headers in the book. Or if the book embeds the bold and italic versions of a font, but bold and italic text is relatively rare, or absent altogether, then the bold and italic fonts can either be reduced to only a few characters or completely removed. The only downside to subsetting fonts is that if, at a later date you decide to add more text to your books, the newly added text might not be covered by the subset font.
121 .UNINDENT
122 .INDENT 0.0
123 .TP
124 .B \-\-upgrade\-book, \-U
125 Upgrade the internal structures of the book, if possible. For instance, upgrades EPUB 2 books to EPUB 3 books.
126 .UNINDENT
127 .INDENT 0.0
128 .TP
129 .B \-\-verbose
130 Produce more verbose output, useful for debugging.
131 .UNINDENT
132 .INDENT 0.0
133 .TP
134 .B \-\-version
135 show program\fB\(aq\fPs version number and exit
136 .UNINDENT
137 .SH Author
138 Kovid Goyal
139 .SH Copyright
140 Kovid Goyal
141 .\" End of generated man page.