Debian Codegraph @

translations/manual/zh_CN/conversion.po

raw
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) Kovid Goyal
3 # This file is distributed under the same license as the calibre package.
4 #
5 # Translators:
6 # shutaozhenzhen <[email protected]>, 2020
7 # thephy, 2024
8 # Krabapple K <[email protected]>, 2016
9 # nhyj <[email protected]>, 2015
10 # RERBIN MA, 2025-2026
11 # tony shen <[email protected]>, 2024
12 msgid ""
13 msgstr ""
14 "Project-Id-Version: calibre\n"
15 "Report-Msgid-Bugs-To: \n"
16 "POT-Creation-Date: 2026-03-12 02:31+0000\n"
17 "PO-Revision-Date: 2014-06-17 08:34+0000\n"
18 "Last-Translator: RERBIN MA, 2025-2026\n"
19 "Language-Team: Chinese (China) (http://app.transifex.com/calibre/calibre/language/zh_CN/)\n"
20 "MIME-Version: 1.0\n"
21 "Content-Type: text/plain; charset=UTF-8\n"
22 "Content-Transfer-Encoding: 8bit\n"
23 "Language: zh_CN\n"
24 "Plural-Forms: nplurals=1; plural=0;\n"
25
26 #: ../../../__w/calibre/calibre/manual/conversion.rst:4
27 msgid "E-book conversion"
28 msgstr "电子书转换"
29
30 #: ../../../__w/calibre/calibre/manual/conversion.rst:6
31 msgid ""
32 "calibre has a conversion system that is designed to be very easy to use. "
33 "Normally, you just add a book to calibre, click convert and calibre will try"
34 " hard to generate output that is as close as possible to the input. However,"
35 " calibre accepts a very large number of input formats, not all of which are "
36 "as suitable as others for conversion to e-books. In the case of such input "
37 "formats, or if you just want greater control over the conversion system, "
38 "calibre has a lot of options to fine tune the conversion process. Note "
39 "however that calibre's conversion system is not a substitute for a full "
40 "blown e-book editor. To edit e-books, I recommend first converting them to "
41 "EPUB or AZW3 using calibre and then using the :guilabel:`Edit book` feature "
42 "to get them into perfect shape. You can then use the edited e-book as input "
43 "for conversion into other formats in calibre."
44 msgstr "calibre 拥有一个易于使用的格式转换系统。一般情况下,您只需将一本图书添加到 calibre 中,单击“转换书籍”,calibre 就会自动尝试生成符合或近似于原始输入的输出文件。然而,尽管 calibre 可接受多种格式的文件进行转换,但并非所有格式都可以自动且无瑕地转换为其它电子书格式。对于转换过程中出现问题的文件格式,抑或是您只是想对图书转换过程进行自定义调整,calibre 提供多个选项来自定义图书转换过程。但请注意,calibre 的图书转换系统并不能替代功能完备的电子书编辑器。要编辑电子书,我建议先使用 calibre 把它们转换为 epub 或 azw3 格式,然后使用“编辑书籍”功能进行编辑,再使用编辑后的电子书作为源文件转换成其它格式。"
45
46 #: ../../../__w/calibre/calibre/manual/conversion.rst:18
47 msgid ""
48 "This document will refer mainly to the conversion settings as found in the "
49 "conversion dialog, pictured below. All these settings are also available via"
50 " command line interface to conversion, documented at "
51 ":doc:`generated/en/ebook-convert`. In calibre, you can obtain help on any "
52 "individual setting by holding your mouse over it, a tooltip will appear "
53 "describing the setting."
54 msgstr "本文档将主要考虑能在转换对话框中找到的转换设置,如下图所示。 所有这些设置也可以通过命令行界面进行转换,文档在 `generated/zh-CN/ebook-convert` 中。 在 Calibre 中,您可以通过将鼠标悬停在任何单独的设置上来获取帮助,然后会出现一个工具提示来描述该设置。"
55
56 #: ../../../__w/calibre/calibre/manual/conversion.rst:24
57 msgid "E-book conversion dialog"
58 msgstr "电子书转换对话"
59
60 #: ../../../__w/calibre/calibre/manual/conversion.rst:31
61 #: ../../../__w/calibre/calibre/manual/conversion.rst:95
62 msgid "Contents"
63 msgstr "目录"
64
65 #: ../../../__w/calibre/calibre/manual/conversion.rst:36
66 msgid "Introduction"
67 msgstr "介绍"
68
69 #: ../../../__w/calibre/calibre/manual/conversion.rst:42
70 msgid ""
71 "The first thing to understand about the conversion system is that it is "
72 "designed as a pipeline. Schematically, it looks like this:"
73 msgstr "对转换系统,首先要了解的是它被设计为管道。从示意图上看,它看起来像这样:"
74
75 #: ../../../__w/calibre/calibre/manual/conversion.rst:45
76 msgid "The conversion pipeline"
77 msgstr "转换通道"
78
79 #: ../../../__w/calibre/calibre/manual/conversion.rst:49
80 msgid ""
81 "The input format is first converted to XHTML by the appropriate *Input "
82 "plugin*. This HTML is then *transformed*. In the last step, the processed "
83 "XHTML is converted to the specified output format by the appropriate *Output"
84 " plugin*. The results of the conversion can vary greatly, based on the input"
85 " format. Some formats convert much better than others. A list of the best "
86 "source formats for conversion is available :ref:`here <best-source-"
87 "formats>`."
88 msgstr "输入首先被恰当的*Input 插件*转换到 XHTML 。 HTML 接着被*转换*。在最后一步,已处理的XHTML通过适当的*Output 插件*转换为指定的输出格式。根据输入格式的不同,转换的结果可能会有很大的差异。 有些格式的转换效果要好于其他格式。 `这里<best-source-formats>`提供了最佳的转换源格式列表。"
89
90 #: ../../../__w/calibre/calibre/manual/conversion.rst:56
91 msgid ""
92 "The transforms that act on the XHTML output are where all the work happens. "
93 "There are various transforms, for example, to insert book metadata as a page"
94 " at the start of the book, to detect chapter headings and automatically "
95 "create a Table of Contents, to proportionally adjust font sizes, et cetera. "
96 "It is important to remember that all the transforms act on the XHTML output "
97 "by the *Input plugin*, not on the input file itself. So, for example, if you"
98 " ask calibre to convert an RTF file to EPUB, it will first be converted to "
99 "XHTML internally, the various transforms will be applied to the XHTML and "
100 "then the *Output plugin* will create the EPUB file, automatically generating"
101 " all metadata, Table of Contents, et cetera."
102 msgstr "所有工作都发生在作用于HTML输出的转换上。有各种转换,例如,在书籍开头插入书籍元数据作为页面、检测章节标题并自动创建目录、按比例调整字体大小等。重要的是要记住,所有的转换都作用于*Input插件*的XHTML输出,而不是作用于输入文件本身。因此,例如,如果您要求calibre将RTF文件转换为EPUB,它将首先在内部转换为XHTML,各种转换将应用于XHTML,然后*Output插件*将创建EPUB文件,自动生成所有元数据、目录等。"
103
104 #: ../../../__w/calibre/calibre/manual/conversion.rst:65
105 msgid ""
106 "You can see this process in action by using the debug option |dbgi|. Just "
107 "specify the path to a folder for the debug output. During conversion, "
108 "calibre will place the XHTML generated by the various stages of the "
109 "conversion pipeline in different sub-folders. The four sub-folders are:"
110 msgstr "您可以通过使用调试选项 |dbgi| 查看此过程的实际情况。只需指定调试输出文件夹的路径即可。在转换过程中,calibre会将转换通道各个阶段生成的HTML放置在不同的子文件夹中。四个子文件夹是:"
111
112 #: ../../../__w/calibre/calibre/manual/conversion.rst:38
113 msgid "Debug icon"
114 msgstr "调试图标"
115
116 #: ../../../__w/calibre/calibre/manual/conversion.rst:70
117 msgid "Stages of the conversion pipeline"
118 msgstr "转换通道的阶段"
119
120 #: ../../../__w/calibre/calibre/manual/conversion.rst:73
121 msgid "Folder"
122 msgstr "文件名"
123
124 #: ../../../__w/calibre/calibre/manual/conversion.rst:73
125 msgid "Description"
126 msgstr "描述"
127
128 #: ../../../__w/calibre/calibre/manual/conversion.rst:75
129 msgid "input"
130 msgstr "输入"
131
132 #: ../../../__w/calibre/calibre/manual/conversion.rst:75
133 msgid ""
134 "This contains the HTML output by the Input plugin. Use this to debug the "
135 "Input plugin."
136 msgstr "其中包含输入插件输出的HTML。使用此来调试输入插件。"
137
138 #: ../../../__w/calibre/calibre/manual/conversion.rst:76
139 msgid "parsed"
140 msgstr "已解析"
141
142 #: ../../../__w/calibre/calibre/manual/conversion.rst:76
143 msgid ""
144 "The result of pre-processing and converting to XHTML the output from the "
145 "Input plugin. Use to debug structure detection."
146 msgstr "对输入插件的输出进行预处理并将其转换为 XHTML 的结果。用于调试结构检测。"
147
148 #: ../../../__w/calibre/calibre/manual/conversion.rst:77
149 msgid "structure"
150 msgstr "结构"
151
152 #: ../../../__w/calibre/calibre/manual/conversion.rst:77
153 msgid ""
154 "Post structure detection, but before CSS flattening and font size "
155 "conversion. Use to debug font size conversion and CSS transforms."
156 msgstr "结构检测后,CSS 扁平化和字体大小转换之前。用于调试字体大小转换和 CSS 变换。"
157
158 #: ../../../__w/calibre/calibre/manual/conversion.rst:78
159 msgid "processed"
160 msgstr "已处理"
161
162 #: ../../../__w/calibre/calibre/manual/conversion.rst:78
163 msgid ""
164 "Just before the e-book is passed to the Output plugin. Use to debug the "
165 "Output plugin."
166 msgstr "在电子书传递给输出插件之前。用于调试输出插件。"
167
168 #: ../../../__w/calibre/calibre/manual/conversion.rst:81
169 msgid ""
170 "If you want to edit the input document a little before having calibre "
171 "convert it, the best thing to do is edit the files in the :file:`input` sub-"
172 "folder, then zip it up, and use the ZIP file as the input format for "
173 "subsequent conversions. To do this use the :guilabel:`Edit meta information`"
174 " dialog to add the ZIP file as a format for the book and then, in the top "
175 "left corner of the conversion dialog, select ZIP as the input format."
176 msgstr "如果您想在进行Calibre转换之前对输入文档进行一点编辑,最好的做法是编辑“输入”子文件夹中的文件,然后将其压缩,并使用Zip文件作为后续转换的输入格式。为此,请使用“编辑Meta信息”对话框将Zip文件添加为书籍的格式,然后在转换对话框的左上角选择Zip作为输入格式。"
177
178 #: ../../../__w/calibre/calibre/manual/conversion.rst:87
179 msgid ""
180 "This document will deal mainly with the various transforms that operate on "
181 "the intermediate XHTML and how to control them. At the end are some tips "
182 "specific to each input/output format."
183 msgstr "本文档主要介绍对中间 XHTML 进行的各种转换以及如何控制它们。最后会针对每种输入/输出格式提供一些技巧。"
184
185 #: ../../../__w/calibre/calibre/manual/conversion.rst:91
186 msgid "Look & feel"
187 msgstr "界面外观"
188
189 #: ../../../__w/calibre/calibre/manual/conversion.rst:97
190 msgid ""
191 "This group of options controls various aspects of the look and feel of the "
192 "converted e-book."
193 msgstr "这组选项控制转换后电子书的外观和风格的各个方面。"
194
195 #: ../../../__w/calibre/calibre/manual/conversion.rst:102
196 msgid "Fonts"
197 msgstr "字体"
198
199 #: ../../../__w/calibre/calibre/manual/conversion.rst:104
200 msgid ""
201 "One of the nicest features of the e-reading experience is the ability to "
202 "easily adjust font sizes to suit individual needs and lighting conditions. "
203 "calibre has sophisticated algorithms to ensure that all the books it outputs"
204 " have consistent font sizes, no matter what font sizes are specified in the "
205 "input document."
206 msgstr "电子阅读体验最棒的特点之一是能够轻松调整字体大小以适应个人需求和照明条件。calibre有复杂的算法来确保它输出的所有书籍都有一致的字体大小,无论输入文档中指定了什么字体大小。"
207
208 #: ../../../__w/calibre/calibre/manual/conversion.rst:109
209 msgid ""
210 "The base font size of a document is the most common font size in that "
211 "document, i.e., the size of the bulk of text in that document. When you "
212 "specify a :guilabel:`Base font size`, calibre automatically rescales all "
213 "font sizes in the document proportionately, so that the most common font "
214 "size becomes the specified base font size and other font sizes are rescaled "
215 "appropriately. By choosing a larger base font size, you can make the fonts "
216 "in the document larger and vice versa. When you set the base font size, for "
217 "best results, you should also set the font size key."
218 msgstr "文档的基本字体大小是该文档中最常见的字体大小,即该文档中大部分文本的大小。当您指定“基本字体大小”时,Calibre会自动按比例重新缩放文档中的所有字体大小,以便最常见的字体大小成为指定的基本字体大小,并适当地重新缩放其他字体大小。通过选择更大的基本字体大小,您可以使文档中的字体更大,反之亦然。当您设置基本字体大小时,为了获得最佳效果,您还应该设置字体大小键。"
219
220 #: ../../../__w/calibre/calibre/manual/conversion.rst:117
221 msgid ""
222 "Normally, calibre will automatically choose a base font size appropriate to "
223 "the output profile you have chosen (see :ref:`page-setup`). However, you can"
224 " override this here in case the default is not suitable for you."
225 msgstr "通常,Calibre 会根据你选择的输出配置文件(参见 :ref:`page-setup`)自动选择一个合适的基础字体大小。然而,如果默认值不适合你,你可以在此处进行独立设置。"
226
227 #: ../../../__w/calibre/calibre/manual/conversion.rst:121
228 msgid ""
229 "The :guilabel:`Font size key` option lets you control how non-base font "
230 "sizes are rescaled. The font rescaling algorithm works using a font size "
231 "key, which is simply a comma-separated list of font sizes. The font size key"
232 " tells calibre how many \"steps\" bigger or smaller a given font size should"
233 " be compared to the base font size. The idea is that there should be a "
234 "limited number of font sizes in a document. For example, one size for the "
235 "body text, a couple of sizes for different levels of headings and a couple "
236 "of sizes for super/sub scripts and footnotes. The font size key allows "
237 "calibre to compartmentalize the font sizes in the input documents into "
238 "separate \"bins\" corresponding to the different logical font sizes."
239 msgstr "“字体大小键”选项允许您控制如何重新缩放非基本字体大小。字体重新缩放算法使用字体大小键工作,该键只是一个逗号分隔的字体大小列表。字体大小键告诉口径,给定字体大小与基本字体大小相比应该增大或减小多少个“台阶”。其想法是文档中的字体大小应该有限。例如,正文文本有一种尺寸,不同级别的标题有几种尺寸,超/子脚本和脚注有几种尺寸。字体大小键允许Calibre将输入文档中的字体大小划分为与不同逻辑字体大小相对应的单独“箱”。"
240
241 #: ../../../__w/calibre/calibre/manual/conversion.rst:130
242 msgid ""
243 "Let's illustrate with an example. Suppose the source document we are "
244 "converting was produced by someone with excellent eyesight and has a base "
245 "font size of 8pt. That means the bulk of the text in the document is sized "
246 "at 8pts, while headings are somewhat larger (say 10 and 12pt) and footnotes "
247 "somewhat smaller at 6pt. Now if we use the following settings::"
248 msgstr "让我们举个例子来说明。假设我们正在转换的源文档是由视力极佳的人生成的,基本字体大小为8pt。这意味着文档中的大部分文本大小为8pt,而标题稍大(比如10和12pt),脚注稍小,为6pt。现在,如果我们使用以下设置:"
249
250 #: ../../../__w/calibre/calibre/manual/conversion.rst:139
251 msgid ""
252 "The output document will have a base font size of 12pt, headings of 14 and "
253 "16pt and footnotes of 8pt. Now suppose we want to make the largest heading "
254 "size stand out more and make the footnotes a little larger as well. To "
255 "achieve this, the font key should be changed to::"
256 msgstr "输出文档的基础字体大小为 12pt,标题为 14pt 和 16pt,脚注为 8pt。现在假设我们想让最大的标题字体更突出,并让脚注也稍微大一点。为了实现这一点,字体大小关键值应更改为:"
257
258 #: ../../../__w/calibre/calibre/manual/conversion.rst:145
259 msgid ""
260 "The largest headings will now become 18pt, while the footnotes will become "
261 "9pt. You can play with these settings to try and figure out what would be "
262 "optimum for you by using the font rescaling wizard, which can be accessed by"
263 " clicking the little button next to the :guilabel:`Font size key` setting."
264 msgstr "最大的标题现在将变为18pt,而脚注将变为9pt。您可以使用字体重新缩放向导来尝试使用这些设置,并找出最适合您的设置,单击“字体大小键”设置旁边的小按钮即可访问该向导。"
265
266 #: ../../../__w/calibre/calibre/manual/conversion.rst:150
267 msgid ""
268 "All the font size rescaling in the conversion can also be disabled here, if "
269 "you would like to preserve the font sizes in the input document."
270 msgstr "如果您希望保留输入文档中的字体大小,您可以在此处禁用转换中的所有字号缩放。"
271
272 #: ../../../__w/calibre/calibre/manual/conversion.rst:153
273 msgid ""
274 "A related setting is :guilabel:`Line height`. Line height controls the "
275 "vertical height of lines. By default, (a line height of 0), no manipulation "
276 "of line heights is performed. If you specify a non-default value, line "
277 "heights will be set in all locations that don't specify their own line "
278 "heights. However, this is something of a blunt weapon and should be used "
279 "sparingly. If you want to adjust the line heights for some section of the "
280 "input, it's better to use the :ref:`Extra CSS <extra-css>`."
281 msgstr "一个相关的设置是“行高度”。行高度控制线的垂直高度。默认情况下(线高度为0),不执行行高度操作。如果指定非默认值,则将在所有未指定自己的行高度的位置设置行高度。然而,这是一种钝器,应该谨慎使用。如果你想调整输入的某些部分的行高,最好使用:ref:`Extra CSS <extra-css>”。"
282
283 #: ../../../__w/calibre/calibre/manual/conversion.rst:160
284 msgid ""
285 "In this section you can also tell calibre to embed any referenced fonts into"
286 " the book. This will allow the fonts to work on reader devices even if they "
287 "are not available on the device."
288 msgstr "在此部分,你还可以告诉 Calibre 将所有引用的字体嵌入到电子书中。这样一来,即使阅读设备上没有这些字体,它们也能正常显示。"
289
290 #: ../../../__w/calibre/calibre/manual/conversion.rst:165
291 msgid "Text"
292 msgstr "文本"
293
294 #: ../../../__w/calibre/calibre/manual/conversion.rst:167
295 msgid ""
296 "Text can be either justified or not. Justified text has extra spaces between"
297 " words to give a smooth right margin. Some people prefer justified text, "
298 "others do not. Normally, calibre will preserve the justification in the "
299 "original document. If you want to override it you can use the "
300 ":guilabel:`Text justification` option in this section."
301 msgstr "文本可以是合理的,也可以是不合理的。对齐的文本在单词之间有额外的空格,以提供平滑的右边距。有些人更喜欢合理的文本,而另一些人则不喜欢。通常,Calibre会保留原始文档中的理由。如果你想覆盖它,你可以使用本节中的“文本对齐”选项。"
302
303 #: ../../../__w/calibre/calibre/manual/conversion.rst:173
304 msgid ""
305 "You can also tell calibre to :guilabel:`Smarten punctuation` which will "
306 "replace plain quotes, dashes and ellipses with their typographically correct"
307 " alternatives. Note that this algorithm is not perfect so it is worth "
308 "reviewing the results. The reverse, namely, :guilabel:`Unsmarted "
309 "punctuation` is also available."
310 msgstr "您还可以将calibre改为“智能标点符号”,这将用排版正确的替代品替换纯引号、破折号和省略号。请注意,此算法并不完美,因此值得查看结果。反过来,也可以使用“非智能标点符号”。"
311
312 #: ../../../__w/calibre/calibre/manual/conversion.rst:178
313 msgid ""
314 "Finally, there is :guilabel:`Input character encoding`. Older documents "
315 "sometimes don't specify their character encoding. When converted, this can "
316 "result in non-English characters or special characters like smart quotes "
317 "being corrupted. calibre tries to auto-detect the character encoding of the"
318 " source document, but it does not always succeed. You can force it to assume"
319 " a particular character encoding by using this setting. `cp1252` is a "
320 "common encoding for documents produced using Windows software. You should "
321 "also read :ref:`char-encoding-faq` for more on encoding issues."
322 msgstr "最后是“输入字符编码”。旧文档有时不指定其字符编码。转换时,这可能会导致非英语字符或智能引号等特殊字符损坏。calibre尝试自动检测源文档的字符编码,但并不总是成功。您可以使用此设置强制它采用特定的字符编码`cp1252`是使用Windows软件生成的文档的常见编码。您还应该阅读:ref:`char-encoding-faq` 以了解有关编码问题的更多信息。"
323
324 #: ../../../__w/calibre/calibre/manual/conversion.rst:188
325 msgid "Layout"
326 msgstr "布局"
327
328 #: ../../../__w/calibre/calibre/manual/conversion.rst:190
329 msgid ""
330 "Normally, paragraphs in XHTML are rendered with a blank line between them "
331 "and no leading text indent. calibre has a couple of options to control this."
332 " :guilabel:`Remove spacing between paragraphs` forcefully ensure that all "
333 "paragraphs have no inter paragraph spacing. It also sets the text indent to "
334 "1.5em (can be changed) to mark the start of every paragraph. "
335 ":guilabel:`Insert blank line` does the opposite, guaranteeing that there is "
336 "exactly one blank line between each pair of paragraphs. Both these options "
337 "are very comprehensive, removing spacing, or inserting it for *all* "
338 "paragraphs (technically <p> and <div> tags). This is so that you can just "
339 "set the option and be sure that it performs as advertised, irrespective of "
340 "how messy the input file is. The one exception is when the input file uses "
341 "hard line breaks to implement inter-paragraph spacing."
342 msgstr "通常,XHTML中的段落之间会有一个空行,并且没有前导文本缩进。calibre有几个选项可以控制这一点`删除段落之间的间距,强制确保所有段落没有段落间间距。它还将文本缩进设置为1.5em(可以更改),以标记每个段落的开头`插入空白行则相反,保证每对段落之间只有一行空白。这两个选项都非常全面,可以删除空格,也可以为所有段落(技术上为<p>和<div>标签)插入空格。这样,无论输入文件有多乱,您都可以设置该选项并确保其按广告执行。一个例外是,当输入文件使用硬换行符来实现段落间间距时。"
343
344 #: ../../../__w/calibre/calibre/manual/conversion.rst:201
345 msgid ""
346 "If you want to remove the spacing between all paragraphs, except a select "
347 "few, don't use these options. Instead add the following CSS code to "
348 ":ref:`Extra CSS <extra-css>`::"
349 msgstr "如果您想**删除段间空行**(少数选定段落除外),请**不要使用这些选项**。相反,请将以下 CSS 代码添加到:ref:`Extra CSS<extra-css>`:"
350
351 #: ../../../__w/calibre/calibre/manual/conversion.rst:207
352 msgid ""
353 "Then, in your source document, mark the paragraphs that need spacing with "
354 "`class=\"spacious\"`. If your input document is not in HTML, use the Debug "
355 "option, described in the Introduction to get HTML (use the :file:`input` "
356 "sub-folder)."
357 msgstr "然后,在你的源文档中,将标记需要间距的段落标记为 class=\"spacious\"。如果你的输入文档不是 HTML 格式,可以使用“调试”选项(详见“介绍”部分)来获取 HTML 文件(使用 :file:input 子文件夹)。"
358
359 #: ../../../__w/calibre/calibre/manual/conversion.rst:211
360 msgid ""
361 "Another useful option is :guilabel:`Linearize tables`. Some badly designed "
362 "documents use tables to control the layout of text on the page. When "
363 "converted these documents often have text that runs off the page and other "
364 "artifacts. This option will extract the content from the tables and present "
365 "it in a linear fashion. Note that this option linearizes *all* tables, so "
366 "only use it if you are sure the input document does not use tables for "
367 "legitimate purposes, like presenting tabular information."
368 msgstr "另一个有用的选项是“线性化表”。一些设计糟糕的文档使用表格来控制页面上文本的布局。转换后,这些文档通常会有溢出页面的文本和其他工件。此选项将从表中提取内容并以线性方式呈现。请注意,此选项将*所有*表线性化,因此只有在您确定输入文档没有将表用于合法目的(如显示表格信息)时才使用它。"
369
370 #: ../../../__w/calibre/calibre/manual/conversion.rst:220
371 msgid "Styling"
372 msgstr "样式"
373
374 #: ../../../__w/calibre/calibre/manual/conversion.rst:224
375 msgid ""
376 "The :guilabel:`Extra CSS` option allows you to specify arbitrary CSS that "
377 "will be applied to all HTML files in the input. This CSS is applied with "
378 "very high priority and so should override most CSS present in the **input "
379 "document** itself. You can use this setting to fine tune the "
380 "presentation/layout of your document. For example, if you want all "
381 "paragraphs of class `endnote` to be right aligned, just add::"
382 msgstr "“Extra CSS”选项允许您指定将应用于输入中所有HTML文件的任意CSS。此CSS具有很高的优先级,因此应该覆盖**输入文档**本身中存在的大多数CSS。您可以使用此设置微调文档的演示文稿/布局。例如,如果你想让`endnote`类的所有段落都对齐,只需添加:"
383
384 #: ../../../__w/calibre/calibre/manual/conversion.rst:233
385 msgid "or if you want to change the indentation of all paragraphs::"
386 msgstr "或者,如果您想更改所有段落的缩进::"
387
388 #: ../../../__w/calibre/calibre/manual/conversion.rst:237
389 msgid ""
390 ":guilabel:`Extra CSS` is a very powerful option, but you do need an "
391 "understanding of how CSS works to use it to its full potential. You can use "
392 "the debug pipeline option described above to see what CSS is present in your"
393 " input document."
394 msgstr ":guilabel:`额外的CSS`是一个非常强大的选项,但需要掌握CSS工作原理才能充分发挥其潜力。您可以使用上文介绍的调试管道功能来查看输入文档中包含哪些CSS样式。"
395
396 #: ../../../__w/calibre/calibre/manual/conversion.rst:241
397 msgid ""
398 "A simpler option is to use :guilabel:`Filter style information`. This allows"
399 " you to remove all CSS properties of the specified types from the document. "
400 "For example, you can use it to remove all colors or fonts."
401 msgstr "更简单的选择是使用 :guilabel:`过滤样式信息`。该功能允许您从文档中移除指定类型的所有CSS属性。例如,您可以用它来移除所有颜色或字体设置"
402
403 #: ../../../__w/calibre/calibre/manual/conversion.rst:246
404 msgid "Transform styles"
405 msgstr "改变样式"
406
407 #: ../../../__w/calibre/calibre/manual/conversion.rst:248
408 msgid ""
409 "This is the most powerful styling related facility. You can use it to define"
410 " rules that change styles based on various conditions. For example you can "
411 "use it to change all green colors to blue, or remove all bold styling from "
412 "the text or color all headings a certain color, etc."
413 msgstr "这是最强大的样式控制功能。您可以通过它定义基于不同条件的样式修改规则,例如:将所有绿色改为蓝色、移除文本中的所有加粗样式,或是为所有标题统一设置特定颜色等。"
414
415 #: ../../../__w/calibre/calibre/manual/conversion.rst:254
416 msgid "Transform HTML"
417 msgstr "转换HTML"
418
419 #: ../../../__w/calibre/calibre/manual/conversion.rst:256
420 msgid ""
421 "Similar to transform styles, but allows you to make changes to the HTML "
422 "content of the book. You can replace one tag with another, add classes or "
423 "other attributes to tags based on their content, etc."
424 msgstr "与转换样式功能类似,但允许您直接修改书籍的HTML内容结构。您可以通过该功能实现以下操作:替换标签类型、根据标签内容动态添加类名或其他属性等。"
425
426 #: ../../../__w/calibre/calibre/manual/conversion.rst:265
427 msgid "Page setup"
428 msgstr "页面设置"
429
430 #: ../../../__w/calibre/calibre/manual/conversion.rst:267
431 msgid ""
432 "The :guilabel:`Page setup` options are for controlling screen layout, like "
433 "margins and screen sizes. There are options to setup page margins, which "
434 "will be used by the output plugin, if the selected output format supports "
435 "page margins. In addition, you should choose an Input profile and an output "
436 "profile. Both sets of profiles basically deal with how to interpret "
437 "measurements in the input/output documents, screen sizes and default font "
438 "rescaling keys."
439 msgstr "“页面设置”选项用于控制屏幕布局,如边距和屏幕大小。如果所选输出格式支持页边距,则有设置页边距的选项,输出插件将使用这些选项。此外,您应该选择输入配置文件和输出配置文件。这两组配置文件基本上都涉及如何解释输入/输出文档中的测量值、屏幕大小和默认字体缩放键。"
440
441 #: ../../../__w/calibre/calibre/manual/conversion.rst:274
442 msgid ""
443 "If you know that the file you are converting was intended to be used on a "
444 "particular device/software platform, choose the corresponding input profile,"
445 " otherwise just choose the default input profile. If you know the files you "
446 "are producing are meant for a particular device type, choose the "
447 "corresponding output profile. Otherwise, choose one of the Generic output "
448 "profiles. If you are converting to MOBI or AZW3 then you will almost always "
449 "want to choose one of the Kindle output profiles. Otherwise, your best bet "
450 "for modern E-book reading devices is to choose the :guilabel:`Generic e-ink "
451 "HD` output profile."
452 msgstr "如果您知道要转换的文件是要在特定设备/软件平台上使用的,请选择相应的输入配置文件,否则只需选择默认输入配置文件。如果您知道您正在生成的文件是针对特定设备类型的,请选择相应的输出配置文件。否则,请选择一个通用输出配置文件。如果你正在转换为MOBI或AZW3,那么你几乎总是想选择一个Kindle输出配置文件。否则,您对现代电子书阅读设备的最佳选择是选择“通用电子墨水HD”输出配置文件。"
453
454 #: ../../../__w/calibre/calibre/manual/conversion.rst:283
455 msgid ""
456 "The output profile also controls the screen size. This will cause, for "
457 "example, images to be auto-resized to be fit to the screen in some output "
458 "formats. So choose a profile of a device that has a screen size similar to "
459 "your device."
460 msgstr "输出配置文件还会控制屏幕尺寸参数。例如在某些输出格式中,该设置将自动调整图片尺寸以适应屏幕显示。因此建议选择与您设备屏幕尺寸相近的预设配置文件。"
461
462 #: ../../../__w/calibre/calibre/manual/conversion.rst:291
463 msgid "Heuristic processing"
464 msgstr "智能处理"
465
466 #: ../../../__w/calibre/calibre/manual/conversion.rst:293
467 msgid ""
468 "Heuristic processing provides a variety of functions which can be used to "
469 "try and detect and correct common problems in poorly formatted input "
470 "documents. Use these functions if your input document suffers from poor "
471 "formatting. Because these functions rely on common patterns, be aware that "
472 "in some cases an option may lead to worse results, so use with care. As an "
473 "example, several of these options will remove all non-breaking-space "
474 "entities, or may include false positive matches relating to the function."
475 msgstr "启发式处理提供了各种功能,可用于尝试检测和纠正格式不佳的输入文档中的常见问题。如果您的输入文档格式不佳,请使用这些功能。由于这些函数依赖于常见模式,请注意,在某些情况下,选项可能会导致更糟糕的结果,因此请谨慎使用。例如,其中几个选项将删除所有不间断空格实体,或者可能包括与函数相关的误报匹配。"
476
477 #: ../../../__w/calibre/calibre/manual/conversion.rst:299
478 msgid ":guilabel:`Enable heuristic processing`"
479 msgstr ":guilabel:`启用智能处理`"
480
481 #: ../../../__w/calibre/calibre/manual/conversion.rst:300
482 msgid ""
483 "This option activates calibre's :guilabel:`Heuristic processing` stage of "
484 "the conversion pipeline. This must be enabled in order for various sub-"
485 "functions to be applied"
486 msgstr "此选项将启用 calibre 转换流程中的 :guilabel:`智能处理`。必须启用该功能,才能应用各项子功能。"
487
488 #: ../../../__w/calibre/calibre/manual/conversion.rst:303
489 msgid ":guilabel:`Unwrap lines`"
490 msgstr ":guilabel:`段落内不换行`"
491
492 #: ../../../__w/calibre/calibre/manual/conversion.rst:304
493 msgid ""
494 "Enabling this option will cause calibre to attempt to detect and correct "
495 "hard line breaks that exist within a document using punctuation clues and "
496 "line length. calibre will first attempt to detect whether hard line breaks "
497 "exist, if they do not appear to exist calibre will not attempt to unwrap "
498 "lines. The line-unwrap factor can be reduced if you want to 'force' calibre "
499 "to unwrap lines."
500 msgstr "启用此选项将导致calibre尝试使用标点符号线索和行长来检测和纠正文档中存在的硬换行。calibre将首先尝试检测是否存在硬线断裂,如果它们似乎不存在,calibre不会尝试解开线。如果你想“强制”口径打开线,可以降低线打开系数。"
501
502 #: ../../../__w/calibre/calibre/manual/conversion.rst:309
503 msgid ":guilabel:`Line-unwrap factor`"
504 msgstr ":guilabel:`不换行系数`"
505
506 #: ../../../__w/calibre/calibre/manual/conversion.rst:310
507 msgid ""
508 "This option controls the algorithm calibre uses to remove hard line breaks. "
509 "For example, if the value of this option is 0.4, that means calibre will "
510 "remove hard line breaks from the end of lines whose lengths are less than "
511 "the length of 40% of all lines in the document. If your document only has a "
512 "few line breaks which need correction, then this value should be reduced to "
513 "somewhere between 0.1 and 0.2."
514 msgstr "此选项控制用于删除硬换行符的算法口径。例如,如果此选项的值为0.4,则意味着calibre将从长度小于文档中所有行的40%的行的末尾删除硬换行符。如果你的文档只有几个需要更正的换行符,那么这个值应该减少到0.1到0.2之间。"
515
516 #: ../../../__w/calibre/calibre/manual/conversion.rst:315
517 msgid ""
518 ":guilabel:`Detect and markup unformatted chapter headings and sub headings`"
519 msgstr ":guilabel:`检测并标记未格式化的章节标题和子标题`"
520
521 #: ../../../__w/calibre/calibre/manual/conversion.rst:316
522 msgid ""
523 "If your document does not have chapter headings and titles formatted "
524 "differently from the rest of the text, calibre can use this option to "
525 "attempt to detect them and surround them with heading tags. <h2> tags are "
526 "used for chapter headings; <h3> tags are used for any titles that are "
527 "detected."
528 msgstr "若您的文档中章节标题与正文格式未作区分,calibre可通过此选项智能识别并自动添加标题标签:使用<h2>标签标记章节标题,<h3>标签标记次级标题。"
529
530 #: ../../../__w/calibre/calibre/manual/conversion.rst:320
531 msgid ""
532 "This function will not create a TOC, but in many cases it will cause "
533 "calibre's default chapter detection settings to correctly detect chapters "
534 "and build a TOC. Adjust the XPath under Structure detection if a TOC is not"
535 " automatically created. If there are no other headings used in the document"
536 " then setting \"//h:h2\" under Structure detection would be the easiest way "
537 "to create a TOC for the document."
538 msgstr "此函数不会创建目录,但在许多情况下,它会导致calibre的默认章节检测设置正确检测章节并构建目录。如果未自动创建目录,请调整“结构检测”下的XPath。如果文档中没有使用其他标题,那么在结构检测下设置“//h:h2”将是为文档创建目录的最简单方法。"
539
540 #: ../../../__w/calibre/calibre/manual/conversion.rst:325
541 msgid ""
542 "The inserted headings are not formatted, to apply formatting use the "
543 ":guilabel:`Extra CSS` option under the Look and Feel conversion settings. "
544 "For example, to center heading tags, use the following::"
545 msgstr "系统插入的标题默认无样式格式,如需设置样式,请通过界面外观转换设置中的 :guilabel:`额外的CSS`选项进行配置。例如,若需实现标题居中效果,可使用以下样式代码::"
546
547 #: ../../../__w/calibre/calibre/manual/conversion.rst:330
548 msgid ":guilabel:`Renumber sequences of <h1> or <h2> tags`"
549 msgstr ":guilabel:`重新编号<h1>或<h2>标签序列`"
550
551 #: ../../../__w/calibre/calibre/manual/conversion.rst:331
552 msgid ""
553 "Some publishers format chapter headings using multiple <h1> or <h2> tags "
554 "sequentially. calibre's default conversion settings will cause such titles "
555 "to be split into two pieces. This option will re-number the heading tags to"
556 " prevent splitting."
557 msgstr "有些出版商在设置章节标题格式时,会连续使用多个<h1>或<h2>标签。calibre 的默认转换设置会导致这类标题被拆分成两部分。此选项将对标题标签重新编号,以防止标题被拆分。"
558
559 #: ../../../__w/calibre/calibre/manual/conversion.rst:335
560 msgid ":guilabel:`Delete blank lines between paragraphs`"
561 msgstr ":guilabel:`删除段落间的空行`"
562
563 #: ../../../__w/calibre/calibre/manual/conversion.rst:336
564 msgid ""
565 "This option will cause calibre to analyze blank lines included within the "
566 "document. If every paragraph is interleaved with a blank line, then calibre"
567 " will remove all those blank paragraphs. Sequences of multiple blank lines "
568 "will be considered scene breaks and retained as a single paragraph. This "
569 "option differs from the :guilabel:`Remove paragraph spacing` option under "
570 ":guilabel:`Look and Feel` in that it actually modifies the HTML content, "
571 "while the other option modifies the document styles. This option can also "
572 "remove paragraphs which were inserted using calibre's :guilabel:`Insert "
573 "blank line` option."
574 msgstr "此选项将使calibre分析文档中包含的空白行。如果每一段都有一个空行,那么calibre将删除所有这些空行。多个空行序列将被视为场景分割,并保留为单个段落。此选项与“外观”下的“删除段落间距”选项不同,因为它实际上修改了HTML内容,而另一个选项修改了文档样式。此选项还可以删除使用calibre的“插入空白行”选项插入的段落。"
575
576 #: ../../../__w/calibre/calibre/manual/conversion.rst:346
577 msgid ":guilabel:`Ensure scene breaks are consistently formatted`"
578 msgstr ":guilabel:`确保分节使用一致的格式`"
579
580 #: ../../../__w/calibre/calibre/manual/conversion.rst:347
581 msgid ""
582 "With this option calibre will attempt to detect common scene-break markers "
583 "and ensure that they are center aligned. 'Soft' scene break markers, i.e. "
584 "scene breaks only defined by extra white space, are styled to ensure that "
585 "they will not be displayed in conjunction with page breaks."
586 msgstr "使用此选项,calibre将尝试检测常见的场景中断标记,并确保它们居中对齐。”“软”场景打断标记,即仅由额外空白定义的场景打断,被设置样式以确保它们不会与分页符一起显示。"
587
588 #: ../../../__w/calibre/calibre/manual/conversion.rst:351
589 msgid ":guilabel:`Replace scene breaks`"
590 msgstr ":guilabel:`替换软分节符`"
591
592 #: ../../../__w/calibre/calibre/manual/conversion.rst:352
593 msgid ""
594 "If this option is configured then calibre will replace scene break markers "
595 "it finds with the replacement text specified by the user. Please note that "
596 "some ornamental characters may not be supported across all reading devices."
597 msgstr "若启用此选项,calibre会将检测到的场景分隔符替换为用户指定的文本。请注意:部分装饰性字符可能无法在所有阅读设备上正常显示。"
598
599 #: ../../../__w/calibre/calibre/manual/conversion.rst:355
600 msgid ""
601 "In general you should avoid using HTML tags, calibre will discard any tags "
602 "and use pre-defined markup. <hr /> tags, i.e. horizontal rules, and <img> "
603 "tags are exceptions. Horizontal rules can optionally be specified with "
604 "styles, if you choose to add your own style be sure to include the 'width' "
605 "setting, otherwise the style information will be discarded. Image tags can "
606 "used, but calibre does not provide the ability to add the image during "
607 "conversion, this must be done after the fact using the 'Edit book' feature."
608 msgstr "一般来说,你应该避免使用HTML标签,calibre会丢弃任何标签并使用预定义的标记。<hr />标签,即水平规则,<img>标签是例外。水平规则可以选择与样式一起指定,如果您选择添加自己的样式,请确保包含“宽度”设置,否则样式信息将被丢弃。可以使用图像标签,但calibre不提供在转换过程中添加图像的功能,这必须在事后使用“编辑书籍”功能完成。"
609
610 #: ../../../__w/calibre/calibre/manual/conversion.rst:361
611 msgid ""
612 "Example image tag (place the image within an 'Images' folder inside the EPUB"
613 " after conversion):"
614 msgstr "示例image标签(转换后请将图片放入 EPUB 内部的 “Images” 文件夹中): "
615
616 #: ../../../__w/calibre/calibre/manual/conversion.rst:362
617 msgid "<img style=\"width:10%\" src=\"../Images/scenebreak.png\" />"
618 msgstr "<img style=\"width:10%\" src=\"../Images/scenebreak.png\" />"
619
620 #: ../../../__w/calibre/calibre/manual/conversion.rst:364
621 msgid "Example horizontal rule with styles:"
622 msgstr "示例水平分隔线(含样式):"
623
624 #: ../../../__w/calibre/calibre/manual/conversion.rst:365
625 msgid ""
626 "<hr style=\"width:20%;padding-top: 1px;border-top: 2px ridge black;border-"
627 "bottom: 2px groove black;\"/>"
628 msgstr "<hr style=\"width:20%;padding-top: 1px;border-top: 2px ridge black;border-bottom: 2px groove black;\"/>"
629
630 #: ../../../__w/calibre/calibre/manual/conversion.rst:367
631 msgid ":guilabel:`Remove unnecessary hyphens`"
632 msgstr ":guilabel:`删除不必要的连字符`"
633
634 #: ../../../__w/calibre/calibre/manual/conversion.rst:368
635 msgid ""
636 "calibre will analyze all hyphenated content in the document when this option"
637 " is enabled. The document itself is used as a dictionary for analysis. "
638 "This allows calibre to accurately remove hyphens for any words in the "
639 "document in any language, along with made-up and obscure scientific words. "
640 "The primary drawback is words appearing only a single time in the document "
641 "will not be changed. Analysis happens in two passes, the first pass "
642 "analyzes line endings. Lines are only unwrapped if the word exists with or "
643 "without a hyphen in the document. The second pass analyzes all hyphenated "
644 "words throughout the document, hyphens are removed if the word exists "
645 "elsewhere in the document without a match."
646 msgstr "启用此选项后,calibre将分析文档中的所有连字符内容。文档本身被用作分析词典。这使得calibre能够准确地删除任何语言文档中任何单词的连字符,以及虚构和模糊的科学单词。主要缺点是文档中只出现一次的单词不会被更改。分析分两次进行,第一次分析线尾。只有当单词在文档中存在连字符或不存在连字符时,才会展开行。第二步分析整个文档中的所有连字符单词,如果单词在文档的其他地方不匹配,则删除连字符。"
647
648 #: ../../../__w/calibre/calibre/manual/conversion.rst:375
649 msgid ":guilabel:`Italicize common words and patterns`"
650 msgstr ":guilabel:`把特定名词和特定规则的内容变为斜体`"
651
652 #: ../../../__w/calibre/calibre/manual/conversion.rst:376
653 msgid ""
654 "When enabled, calibre will look for common words and patterns that denote "
655 "italics and italicize them. Examples are common text conventions such as "
656 "~word~ or phrases that should generally be italicized, e.g. latin phrases "
657 "like 'etc.' or 'et cetera'."
658 msgstr "启用此选项后,calibre 会查找表示斜体的常用词汇和模式,并将其设置为斜体。例如常见的文本约定(如~word~),或者通常应设为斜体的短语(如拉丁语短语 “etc.” 或 “et cetera”)。"
659
660 #: ../../../__w/calibre/calibre/manual/conversion.rst:379
661 msgid ":guilabel:`Replace entity indents with CSS indents`"
662 msgstr ":guilabel:`用CSS缩进代替空格键缩进`"
663
664 #: ../../../__w/calibre/calibre/manual/conversion.rst:380
665 msgid ""
666 "Some documents use a convention of defining text indents using non-breaking "
667 "space entities. When this option is enabled calibre will attempt to detect "
668 "this sort of formatting and convert them to a 3% text indent using CSS."
669 msgstr "有些文档采用使用非断空格实体来定义文本缩进的约定。启用此选项后,calibre 会尝试检测此类格式,并使用 CSS 将其转换为 3% 的文本缩进。"
670
671 #: ../../../__w/calibre/calibre/manual/conversion.rst:386
672 msgid "Search & replace"
673 msgstr "搜索并替换"
674
675 #: ../../../__w/calibre/calibre/manual/conversion.rst:388
676 msgid ""
677 "These options are useful primarily for conversion of PDF documents or OCR "
678 "conversions, though they can also be used to fix many document specific "
679 "problems. As an example, some conversions can leave behind page headers and "
680 "footers in the text. These options use regular expressions to try and detect"
681 " headers, footers, or other arbitrary text and remove or replace them. "
682 "Remember that they operate on the intermediate XHTML produced by the "
683 "conversion pipeline. There is a wizard to help you customize the regular "
684 "expressions for your document. Click the magic wand beside the expression "
685 "box, and click the 'Test' button after composing your search expression. "
686 "Successful matches will be highlighted in Yellow."
687 msgstr "这些选项主要用于PDF文档的转换或OCR转换,尽管它们也可用于解决许多特定于文档的问题。例如,一些转换可能会在文本中留下页眉和页脚。这些选项使用正则表达式来尝试检测页眉、页脚或其他任意文本,并删除或替换它们。请记住,它们对转换管道生成的中间XHTML进行操作。有一个向导可以帮助您自定义文档的正则表达式。单击表达式框旁边的魔杖,在编写搜索表达式后单击“测试”按钮。成功的比赛将以黄色突出显示。"
688
689 #: ../../../__w/calibre/calibre/manual/conversion.rst:396
690 msgid ""
691 "The search works by using a Python regular expression. All matched text is "
692 "simply removed from the document or replaced using the replacement pattern. "
693 "The replacement pattern is optional, if left blank then text matching the "
694 "search pattern will be deleted from the document. You can learn more about "
695 "regular expressions and their syntax at :ref:`regexptutorial`."
696 msgstr "搜索是通过使用Python正则表达式来实现的。所有匹配的文本都会从文档中删除或使用替换模式替换。替换模式是可选的,如果留空,则将从文档中删除与搜索模式匹配的文本。您可以在`regexptutorial`了解更多关于正则表达式及其语法的信息。"
697
698 #: ../../../__w/calibre/calibre/manual/conversion.rst:404
699 msgid "Structure detection"
700 msgstr "结构检测"
701
702 #: ../../../__w/calibre/calibre/manual/conversion.rst:406
703 msgid ""
704 "Structure detection involves calibre trying its best to detect structural "
705 "elements in the input document, when they are not properly specified. For "
706 "example, chapters, page breaks, headers, footers, etc. As you can imagine, "
707 "this process varies widely from book to book. Fortunately, calibre has very "
708 "powerful options to control this. With power comes complexity, but if once "
709 "you take the time to learn the complexity, you will find it well worth the "
710 "effort."
711 msgstr "结构检测涉及calibre在输入文档中未正确指定结构元素时,尽最大努力检测这些元素。例如,章节、分页符、页眉、页脚等。可以想象,这一过程因书而异。幸运的是,calibre有非常强大的选项来控制这一点。权力带来复杂性,但如果你花时间学习复杂性,你会发现这是值得的。"
712
713 #: ../../../__w/calibre/calibre/manual/conversion.rst:412
714 msgid "Chapters and page breaks"
715 msgstr "章节与分页控制"
716
717 #: ../../../__w/calibre/calibre/manual/conversion.rst:414
718 msgid ""
719 "calibre has two sets of options for :guilabel:`chapter detection` and "
720 ":guilabel:`inserting page breaks`. This can sometimes be slightly confusing,"
721 " as by default, calibre will insert page breaks before detected chapters as "
722 "well as the locations detected by the page breaks option. The reason for "
723 "this is that there are often locations where page breaks should be inserted "
724 "that are not chapter boundaries. Also, detected chapters can be optionally "
725 "inserted into the auto generated Table of Contents."
726 msgstr "calibre有两组选项用于“章节检测”和“插入分页符”。这有时会有点令人困惑,因为默认情况下,calibre会在检测到的章节之前插入分页符,以及分页符选项检测到的位置。这样做的原因是,通常应该插入分页符的位置不是章节边界。此外,检测到的章节可以选择性地插入到自动生成的目录中。"
727
728 #: ../../../__w/calibre/calibre/manual/conversion.rst:419
729 msgid ""
730 "calibre uses *XPath*, a powerful language to allow the user to specify "
731 "chapter boundaries/page breaks. XPath can seem a little daunting to use at "
732 "first, fortunately, there is a :ref:`XPath tutorial <xpath-tutorial>` in the"
733 " User Manual. Remember that Structure detection operates on the intermediate"
734 " XHTML produced by the conversion pipeline. Use the debug option described "
735 "in the :ref:`conversion-introduction` to figure out the appropriate settings"
736 " for your book. There is also a button for a XPath wizard to help with the "
737 "generation of simple XPath expressions."
738 msgstr "calibre使用*XPath*,这是一种强大的语言,允许用户指定章节边界/分页符。XPath一开始似乎有点让人望而生畏,幸运的是,用户手册中有一个 :ref:`XPath tutorial<xpath-tutorial>` 。请记住,结构检测是在转换管道通道生成的中间XHTML上进行的。使用 :ref:`conversion-introduction` 中描述的调试选项,为您的书找出合适的设置。还有一个XPath向导按钮,用于帮助生成简单的XPath表达式。"
739
740 #: ../../../__w/calibre/calibre/manual/conversion.rst:425
741 msgid ""
742 "By default, calibre uses the following expression for detecting chapters::"
743 msgstr "默认情况下,calibre使用以下正则表达式检测章节::"
744
745 #: ../../../__w/calibre/calibre/manual/conversion.rst:429
746 msgid ""
747 "This expression is rather complex, because it tries to handle a number of "
748 "common cases simultaneously. What it means is that calibre will assume "
749 "chapters start at either `<h1>` or `<h2>` tags that have any of the words "
750 "`(chapter, book, section or part)` in them or that have the "
751 "`class=\"chapter\"` attribute."
752 msgstr "这个表达式相当复杂,因为它试图同时处理许多常见情况。它的意思是,calibre将假设章节以\"<h1>\"或\"<h2>\"标签开头,这些标签中包含任何单词“(章、书、节或部分)”,或者具有“class=“chapter”属性。"
753
754 #: ../../../__w/calibre/calibre/manual/conversion.rst:433
755 msgid ""
756 "A related option is :guilabel:`Chapter mark`, which allows you to control "
757 "what calibre does when it detects a chapter. By default, it will insert a "
758 "page break before the chapter. You can have it insert a ruled line instead "
759 "of, or in addition to the page break. You can also have it do nothing."
760 msgstr "一个相关选项是 :guilabel:`章节标记`,它能让你控制 calibre 在检测到章节时的操作。默认情况下,calibre 会在章节前插入分页符。你可以选择插入一条分隔线来替代分页符,或者在分页符之外再添加分隔线。你也可以设置为不执行任何操作。"
761
762 #: ../../../__w/calibre/calibre/manual/conversion.rst:437
763 msgid "The default setting for detecting page breaks is::"
764 msgstr "检测分页符的默认设置如下::"
765
766 #: ../../../__w/calibre/calibre/manual/conversion.rst:441
767 msgid ""
768 "which means that calibre will insert page breaks before every `<h1>` and "
769 "`<h2>` tag by default."
770 msgstr "这意味着 calibre 默认会在所有`<h1>`和 `<h2>`标签前自动插入分页符。"
771
772 #: ../../../__w/calibre/calibre/manual/conversion.rst:445
773 msgid ""
774 "The default expressions may change depending on the input format you are "
775 "converting."
776 msgstr "默认表达式可能会根据你正在转换的输入格式而变化。 "
777
778 #: ../../../__w/calibre/calibre/manual/conversion.rst:448
779 msgid "Miscellaneous"
780 msgstr "杂项"
781
782 #: ../../../__w/calibre/calibre/manual/conversion.rst:450
783 msgid "There are a few more options in this section."
784 msgstr "本部分还有几个额外选项。 "
785
786 #: ../../../__w/calibre/calibre/manual/conversion.rst:452
787 msgid ":guilabel:`Insert metadata as page at start of book`"
788 msgstr ":guilabel:`在书籍开头插入元数据作为页面`"
789
790 #: ../../../__w/calibre/calibre/manual/conversion.rst:453
791 msgid ""
792 "One of the great things about calibre is that it allows you to maintain very"
793 " complete metadata about all of your books, for example, a rating, tags, "
794 "comments, etc. This option will create a single page with all this metadata "
795 "and insert it into the converted e-book, typically just after the cover. "
796 "Think of it as a way to create your own customised book jacket."
797 msgstr "calibre 的强大功能之一在于支持为书籍维护完整的元数据体系,包括评分、标签、注释等信息。本选项可将所有元数据整合生成专属书目页,并自动插入转换后的电子书中,(通常位于封面之后),相当于为您打造个性化的书籍护封。"
798
799 #: ../../../__w/calibre/calibre/manual/conversion.rst:458
800 msgid ":guilabel:`Remove first image`"
801 msgstr ":guilabel:`删除首张图片`"
802
803 #: ../../../__w/calibre/calibre/manual/conversion.rst:459
804 msgid ""
805 "Sometimes, the source document you are converting includes the cover as part"
806 " of the book, instead of as a separate cover. If you also specify a cover in"
807 " calibre, then the converted book will have two covers. This option will "
808 "simply remove the first image from the source document, thereby ensuring "
809 "that the converted book has only one cover, the one specified in calibre."
810 msgstr "有时,您正在转换的源文档将封面作为书籍的一部分,而不是单独的封面。如果你也在Calibre中指定了封面,那么转换后的书将有两个封面。此选项将简单地从源文档中删除第一张图像,从而确保转换后的书籍只有一个封面,即Calibre中指定的封面。"
811
812 #: ../../../__w/calibre/calibre/manual/conversion.rst:466
813 msgid "Table of Contents"
814 msgstr "目录"
815
816 #: ../../../__w/calibre/calibre/manual/conversion.rst:468
817 msgid ""
818 "When the input document has a Table of Contents in its metadata, calibre "
819 "will just use that. However, a number of older formats either do not support"
820 " a metadata based Table of Contents, or individual documents do not have "
821 "one. In these cases, the options in this section can help you automatically "
822 "generate a Table of Contents in the converted e-book, based on the actual "
823 "content in the input document."
824 msgstr "当输入文档的元数据中有目录时,calibre将仅使用该目录。然而,许多旧格式要么不支持基于元数据的目录,要么单个文档没有目录。在这些情况下,本节中的选项可以帮助您根据输入文档中的实际内容,在转换后的电子书中自动生成目录。"
825
826 #: ../../../__w/calibre/calibre/manual/conversion.rst:473
827 msgid ""
828 "Using these options can be a little challenging to get exactly right. If you"
829 " prefer creating/editing the Table of Contents by hand, convert to the EPUB "
830 "or AZW3 formats and select the checkbox at the bottom of the Table of "
831 "Contents section of the conversion dialog that says :guilabel:`Manually "
832 "fine-tune the Table of Contents after conversion`. This will launch the ToC "
833 "Editor tool after the conversion. It allows you to create entries in the "
834 "Table of Contents by simply clicking the place in the book where you want "
835 "the entry to point. You can also use the ToC Editor by itself, without doing"
836 " a conversion. Go to :guilabel:`Preferences->Interface->Toolbars` and add "
837 "the :guilabel:`ToC Editor` to the main toolbar. Then just select the book "
838 "you want to edit and click the :guilabel:`ToC Editor` button."
839 msgstr "使用这些选项可能有点难以做到完全正确。如果您更喜欢手动创建/编辑目录,请转换为EPUB或AZW3格式,并选中转换对话框目录部分底部的复选框,该复选框显示“转换后手动微调目录”。这将在转换后启动目录编辑器工具。它允许您在目录中创建条目,只需在书中单击条目指向的位置即可。您还可以单独使用目录编辑器,而无需进行转换。转到“首选项”->“界面”->“工具栏”,并将“目录编辑器”添加到主工具栏。然后,只需选择要编辑的书,然后单击“目录编辑器”按钮。"
840
841 #: ../../../__w/calibre/calibre/manual/conversion.rst:485
842 msgid ""
843 "The first option is :guilabel:`Force use of auto-generated Table of "
844 "Contents`. By checking this option you can have calibre override any Table "
845 "of Contents found in the metadata of the input document with the auto "
846 "generated one."
847 msgstr "首个选项 :guilabel:`强制使用自动生成的目录`。勾选此选项后,calibre 将自动覆盖输入文档元数据中的原有目录,替换为系统生成的目录。"
848
849 #: ../../../__w/calibre/calibre/manual/conversion.rst:489
850 msgid ""
851 "The default way that the creation of the auto generated Table of Contents "
852 "works is that, calibre will first try to add any detected chapters to the "
853 "generated table of contents. You can learn how to customize the detection of"
854 " chapters in the :ref:`structure-detection` section above. If you do not "
855 "want to include detected chapters in the generated table of contents, check "
856 "the :guilabel:`Do not add detected chapters` option."
857 msgstr "创建自动生成的目录的默认方式是,calibre将首先尝试将任何检测到的章节添加到生成的目录中。您可以在上面的:ref:`structure-detection` 部分学习如何自定义章节的检测。如果您不想在生成的目录中包含检测到的章节,请选中“不添加检测到的章”选项。"
858
859 #: ../../../__w/calibre/calibre/manual/conversion.rst:494
860 msgid ""
861 "If less than the :guilabel:`Chapter threshold` number of chapters were "
862 "detected, calibre will then add any hyperlinks it finds in the input "
863 "document to the Table of Contents. This often works well: many input "
864 "documents include a hyperlinked Table of Contents right at the start. The "
865 ":guilabel:`Number of links` option can be used to control this behavior. If "
866 "set to zero, no links are added. If set to a number greater than zero, at "
867 "most that number of links is added."
868 msgstr "创建自动生成的目录的默认方式是,calibre将首先尝试将任何检测到的章节添加到生成的目录中。您可以在上面的“结构检测”部分学习如何自定义章节的检测。如果您不想在生成的目录中包含检测到的章节,请选中“不添加检测到的章”选项。"
869
870 #: ../../../__w/calibre/calibre/manual/conversion.rst:500
871 msgid ""
872 "calibre will automatically filter duplicates from the generated Table of "
873 "Contents. However, if there are some additional undesirable entries, you can"
874 " filter them using the :guilabel:`TOC Filter` option. This is a regular "
875 "expression that will match the title of entries in the generated table of "
876 "contents. Whenever a match is found, it will be removed. For example, to "
877 "remove all entries titles \"Next\" or \"Previous\" use::"
878 msgstr "calibre将自动从生成的目录中过滤重复项。但是,如果有一些其他不需要的条目,您可以使用“目录过滤器”选项对其进行过滤。这是一个正则表达式,将与生成的目录中的条目标题相匹配。只要找到匹配项,它就会被删除。例如,要删除所有标题为“下一个”或“上一个”的条目,请使用:"
879
880 #: ../../../__w/calibre/calibre/manual/conversion.rst:507
881 msgid ""
882 "The :guilabel:`Level 1,2,3 TOC` options allow you to create a sophisticated "
883 "multi-level Table of Contents. They are XPath expressions that match tags in"
884 " the intermediate XHTML produced by the conversion pipeline. See the "
885 ":ref:`conversion-introduction` for how to get access to this XHTML. Also "
886 "read the :ref:`xpath-tutorial`, to learn how to construct XPath expressions."
887 " Next to each option is a button that launches a wizard to help with the "
888 "creation of basic XPath expressions. The following simple example "
889 "illustrates how to use these options."
890 msgstr ":guilabel:`Level 1,2,3 TOC`选项允许您创建复杂的多级目录。它们是XPath表达式,与转换管道生成的中间XHTML中的标签相匹配。有关如何访问此XHTML,请参阅:ref:`conversion-introduction`。还要阅读 :ref:`xpath-tutorial`,了解如何构造xpath表达式。每个选项旁边都有一个按钮,用于启动向导以帮助创建基本的XPath表达式。以下简单示例说明了如何使用这些选项。"
891
892 #: ../../../__w/calibre/calibre/manual/conversion.rst:513
893 msgid ""
894 "Suppose you have an input document that results in XHTML that looks like "
895 "this:"
896 msgstr "假设您的原始文档经转换后生成如下结构的XHTML代码:"
897
898 #: ../../../__w/calibre/calibre/manual/conversion.rst:535
899 msgid "Then, we set the options as::"
900 msgstr "然后,我们将选项设置如下::"
901
902 #: ../../../__w/calibre/calibre/manual/conversion.rst:540
903 msgid ""
904 "This will result in an automatically generated two level Table of Contents "
905 "that looks like::"
906 msgstr "这将输出一个自动生成的两级目录,如下所示::"
907
908 #: ../../../__w/calibre/calibre/manual/conversion.rst:551
909 msgid ""
910 "Not all output formats support a multi level Table of Contents. You should "
911 "first try with EPUB output. If that works, then try your format of choice."
912 msgstr "并非所有输出格式都支持多级目录。你应首先尝试使用 EPUB 格式输出。如果该格式可行,再尝试你选择的其他格式。 "
913
914 #: ../../../__w/calibre/calibre/manual/conversion.rst:555
915 msgid "Using images as chapter titles when converting HTML input documents"
916 msgstr "在转换HTML输入文档时,将图片用作章节标题"
917
918 #: ../../../__w/calibre/calibre/manual/conversion.rst:557
919 msgid ""
920 "Suppose you want to use an image as your chapter title, but still want "
921 "calibre to be able to automatically generate a Table of Contents for you "
922 "from the chapter titles. Use the following HTML markup to achieve this:"
923 msgstr "如果你希望使用图片作为章节标题,同时仍想让 calibre 能够根据章节标题自动为你生成目录,可以使用以下 HTML 标记来实现:"
924
925 #: ../../../__w/calibre/calibre/manual/conversion.rst:571
926 msgid ""
927 "Set the :guilabel:`Level 1 TOC` setting to ``//h:h2``. Then, for chapter "
928 "two, calibre will take the title from the value of the ``title`` attribute "
929 "on the ``<h2>`` tag, since the tag has no text."
930 msgstr "将 :guilabel:`一级目录`设置为``//h:h2``。对于章节二,由于 \"<h2>\"标签内无文本内容,calibre 将自动提取该标签的``title``属性值作为章节标题。"
931
932 #: ../../../__w/calibre/calibre/manual/conversion.rst:574
933 msgid ""
934 "Using tag attributes to supply the text for entries in the Table of Contents"
935 msgstr "利用标签属性为目录条目提供文本内容 "
936
937 #: ../../../__w/calibre/calibre/manual/conversion.rst:576
938 msgid ""
939 "If you have particularly long chapter titles and want shortened versions in "
940 "the Table of Contents, you can use the title attribute to achieve this, for "
941 "example:"
942 msgstr "如果你有特别长的章节标题,并且希望在目录中显示其简化版本,可以使用 title 属性来实现,例如:"
943
944 #: ../../../__w/calibre/calibre/manual/conversion.rst:591
945 msgid ""
946 "Set the :guilabel:`Level 1 TOC` setting to ``//h:h2/@title``. Then calibre "
947 "will take the title from the value of the ``title`` attribute on the "
948 "``<h2>`` tags, instead of using the text inside the tag. Note the trailing "
949 "``/@title`` on the XPath expression, you can use this form to tell calibre "
950 "to get the text from any attribute you like."
951 msgstr "将 :guilabel:`一级目录` 设置为 ``//h:h2/@title``。这样,calibre 将从 <h2>标签的``title``属性值中获取标题内容,而不是使用标签内部的文本。请注意 XPath 表达式末尾的 ``/@title`` ,你可以使用这种格式告诉 calibre 从你喜欢的任何属性中获取文本。"
952
953 #: ../../../__w/calibre/calibre/manual/conversion.rst:598
954 msgid "How options are set/saved for conversion"
955 msgstr "转换选项的设置与保存方式"
956
957 #: ../../../__w/calibre/calibre/manual/conversion.rst:600
958 msgid ""
959 "There are two places where conversion options can be set in calibre. The "
960 "first is in Preferences->Conversion. These settings are the defaults for the"
961 " conversion options. Whenever you try to convert a new book, the settings "
962 "set here will be used by default."
963 msgstr "在 calibre 中,有两个地方可以设置转换选项。第一处位于“首选项 -> 转换”。这些设置是转换选项的默认值。每当您尝试转换一本新书时,此处设置的选项都将作为默认设置使用"
964
965 #: ../../../__w/calibre/calibre/manual/conversion.rst:605
966 msgid ""
967 "You can also change settings in the conversion dialog for each book "
968 "conversion. When you convert a book, calibre remembers the settings you used"
969 " for that book, so that if you convert it again, the saved settings for the "
970 "individual book will take precedence over the defaults set in "
971 ":guilabel:`Preferences`. You can restore the individual settings to defaults"
972 " by using the :guilabel:`Restore defaults` button in the individual book "
973 "conversion dialog. You can remove the saved settings for a group of books by"
974 " selecting all the books and then clicking the :guilabel:`Edit metadata` "
975 "button to bring up the bulk metadata edit dialog, near the bottom of the "
976 "dialog is an option to remove stored conversion settings."
977 msgstr "您还可以在转换对话框中更改每本书转换的设置。当你转换一本书时,calibre会记住你为那本书使用的设置,这样如果你再次转换它,为每本书保存的设置将优先于“首选项”中设置的默认值。您可以使用个人书籍转换对话框中的“恢复默认值”按钮将个人设置恢复为默认值。您可以通过选择所有书籍,然后单击“编辑元数据”按钮打开批量元数据编辑对话框来删除一组书籍的已保存设置,对话框底部附近有一个删除已存储转换设置的选项。"
978
979 #: ../../../__w/calibre/calibre/manual/conversion.rst:616
980 msgid ""
981 "When you bulk convert a set of books, settings are taken in the following "
982 "order (last one wins):"
983 msgstr "当您批量转换一组书籍时,设置将按以下顺序采用(以最后一条为准):"
984
985 #: ../../../__w/calibre/calibre/manual/conversion.rst:618
986 msgid "From the defaults set in Preferences->Conversion"
987 msgstr "源自“首选项 -> 转换”中设置的默认值"
988
989 #: ../../../__w/calibre/calibre/manual/conversion.rst:620
990 msgid ""
991 "From the saved conversion settings for each book being converted (if any). "
992 "This can be turned off by the option in the top left corner of the Bulk "
993 "conversion dialog."
994 msgstr "源自待转换书籍各自保存的转换设置(如果有)。这可以通过“批量转换”对话框左上角的选项来关闭"
995
996 #: ../../../__w/calibre/calibre/manual/conversion.rst:624
997 msgid "From the settings set in the Bulk conversion dialog"
998 msgstr "源自“批量转换”对话框中所做的设置"
999
1000 #: ../../../__w/calibre/calibre/manual/conversion.rst:626
1001 msgid ""
1002 "Note that the final settings for each book in a Bulk conversion will be "
1003 "saved and re-used if the book is converted again. Since the highest priority"
1004 " in Bulk Conversion is given to the settings in the Bulk conversion dialog, "
1005 "these will override any book specific settings. So you should only bulk "
1006 "convert books together that need similar settings. The exceptions are "
1007 "metadata and input format specific settings. Since the Bulk conversion "
1008 "dialog does not have settings for these two categories, they will be taken "
1009 "from book specific settings (if any) or the defaults."
1010 msgstr "请注意,批量转换中每本书的最终设置将被保存,如果书籍再次转换,将重新使用。由于批量转换中的最高优先级赋予了批量转换对话框中的设置,因此这些设置将覆盖任何特定于书籍的设置。因此,您应该只批量转换需要类似设置的书籍。例外情况是元数据和输入格式特定的设置。由于“批量转换”对话框没有这两个类别的设置,因此将从特定于书籍的设置(如果有的话)或默认设置中获取。"
1011
1012 #: ../../../__w/calibre/calibre/manual/conversion.rst:637
1013 msgid ""
1014 "You can see the actual settings used during any conversion by clicking the "
1015 "rotating icon in the lower right corner and then double clicking the "
1016 "individual conversion job. This will bring up a conversion log that will "
1017 "contain the actual settings used, near the top."
1018 msgstr "您可以点击右下角的旋转图标,然后双击相应的转换任务,查看任何转换过程中实际使用的设置。这将弹出转换日志,实际使用的设置就包含在日志顶部附近。"
1019
1020 #: ../../../__w/calibre/calibre/manual/conversion.rst:642
1021 msgid "Format specific tips"
1022 msgstr "特定格式提示"
1023
1024 #: ../../../__w/calibre/calibre/manual/conversion.rst:644
1025 msgid ""
1026 "Here you will find tips specific to the conversion of particular formats. "
1027 "Options specific to particular format, whether input or output are available"
1028 " in the conversion dialog under their own section, for example `TXT input` "
1029 "or `EPUB output`."
1030 msgstr "在这里,您将找到针对特定格式转换的提示。无论输入还是输出,特定于某种格式的选项都可以在转换对话框的独立章节中找到,例如“TXT 输入”或“EPUB 输出”。"
1031
1032 #: ../../../__w/calibre/calibre/manual/conversion.rst:649
1033 msgid "Convert Microsoft Word documents"
1034 msgstr "转换Microsoft Word文档"
1035
1036 #: ../../../__w/calibre/calibre/manual/conversion.rst:651
1037 msgid ""
1038 "calibre can automatically convert ``.docx`` files created by Microsoft Word "
1039 "2007 and newer. Just add the file to calibre and click convert."
1040 msgstr "Calibre 可以自动转换由 Microsoft Word 2007 及更高版本创建的``.docx`` 文件。只需将文件添加到 calibre 并点击转换即可。"
1041
1042 #: ../../../__w/calibre/calibre/manual/conversion.rst:655
1043 msgid ""
1044 "There is a :download_file:`demo .docx file <demos/demo.docx>` that "
1045 "demonstrates the capabilities of the calibre conversion engine. Just "
1046 "download it and convert it to EPUB or AZW3 to see what calibre can do."
1047 msgstr "这里有一个 :download_file:`demo .docx 文件 <demos/demo.docx>`,用于展示 calibre 转换引擎的功能。只需下载并将其转换为 EPUB 或 AZW3 格式,即可亲眼见证 calibre 的强大能力。"
1048
1049 #: ../../../__w/calibre/calibre/manual/conversion.rst:659
1050 msgid ""
1051 "calibre will automatically generate a Table of Contents based on headings if"
1052 " you mark your headings with the ``Heading 1``, ``Heading 2``, etc. styles "
1053 "in Microsoft Word. Open the output e-book in the calibre E-book viewer and "
1054 "click the :guilabel:`Table of Contents` button to view the generated Table "
1055 "of Contents."
1056 msgstr "如果您在 Microsoft Word 中将标题标记为“标题 1”、“标题 2”等样式,calibre 将根据这些标题自动生成目录。在 calibre 电子书阅读器中打开输出的电子书,点击 :guilabel:`目录` 按钮即可查看生成的目录。"
1057
1058 #: ../../../__w/calibre/calibre/manual/conversion.rst:665
1059 msgid "Older .doc files"
1060 msgstr "旧版 .doc 文件"
1061
1062 #: ../../../__w/calibre/calibre/manual/conversion.rst:667
1063 msgid ""
1064 "For older .doc files, you can save the document as HTML with Microsoft Word "
1065 "and then convert the resulting HTML file with calibre. When saving as HTML, "
1066 "be sure to use the \"Save as Web Page, Filtered\" option as this will "
1067 "produce clean HTML that will convert well. Note that Word produces really "
1068 "messy HTML, converting it can take a long time, so be patient. If you have a"
1069 " newer version of Word available, you can directly save it as .docx as well."
1070 msgstr "对于较旧的.doc文件,您可以使用Microsoft Word将文档另存为HTML,然后使用calibre转换生成的HTML文件。保存为HTML时,请务必使用“另存为网页,已过滤”选项,因为这将生成转换良好的干净HTML。请注意,Word生成的HTML非常混乱,转换它可能需要很长时间,所以请耐心等待。如果您有较新版本的Word可用,也可以直接将其另存为.docx。"
1071
1072 #: ../../../__w/calibre/calibre/manual/conversion.rst:674
1073 msgid ""
1074 "Another alternative is to use the free LibreOffice. Open your .doc file in "
1075 "LibreOffice and save it as .docx, which can be directly converted in "
1076 "calibre."
1077 msgstr "另一种选择是使用免费的 LibreOffice。在 LibreOffice 中打开您的 .doc 文件并将其另存为 .docx,之后即可在 calibre 中直接进行转换。"
1078
1079 #: ../../../__w/calibre/calibre/manual/conversion.rst:678
1080 msgid "Convert TXT documents"
1081 msgstr "转换文本文档"
1082
1083 #: ../../../__w/calibre/calibre/manual/conversion.rst:680
1084 msgid ""
1085 "TXT documents have no well defined way to specify formatting like bold, "
1086 "italics, etc, or document structure like paragraphs, headings, sections and "
1087 "so on, but there are a variety of conventions commonly used. By default "
1088 "calibre attempts automatic detection of the correct formatting and markup "
1089 "based on those conventions."
1090 msgstr "TXT文档没有明确的方式来指定格式,如粗体、斜体等,或文档结构,如段落、标题、章节等,但有各种常用的约定。默认情况下,calibre会尝试根据这些约定自动检测正确的格式和标记。"
1091
1092 #: ../../../__w/calibre/calibre/manual/conversion.rst:685
1093 msgid ""
1094 "TXT input supports a number of options to differentiate how paragraphs are "
1095 "detected."
1096 msgstr "TXT 输入支持多种选项,用于区分如何检测段落。"
1097
1098 #: ../../../__w/calibre/calibre/manual/conversion.rst:687
1099 msgid ":guilabel:`Paragraph style: Auto`"
1100 msgstr ":guilabel:`段落样式: Auto`"
1101
1102 #: ../../../__w/calibre/calibre/manual/conversion.rst:688
1103 msgid ""
1104 "Analyzes the text file and attempts to automatically determine how "
1105 "paragraphs are defined. This option will generally work fine, if you "
1106 "achieve undesirable results try one of the manual options."
1107 msgstr "分析文本文件并尝试自动确定段落的定义方式。该选项通常运行良好,如果结果不尽如人意,请尝试使用某种手动选项。"
1108
1109 #: ../../../__w/calibre/calibre/manual/conversion.rst:691
1110 msgid ":guilabel:`Paragraph style: Block`"
1111 msgstr ":guilabel:`段落样式: Block`"
1112
1113 #: ../../../__w/calibre/calibre/manual/conversion.rst:692
1114 msgid "Assumes one or more blank lines are a paragraph boundary::"
1115 msgstr "假设一个或多个空行即为段落分界线::"
1116
1117 #: ../../../__w/calibre/calibre/manual/conversion.rst:699
1118 msgid ":guilabel:`Paragraph style: Single`"
1119 msgstr ":guilabel:`段落样式: Single`"
1120
1121 #: ../../../__w/calibre/calibre/manual/conversion.rst:700
1122 msgid "Assumes that every line is a paragraph::"
1123 msgstr "假设每一行都是一个独立的段落::"
1124
1125 #: ../../../__w/calibre/calibre/manual/conversion.rst:706
1126 msgid ":guilabel:`Paragraph style: Print`"
1127 msgstr ":guilabel:`段落样式: Print`"
1128
1129 #: ../../../__w/calibre/calibre/manual/conversion.rst:707
1130 msgid ""
1131 "Assumes that every paragraph starts with an indent (either a tab or 2+ "
1132 "spaces). Paragraphs end when the next line that starts with an indent is "
1133 "reached::"
1134 msgstr "假设每个段落都以缩进开头(制表符或 2 个以上的空格)。当遇到下一个以缩进开头的行时,当前段落结束::"
1135
1136 #: ../../../__w/calibre/calibre/manual/conversion.rst:717
1137 msgid ":guilabel:`Paragraph style: Unformatted`"
1138 msgstr ":guilabel:`段落样式: Unformatted`"
1139
1140 #: ../../../__w/calibre/calibre/manual/conversion.rst:718
1141 msgid ""
1142 "Assumes that the document has no formatting, but does use hard line breaks."
1143 " Punctuation and median line length are used to attempt to re-create "
1144 "paragraphs."
1145 msgstr "假设文档没有任何格式设置,但使用了硬换行符。系统将通过标点符号和平均行长度来尝试重新构建段落。"
1146
1147 #: ../../../__w/calibre/calibre/manual/conversion.rst:721
1148 msgid ":guilabel:`Formatting style: Auto`"
1149 msgstr ":guilabel:`格式化样式:自动`"
1150
1151 #: ../../../__w/calibre/calibre/manual/conversion.rst:722
1152 msgid ""
1153 "Attempts to detect the type of formatting markup being used. If no markup "
1154 "is used then heuristic formatting will be applied."
1155 msgstr "尝试检测正在使用的格式标记类型。如果未检测到任何标记,则将应用“智能处理”。"
1156
1157 #: ../../../__w/calibre/calibre/manual/conversion.rst:725
1158 msgid ":guilabel:`Formatting style: Heuristic`"
1159 msgstr ":guilabel:`格式化样式:智能`"
1160
1161 #: ../../../__w/calibre/calibre/manual/conversion.rst:726
1162 msgid ""
1163 "Analyzes the document for common chapter headings, scene breaks, and "
1164 "italicized words and applies the appropriate HTML markup during conversion."
1165 msgstr "分析文档中的常见章节标题、分节符以及斜体词汇,并在转换过程中应用相应的 HTML 标记。"
1166
1167 #: ../../../__w/calibre/calibre/manual/conversion.rst:729
1168 msgid ":guilabel:`Formatting style: Markdown`"
1169 msgstr ":guilabel:`格式化样式: Markdown`"
1170
1171 #: ../../../__w/calibre/calibre/manual/conversion.rst:730
1172 msgid ""
1173 "calibre also supports running TXT input though a transformation preprocessor"
1174 " known as Markdown. Markdown allows for basic formatting to be added to TXT "
1175 "documents, such as bold, italics, section headings, tables, lists, a Table "
1176 "of Contents, etc. Marking chapter headings with a leading # and setting the "
1177 "chapter XPath detection expression to \"//h:h1\" is the easiest way to have "
1178 "a proper table of contents generated from a TXT document. You can learn more"
1179 " about the Markdown syntax at `daringfireball "
1180 "<https://daringfireball.net/projects/markdown/syntax>`_."
1181 msgstr "calibre还支持通过名为Markdown的转换预处理器运行TXT输入。Markdown允许将基本格式添加到TXT文档中,如粗体、斜体、节标题、表格、列表、目录等。用前导#标记章节标题并将章节XPath检测表达式设置为“//h:h1”是从TXT文档生成正确目录的最简单方法。你可以在`daringfireball上了解更多关于Markdown语法的信息<https://daringfireball.net/projects/markdown/syntax>`_."
1182
1183 #: ../../../__w/calibre/calibre/manual/conversion.rst:736
1184 msgid ":guilabel:`Formatting style: None`"
1185 msgstr ":guilabel:`格式化样式:无`"
1186
1187 #: ../../../__w/calibre/calibre/manual/conversion.rst:737
1188 msgid ""
1189 "Applies no special formatting to the text, the document is converted to HTML"
1190 " with no other changes."
1191 msgstr "不对文本应用任何特殊格式,文档在不进行其他更改的情况下直接转换为 HTML。"
1192
1193 #: ../../../__w/calibre/calibre/manual/conversion.rst:742
1194 msgid "Convert PDF documents"
1195 msgstr "转换PDF文档"
1196
1197 #: ../../../__w/calibre/calibre/manual/conversion.rst:744
1198 msgid ""
1199 "PDF documents are one of the worst formats to convert from. They are a fixed"
1200 " page size and text placement format. Meaning, it is very difficult to "
1201 "determine where one paragraph ends and another begins. calibre will try to "
1202 "unwrap paragraphs using a configurable, :guilabel:`Line un-wrapping factor`."
1203 " This is a scale used to determine the length at which a line should be "
1204 "unwrapped. Valid values are a decimal between 0 and 1. The default is 0.45, "
1205 "just under the median line length. Lower this value to include more text in "
1206 "the unwrapping. Increase to include less. You can adjust this value in the "
1207 "conversion settings under :guilabel:`PDF Input`."
1208 msgstr "PDF文档是最难转换的格式之一。它们是固定的页面大小和文本放置格式。也就是说,很难确定一个段落在哪里结束,另一个段落从哪里开始。calibre将尝试使用可配置的“行解包因子”来解包段落。这是一个用于确定线应展开的长度的标尺。有效值是介于0和1之间的十进制数。默认值为0.45,刚好在中线长度下方。降低此值可在展开中包含更多文本。增加以包含更少。您可以在“PDF输入”下的转换设置中调整此值。"
1209
1210 #: ../../../__w/calibre/calibre/manual/conversion.rst:751
1211 msgid ""
1212 "Also, they often have headers and footers as part of the document that will "
1213 "become included with the text. Use the :guilabel:`Search and replace` panel "
1214 "to remove headers and footers to mitigate this issue. If the headers and "
1215 "footers are not removed from the text it can throw off the paragraph "
1216 "unwrapping. To learn how to use the header and footer removal options, read "
1217 ":ref:`regexptutorial`."
1218 msgstr "此外,它们通常有页眉和页脚作为文档的一部分,这些页眉和页脚将包含在文本中。使用“搜索和替换”面板删除页眉和页脚以缓解此问题。如果没有从文本中删除页眉和页脚,则可以取消段落展开。要了解如何使用页眉和页脚删除选项,请阅读:ref:`regexptutorial`。"
1219
1220 #: ../../../__w/calibre/calibre/manual/conversion.rst:756
1221 msgid "Some limitations of PDF input are:"
1222 msgstr "PDF输入限制:"
1223
1224 #: ../../../__w/calibre/calibre/manual/conversion.rst:758
1225 msgid "Complex, multi-column, and image based documents are not supported."
1226 msgstr "该功能不支持复杂的、多栏布局以及基于图片的文档。"
1227
1228 #: ../../../__w/calibre/calibre/manual/conversion.rst:759
1229 msgid ""
1230 "Extraction of vector images and tables from within the document is also not "
1231 "supported."
1232 msgstr "此外,该功能也不支持提取文档中的矢量图形和表格。"
1233
1234 #: ../../../__w/calibre/calibre/manual/conversion.rst:760
1235 msgid ""
1236 "Some PDFs use special glyphs to represent ll or ff or fi, etc. Conversion of"
1237 " these may or may not work depending on just how they are represented "
1238 "internally in the PDF."
1239 msgstr "某些 PDF 使用特殊字符(合字)来表示 ll、ff 或 fi 等字母组合。这些字符能否成功转换,取决于它们在 PDF 内部的具体表示方式。"
1240
1241 #: ../../../__w/calibre/calibre/manual/conversion.rst:761
1242 msgid "Links and Tables of Contents are not supported"
1243 msgstr "链接和目录不支持"
1244
1245 #: ../../../__w/calibre/calibre/manual/conversion.rst:762
1246 msgid ""
1247 "PDFs that use embedded non-Unicode fonts to represent non-English characters"
1248 " will result in garbled output for those characters"
1249 msgstr "如果 PDF 使用嵌入式非 Unicode 字体来表示非英语字符,会导致这些字符在输出结果中显示为乱码。"
1250
1251 #: ../../../__w/calibre/calibre/manual/conversion.rst:763
1252 msgid ""
1253 "Some PDFs are made up of photographs of the page with OCRed text behind "
1254 "them. In such cases calibre uses the OCRed text, which can be very different"
1255 " from what you see when you view the PDF file"
1256 msgstr "某些 PDF 页面是由扫描的页面经过 OCR 处理的文本构成的。在这种情况下,calibre 会使用这些 OCR 文本,但它们可能与您在查看 PDF 文件时所见的内容大相径庭"
1257
1258 #: ../../../__w/calibre/calibre/manual/conversion.rst:764
1259 msgid ""
1260 "PDFs that are used to display complex text, like right to left languages and"
1261 " math typesetting will not convert correctly"
1262 msgstr "用于显示复杂文本(如从右向左书写的语言和数学排版)的 PDF 无法正确转换"
1263
1264 #: ../../../__w/calibre/calibre/manual/conversion.rst:766
1265 msgid ""
1266 "To re-iterate **PDF is a really, really bad** format to use as input. If you"
1267 " absolutely must use PDF, then be prepared for an output ranging anywhere "
1268 "from decent to unusable, depending on the input PDF."
1269 msgstr "再次重申:PDF 是一种极其糟糕的输入格式。如果您绝对必须使用 PDF,那么请做好心理准备,输出效果可能从“尚可”到“完全不可用”不等,这完全取决于输入的 PDF 文件本身。"
1270
1271 #: ../../../__w/calibre/calibre/manual/conversion.rst:770
1272 msgid "Comic book collections"
1273 msgstr "漫画集"
1274
1275 #: ../../../__w/calibre/calibre/manual/conversion.rst:772
1276 msgid ""
1277 "A comic book collection is a .cbc file. A .cbc file is a ZIP file that "
1278 "contains other CBZ/CBR files. In addition the .cbc file must contain a "
1279 "simple text file called comics.txt, encoded in UTF-8. The comics.txt file "
1280 "must contain a list of the comics files inside the .cbc file, in the form "
1281 "filename:title, as shown below::"
1282 msgstr "漫画集是一种 .cbc 文件。.cbc 文件实际上是一个包含其他 CBZ/CBR 文件的 ZIP 压缩包。此外,.cbc 文件内必须包含一个名为 comics.txt 的纯文本文件(使用 UTF-8 编码)。comics.txt 必须包含该 .cbc 文件内所有漫画文件的列表,格式为“文件名:标题”,如下所示::"
1283
1284 #: ../../../__w/calibre/calibre/manual/conversion.rst:780
1285 msgid "The .cbc file will then contain::"
1286 msgstr "随后, .cbc 文件将包含以下内容::"
1287
1288 #: ../../../__w/calibre/calibre/manual/conversion.rst:787
1289 msgid ""
1290 "calibre will automatically convert this .cbc file into an e-book with a "
1291 "Table of Contents pointing to each entry in comics.txt."
1292 msgstr "calibre 会自动将此 .cbc 文件转换为一本电子书,并根据 comics.txt 中的每个条目生成相应的目录。"
1293
1294 #: ../../../__w/calibre/calibre/manual/conversion.rst:791
1295 msgid "EPUB advanced formatting demo"
1296 msgstr "EPUB 高级格式演示"
1297
1298 #: ../../../__w/calibre/calibre/manual/conversion.rst:793
1299 msgid ""
1300 "Various advanced formatting for EPUB files is demonstrated in this "
1301 ":download_file:`demo file <demos/demo.epub>`. The file was created from hand"
1302 " coded HTML using calibre and is meant to be used as a template for your own"
1303 " EPUB creation efforts."
1304 msgstr "此 :download_file:`演示文件 <demos/demo.epub>`展示了 EPUB 文件的各种高级格式设置技巧。该文件是通过 calibre 从手写 HTML 代码创建的,旨在作为您自行制作 EPUB 文件的模板。"
1305
1306 #: ../../../__w/calibre/calibre/manual/conversion.rst:796
1307 msgid ""
1308 "The source HTML it was created from is available :download_file:`demo.zip "
1309 "<demos/demo.zip>`. The settings used to create the EPUB from the ZIP file "
1310 "are::"
1311 msgstr "用于创建该文件的 HTML 源码可在 :download_file:`demo.zip <demos/demo.zip>` 中获取。从该 ZIP 文件创建 EPUB 时所使用的设置如下:"
1312
1313 #: ../../../__w/calibre/calibre/manual/conversion.rst:801
1314 msgid ""
1315 "Note that because this file explores the potential of EPUB, most of the "
1316 "advanced formatting is not going to work on readers less capable than "
1317 "calibre's built-in EPUB viewer."
1318 msgstr "请注意,由于该文件探索了 EPUB 的各种潜力,大部分高级格式设置在性能弱于 calibre 内置电子书阅读器的设备上将无法正常显示。"
1319
1320 #: ../../../__w/calibre/calibre/manual/conversion.rst:805
1321 msgid "Convert ODT documents"
1322 msgstr "转换 ODT 文档"
1323
1324 #: ../../../__w/calibre/calibre/manual/conversion.rst:807
1325 msgid ""
1326 "calibre can directly convert ODT (OpenDocument Text) files. You should use "
1327 "styles to format your document and minimize the use of direct formatting. "
1328 "When inserting images into your document you need to anchor them to the "
1329 "paragraph, images anchored to a page will all end up in the front of the "
1330 "conversion."
1331 msgstr "calibre 可以直接转换 ODT(OpenDocument Text)文件。您应当使用“样式”来格式化文档,并尽量减少直接格式化的使用。在文档中插入图片时,您需要将其锚定到“段落”;若将图片锚定到“页面”,转换后图片都会堆积在书的最前面。"
1332
1333 #: ../../../__w/calibre/calibre/manual/conversion.rst:810
1334 msgid ""
1335 "To enable automatic detection of chapters, you need to mark them with the "
1336 "built-in styles called :guilabel:`Heading 1`, :guilabel:`Heading 2`, ..., "
1337 ":guilabel:`Heading 6` (:guilabel:`Heading 1` equates to the HTML tag "
1338 "``<h1>``, :guilabel:`Heading 2` to ``<h2>``, etc). When you convert in "
1339 "calibre you can enter which style you used into the :guilabel:`Detect "
1340 "chapters at` box. Example:"
1341 msgstr "要启用章节的自动侦测,您需要使用名为“标题 1”、“标题2”、…`标题6`的内置样式标记它们(“标题1”相当于HTML标签\"<h1>\",“标题2”相当于\"<h2>\",以此类推)。当你在Calibre中转换时,你可以在“检测章节”框中输入你使用的样式。例子:"
1342
1343 #: ../../../__w/calibre/calibre/manual/conversion.rst:816
1344 msgid ""
1345 "If you mark Chapters with style :guilabel:`Heading 2`, you have to set the "
1346 "'Detect chapters at' box to ``//h:h2``"
1347 msgstr "如果您使用“样式”中的 :guilabel:`标题 2`来标记章节,则必须将“检测章节于”框设置为 //``h:h2``"
1348
1349 #: ../../../__w/calibre/calibre/manual/conversion.rst:817
1350 msgid ""
1351 "For a nested TOC with Sections marked with :guilabel:`Heading 2` and the "
1352 "Chapters marked with :guilabel:`Heading 3` you need to enter "
1353 "``//h:h2|//h:h3``. On the Convert - TOC page set the :guilabel:`Level 1 TOC`"
1354 " box to ``//h:h2`` and the :guilabel:`Level 2 TOC` box to ``//h:h3``."
1355 msgstr "对于包含“节”和“章”的嵌套目录,若“节”标记为 :guilabel:`标题 2`、“章”标记为 :guilabel:`标题 3`,您需要在“检测章节于”框中输入`` //h:h2|//h:h3``。随后在“转换 - 目录”页面中,将 :guilabel:`一级目录` 框设置为 ``//h:h2``,并将 :guilabel:二级目录 框设置为 ``//h:h3``。"
1356
1357 #: ../../../__w/calibre/calibre/manual/conversion.rst:819
1358 msgid ""
1359 "Well-known document properties (Title, Keywords, Description, Creator) are "
1360 "recognized and calibre will use the first image (not too small, and with "
1361 "good aspect-ratio) as the cover image."
1362 msgstr "系统可以识别常见的文档属性(标题、关键词、描述、作者),并且 calibre 会将文档中的第一张图片(面积不能太小,且具有良好的宽高比)用作封面图片。"
1363
1364 #: ../../../__w/calibre/calibre/manual/conversion.rst:821
1365 msgid ""
1366 "There is also an advanced property conversion mode, which is activated by "
1367 "setting the custom property ``opf.metadata`` ('Yes or No' type) to Yes in "
1368 "your ODT document (File->Properties->Custom Properties). If this property is"
1369 " detected by calibre, the following custom properties are recognized "
1370 "(``opf.authors`` overrides document creator)::"
1371 msgstr "此外还有一种高级属性转换模式。您可以在 ODT 文档中(文件 -> 属性 -> 自定义属性)添加一个名为``opf.metadata`` 的自定义属性(类型为“是/否”),并将其设为“是”来激活该模式。如果 calibre 检测到此属性,它将识别以下自定义属性(其中 opf.authors 会覆盖文档的原始作者信息)::"
1372
1373 #: ../../../__w/calibre/calibre/manual/conversion.rst:834
1374 msgid ""
1375 "In addition to this, you can specify the picture to use as the cover by "
1376 "naming it ``opf.cover`` (right click, Picture->Options->Name) in the ODT. If"
1377 " no picture with this name is found, the 'smart' method is used. As the "
1378 "cover detection might result in double covers in certain output formats, the"
1379 " process will remove the paragraph (only if the only content is the cover!) "
1380 "from the document. But this works only with the named picture!"
1381 msgstr "除此之外,您还可以通过在ODT中将图片命名为“opf.cover”(右键单击,图片->选项->名称)来指定用作封面的图片。如果找不到具有此名称的图片,则使用“smart”方法。由于封面检测可能会导致某些输出格式出现双封面,因此该过程将从文档中删除该段落(仅当唯一内容是封面时!)。但这只适用于命名的图片!"
1382
1383 #: ../../../__w/calibre/calibre/manual/conversion.rst:841
1384 msgid ""
1385 "To disable cover detection you can set the custom property ``opf.nocover`` "
1386 "('Yes or No' type) to Yes in advanced mode."
1387 msgstr "在高级模式下,您可以通过在 ODT 文档中将自定义属性``opf.nocover`` (类型为“是/否”)设置为“是”来禁用封面检测。"
1388
1389 #: ../../../__w/calibre/calibre/manual/conversion.rst:844
1390 msgid "Converting to PDF"
1391 msgstr "转换为PDF"
1392
1393 #: ../../../__w/calibre/calibre/manual/conversion.rst:846
1394 msgid ""
1395 "The first, most important, setting to decide on when converting to PDF is "
1396 "the page size. By default, calibre uses a page size of \"U.S. Letter\". You "
1397 "can change this to another standard page size or a completely custom size in"
1398 " the :guilabel:`PDF Output` section of the conversion dialog. If you are "
1399 "generating a PDF to be used on a specific device, you can turn on the option"
1400 " to use the page size from the :guilabel:`output profile` instead. So if "
1401 "your output profile is set to Kindle, calibre will create a PDF with page "
1402 "size suitable for viewing on the small Kindle screen."
1403 msgstr "转换为PDF时要决定的第一个也是最重要的设置是页面大小。默认情况下,calibre使用“U.S.Letter”的页面大小。您可以在转换对话框的“PDF输出”部分将其更改为另一个标准页面大小或完全自定义的大小。如果您正在生成要在特定设备上使用的PDF,则可以打开选项,使用“输出配置文件”中的页面大小。因此,如果您的输出配置文件设置为Kindle,calibre将创建一个页面大小适合在Kindle小屏幕上查看的PDF。"
1404
1405 #: ../../../__w/calibre/calibre/manual/conversion.rst:856
1406 msgid "Headers and Footers"
1407 msgstr "页头和页脚"
1408
1409 #: ../../../__w/calibre/calibre/manual/conversion.rst:857
1410 msgid ""
1411 "You can insert arbitrary headers and footers on each page of the PDF by "
1412 "specifying header and footer templates. Templates are just snippets of HTML "
1413 "code that get rendered in the header and footer locations. For example, to "
1414 "display page numbers centered at the bottom of every page, in green, use the"
1415 " following footer template::"
1416 msgstr "通过指定页眉和页脚模板,您可以在 PDF 的每一页插入任意内容的页眉和页脚。模板实质上是渲染在页眉和页脚位置的 HTML 代码片段。例如,若要在每页底部中央以绿色显示页数,请使用以下页脚模板::"
1417
1418 #: ../../../__w/calibre/calibre/manual/conversion.rst:865
1419 msgid ""
1420 "calibre will automatically replace :code:`_PAGENUM_` with the current page "
1421 "number. You can even put different content on even and odd pages, for "
1422 "example the following header template will show the title on odd pages and "
1423 "the author on even pages::"
1424 msgstr "calibre 会自动将 :code:`_PAGENUM_` 替换为当前页码。您甚至可以在奇数页和偶数页上设置不同的内容。例如,使用以下页眉模板可以在奇数页显示书名,而在偶数页显示作者::"
1425
1426 #: ../../../__w/calibre/calibre/manual/conversion.rst:874
1427 msgid ""
1428 "calibre will automatically replace :code:`_TITLE_` and :code:`_AUTHOR_` with"
1429 " the title and author of the document being converted. Setting "
1430 ":code:`justify-content` to :code:`flex-end` will cause the text to be right "
1431 "aligned."
1432 msgstr "calibre 会自动将 :code:`_TITLE_` 和 :code:`_AUTHOR_` 替换为正在转换的文档的书名和作者。将 :code:`justify-content` 属性设置为 :code:`flex-end` 则会使文本右对齐。"
1433
1434 #: ../../../__w/calibre/calibre/manual/conversion.rst:879
1435 msgid ""
1436 "You can also display text at the left and right edges and change the font "
1437 "size, as demonstrated with this header template::"
1438 msgstr "您还可以将文本分别显示在左侧和右侧边缘,并更改字体大小,如下面的页眉模板所示::"
1439
1440 #: ../../../__w/calibre/calibre/manual/conversion.rst:887
1441 msgid ""
1442 "This will display the title at the left and the author at the right, in a "
1443 "font size smaller than the main text."
1444 msgstr "这将使书名显示在左侧,作者显示在右侧,且字体大小比正文更小。"
1445
1446 #: ../../../__w/calibre/calibre/manual/conversion.rst:890
1447 msgid "You can also use the current section in templates, as shown below::"
1448 msgstr "您还可以在模板中使用当前章节名称,如下所示::"
1449
1450 #: ../../../__w/calibre/calibre/manual/conversion.rst:894
1451 msgid ""
1452 ":code:`_SECTION_` is replaced by whatever the name of the current section "
1453 "is. These names are taken from the metadata Table of Contents in the "
1454 "document (the PDF Outline). If the document has no table of contents then it"
1455 " will be replaced by empty text. If a single PDF page has multiple sections,"
1456 " the first section on the page will be used. Similarly, there is a variable "
1457 "named :code:`_TOP_LEVEL_SECTION_` that can be used to get the name of the "
1458 "current top-level section."
1459 msgstr "`_SECTION_`替换为当前节的名称。这些名称取自文档中的元数据目录(PDF大纲)。如果文档没有目录,则将替换为空文本。如果单个PDF页面有多个部分,则将使用页面上的第一部分。同样,有一个名为“_TOP_LEVEL_SECTION_”的变量可用于获取当前顶级节的名称。"
1460
1461 #: ../../../__w/calibre/calibre/manual/conversion.rst:901
1462 msgid ""
1463 "You can even use JavaScript inside the header and footer templates, for "
1464 "example, the following template will cause page numbers to start at 4 "
1465 "instead of 1::"
1466 msgstr "您甚至可以在页眉和页脚模板中使用 JavaScript。例如,使用以下模板可以使页码从 4 开始,而不是从 1 开始::"
1467
1468 #: ../../../__w/calibre/calibre/manual/conversion.rst:911
1469 msgid ""
1470 "In addition there are some more variables you can use in the headers and "
1471 "footers, documented below:"
1472 msgstr "此外,您还可以在页眉和页脚中使用更多变量,具体说明如下:"
1473
1474 #: ../../../__w/calibre/calibre/manual/conversion.rst:914
1475 msgid ""
1476 "``_TOTAL_PAGES_`` - total number of pages in the PDF file, useful for "
1477 "implementing a progress counter, for example."
1478 msgstr "``_TOTAL_PAGES_`` —— PDF 文件的总页数。例如,在实现进度计数器时非常有用。"
1479
1480 #: ../../../__w/calibre/calibre/manual/conversion.rst:916
1481 msgid ""
1482 "``_TOP_LEVEL_SECTION_PAGES_`` - total number of pages in the current top "
1483 "level section"
1484 msgstr "``_TOP_LEVEL_SECTION_PAGES_`` —— 当前顶级章节的总页数。"
1485
1486 #: ../../../__w/calibre/calibre/manual/conversion.rst:918
1487 msgid ""
1488 "``_TOP_LEVEL_SECTION_PAGENUM_`` - the page number of the current page within"
1489 " the current top level section"
1490 msgstr "``_TOP_LEVEL_SECTION_PAGENUM_`` —— 当前页在当前顶级章节内的页码"
1491
1492 #: ../../../__w/calibre/calibre/manual/conversion.rst:920
1493 msgid "``_WIDTH_PIXELS_`` - the width of the header/footer area in pixels"
1494 msgstr "``_WIDTH_PIXELS_`` —— 页眉/页脚区域的宽度,以像素为单位"
1495
1496 #: ../../../__w/calibre/calibre/manual/conversion.rst:921
1497 msgid "``_HEIGHT_PIXELS_`` - the height of the header/footer area in pixels"
1498 msgstr "``_HEIGHT_PIXELS_`` —— 页眉/页脚区域的高度,以像素为单位"
1499
1500 #: ../../../__w/calibre/calibre/manual/conversion.rst:923
1501 msgid ""
1502 "When adding headers and footers make sure you set the page top and bottom "
1503 "margins to large enough values, under the :guilabel:`PDF Output` section of "
1504 "the conversion dialog."
1505 msgstr "在添加页眉和页脚时,请务必在转换对话框的 :guilabel:`PDF输出`部分下,将页面上边距和下边距设置为足够大的数值。"
1506
1507 #: ../../../__w/calibre/calibre/manual/conversion.rst:928
1508 msgid "Printable Table of Contents"
1509 msgstr "可打印目录"
1510
1511 #: ../../../__w/calibre/calibre/manual/conversion.rst:930
1512 msgid ""
1513 "You can also insert a printable Table of Contents at the end of the PDF that"
1514 " lists the page numbers for every section. This is very useful if you intend"
1515 " to print out the PDF to paper. If you wish to use the PDF on an electronic "
1516 "device, then the PDF Outline provides this functionality and is generated by"
1517 " default."
1518 msgstr "您还可以在 PDF 的末尾插入一份“可打印目录”,其中会列出每个章节对应的页码。如果您打算将 PDF 打印成纸质文档,这个功能会非常有用。如果您是在电子设备上使用 PDF,那么“PDF大纲”(书签)已经提供了类似的功能,并且该功能在默认情况下是开启的。"
1519
1520 #: ../../../__w/calibre/calibre/manual/conversion.rst:935
1521 msgid ""
1522 "You can customize the look of the generated Table of contents by using the "
1523 "Extra CSS conversion setting under the Look & feel part of the conversion "
1524 "dialog. The default CSS used is listed below, simply copy it and make "
1525 "whatever changes you like."
1526 msgstr "您可以通过转换对话框中“界面外观”部分下的“额外的CSS”设置来通过自定义生成目录的外观。下面列出了默认使用的 CSS,您只需将其复制并根据需要进行修改即可。"
1527
1528 #: ../../../__w/calibre/calibre/manual/conversion.rst:955
1529 msgid "Custom page margins for individual HTML files"
1530 msgstr "针对单个 HTML 文件的自定义页面边距"
1531
1532 #: ../../../__w/calibre/calibre/manual/conversion.rst:957
1533 msgid ""
1534 "If you are converting an EPUB or AZW3 file with multiple individual HTML "
1535 "files inside it and you want to change the page margins for a particular "
1536 "HTML file you can add the following style block to the HTML file using the "
1537 "calibre E-book editor:"
1538 msgstr "如果您正在转换一个包含多个独立 HTML 文件的 EPUB 或 AZW3 文件,并且想要更改其中某个特定 HTML 文件的页面边距,可以使用 calibre 电子书编辑器在该 HTML 文件中添加以下样式块:"
1539
1540 #: ../../../__w/calibre/calibre/manual/conversion.rst:974
1541 msgid ""
1542 "Then, in the PDF output section of the conversion dialog, turn on the option"
1543 " to :guilabel:`Use page margins from the document being converted`. Now all "
1544 "pages generated from this HTML file will have ``10pt`` margins."
1545 msgstr "然后,在转换对话框的“PDF 输出”部分,勾选 :guilabel:`使用输入文档的页边距`选项。这样一来,所有由该 HTML 文件生成的页面都将拥有 10pt 的边距。"