# SOME DESCRIPTIVE TITLE. # Copyright (C) Kovid Goyal # This file is distributed under the same license as the calibre package. # # Translators: # shutaozhenzhen <3462232313@qq.com>, 2020 # thephy, 2024 # Krabapple K , 2016 # nhyj , 2015 # RERBIN MA, 2025-2026 # tony shen , 2024 msgid "" msgstr "" "Project-Id-Version: calibre\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-03-12 02:31+0000\n" "PO-Revision-Date: 2014-06-17 08:34+0000\n" "Last-Translator: RERBIN MA, 2025-2026\n" "Language-Team: Chinese (China) (http://app.transifex.com/calibre/calibre/language/zh_CN/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: zh_CN\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../../__w/calibre/calibre/manual/conversion.rst:4 msgid "E-book conversion" msgstr "电子书转换" #: ../../../__w/calibre/calibre/manual/conversion.rst:6 msgid "" "calibre has a conversion system that is designed to be very easy to use. " "Normally, you just add a book to calibre, click convert and calibre will try" " hard to generate output that is as close as possible to the input. However," " calibre accepts a very large number of input formats, not all of which are " "as suitable as others for conversion to e-books. In the case of such input " "formats, or if you just want greater control over the conversion system, " "calibre has a lot of options to fine tune the conversion process. Note " "however that calibre's conversion system is not a substitute for a full " "blown e-book editor. To edit e-books, I recommend first converting them to " "EPUB or AZW3 using calibre and then using the :guilabel:`Edit book` feature " "to get them into perfect shape. You can then use the edited e-book as input " "for conversion into other formats in calibre." msgstr "calibre 拥有一个易于使用的格式转换系统。一般情况下,您只需将一本图书添加到 calibre 中,单击“转换书籍”,calibre 就会自动尝试生成符合或近似于原始输入的输出文件。然而,尽管 calibre 可接受多种格式的文件进行转换,但并非所有格式都可以自动且无瑕地转换为其它电子书格式。对于转换过程中出现问题的文件格式,抑或是您只是想对图书转换过程进行自定义调整,calibre 提供多个选项来自定义图书转换过程。但请注意,calibre 的图书转换系统并不能替代功能完备的电子书编辑器。要编辑电子书,我建议先使用 calibre 把它们转换为 epub 或 azw3 格式,然后使用“编辑书籍”功能进行编辑,再使用编辑后的电子书作为源文件转换成其它格式。" #: ../../../__w/calibre/calibre/manual/conversion.rst:18 msgid "" "This document will refer mainly to the conversion settings as found in the " "conversion dialog, pictured below. All these settings are also available via" " command line interface to conversion, documented at " ":doc:`generated/en/ebook-convert`. In calibre, you can obtain help on any " "individual setting by holding your mouse over it, a tooltip will appear " "describing the setting." msgstr "本文档将主要考虑能在转换对话框中找到的转换设置,如下图所示。 所有这些设置也可以通过命令行界面进行转换,文档在 `generated/zh-CN/ebook-convert` 中。 在 Calibre 中,您可以通过将鼠标悬停在任何单独的设置上来获取帮助,然后会出现一个工具提示来描述该设置。" #: ../../../__w/calibre/calibre/manual/conversion.rst:24 msgid "E-book conversion dialog" msgstr "电子书转换对话" #: ../../../__w/calibre/calibre/manual/conversion.rst:31 #: ../../../__w/calibre/calibre/manual/conversion.rst:95 msgid "Contents" msgstr "目录" #: ../../../__w/calibre/calibre/manual/conversion.rst:36 msgid "Introduction" msgstr "介绍" #: ../../../__w/calibre/calibre/manual/conversion.rst:42 msgid "" "The first thing to understand about the conversion system is that it is " "designed as a pipeline. Schematically, it looks like this:" msgstr "对转换系统,首先要了解的是它被设计为管道。从示意图上看,它看起来像这样:" #: ../../../__w/calibre/calibre/manual/conversion.rst:45 msgid "The conversion pipeline" msgstr "转换通道" #: ../../../__w/calibre/calibre/manual/conversion.rst:49 msgid "" "The input format is first converted to XHTML by the appropriate *Input " "plugin*. This HTML is then *transformed*. In the last step, the processed " "XHTML is converted to the specified output format by the appropriate *Output" " plugin*. The results of the conversion can vary greatly, based on the input" " format. Some formats convert much better than others. A list of the best " "source formats for conversion is available :ref:`here `." msgstr "输入首先被恰当的*Input 插件*转换到 XHTML 。 HTML 接着被*转换*。在最后一步,已处理的XHTML通过适当的*Output 插件*转换为指定的输出格式。根据输入格式的不同,转换的结果可能会有很大的差异。 有些格式的转换效果要好于其他格式。 `这里`提供了最佳的转换源格式列表。" #: ../../../__w/calibre/calibre/manual/conversion.rst:56 msgid "" "The transforms that act on the XHTML output are where all the work happens. " "There are various transforms, for example, to insert book metadata as a page" " at the start of the book, to detect chapter headings and automatically " "create a Table of Contents, to proportionally adjust font sizes, et cetera. " "It is important to remember that all the transforms act on the XHTML output " "by the *Input plugin*, not on the input file itself. So, for example, if you" " ask calibre to convert an RTF file to EPUB, it will first be converted to " "XHTML internally, the various transforms will be applied to the XHTML and " "then the *Output plugin* will create the EPUB file, automatically generating" " all metadata, Table of Contents, et cetera." msgstr "所有工作都发生在作用于HTML输出的转换上。有各种转换,例如,在书籍开头插入书籍元数据作为页面、检测章节标题并自动创建目录、按比例调整字体大小等。重要的是要记住,所有的转换都作用于*Input插件*的XHTML输出,而不是作用于输入文件本身。因此,例如,如果您要求calibre将RTF文件转换为EPUB,它将首先在内部转换为XHTML,各种转换将应用于XHTML,然后*Output插件*将创建EPUB文件,自动生成所有元数据、目录等。" #: ../../../__w/calibre/calibre/manual/conversion.rst:65 msgid "" "You can see this process in action by using the debug option |dbgi|. Just " "specify the path to a folder for the debug output. During conversion, " "calibre will place the XHTML generated by the various stages of the " "conversion pipeline in different sub-folders. The four sub-folders are:" msgstr "您可以通过使用调试选项 |dbgi| 查看此过程的实际情况。只需指定调试输出文件夹的路径即可。在转换过程中,calibre会将转换通道各个阶段生成的HTML放置在不同的子文件夹中。四个子文件夹是:" #: ../../../__w/calibre/calibre/manual/conversion.rst:38 msgid "Debug icon" msgstr "调试图标" #: ../../../__w/calibre/calibre/manual/conversion.rst:70 msgid "Stages of the conversion pipeline" msgstr "转换通道的阶段" #: ../../../__w/calibre/calibre/manual/conversion.rst:73 msgid "Folder" msgstr "文件名" #: ../../../__w/calibre/calibre/manual/conversion.rst:73 msgid "Description" msgstr "描述" #: ../../../__w/calibre/calibre/manual/conversion.rst:75 msgid "input" msgstr "输入" #: ../../../__w/calibre/calibre/manual/conversion.rst:75 msgid "" "This contains the HTML output by the Input plugin. Use this to debug the " "Input plugin." msgstr "其中包含输入插件输出的HTML。使用此来调试输入插件。" #: ../../../__w/calibre/calibre/manual/conversion.rst:76 msgid "parsed" msgstr "已解析" #: ../../../__w/calibre/calibre/manual/conversion.rst:76 msgid "" "The result of pre-processing and converting to XHTML the output from the " "Input plugin. Use to debug structure detection." msgstr "对输入插件的输出进行预处理并将其转换为 XHTML 的结果。用于调试结构检测。" #: ../../../__w/calibre/calibre/manual/conversion.rst:77 msgid "structure" msgstr "结构" #: ../../../__w/calibre/calibre/manual/conversion.rst:77 msgid "" "Post structure detection, but before CSS flattening and font size " "conversion. Use to debug font size conversion and CSS transforms." msgstr "结构检测后,CSS 扁平化和字体大小转换之前。用于调试字体大小转换和 CSS 变换。" #: ../../../__w/calibre/calibre/manual/conversion.rst:78 msgid "processed" msgstr "已处理" #: ../../../__w/calibre/calibre/manual/conversion.rst:78 msgid "" "Just before the e-book is passed to the Output plugin. Use to debug the " "Output plugin." msgstr "在电子书传递给输出插件之前。用于调试输出插件。" #: ../../../__w/calibre/calibre/manual/conversion.rst:81 msgid "" "If you want to edit the input document a little before having calibre " "convert it, the best thing to do is edit the files in the :file:`input` sub-" "folder, then zip it up, and use the ZIP file as the input format for " "subsequent conversions. To do this use the :guilabel:`Edit meta information`" " dialog to add the ZIP file as a format for the book and then, in the top " "left corner of the conversion dialog, select ZIP as the input format." msgstr "如果您想在进行Calibre转换之前对输入文档进行一点编辑,最好的做法是编辑“输入”子文件夹中的文件,然后将其压缩,并使用Zip文件作为后续转换的输入格式。为此,请使用“编辑Meta信息”对话框将Zip文件添加为书籍的格式,然后在转换对话框的左上角选择Zip作为输入格式。" #: ../../../__w/calibre/calibre/manual/conversion.rst:87 msgid "" "This document will deal mainly with the various transforms that operate on " "the intermediate XHTML and how to control them. At the end are some tips " "specific to each input/output format." msgstr "本文档主要介绍对中间 XHTML 进行的各种转换以及如何控制它们。最后会针对每种输入/输出格式提供一些技巧。" #: ../../../__w/calibre/calibre/manual/conversion.rst:91 msgid "Look & feel" msgstr "界面外观" #: ../../../__w/calibre/calibre/manual/conversion.rst:97 msgid "" "This group of options controls various aspects of the look and feel of the " "converted e-book." msgstr "这组选项控制转换后电子书的外观和风格的各个方面。" #: ../../../__w/calibre/calibre/manual/conversion.rst:102 msgid "Fonts" msgstr "字体" #: ../../../__w/calibre/calibre/manual/conversion.rst:104 msgid "" "One of the nicest features of the e-reading experience is the ability to " "easily adjust font sizes to suit individual needs and lighting conditions. " "calibre has sophisticated algorithms to ensure that all the books it outputs" " have consistent font sizes, no matter what font sizes are specified in the " "input document." msgstr "电子阅读体验最棒的特点之一是能够轻松调整字体大小以适应个人需求和照明条件。calibre有复杂的算法来确保它输出的所有书籍都有一致的字体大小,无论输入文档中指定了什么字体大小。" #: ../../../__w/calibre/calibre/manual/conversion.rst:109 msgid "" "The base font size of a document is the most common font size in that " "document, i.e., the size of the bulk of text in that document. When you " "specify a :guilabel:`Base font size`, calibre automatically rescales all " "font sizes in the document proportionately, so that the most common font " "size becomes the specified base font size and other font sizes are rescaled " "appropriately. By choosing a larger base font size, you can make the fonts " "in the document larger and vice versa. When you set the base font size, for " "best results, you should also set the font size key." msgstr "文档的基本字体大小是该文档中最常见的字体大小,即该文档中大部分文本的大小。当您指定“基本字体大小”时,Calibre会自动按比例重新缩放文档中的所有字体大小,以便最常见的字体大小成为指定的基本字体大小,并适当地重新缩放其他字体大小。通过选择更大的基本字体大小,您可以使文档中的字体更大,反之亦然。当您设置基本字体大小时,为了获得最佳效果,您还应该设置字体大小键。" #: ../../../__w/calibre/calibre/manual/conversion.rst:117 msgid "" "Normally, calibre will automatically choose a base font size appropriate to " "the output profile you have chosen (see :ref:`page-setup`). However, you can" " override this here in case the default is not suitable for you." msgstr "通常,Calibre 会根据你选择的输出配置文件(参见 :ref:`page-setup`)自动选择一个合适的基础字体大小。然而,如果默认值不适合你,你可以在此处进行独立设置。" #: ../../../__w/calibre/calibre/manual/conversion.rst:121 msgid "" "The :guilabel:`Font size key` option lets you control how non-base font " "sizes are rescaled. The font rescaling algorithm works using a font size " "key, which is simply a comma-separated list of font sizes. The font size key" " tells calibre how many \"steps\" bigger or smaller a given font size should" " be compared to the base font size. The idea is that there should be a " "limited number of font sizes in a document. For example, one size for the " "body text, a couple of sizes for different levels of headings and a couple " "of sizes for super/sub scripts and footnotes. The font size key allows " "calibre to compartmentalize the font sizes in the input documents into " "separate \"bins\" corresponding to the different logical font sizes." msgstr "“字体大小键”选项允许您控制如何重新缩放非基本字体大小。字体重新缩放算法使用字体大小键工作,该键只是一个逗号分隔的字体大小列表。字体大小键告诉口径,给定字体大小与基本字体大小相比应该增大或减小多少个“台阶”。其想法是文档中的字体大小应该有限。例如,正文文本有一种尺寸,不同级别的标题有几种尺寸,超/子脚本和脚注有几种尺寸。字体大小键允许Calibre将输入文档中的字体大小划分为与不同逻辑字体大小相对应的单独“箱”。" #: ../../../__w/calibre/calibre/manual/conversion.rst:130 msgid "" "Let's illustrate with an example. Suppose the source document we are " "converting was produced by someone with excellent eyesight and has a base " "font size of 8pt. That means the bulk of the text in the document is sized " "at 8pts, while headings are somewhat larger (say 10 and 12pt) and footnotes " "somewhat smaller at 6pt. Now if we use the following settings::" msgstr "让我们举个例子来说明。假设我们正在转换的源文档是由视力极佳的人生成的,基本字体大小为8pt。这意味着文档中的大部分文本大小为8pt,而标题稍大(比如10和12pt),脚注稍小,为6pt。现在,如果我们使用以下设置:" #: ../../../__w/calibre/calibre/manual/conversion.rst:139 msgid "" "The output document will have a base font size of 12pt, headings of 14 and " "16pt and footnotes of 8pt. Now suppose we want to make the largest heading " "size stand out more and make the footnotes a little larger as well. To " "achieve this, the font key should be changed to::" msgstr "输出文档的基础字体大小为 12pt,标题为 14pt 和 16pt,脚注为 8pt。现在假设我们想让最大的标题字体更突出,并让脚注也稍微大一点。为了实现这一点,字体大小关键值应更改为:" #: ../../../__w/calibre/calibre/manual/conversion.rst:145 msgid "" "The largest headings will now become 18pt, while the footnotes will become " "9pt. You can play with these settings to try and figure out what would be " "optimum for you by using the font rescaling wizard, which can be accessed by" " clicking the little button next to the :guilabel:`Font size key` setting." msgstr "最大的标题现在将变为18pt,而脚注将变为9pt。您可以使用字体重新缩放向导来尝试使用这些设置,并找出最适合您的设置,单击“字体大小键”设置旁边的小按钮即可访问该向导。" #: ../../../__w/calibre/calibre/manual/conversion.rst:150 msgid "" "All the font size rescaling in the conversion can also be disabled here, if " "you would like to preserve the font sizes in the input document." msgstr "如果您希望保留输入文档中的字体大小,您可以在此处禁用转换中的所有字号缩放。" #: ../../../__w/calibre/calibre/manual/conversion.rst:153 msgid "" "A related setting is :guilabel:`Line height`. Line height controls the " "vertical height of lines. By default, (a line height of 0), no manipulation " "of line heights is performed. If you specify a non-default value, line " "heights will be set in all locations that don't specify their own line " "heights. However, this is something of a blunt weapon and should be used " "sparingly. If you want to adjust the line heights for some section of the " "input, it's better to use the :ref:`Extra CSS `." msgstr "一个相关的设置是“行高度”。行高度控制线的垂直高度。默认情况下(线高度为0),不执行行高度操作。如果指定非默认值,则将在所有未指定自己的行高度的位置设置行高度。然而,这是一种钝器,应该谨慎使用。如果你想调整输入的某些部分的行高,最好使用:ref:`Extra CSS ”。" #: ../../../__w/calibre/calibre/manual/conversion.rst:160 msgid "" "In this section you can also tell calibre to embed any referenced fonts into" " the book. This will allow the fonts to work on reader devices even if they " "are not available on the device." msgstr "在此部分,你还可以告诉 Calibre 将所有引用的字体嵌入到电子书中。这样一来,即使阅读设备上没有这些字体,它们也能正常显示。" #: ../../../__w/calibre/calibre/manual/conversion.rst:165 msgid "Text" msgstr "文本" #: ../../../__w/calibre/calibre/manual/conversion.rst:167 msgid "" "Text can be either justified or not. Justified text has extra spaces between" " words to give a smooth right margin. Some people prefer justified text, " "others do not. Normally, calibre will preserve the justification in the " "original document. If you want to override it you can use the " ":guilabel:`Text justification` option in this section." msgstr "文本可以是合理的,也可以是不合理的。对齐的文本在单词之间有额外的空格,以提供平滑的右边距。有些人更喜欢合理的文本,而另一些人则不喜欢。通常,Calibre会保留原始文档中的理由。如果你想覆盖它,你可以使用本节中的“文本对齐”选项。" #: ../../../__w/calibre/calibre/manual/conversion.rst:173 msgid "" "You can also tell calibre to :guilabel:`Smarten punctuation` which will " "replace plain quotes, dashes and ellipses with their typographically correct" " alternatives. Note that this algorithm is not perfect so it is worth " "reviewing the results. The reverse, namely, :guilabel:`Unsmarted " "punctuation` is also available." msgstr "您还可以将calibre改为“智能标点符号”,这将用排版正确的替代品替换纯引号、破折号和省略号。请注意,此算法并不完美,因此值得查看结果。反过来,也可以使用“非智能标点符号”。" #: ../../../__w/calibre/calibre/manual/conversion.rst:178 msgid "" "Finally, there is :guilabel:`Input character encoding`. Older documents " "sometimes don't specify their character encoding. When converted, this can " "result in non-English characters or special characters like smart quotes " "being corrupted. calibre tries to auto-detect the character encoding of the" " source document, but it does not always succeed. You can force it to assume" " a particular character encoding by using this setting. `cp1252` is a " "common encoding for documents produced using Windows software. You should " "also read :ref:`char-encoding-faq` for more on encoding issues." msgstr "最后是“输入字符编码”。旧文档有时不指定其字符编码。转换时,这可能会导致非英语字符或智能引号等特殊字符损坏。calibre尝试自动检测源文档的字符编码,但并不总是成功。您可以使用此设置强制它采用特定的字符编码`cp1252`是使用Windows软件生成的文档的常见编码。您还应该阅读:ref:`char-encoding-faq` 以了解有关编码问题的更多信息。" #: ../../../__w/calibre/calibre/manual/conversion.rst:188 msgid "Layout" msgstr "布局" #: ../../../__w/calibre/calibre/manual/conversion.rst:190 msgid "" "Normally, paragraphs in XHTML are rendered with a blank line between them " "and no leading text indent. calibre has a couple of options to control this." " :guilabel:`Remove spacing between paragraphs` forcefully ensure that all " "paragraphs have no inter paragraph spacing. It also sets the text indent to " "1.5em (can be changed) to mark the start of every paragraph. " ":guilabel:`Insert blank line` does the opposite, guaranteeing that there is " "exactly one blank line between each pair of paragraphs. Both these options " "are very comprehensive, removing spacing, or inserting it for *all* " "paragraphs (technically

and

tags). This is so that you can just " "set the option and be sure that it performs as advertised, irrespective of " "how messy the input file is. The one exception is when the input file uses " "hard line breaks to implement inter-paragraph spacing." msgstr "通常,XHTML中的段落之间会有一个空行,并且没有前导文本缩进。calibre有几个选项可以控制这一点`删除段落之间的间距,强制确保所有段落没有段落间间距。它还将文本缩进设置为1.5em(可以更改),以标记每个段落的开头`插入空白行则相反,保证每对段落之间只有一行空白。这两个选项都非常全面,可以删除空格,也可以为所有段落(技术上为

和

标签)插入空格。这样,无论输入文件有多乱,您都可以设置该选项并确保其按广告执行。一个例外是,当输入文件使用硬换行符来实现段落间间距时。" #: ../../../__w/calibre/calibre/manual/conversion.rst:201 msgid "" "If you want to remove the spacing between all paragraphs, except a select " "few, don't use these options. Instead add the following CSS code to " ":ref:`Extra CSS `::" msgstr "如果您想**删除段间空行**(少数选定段落除外),请**不要使用这些选项**。相反,请将以下 CSS 代码添加到:ref:`Extra CSS`:" #: ../../../__w/calibre/calibre/manual/conversion.rst:207 msgid "" "Then, in your source document, mark the paragraphs that need spacing with " "`class=\"spacious\"`. If your input document is not in HTML, use the Debug " "option, described in the Introduction to get HTML (use the :file:`input` " "sub-folder)." msgstr "然后,在你的源文档中,将标记需要间距的段落标记为 class=\"spacious\"。如果你的输入文档不是 HTML 格式,可以使用“调试”选项(详见“介绍”部分)来获取 HTML 文件(使用 :file:input 子文件夹)。" #: ../../../__w/calibre/calibre/manual/conversion.rst:211 msgid "" "Another useful option is :guilabel:`Linearize tables`. Some badly designed " "documents use tables to control the layout of text on the page. When " "converted these documents often have text that runs off the page and other " "artifacts. This option will extract the content from the tables and present " "it in a linear fashion. Note that this option linearizes *all* tables, so " "only use it if you are sure the input document does not use tables for " "legitimate purposes, like presenting tabular information." msgstr "另一个有用的选项是“线性化表”。一些设计糟糕的文档使用表格来控制页面上文本的布局。转换后,这些文档通常会有溢出页面的文本和其他工件。此选项将从表中提取内容并以线性方式呈现。请注意,此选项将*所有*表线性化,因此只有在您确定输入文档没有将表用于合法目的(如显示表格信息)时才使用它。" #: ../../../__w/calibre/calibre/manual/conversion.rst:220 msgid "Styling" msgstr "样式" #: ../../../__w/calibre/calibre/manual/conversion.rst:224 msgid "" "The :guilabel:`Extra CSS` option allows you to specify arbitrary CSS that " "will be applied to all HTML files in the input. This CSS is applied with " "very high priority and so should override most CSS present in the **input " "document** itself. You can use this setting to fine tune the " "presentation/layout of your document. For example, if you want all " "paragraphs of class `endnote` to be right aligned, just add::" msgstr "“Extra CSS”选项允许您指定将应用于输入中所有HTML文件的任意CSS。此CSS具有很高的优先级,因此应该覆盖**输入文档**本身中存在的大多数CSS。您可以使用此设置微调文档的演示文稿/布局。例如,如果你想让`endnote`类的所有段落都对齐,只需添加:" #: ../../../__w/calibre/calibre/manual/conversion.rst:233 msgid "or if you want to change the indentation of all paragraphs::" msgstr "或者,如果您想更改所有段落的缩进::" #: ../../../__w/calibre/calibre/manual/conversion.rst:237 msgid "" ":guilabel:`Extra CSS` is a very powerful option, but you do need an " "understanding of how CSS works to use it to its full potential. You can use " "the debug pipeline option described above to see what CSS is present in your" " input document." msgstr ":guilabel:`额外的CSS`是一个非常强大的选项,但需要掌握CSS工作原理才能充分发挥其潜力。您可以使用上文介绍的调试管道功能来查看输入文档中包含哪些CSS样式。" #: ../../../__w/calibre/calibre/manual/conversion.rst:241 msgid "" "A simpler option is to use :guilabel:`Filter style information`. This allows" " you to remove all CSS properties of the specified types from the document. " "For example, you can use it to remove all colors or fonts." msgstr "更简单的选择是使用 :guilabel:`过滤样式信息`。该功能允许您从文档中移除指定类型的所有CSS属性。例如,您可以用它来移除所有颜色或字体设置" #: ../../../__w/calibre/calibre/manual/conversion.rst:246 msgid "Transform styles" msgstr "改变样式" #: ../../../__w/calibre/calibre/manual/conversion.rst:248 msgid "" "This is the most powerful styling related facility. You can use it to define" " rules that change styles based on various conditions. For example you can " "use it to change all green colors to blue, or remove all bold styling from " "the text or color all headings a certain color, etc." msgstr "这是最强大的样式控制功能。您可以通过它定义基于不同条件的样式修改规则,例如:将所有绿色改为蓝色、移除文本中的所有加粗样式,或是为所有标题统一设置特定颜色等。" #: ../../../__w/calibre/calibre/manual/conversion.rst:254 msgid "Transform HTML" msgstr "转换HTML" #: ../../../__w/calibre/calibre/manual/conversion.rst:256 msgid "" "Similar to transform styles, but allows you to make changes to the HTML " "content of the book. You can replace one tag with another, add classes or " "other attributes to tags based on their content, etc." msgstr "与转换样式功能类似,但允许您直接修改书籍的HTML内容结构。您可以通过该功能实现以下操作:替换标签类型、根据标签内容动态添加类名或其他属性等。" #: ../../../__w/calibre/calibre/manual/conversion.rst:265 msgid "Page setup" msgstr "页面设置" #: ../../../__w/calibre/calibre/manual/conversion.rst:267 msgid "" "The :guilabel:`Page setup` options are for controlling screen layout, like " "margins and screen sizes. There are options to setup page margins, which " "will be used by the output plugin, if the selected output format supports " "page margins. In addition, you should choose an Input profile and an output " "profile. Both sets of profiles basically deal with how to interpret " "measurements in the input/output documents, screen sizes and default font " "rescaling keys." msgstr "“页面设置”选项用于控制屏幕布局,如边距和屏幕大小。如果所选输出格式支持页边距,则有设置页边距的选项,输出插件将使用这些选项。此外,您应该选择输入配置文件和输出配置文件。这两组配置文件基本上都涉及如何解释输入/输出文档中的测量值、屏幕大小和默认字体缩放键。" #: ../../../__w/calibre/calibre/manual/conversion.rst:274 msgid "" "If you know that the file you are converting was intended to be used on a " "particular device/software platform, choose the corresponding input profile," " otherwise just choose the default input profile. If you know the files you " "are producing are meant for a particular device type, choose the " "corresponding output profile. Otherwise, choose one of the Generic output " "profiles. If you are converting to MOBI or AZW3 then you will almost always " "want to choose one of the Kindle output profiles. Otherwise, your best bet " "for modern E-book reading devices is to choose the :guilabel:`Generic e-ink " "HD` output profile." msgstr "如果您知道要转换的文件是要在特定设备/软件平台上使用的,请选择相应的输入配置文件,否则只需选择默认输入配置文件。如果您知道您正在生成的文件是针对特定设备类型的,请选择相应的输出配置文件。否则,请选择一个通用输出配置文件。如果你正在转换为MOBI或AZW3,那么你几乎总是想选择一个Kindle输出配置文件。否则,您对现代电子书阅读设备的最佳选择是选择“通用电子墨水HD”输出配置文件。" #: ../../../__w/calibre/calibre/manual/conversion.rst:283 msgid "" "The output profile also controls the screen size. This will cause, for " "example, images to be auto-resized to be fit to the screen in some output " "formats. So choose a profile of a device that has a screen size similar to " "your device." msgstr "输出配置文件还会控制屏幕尺寸参数。例如在某些输出格式中,该设置将自动调整图片尺寸以适应屏幕显示。因此建议选择与您设备屏幕尺寸相近的预设配置文件。" #: ../../../__w/calibre/calibre/manual/conversion.rst:291 msgid "Heuristic processing" msgstr "智能处理" #: ../../../__w/calibre/calibre/manual/conversion.rst:293 msgid "" "Heuristic processing provides a variety of functions which can be used to " "try and detect and correct common problems in poorly formatted input " "documents. Use these functions if your input document suffers from poor " "formatting. Because these functions rely on common patterns, be aware that " "in some cases an option may lead to worse results, so use with care. As an " "example, several of these options will remove all non-breaking-space " "entities, or may include false positive matches relating to the function." msgstr "启发式处理提供了各种功能,可用于尝试检测和纠正格式不佳的输入文档中的常见问题。如果您的输入文档格式不佳,请使用这些功能。由于这些函数依赖于常见模式,请注意,在某些情况下,选项可能会导致更糟糕的结果,因此请谨慎使用。例如,其中几个选项将删除所有不间断空格实体,或者可能包括与函数相关的误报匹配。" #: ../../../__w/calibre/calibre/manual/conversion.rst:299 msgid ":guilabel:`Enable heuristic processing`" msgstr ":guilabel:`启用智能处理`" #: ../../../__w/calibre/calibre/manual/conversion.rst:300 msgid "" "This option activates calibre's :guilabel:`Heuristic processing` stage of " "the conversion pipeline. This must be enabled in order for various sub-" "functions to be applied" msgstr "此选项将启用 calibre 转换流程中的 :guilabel:`智能处理`。必须启用该功能,才能应用各项子功能。" #: ../../../__w/calibre/calibre/manual/conversion.rst:303 msgid ":guilabel:`Unwrap lines`" msgstr ":guilabel:`段落内不换行`" #: ../../../__w/calibre/calibre/manual/conversion.rst:304 msgid "" "Enabling this option will cause calibre to attempt to detect and correct " "hard line breaks that exist within a document using punctuation clues and " "line length. calibre will first attempt to detect whether hard line breaks " "exist, if they do not appear to exist calibre will not attempt to unwrap " "lines. The line-unwrap factor can be reduced if you want to 'force' calibre " "to unwrap lines." msgstr "启用此选项将导致calibre尝试使用标点符号线索和行长来检测和纠正文档中存在的硬换行。calibre将首先尝试检测是否存在硬线断裂,如果它们似乎不存在,calibre不会尝试解开线。如果你想“强制”口径打开线,可以降低线打开系数。" #: ../../../__w/calibre/calibre/manual/conversion.rst:309 msgid ":guilabel:`Line-unwrap factor`" msgstr ":guilabel:`不换行系数`" #: ../../../__w/calibre/calibre/manual/conversion.rst:310 msgid "" "This option controls the algorithm calibre uses to remove hard line breaks. " "For example, if the value of this option is 0.4, that means calibre will " "remove hard line breaks from the end of lines whose lengths are less than " "the length of 40% of all lines in the document. If your document only has a " "few line breaks which need correction, then this value should be reduced to " "somewhere between 0.1 and 0.2." msgstr "此选项控制用于删除硬换行符的算法口径。例如,如果此选项的值为0.4,则意味着calibre将从长度小于文档中所有行的40%的行的末尾删除硬换行符。如果你的文档只有几个需要更正的换行符,那么这个值应该减少到0.1到0.2之间。" #: ../../../__w/calibre/calibre/manual/conversion.rst:315 msgid "" ":guilabel:`Detect and markup unformatted chapter headings and sub headings`" msgstr ":guilabel:`检测并标记未格式化的章节标题和子标题`" #: ../../../__w/calibre/calibre/manual/conversion.rst:316 msgid "" "If your document does not have chapter headings and titles formatted " "differently from the rest of the text, calibre can use this option to " "attempt to detect them and surround them with heading tags.

tags are " "used for chapter headings;

tags are used for any titles that are " "detected." msgstr "若您的文档中章节标题与正文格式未作区分,calibre可通过此选项智能识别并自动添加标题标签:使用

标签标记章节标题,

标签标记次级标题。" #: ../../../__w/calibre/calibre/manual/conversion.rst:320 msgid "" "This function will not create a TOC, but in many cases it will cause " "calibre's default chapter detection settings to correctly detect chapters " "and build a TOC. Adjust the XPath under Structure detection if a TOC is not" " automatically created. If there are no other headings used in the document" " then setting \"//h:h2\" under Structure detection would be the easiest way " "to create a TOC for the document." msgstr "此函数不会创建目录,但在许多情况下,它会导致calibre的默认章节检测设置正确检测章节并构建目录。如果未自动创建目录,请调整“结构检测”下的XPath。如果文档中没有使用其他标题,那么在结构检测下设置“//h:h2”将是为文档创建目录的最简单方法。" #: ../../../__w/calibre/calibre/manual/conversion.rst:325 msgid "" "The inserted headings are not formatted, to apply formatting use the " ":guilabel:`Extra CSS` option under the Look and Feel conversion settings. " "For example, to center heading tags, use the following::" msgstr "系统插入的标题默认无样式格式,如需设置样式,请通过界面外观转换设置中的 :guilabel:`额外的CSS`选项进行配置。例如,若需实现标题居中效果,可使用以下样式代码::" #: ../../../__w/calibre/calibre/manual/conversion.rst:330 msgid ":guilabel:`Renumber sequences of

or

tags`" msgstr ":guilabel:`重新编号

或

标签序列`" #: ../../../__w/calibre/calibre/manual/conversion.rst:331 msgid "" "Some publishers format chapter headings using multiple

or

tags " "sequentially. calibre's default conversion settings will cause such titles " "to be split into two pieces. This option will re-number the heading tags to" " prevent splitting." msgstr "有些出版商在设置章节标题格式时,会连续使用多个

或

标签。calibre 的默认转换设置会导致这类标题被拆分成两部分。此选项将对标题标签重新编号,以防止标题被拆分。" #: ../../../__w/calibre/calibre/manual/conversion.rst:335 msgid ":guilabel:`Delete blank lines between paragraphs`" msgstr ":guilabel:`删除段落间的空行`" #: ../../../__w/calibre/calibre/manual/conversion.rst:336 msgid "" "This option will cause calibre to analyze blank lines included within the " "document. If every paragraph is interleaved with a blank line, then calibre" " will remove all those blank paragraphs. Sequences of multiple blank lines " "will be considered scene breaks and retained as a single paragraph. This " "option differs from the :guilabel:`Remove paragraph spacing` option under " ":guilabel:`Look and Feel` in that it actually modifies the HTML content, " "while the other option modifies the document styles. This option can also " "remove paragraphs which were inserted using calibre's :guilabel:`Insert " "blank line` option." msgstr "此选项将使calibre分析文档中包含的空白行。如果每一段都有一个空行,那么calibre将删除所有这些空行。多个空行序列将被视为场景分割,并保留为单个段落。此选项与“外观”下的“删除段落间距”选项不同,因为它实际上修改了HTML内容,而另一个选项修改了文档样式。此选项还可以删除使用calibre的“插入空白行”选项插入的段落。" #: ../../../__w/calibre/calibre/manual/conversion.rst:346 msgid ":guilabel:`Ensure scene breaks are consistently formatted`" msgstr ":guilabel:`确保分节使用一致的格式`" #: ../../../__w/calibre/calibre/manual/conversion.rst:347 msgid "" "With this option calibre will attempt to detect common scene-break markers " "and ensure that they are center aligned. 'Soft' scene break markers, i.e. " "scene breaks only defined by extra white space, are styled to ensure that " "they will not be displayed in conjunction with page breaks." msgstr "使用此选项,calibre将尝试检测常见的场景中断标记,并确保它们居中对齐。”“软”场景打断标记,即仅由额外空白定义的场景打断,被设置样式以确保它们不会与分页符一起显示。" #: ../../../__w/calibre/calibre/manual/conversion.rst:351 msgid ":guilabel:`Replace scene breaks`" msgstr ":guilabel:`替换软分节符`" #: ../../../__w/calibre/calibre/manual/conversion.rst:352 msgid "" "If this option is configured then calibre will replace scene break markers " "it finds with the replacement text specified by the user. Please note that " "some ornamental characters may not be supported across all reading devices." msgstr "若启用此选项,calibre会将检测到的场景分隔符替换为用户指定的文本。请注意:部分装饰性字符可能无法在所有阅读设备上正常显示。" #: ../../../__w/calibre/calibre/manual/conversion.rst:355 msgid "" "In general you should avoid using HTML tags, calibre will discard any tags " "and use pre-defined markup.
tags, i.e. horizontal rules, and " "tags are exceptions. Horizontal rules can optionally be specified with " "styles, if you choose to add your own style be sure to include the 'width' " "setting, otherwise the style information will be discarded. Image tags can " "used, but calibre does not provide the ability to add the image during " "conversion, this must be done after the fact using the 'Edit book' feature." msgstr "一般来说,你应该避免使用HTML标签,calibre会丢弃任何标签并使用预定义的标记。
标签,即水平规则,标签是例外。水平规则可以选择与样式一起指定,如果您选择添加自己的样式,请确保包含“宽度”设置,否则样式信息将被丢弃。可以使用图像标签,但calibre不提供在转换过程中添加图像的功能,这必须在事后使用“编辑书籍”功能完成。" #: ../../../__w/calibre/calibre/manual/conversion.rst:361 msgid "" "Example image tag (place the image within an 'Images' folder inside the EPUB" " after conversion):" msgstr "示例image标签(转换后请将图片放入 EPUB 内部的 “Images” 文件夹中): " #: ../../../__w/calibre/calibre/manual/conversion.rst:362 msgid "" msgstr "" #: ../../../__w/calibre/calibre/manual/conversion.rst:364 msgid "Example horizontal rule with styles:" msgstr "示例水平分隔线(含样式):" #: ../../../__w/calibre/calibre/manual/conversion.rst:365 msgid "" "
" msgstr "
" #: ../../../__w/calibre/calibre/manual/conversion.rst:367 msgid ":guilabel:`Remove unnecessary hyphens`" msgstr ":guilabel:`删除不必要的连字符`" #: ../../../__w/calibre/calibre/manual/conversion.rst:368 msgid "" "calibre will analyze all hyphenated content in the document when this option" " is enabled. The document itself is used as a dictionary for analysis. " "This allows calibre to accurately remove hyphens for any words in the " "document in any language, along with made-up and obscure scientific words. " "The primary drawback is words appearing only a single time in the document " "will not be changed. Analysis happens in two passes, the first pass " "analyzes line endings. Lines are only unwrapped if the word exists with or " "without a hyphen in the document. The second pass analyzes all hyphenated " "words throughout the document, hyphens are removed if the word exists " "elsewhere in the document without a match." msgstr "启用此选项后,calibre将分析文档中的所有连字符内容。文档本身被用作分析词典。这使得calibre能够准确地删除任何语言文档中任何单词的连字符,以及虚构和模糊的科学单词。主要缺点是文档中只出现一次的单词不会被更改。分析分两次进行,第一次分析线尾。只有当单词在文档中存在连字符或不存在连字符时,才会展开行。第二步分析整个文档中的所有连字符单词,如果单词在文档的其他地方不匹配,则删除连字符。" #: ../../../__w/calibre/calibre/manual/conversion.rst:375 msgid ":guilabel:`Italicize common words and patterns`" msgstr ":guilabel:`把特定名词和特定规则的内容变为斜体`" #: ../../../__w/calibre/calibre/manual/conversion.rst:376 msgid "" "When enabled, calibre will look for common words and patterns that denote " "italics and italicize them. Examples are common text conventions such as " "~word~ or phrases that should generally be italicized, e.g. latin phrases " "like 'etc.' or 'et cetera'." msgstr "启用此选项后,calibre 会查找表示斜体的常用词汇和模式,并将其设置为斜体。例如常见的文本约定(如~word~),或者通常应设为斜体的短语(如拉丁语短语 “etc.” 或 “et cetera”)。" #: ../../../__w/calibre/calibre/manual/conversion.rst:379 msgid ":guilabel:`Replace entity indents with CSS indents`" msgstr ":guilabel:`用CSS缩进代替空格键缩进`" #: ../../../__w/calibre/calibre/manual/conversion.rst:380 msgid "" "Some documents use a convention of defining text indents using non-breaking " "space entities. When this option is enabled calibre will attempt to detect " "this sort of formatting and convert them to a 3% text indent using CSS." msgstr "有些文档采用使用非断空格实体来定义文本缩进的约定。启用此选项后,calibre 会尝试检测此类格式,并使用 CSS 将其转换为 3% 的文本缩进。" #: ../../../__w/calibre/calibre/manual/conversion.rst:386 msgid "Search & replace" msgstr "搜索并替换" #: ../../../__w/calibre/calibre/manual/conversion.rst:388 msgid "" "These options are useful primarily for conversion of PDF documents or OCR " "conversions, though they can also be used to fix many document specific " "problems. As an example, some conversions can leave behind page headers and " "footers in the text. These options use regular expressions to try and detect" " headers, footers, or other arbitrary text and remove or replace them. " "Remember that they operate on the intermediate XHTML produced by the " "conversion pipeline. There is a wizard to help you customize the regular " "expressions for your document. Click the magic wand beside the expression " "box, and click the 'Test' button after composing your search expression. " "Successful matches will be highlighted in Yellow." msgstr "这些选项主要用于PDF文档的转换或OCR转换,尽管它们也可用于解决许多特定于文档的问题。例如,一些转换可能会在文本中留下页眉和页脚。这些选项使用正则表达式来尝试检测页眉、页脚或其他任意文本,并删除或替换它们。请记住,它们对转换管道生成的中间XHTML进行操作。有一个向导可以帮助您自定义文档的正则表达式。单击表达式框旁边的魔杖,在编写搜索表达式后单击“测试”按钮。成功的比赛将以黄色突出显示。" #: ../../../__w/calibre/calibre/manual/conversion.rst:396 msgid "" "The search works by using a Python regular expression. All matched text is " "simply removed from the document or replaced using the replacement pattern. " "The replacement pattern is optional, if left blank then text matching the " "search pattern will be deleted from the document. You can learn more about " "regular expressions and their syntax at :ref:`regexptutorial`." msgstr "搜索是通过使用Python正则表达式来实现的。所有匹配的文本都会从文档中删除或使用替换模式替换。替换模式是可选的,如果留空,则将从文档中删除与搜索模式匹配的文本。您可以在`regexptutorial`了解更多关于正则表达式及其语法的信息。" #: ../../../__w/calibre/calibre/manual/conversion.rst:404 msgid "Structure detection" msgstr "结构检测" #: ../../../__w/calibre/calibre/manual/conversion.rst:406 msgid "" "Structure detection involves calibre trying its best to detect structural " "elements in the input document, when they are not properly specified. For " "example, chapters, page breaks, headers, footers, etc. As you can imagine, " "this process varies widely from book to book. Fortunately, calibre has very " "powerful options to control this. With power comes complexity, but if once " "you take the time to learn the complexity, you will find it well worth the " "effort." msgstr "结构检测涉及calibre在输入文档中未正确指定结构元素时,尽最大努力检测这些元素。例如,章节、分页符、页眉、页脚等。可以想象,这一过程因书而异。幸运的是,calibre有非常强大的选项来控制这一点。权力带来复杂性,但如果你花时间学习复杂性,你会发现这是值得的。" #: ../../../__w/calibre/calibre/manual/conversion.rst:412 msgid "Chapters and page breaks" msgstr "章节与分页控制" #: ../../../__w/calibre/calibre/manual/conversion.rst:414 msgid "" "calibre has two sets of options for :guilabel:`chapter detection` and " ":guilabel:`inserting page breaks`. This can sometimes be slightly confusing," " as by default, calibre will insert page breaks before detected chapters as " "well as the locations detected by the page breaks option. The reason for " "this is that there are often locations where page breaks should be inserted " "that are not chapter boundaries. Also, detected chapters can be optionally " "inserted into the auto generated Table of Contents." msgstr "calibre有两组选项用于“章节检测”和“插入分页符”。这有时会有点令人困惑,因为默认情况下,calibre会在检测到的章节之前插入分页符,以及分页符选项检测到的位置。这样做的原因是,通常应该插入分页符的位置不是章节边界。此外,检测到的章节可以选择性地插入到自动生成的目录中。" #: ../../../__w/calibre/calibre/manual/conversion.rst:419 msgid "" "calibre uses *XPath*, a powerful language to allow the user to specify " "chapter boundaries/page breaks. XPath can seem a little daunting to use at " "first, fortunately, there is a :ref:`XPath tutorial ` in the" " User Manual. Remember that Structure detection operates on the intermediate" " XHTML produced by the conversion pipeline. Use the debug option described " "in the :ref:`conversion-introduction` to figure out the appropriate settings" " for your book. There is also a button for a XPath wizard to help with the " "generation of simple XPath expressions." msgstr "calibre使用*XPath*,这是一种强大的语言,允许用户指定章节边界/分页符。XPath一开始似乎有点让人望而生畏,幸运的是,用户手册中有一个 :ref:`XPath tutorial` 。请记住,结构检测是在转换管道通道生成的中间XHTML上进行的。使用 :ref:`conversion-introduction` 中描述的调试选项,为您的书找出合适的设置。还有一个XPath向导按钮,用于帮助生成简单的XPath表达式。" #: ../../../__w/calibre/calibre/manual/conversion.rst:425 msgid "" "By default, calibre uses the following expression for detecting chapters::" msgstr "默认情况下,calibre使用以下正则表达式检测章节::" #: ../../../__w/calibre/calibre/manual/conversion.rst:429 msgid "" "This expression is rather complex, because it tries to handle a number of " "common cases simultaneously. What it means is that calibre will assume " "chapters start at either `

` or `

` tags that have any of the words " "`(chapter, book, section or part)` in them or that have the " "`class=\"chapter\"` attribute." msgstr "这个表达式相当复杂,因为它试图同时处理许多常见情况。它的意思是,calibre将假设章节以\"

\"或\"

\"标签开头,这些标签中包含任何单词“(章、书、节或部分)”,或者具有“class=“chapter”属性。" #: ../../../__w/calibre/calibre/manual/conversion.rst:433 msgid "" "A related option is :guilabel:`Chapter mark`, which allows you to control " "what calibre does when it detects a chapter. By default, it will insert a " "page break before the chapter. You can have it insert a ruled line instead " "of, or in addition to the page break. You can also have it do nothing." msgstr "一个相关选项是 :guilabel:`章节标记`,它能让你控制 calibre 在检测到章节时的操作。默认情况下,calibre 会在章节前插入分页符。你可以选择插入一条分隔线来替代分页符,或者在分页符之外再添加分隔线。你也可以设置为不执行任何操作。" #: ../../../__w/calibre/calibre/manual/conversion.rst:437 msgid "The default setting for detecting page breaks is::" msgstr "检测分页符的默认设置如下::" #: ../../../__w/calibre/calibre/manual/conversion.rst:441 msgid "" "which means that calibre will insert page breaks before every `

` and " "`

` tag by default." msgstr "这意味着 calibre 默认会在所有`

`和 `

`标签前自动插入分页符。" #: ../../../__w/calibre/calibre/manual/conversion.rst:445 msgid "" "The default expressions may change depending on the input format you are " "converting." msgstr "默认表达式可能会根据你正在转换的输入格式而变化。 " #: ../../../__w/calibre/calibre/manual/conversion.rst:448 msgid "Miscellaneous" msgstr "杂项" #: ../../../__w/calibre/calibre/manual/conversion.rst:450 msgid "There are a few more options in this section." msgstr "本部分还有几个额外选项。 " #: ../../../__w/calibre/calibre/manual/conversion.rst:452 msgid ":guilabel:`Insert metadata as page at start of book`" msgstr ":guilabel:`在书籍开头插入元数据作为页面`" #: ../../../__w/calibre/calibre/manual/conversion.rst:453 msgid "" "One of the great things about calibre is that it allows you to maintain very" " complete metadata about all of your books, for example, a rating, tags, " "comments, etc. This option will create a single page with all this metadata " "and insert it into the converted e-book, typically just after the cover. " "Think of it as a way to create your own customised book jacket." msgstr "calibre 的强大功能之一在于支持为书籍维护完整的元数据体系,包括评分、标签、注释等信息。本选项可将所有元数据整合生成专属书目页,并自动插入转换后的电子书中,(通常位于封面之后),相当于为您打造个性化的书籍护封。" #: ../../../__w/calibre/calibre/manual/conversion.rst:458 msgid ":guilabel:`Remove first image`" msgstr ":guilabel:`删除首张图片`" #: ../../../__w/calibre/calibre/manual/conversion.rst:459 msgid "" "Sometimes, the source document you are converting includes the cover as part" " of the book, instead of as a separate cover. If you also specify a cover in" " calibre, then the converted book will have two covers. This option will " "simply remove the first image from the source document, thereby ensuring " "that the converted book has only one cover, the one specified in calibre." msgstr "有时,您正在转换的源文档将封面作为书籍的一部分,而不是单独的封面。如果你也在Calibre中指定了封面,那么转换后的书将有两个封面。此选项将简单地从源文档中删除第一张图像,从而确保转换后的书籍只有一个封面,即Calibre中指定的封面。" #: ../../../__w/calibre/calibre/manual/conversion.rst:466 msgid "Table of Contents" msgstr "目录" #: ../../../__w/calibre/calibre/manual/conversion.rst:468 msgid "" "When the input document has a Table of Contents in its metadata, calibre " "will just use that. However, a number of older formats either do not support" " a metadata based Table of Contents, or individual documents do not have " "one. In these cases, the options in this section can help you automatically " "generate a Table of Contents in the converted e-book, based on the actual " "content in the input document." msgstr "当输入文档的元数据中有目录时,calibre将仅使用该目录。然而,许多旧格式要么不支持基于元数据的目录,要么单个文档没有目录。在这些情况下,本节中的选项可以帮助您根据输入文档中的实际内容,在转换后的电子书中自动生成目录。" #: ../../../__w/calibre/calibre/manual/conversion.rst:473 msgid "" "Using these options can be a little challenging to get exactly right. If you" " prefer creating/editing the Table of Contents by hand, convert to the EPUB " "or AZW3 formats and select the checkbox at the bottom of the Table of " "Contents section of the conversion dialog that says :guilabel:`Manually " "fine-tune the Table of Contents after conversion`. This will launch the ToC " "Editor tool after the conversion. It allows you to create entries in the " "Table of Contents by simply clicking the place in the book where you want " "the entry to point. You can also use the ToC Editor by itself, without doing" " a conversion. Go to :guilabel:`Preferences->Interface->Toolbars` and add " "the :guilabel:`ToC Editor` to the main toolbar. Then just select the book " "you want to edit and click the :guilabel:`ToC Editor` button." msgstr "使用这些选项可能有点难以做到完全正确。如果您更喜欢手动创建/编辑目录,请转换为EPUB或AZW3格式,并选中转换对话框目录部分底部的复选框,该复选框显示“转换后手动微调目录”。这将在转换后启动目录编辑器工具。它允许您在目录中创建条目,只需在书中单击条目指向的位置即可。您还可以单独使用目录编辑器,而无需进行转换。转到“首选项”->“界面”->“工具栏”,并将“目录编辑器”添加到主工具栏。然后,只需选择要编辑的书,然后单击“目录编辑器”按钮。" #: ../../../__w/calibre/calibre/manual/conversion.rst:485 msgid "" "The first option is :guilabel:`Force use of auto-generated Table of " "Contents`. By checking this option you can have calibre override any Table " "of Contents found in the metadata of the input document with the auto " "generated one." msgstr "首个选项 :guilabel:`强制使用自动生成的目录`。勾选此选项后,calibre 将自动覆盖输入文档元数据中的原有目录,替换为系统生成的目录。" #: ../../../__w/calibre/calibre/manual/conversion.rst:489 msgid "" "The default way that the creation of the auto generated Table of Contents " "works is that, calibre will first try to add any detected chapters to the " "generated table of contents. You can learn how to customize the detection of" " chapters in the :ref:`structure-detection` section above. If you do not " "want to include detected chapters in the generated table of contents, check " "the :guilabel:`Do not add detected chapters` option." msgstr "创建自动生成的目录的默认方式是,calibre将首先尝试将任何检测到的章节添加到生成的目录中。您可以在上面的:ref:`structure-detection` 部分学习如何自定义章节的检测。如果您不想在生成的目录中包含检测到的章节,请选中“不添加检测到的章”选项。" #: ../../../__w/calibre/calibre/manual/conversion.rst:494 msgid "" "If less than the :guilabel:`Chapter threshold` number of chapters were " "detected, calibre will then add any hyperlinks it finds in the input " "document to the Table of Contents. This often works well: many input " "documents include a hyperlinked Table of Contents right at the start. The " ":guilabel:`Number of links` option can be used to control this behavior. If " "set to zero, no links are added. If set to a number greater than zero, at " "most that number of links is added." msgstr "创建自动生成的目录的默认方式是,calibre将首先尝试将任何检测到的章节添加到生成的目录中。您可以在上面的“结构检测”部分学习如何自定义章节的检测。如果您不想在生成的目录中包含检测到的章节,请选中“不添加检测到的章”选项。" #: ../../../__w/calibre/calibre/manual/conversion.rst:500 msgid "" "calibre will automatically filter duplicates from the generated Table of " "Contents. However, if there are some additional undesirable entries, you can" " filter them using the :guilabel:`TOC Filter` option. This is a regular " "expression that will match the title of entries in the generated table of " "contents. Whenever a match is found, it will be removed. For example, to " "remove all entries titles \"Next\" or \"Previous\" use::" msgstr "calibre将自动从生成的目录中过滤重复项。但是,如果有一些其他不需要的条目,您可以使用“目录过滤器”选项对其进行过滤。这是一个正则表达式,将与生成的目录中的条目标题相匹配。只要找到匹配项,它就会被删除。例如,要删除所有标题为“下一个”或“上一个”的条目,请使用:" #: ../../../__w/calibre/calibre/manual/conversion.rst:507 msgid "" "The :guilabel:`Level 1,2,3 TOC` options allow you to create a sophisticated " "multi-level Table of Contents. They are XPath expressions that match tags in" " the intermediate XHTML produced by the conversion pipeline. See the " ":ref:`conversion-introduction` for how to get access to this XHTML. Also " "read the :ref:`xpath-tutorial`, to learn how to construct XPath expressions." " Next to each option is a button that launches a wizard to help with the " "creation of basic XPath expressions. The following simple example " "illustrates how to use these options." msgstr ":guilabel:`Level 1,2,3 TOC`选项允许您创建复杂的多级目录。它们是XPath表达式,与转换管道生成的中间XHTML中的标签相匹配。有关如何访问此XHTML,请参阅:ref:`conversion-introduction`。还要阅读 :ref:`xpath-tutorial`,了解如何构造xpath表达式。每个选项旁边都有一个按钮,用于启动向导以帮助创建基本的XPath表达式。以下简单示例说明了如何使用这些选项。" #: ../../../__w/calibre/calibre/manual/conversion.rst:513 msgid "" "Suppose you have an input document that results in XHTML that looks like " "this:" msgstr "假设您的原始文档经转换后生成如下结构的XHTML代码:" #: ../../../__w/calibre/calibre/manual/conversion.rst:535 msgid "Then, we set the options as::" msgstr "然后,我们将选项设置如下::" #: ../../../__w/calibre/calibre/manual/conversion.rst:540 msgid "" "This will result in an automatically generated two level Table of Contents " "that looks like::" msgstr "这将输出一个自动生成的两级目录,如下所示::" #: ../../../__w/calibre/calibre/manual/conversion.rst:551 msgid "" "Not all output formats support a multi level Table of Contents. You should " "first try with EPUB output. If that works, then try your format of choice." msgstr "并非所有输出格式都支持多级目录。你应首先尝试使用 EPUB 格式输出。如果该格式可行,再尝试你选择的其他格式。 " #: ../../../__w/calibre/calibre/manual/conversion.rst:555 msgid "Using images as chapter titles when converting HTML input documents" msgstr "在转换HTML输入文档时,将图片用作章节标题" #: ../../../__w/calibre/calibre/manual/conversion.rst:557 msgid "" "Suppose you want to use an image as your chapter title, but still want " "calibre to be able to automatically generate a Table of Contents for you " "from the chapter titles. Use the following HTML markup to achieve this:" msgstr "如果你希望使用图片作为章节标题,同时仍想让 calibre 能够根据章节标题自动为你生成目录,可以使用以下 HTML 标记来实现:" #: ../../../__w/calibre/calibre/manual/conversion.rst:571 msgid "" "Set the :guilabel:`Level 1 TOC` setting to ``//h:h2``. Then, for chapter " "two, calibre will take the title from the value of the ``title`` attribute " "on the ``

`` tag, since the tag has no text." msgstr "将 :guilabel:`一级目录`设置为``//h:h2``。对于章节二,由于 \"

\"标签内无文本内容,calibre 将自动提取该标签的``title``属性值作为章节标题。" #: ../../../__w/calibre/calibre/manual/conversion.rst:574 msgid "" "Using tag attributes to supply the text for entries in the Table of Contents" msgstr "利用标签属性为目录条目提供文本内容 " #: ../../../__w/calibre/calibre/manual/conversion.rst:576 msgid "" "If you have particularly long chapter titles and want shortened versions in " "the Table of Contents, you can use the title attribute to achieve this, for " "example:" msgstr "如果你有特别长的章节标题,并且希望在目录中显示其简化版本,可以使用 title 属性来实现,例如:" #: ../../../__w/calibre/calibre/manual/conversion.rst:591 msgid "" "Set the :guilabel:`Level 1 TOC` setting to ``//h:h2/@title``. Then calibre " "will take the title from the value of the ``title`` attribute on the " "``

`` tags, instead of using the text inside the tag. Note the trailing " "``/@title`` on the XPath expression, you can use this form to tell calibre " "to get the text from any attribute you like." msgstr "将 :guilabel:`一级目录` 设置为 ``//h:h2/@title``。这样,calibre 将从

标签的``title``属性值中获取标题内容,而不是使用标签内部的文本。请注意 XPath 表达式末尾的 ``/@title`` ,你可以使用这种格式告诉 calibre 从你喜欢的任何属性中获取文本。" #: ../../../__w/calibre/calibre/manual/conversion.rst:598 msgid "How options are set/saved for conversion" msgstr "转换选项的设置与保存方式" #: ../../../__w/calibre/calibre/manual/conversion.rst:600 msgid "" "There are two places where conversion options can be set in calibre. The " "first is in Preferences->Conversion. These settings are the defaults for the" " conversion options. Whenever you try to convert a new book, the settings " "set here will be used by default." msgstr "在 calibre 中,有两个地方可以设置转换选项。第一处位于“首选项 -> 转换”。这些设置是转换选项的默认值。每当您尝试转换一本新书时,此处设置的选项都将作为默认设置使用" #: ../../../__w/calibre/calibre/manual/conversion.rst:605 msgid "" "You can also change settings in the conversion dialog for each book " "conversion. When you convert a book, calibre remembers the settings you used" " for that book, so that if you convert it again, the saved settings for the " "individual book will take precedence over the defaults set in " ":guilabel:`Preferences`. You can restore the individual settings to defaults" " by using the :guilabel:`Restore defaults` button in the individual book " "conversion dialog. You can remove the saved settings for a group of books by" " selecting all the books and then clicking the :guilabel:`Edit metadata` " "button to bring up the bulk metadata edit dialog, near the bottom of the " "dialog is an option to remove stored conversion settings." msgstr "您还可以在转换对话框中更改每本书转换的设置。当你转换一本书时,calibre会记住你为那本书使用的设置,这样如果你再次转换它,为每本书保存的设置将优先于“首选项”中设置的默认值。您可以使用个人书籍转换对话框中的“恢复默认值”按钮将个人设置恢复为默认值。您可以通过选择所有书籍,然后单击“编辑元数据”按钮打开批量元数据编辑对话框来删除一组书籍的已保存设置,对话框底部附近有一个删除已存储转换设置的选项。" #: ../../../__w/calibre/calibre/manual/conversion.rst:616 msgid "" "When you bulk convert a set of books, settings are taken in the following " "order (last one wins):" msgstr "当您批量转换一组书籍时,设置将按以下顺序采用(以最后一条为准):" #: ../../../__w/calibre/calibre/manual/conversion.rst:618 msgid "From the defaults set in Preferences->Conversion" msgstr "源自“首选项 -> 转换”中设置的默认值" #: ../../../__w/calibre/calibre/manual/conversion.rst:620 msgid "" "From the saved conversion settings for each book being converted (if any). " "This can be turned off by the option in the top left corner of the Bulk " "conversion dialog." msgstr "源自待转换书籍各自保存的转换设置(如果有)。这可以通过“批量转换”对话框左上角的选项来关闭" #: ../../../__w/calibre/calibre/manual/conversion.rst:624 msgid "From the settings set in the Bulk conversion dialog" msgstr "源自“批量转换”对话框中所做的设置" #: ../../../__w/calibre/calibre/manual/conversion.rst:626 msgid "" "Note that the final settings for each book in a Bulk conversion will be " "saved and re-used if the book is converted again. Since the highest priority" " in Bulk Conversion is given to the settings in the Bulk conversion dialog, " "these will override any book specific settings. So you should only bulk " "convert books together that need similar settings. The exceptions are " "metadata and input format specific settings. Since the Bulk conversion " "dialog does not have settings for these two categories, they will be taken " "from book specific settings (if any) or the defaults." msgstr "请注意,批量转换中每本书的最终设置将被保存,如果书籍再次转换,将重新使用。由于批量转换中的最高优先级赋予了批量转换对话框中的设置,因此这些设置将覆盖任何特定于书籍的设置。因此,您应该只批量转换需要类似设置的书籍。例外情况是元数据和输入格式特定的设置。由于“批量转换”对话框没有这两个类别的设置,因此将从特定于书籍的设置(如果有的话)或默认设置中获取。" #: ../../../__w/calibre/calibre/manual/conversion.rst:637 msgid "" "You can see the actual settings used during any conversion by clicking the " "rotating icon in the lower right corner and then double clicking the " "individual conversion job. This will bring up a conversion log that will " "contain the actual settings used, near the top." msgstr "您可以点击右下角的旋转图标,然后双击相应的转换任务,查看任何转换过程中实际使用的设置。这将弹出转换日志,实际使用的设置就包含在日志顶部附近。" #: ../../../__w/calibre/calibre/manual/conversion.rst:642 msgid "Format specific tips" msgstr "特定格式提示" #: ../../../__w/calibre/calibre/manual/conversion.rst:644 msgid "" "Here you will find tips specific to the conversion of particular formats. " "Options specific to particular format, whether input or output are available" " in the conversion dialog under their own section, for example `TXT input` " "or `EPUB output`." msgstr "在这里,您将找到针对特定格式转换的提示。无论输入还是输出,特定于某种格式的选项都可以在转换对话框的独立章节中找到,例如“TXT 输入”或“EPUB 输出”。" #: ../../../__w/calibre/calibre/manual/conversion.rst:649 msgid "Convert Microsoft Word documents" msgstr "转换Microsoft Word文档" #: ../../../__w/calibre/calibre/manual/conversion.rst:651 msgid "" "calibre can automatically convert ``.docx`` files created by Microsoft Word " "2007 and newer. Just add the file to calibre and click convert." msgstr "Calibre 可以自动转换由 Microsoft Word 2007 及更高版本创建的``.docx`` 文件。只需将文件添加到 calibre 并点击转换即可。" #: ../../../__w/calibre/calibre/manual/conversion.rst:655 msgid "" "There is a :download_file:`demo .docx file ` that " "demonstrates the capabilities of the calibre conversion engine. Just " "download it and convert it to EPUB or AZW3 to see what calibre can do." msgstr "这里有一个 :download_file:`demo .docx 文件 `,用于展示 calibre 转换引擎的功能。只需下载并将其转换为 EPUB 或 AZW3 格式,即可亲眼见证 calibre 的强大能力。" #: ../../../__w/calibre/calibre/manual/conversion.rst:659 msgid "" "calibre will automatically generate a Table of Contents based on headings if" " you mark your headings with the ``Heading 1``, ``Heading 2``, etc. styles " "in Microsoft Word. Open the output e-book in the calibre E-book viewer and " "click the :guilabel:`Table of Contents` button to view the generated Table " "of Contents." msgstr "如果您在 Microsoft Word 中将标题标记为“标题 1”、“标题 2”等样式,calibre 将根据这些标题自动生成目录。在 calibre 电子书阅读器中打开输出的电子书,点击 :guilabel:`目录` 按钮即可查看生成的目录。" #: ../../../__w/calibre/calibre/manual/conversion.rst:665 msgid "Older .doc files" msgstr "旧版 .doc 文件" #: ../../../__w/calibre/calibre/manual/conversion.rst:667 msgid "" "For older .doc files, you can save the document as HTML with Microsoft Word " "and then convert the resulting HTML file with calibre. When saving as HTML, " "be sure to use the \"Save as Web Page, Filtered\" option as this will " "produce clean HTML that will convert well. Note that Word produces really " "messy HTML, converting it can take a long time, so be patient. If you have a" " newer version of Word available, you can directly save it as .docx as well." msgstr "对于较旧的.doc文件,您可以使用Microsoft Word将文档另存为HTML,然后使用calibre转换生成的HTML文件。保存为HTML时,请务必使用“另存为网页,已过滤”选项,因为这将生成转换良好的干净HTML。请注意,Word生成的HTML非常混乱,转换它可能需要很长时间,所以请耐心等待。如果您有较新版本的Word可用,也可以直接将其另存为.docx。" #: ../../../__w/calibre/calibre/manual/conversion.rst:674 msgid "" "Another alternative is to use the free LibreOffice. Open your .doc file in " "LibreOffice and save it as .docx, which can be directly converted in " "calibre." msgstr "另一种选择是使用免费的 LibreOffice。在 LibreOffice 中打开您的 .doc 文件并将其另存为 .docx,之后即可在 calibre 中直接进行转换。" #: ../../../__w/calibre/calibre/manual/conversion.rst:678 msgid "Convert TXT documents" msgstr "转换文本文档" #: ../../../__w/calibre/calibre/manual/conversion.rst:680 msgid "" "TXT documents have no well defined way to specify formatting like bold, " "italics, etc, or document structure like paragraphs, headings, sections and " "so on, but there are a variety of conventions commonly used. By default " "calibre attempts automatic detection of the correct formatting and markup " "based on those conventions." msgstr "TXT文档没有明确的方式来指定格式,如粗体、斜体等,或文档结构,如段落、标题、章节等,但有各种常用的约定。默认情况下,calibre会尝试根据这些约定自动检测正确的格式和标记。" #: ../../../__w/calibre/calibre/manual/conversion.rst:685 msgid "" "TXT input supports a number of options to differentiate how paragraphs are " "detected." msgstr "TXT 输入支持多种选项,用于区分如何检测段落。" #: ../../../__w/calibre/calibre/manual/conversion.rst:687 msgid ":guilabel:`Paragraph style: Auto`" msgstr ":guilabel:`段落样式: Auto`" #: ../../../__w/calibre/calibre/manual/conversion.rst:688 msgid "" "Analyzes the text file and attempts to automatically determine how " "paragraphs are defined. This option will generally work fine, if you " "achieve undesirable results try one of the manual options." msgstr "分析文本文件并尝试自动确定段落的定义方式。该选项通常运行良好,如果结果不尽如人意,请尝试使用某种手动选项。" #: ../../../__w/calibre/calibre/manual/conversion.rst:691 msgid ":guilabel:`Paragraph style: Block`" msgstr ":guilabel:`段落样式: Block`" #: ../../../__w/calibre/calibre/manual/conversion.rst:692 msgid "Assumes one or more blank lines are a paragraph boundary::" msgstr "假设一个或多个空行即为段落分界线::" #: ../../../__w/calibre/calibre/manual/conversion.rst:699 msgid ":guilabel:`Paragraph style: Single`" msgstr ":guilabel:`段落样式: Single`" #: ../../../__w/calibre/calibre/manual/conversion.rst:700 msgid "Assumes that every line is a paragraph::" msgstr "假设每一行都是一个独立的段落::" #: ../../../__w/calibre/calibre/manual/conversion.rst:706 msgid ":guilabel:`Paragraph style: Print`" msgstr ":guilabel:`段落样式: Print`" #: ../../../__w/calibre/calibre/manual/conversion.rst:707 msgid "" "Assumes that every paragraph starts with an indent (either a tab or 2+ " "spaces). Paragraphs end when the next line that starts with an indent is " "reached::" msgstr "假设每个段落都以缩进开头(制表符或 2 个以上的空格)。当遇到下一个以缩进开头的行时,当前段落结束::" #: ../../../__w/calibre/calibre/manual/conversion.rst:717 msgid ":guilabel:`Paragraph style: Unformatted`" msgstr ":guilabel:`段落样式: Unformatted`" #: ../../../__w/calibre/calibre/manual/conversion.rst:718 msgid "" "Assumes that the document has no formatting, but does use hard line breaks." " Punctuation and median line length are used to attempt to re-create " "paragraphs." msgstr "假设文档没有任何格式设置,但使用了硬换行符。系统将通过标点符号和平均行长度来尝试重新构建段落。" #: ../../../__w/calibre/calibre/manual/conversion.rst:721 msgid ":guilabel:`Formatting style: Auto`" msgstr ":guilabel:`格式化样式:自动`" #: ../../../__w/calibre/calibre/manual/conversion.rst:722 msgid "" "Attempts to detect the type of formatting markup being used. If no markup " "is used then heuristic formatting will be applied." msgstr "尝试检测正在使用的格式标记类型。如果未检测到任何标记,则将应用“智能处理”。" #: ../../../__w/calibre/calibre/manual/conversion.rst:725 msgid ":guilabel:`Formatting style: Heuristic`" msgstr ":guilabel:`格式化样式:智能`" #: ../../../__w/calibre/calibre/manual/conversion.rst:726 msgid "" "Analyzes the document for common chapter headings, scene breaks, and " "italicized words and applies the appropriate HTML markup during conversion." msgstr "分析文档中的常见章节标题、分节符以及斜体词汇,并在转换过程中应用相应的 HTML 标记。" #: ../../../__w/calibre/calibre/manual/conversion.rst:729 msgid ":guilabel:`Formatting style: Markdown`" msgstr ":guilabel:`格式化样式: Markdown`" #: ../../../__w/calibre/calibre/manual/conversion.rst:730 msgid "" "calibre also supports running TXT input though a transformation preprocessor" " known as Markdown. Markdown allows for basic formatting to be added to TXT " "documents, such as bold, italics, section headings, tables, lists, a Table " "of Contents, etc. Marking chapter headings with a leading # and setting the " "chapter XPath detection expression to \"//h:h1\" is the easiest way to have " "a proper table of contents generated from a TXT document. You can learn more" " about the Markdown syntax at `daringfireball " "`_." msgstr "calibre还支持通过名为Markdown的转换预处理器运行TXT输入。Markdown允许将基本格式添加到TXT文档中,如粗体、斜体、节标题、表格、列表、目录等。用前导#标记章节标题并将章节XPath检测表达式设置为“//h:h1”是从TXT文档生成正确目录的最简单方法。你可以在`daringfireball上了解更多关于Markdown语法的信息`_." #: ../../../__w/calibre/calibre/manual/conversion.rst:736 msgid ":guilabel:`Formatting style: None`" msgstr ":guilabel:`格式化样式:无`" #: ../../../__w/calibre/calibre/manual/conversion.rst:737 msgid "" "Applies no special formatting to the text, the document is converted to HTML" " with no other changes." msgstr "不对文本应用任何特殊格式,文档在不进行其他更改的情况下直接转换为 HTML。" #: ../../../__w/calibre/calibre/manual/conversion.rst:742 msgid "Convert PDF documents" msgstr "转换PDF文档" #: ../../../__w/calibre/calibre/manual/conversion.rst:744 msgid "" "PDF documents are one of the worst formats to convert from. They are a fixed" " page size and text placement format. Meaning, it is very difficult to " "determine where one paragraph ends and another begins. calibre will try to " "unwrap paragraphs using a configurable, :guilabel:`Line un-wrapping factor`." " This is a scale used to determine the length at which a line should be " "unwrapped. Valid values are a decimal between 0 and 1. The default is 0.45, " "just under the median line length. Lower this value to include more text in " "the unwrapping. Increase to include less. You can adjust this value in the " "conversion settings under :guilabel:`PDF Input`." msgstr "PDF文档是最难转换的格式之一。它们是固定的页面大小和文本放置格式。也就是说,很难确定一个段落在哪里结束,另一个段落从哪里开始。calibre将尝试使用可配置的“行解包因子”来解包段落。这是一个用于确定线应展开的长度的标尺。有效值是介于0和1之间的十进制数。默认值为0.45,刚好在中线长度下方。降低此值可在展开中包含更多文本。增加以包含更少。您可以在“PDF输入”下的转换设置中调整此值。" #: ../../../__w/calibre/calibre/manual/conversion.rst:751 msgid "" "Also, they often have headers and footers as part of the document that will " "become included with the text. Use the :guilabel:`Search and replace` panel " "to remove headers and footers to mitigate this issue. If the headers and " "footers are not removed from the text it can throw off the paragraph " "unwrapping. To learn how to use the header and footer removal options, read " ":ref:`regexptutorial`." msgstr "此外,它们通常有页眉和页脚作为文档的一部分,这些页眉和页脚将包含在文本中。使用“搜索和替换”面板删除页眉和页脚以缓解此问题。如果没有从文本中删除页眉和页脚,则可以取消段落展开。要了解如何使用页眉和页脚删除选项,请阅读:ref:`regexptutorial`。" #: ../../../__w/calibre/calibre/manual/conversion.rst:756 msgid "Some limitations of PDF input are:" msgstr "PDF输入限制:" #: ../../../__w/calibre/calibre/manual/conversion.rst:758 msgid "Complex, multi-column, and image based documents are not supported." msgstr "该功能不支持复杂的、多栏布局以及基于图片的文档。" #: ../../../__w/calibre/calibre/manual/conversion.rst:759 msgid "" "Extraction of vector images and tables from within the document is also not " "supported." msgstr "此外,该功能也不支持提取文档中的矢量图形和表格。" #: ../../../__w/calibre/calibre/manual/conversion.rst:760 msgid "" "Some PDFs use special glyphs to represent ll or ff or fi, etc. Conversion of" " these may or may not work depending on just how they are represented " "internally in the PDF." msgstr "某些 PDF 使用特殊字符(合字)来表示 ll、ff 或 fi 等字母组合。这些字符能否成功转换,取决于它们在 PDF 内部的具体表示方式。" #: ../../../__w/calibre/calibre/manual/conversion.rst:761 msgid "Links and Tables of Contents are not supported" msgstr "链接和目录不支持" #: ../../../__w/calibre/calibre/manual/conversion.rst:762 msgid "" "PDFs that use embedded non-Unicode fonts to represent non-English characters" " will result in garbled output for those characters" msgstr "如果 PDF 使用嵌入式非 Unicode 字体来表示非英语字符,会导致这些字符在输出结果中显示为乱码。" #: ../../../__w/calibre/calibre/manual/conversion.rst:763 msgid "" "Some PDFs are made up of photographs of the page with OCRed text behind " "them. In such cases calibre uses the OCRed text, which can be very different" " from what you see when you view the PDF file" msgstr "某些 PDF 页面是由扫描的页面经过 OCR 处理的文本构成的。在这种情况下,calibre 会使用这些 OCR 文本,但它们可能与您在查看 PDF 文件时所见的内容大相径庭" #: ../../../__w/calibre/calibre/manual/conversion.rst:764 msgid "" "PDFs that are used to display complex text, like right to left languages and" " math typesetting will not convert correctly" msgstr "用于显示复杂文本(如从右向左书写的语言和数学排版)的 PDF 无法正确转换" #: ../../../__w/calibre/calibre/manual/conversion.rst:766 msgid "" "To re-iterate **PDF is a really, really bad** format to use as input. If you" " absolutely must use PDF, then be prepared for an output ranging anywhere " "from decent to unusable, depending on the input PDF." msgstr "再次重申:PDF 是一种极其糟糕的输入格式。如果您绝对必须使用 PDF,那么请做好心理准备,输出效果可能从“尚可”到“完全不可用”不等,这完全取决于输入的 PDF 文件本身。" #: ../../../__w/calibre/calibre/manual/conversion.rst:770 msgid "Comic book collections" msgstr "漫画集" #: ../../../__w/calibre/calibre/manual/conversion.rst:772 msgid "" "A comic book collection is a .cbc file. A .cbc file is a ZIP file that " "contains other CBZ/CBR files. In addition the .cbc file must contain a " "simple text file called comics.txt, encoded in UTF-8. The comics.txt file " "must contain a list of the comics files inside the .cbc file, in the form " "filename:title, as shown below::" msgstr "漫画集是一种 .cbc 文件。.cbc 文件实际上是一个包含其他 CBZ/CBR 文件的 ZIP 压缩包。此外,.cbc 文件内必须包含一个名为 comics.txt 的纯文本文件(使用 UTF-8 编码)。comics.txt 必须包含该 .cbc 文件内所有漫画文件的列表,格式为“文件名:标题”,如下所示::" #: ../../../__w/calibre/calibre/manual/conversion.rst:780 msgid "The .cbc file will then contain::" msgstr "随后, .cbc 文件将包含以下内容::" #: ../../../__w/calibre/calibre/manual/conversion.rst:787 msgid "" "calibre will automatically convert this .cbc file into an e-book with a " "Table of Contents pointing to each entry in comics.txt." msgstr "calibre 会自动将此 .cbc 文件转换为一本电子书,并根据 comics.txt 中的每个条目生成相应的目录。" #: ../../../__w/calibre/calibre/manual/conversion.rst:791 msgid "EPUB advanced formatting demo" msgstr "EPUB 高级格式演示" #: ../../../__w/calibre/calibre/manual/conversion.rst:793 msgid "" "Various advanced formatting for EPUB files is demonstrated in this " ":download_file:`demo file `. The file was created from hand" " coded HTML using calibre and is meant to be used as a template for your own" " EPUB creation efforts." msgstr "此 :download_file:`演示文件 `展示了 EPUB 文件的各种高级格式设置技巧。该文件是通过 calibre 从手写 HTML 代码创建的,旨在作为您自行制作 EPUB 文件的模板。" #: ../../../__w/calibre/calibre/manual/conversion.rst:796 msgid "" "The source HTML it was created from is available :download_file:`demo.zip " "`. The settings used to create the EPUB from the ZIP file " "are::" msgstr "用于创建该文件的 HTML 源码可在 :download_file:`demo.zip ` 中获取。从该 ZIP 文件创建 EPUB 时所使用的设置如下:" #: ../../../__w/calibre/calibre/manual/conversion.rst:801 msgid "" "Note that because this file explores the potential of EPUB, most of the " "advanced formatting is not going to work on readers less capable than " "calibre's built-in EPUB viewer." msgstr "请注意,由于该文件探索了 EPUB 的各种潜力,大部分高级格式设置在性能弱于 calibre 内置电子书阅读器的设备上将无法正常显示。" #: ../../../__w/calibre/calibre/manual/conversion.rst:805 msgid "Convert ODT documents" msgstr "转换 ODT 文档" #: ../../../__w/calibre/calibre/manual/conversion.rst:807 msgid "" "calibre can directly convert ODT (OpenDocument Text) files. You should use " "styles to format your document and minimize the use of direct formatting. " "When inserting images into your document you need to anchor them to the " "paragraph, images anchored to a page will all end up in the front of the " "conversion." msgstr "calibre 可以直接转换 ODT(OpenDocument Text)文件。您应当使用“样式”来格式化文档,并尽量减少直接格式化的使用。在文档中插入图片时,您需要将其锚定到“段落”;若将图片锚定到“页面”,转换后图片都会堆积在书的最前面。" #: ../../../__w/calibre/calibre/manual/conversion.rst:810 msgid "" "To enable automatic detection of chapters, you need to mark them with the " "built-in styles called :guilabel:`Heading 1`, :guilabel:`Heading 2`, ..., " ":guilabel:`Heading 6` (:guilabel:`Heading 1` equates to the HTML tag " "``

``, :guilabel:`Heading 2` to ``

``, etc). When you convert in " "calibre you can enter which style you used into the :guilabel:`Detect " "chapters at` box. Example:" msgstr "要启用章节的自动侦测,您需要使用名为“标题 1”、“标题2”、…`标题6`的内置样式标记它们(“标题1”相当于HTML标签\"

\",“标题2”相当于\"

\",以此类推)。当你在Calibre中转换时,你可以在“检测章节”框中输入你使用的样式。例子:" #: ../../../__w/calibre/calibre/manual/conversion.rst:816 msgid "" "If you mark Chapters with style :guilabel:`Heading 2`, you have to set the " "'Detect chapters at' box to ``//h:h2``" msgstr "如果您使用“样式”中的 :guilabel:`标题 2`来标记章节,则必须将“检测章节于”框设置为 //``h:h2``" #: ../../../__w/calibre/calibre/manual/conversion.rst:817 msgid "" "For a nested TOC with Sections marked with :guilabel:`Heading 2` and the " "Chapters marked with :guilabel:`Heading 3` you need to enter " "``//h:h2|//h:h3``. On the Convert - TOC page set the :guilabel:`Level 1 TOC`" " box to ``//h:h2`` and the :guilabel:`Level 2 TOC` box to ``//h:h3``." msgstr "对于包含“节”和“章”的嵌套目录,若“节”标记为 :guilabel:`标题 2`、“章”标记为 :guilabel:`标题 3`,您需要在“检测章节于”框中输入`` //h:h2|//h:h3``。随后在“转换 - 目录”页面中,将 :guilabel:`一级目录` 框设置为 ``//h:h2``,并将 :guilabel:二级目录 框设置为 ``//h:h3``。" #: ../../../__w/calibre/calibre/manual/conversion.rst:819 msgid "" "Well-known document properties (Title, Keywords, Description, Creator) are " "recognized and calibre will use the first image (not too small, and with " "good aspect-ratio) as the cover image." msgstr "系统可以识别常见的文档属性(标题、关键词、描述、作者),并且 calibre 会将文档中的第一张图片(面积不能太小,且具有良好的宽高比)用作封面图片。" #: ../../../__w/calibre/calibre/manual/conversion.rst:821 msgid "" "There is also an advanced property conversion mode, which is activated by " "setting the custom property ``opf.metadata`` ('Yes or No' type) to Yes in " "your ODT document (File->Properties->Custom Properties). If this property is" " detected by calibre, the following custom properties are recognized " "(``opf.authors`` overrides document creator)::" msgstr "此外还有一种高级属性转换模式。您可以在 ODT 文档中(文件 -> 属性 -> 自定义属性)添加一个名为``opf.metadata`` 的自定义属性(类型为“是/否”),并将其设为“是”来激活该模式。如果 calibre 检测到此属性,它将识别以下自定义属性(其中 opf.authors 会覆盖文档的原始作者信息)::" #: ../../../__w/calibre/calibre/manual/conversion.rst:834 msgid "" "In addition to this, you can specify the picture to use as the cover by " "naming it ``opf.cover`` (right click, Picture->Options->Name) in the ODT. If" " no picture with this name is found, the 'smart' method is used. As the " "cover detection might result in double covers in certain output formats, the" " process will remove the paragraph (only if the only content is the cover!) " "from the document. But this works only with the named picture!" msgstr "除此之外,您还可以通过在ODT中将图片命名为“opf.cover”(右键单击,图片->选项->名称)来指定用作封面的图片。如果找不到具有此名称的图片,则使用“smart”方法。由于封面检测可能会导致某些输出格式出现双封面,因此该过程将从文档中删除该段落(仅当唯一内容是封面时!)。但这只适用于命名的图片!" #: ../../../__w/calibre/calibre/manual/conversion.rst:841 msgid "" "To disable cover detection you can set the custom property ``opf.nocover`` " "('Yes or No' type) to Yes in advanced mode." msgstr "在高级模式下,您可以通过在 ODT 文档中将自定义属性``opf.nocover`` (类型为“是/否”)设置为“是”来禁用封面检测。" #: ../../../__w/calibre/calibre/manual/conversion.rst:844 msgid "Converting to PDF" msgstr "转换为PDF" #: ../../../__w/calibre/calibre/manual/conversion.rst:846 msgid "" "The first, most important, setting to decide on when converting to PDF is " "the page size. By default, calibre uses a page size of \"U.S. Letter\". You " "can change this to another standard page size or a completely custom size in" " the :guilabel:`PDF Output` section of the conversion dialog. If you are " "generating a PDF to be used on a specific device, you can turn on the option" " to use the page size from the :guilabel:`output profile` instead. So if " "your output profile is set to Kindle, calibre will create a PDF with page " "size suitable for viewing on the small Kindle screen." msgstr "转换为PDF时要决定的第一个也是最重要的设置是页面大小。默认情况下,calibre使用“U.S.Letter”的页面大小。您可以在转换对话框的“PDF输出”部分将其更改为另一个标准页面大小或完全自定义的大小。如果您正在生成要在特定设备上使用的PDF,则可以打开选项,使用“输出配置文件”中的页面大小。因此,如果您的输出配置文件设置为Kindle,calibre将创建一个页面大小适合在Kindle小屏幕上查看的PDF。" #: ../../../__w/calibre/calibre/manual/conversion.rst:856 msgid "Headers and Footers" msgstr "页头和页脚" #: ../../../__w/calibre/calibre/manual/conversion.rst:857 msgid "" "You can insert arbitrary headers and footers on each page of the PDF by " "specifying header and footer templates. Templates are just snippets of HTML " "code that get rendered in the header and footer locations. For example, to " "display page numbers centered at the bottom of every page, in green, use the" " following footer template::" msgstr "通过指定页眉和页脚模板,您可以在 PDF 的每一页插入任意内容的页眉和页脚。模板实质上是渲染在页眉和页脚位置的 HTML 代码片段。例如,若要在每页底部中央以绿色显示页数,请使用以下页脚模板::" #: ../../../__w/calibre/calibre/manual/conversion.rst:865 msgid "" "calibre will automatically replace :code:`_PAGENUM_` with the current page " "number. You can even put different content on even and odd pages, for " "example the following header template will show the title on odd pages and " "the author on even pages::" msgstr "calibre 会自动将 :code:`_PAGENUM_` 替换为当前页码。您甚至可以在奇数页和偶数页上设置不同的内容。例如,使用以下页眉模板可以在奇数页显示书名,而在偶数页显示作者::" #: ../../../__w/calibre/calibre/manual/conversion.rst:874 msgid "" "calibre will automatically replace :code:`_TITLE_` and :code:`_AUTHOR_` with" " the title and author of the document being converted. Setting " ":code:`justify-content` to :code:`flex-end` will cause the text to be right " "aligned." msgstr "calibre 会自动将 :code:`_TITLE_` 和 :code:`_AUTHOR_` 替换为正在转换的文档的书名和作者。将 :code:`justify-content` 属性设置为 :code:`flex-end` 则会使文本右对齐。" #: ../../../__w/calibre/calibre/manual/conversion.rst:879 msgid "" "You can also display text at the left and right edges and change the font " "size, as demonstrated with this header template::" msgstr "您还可以将文本分别显示在左侧和右侧边缘,并更改字体大小,如下面的页眉模板所示::" #: ../../../__w/calibre/calibre/manual/conversion.rst:887 msgid "" "This will display the title at the left and the author at the right, in a " "font size smaller than the main text." msgstr "这将使书名显示在左侧,作者显示在右侧,且字体大小比正文更小。" #: ../../../__w/calibre/calibre/manual/conversion.rst:890 msgid "You can also use the current section in templates, as shown below::" msgstr "您还可以在模板中使用当前章节名称,如下所示::" #: ../../../__w/calibre/calibre/manual/conversion.rst:894 msgid "" ":code:`_SECTION_` is replaced by whatever the name of the current section " "is. These names are taken from the metadata Table of Contents in the " "document (the PDF Outline). If the document has no table of contents then it" " will be replaced by empty text. If a single PDF page has multiple sections," " the first section on the page will be used. Similarly, there is a variable " "named :code:`_TOP_LEVEL_SECTION_` that can be used to get the name of the " "current top-level section." msgstr "`_SECTION_`替换为当前节的名称。这些名称取自文档中的元数据目录(PDF大纲)。如果文档没有目录,则将替换为空文本。如果单个PDF页面有多个部分,则将使用页面上的第一部分。同样,有一个名为“_TOP_LEVEL_SECTION_”的变量可用于获取当前顶级节的名称。" #: ../../../__w/calibre/calibre/manual/conversion.rst:901 msgid "" "You can even use JavaScript inside the header and footer templates, for " "example, the following template will cause page numbers to start at 4 " "instead of 1::" msgstr "您甚至可以在页眉和页脚模板中使用 JavaScript。例如,使用以下模板可以使页码从 4 开始,而不是从 1 开始::" #: ../../../__w/calibre/calibre/manual/conversion.rst:911 msgid "" "In addition there are some more variables you can use in the headers and " "footers, documented below:" msgstr "此外,您还可以在页眉和页脚中使用更多变量,具体说明如下:" #: ../../../__w/calibre/calibre/manual/conversion.rst:914 msgid "" "``_TOTAL_PAGES_`` - total number of pages in the PDF file, useful for " "implementing a progress counter, for example." msgstr "``_TOTAL_PAGES_`` —— PDF 文件的总页数。例如,在实现进度计数器时非常有用。" #: ../../../__w/calibre/calibre/manual/conversion.rst:916 msgid "" "``_TOP_LEVEL_SECTION_PAGES_`` - total number of pages in the current top " "level section" msgstr "``_TOP_LEVEL_SECTION_PAGES_`` —— 当前顶级章节的总页数。" #: ../../../__w/calibre/calibre/manual/conversion.rst:918 msgid "" "``_TOP_LEVEL_SECTION_PAGENUM_`` - the page number of the current page within" " the current top level section" msgstr "``_TOP_LEVEL_SECTION_PAGENUM_`` —— 当前页在当前顶级章节内的页码" #: ../../../__w/calibre/calibre/manual/conversion.rst:920 msgid "``_WIDTH_PIXELS_`` - the width of the header/footer area in pixels" msgstr "``_WIDTH_PIXELS_`` —— 页眉/页脚区域的宽度,以像素为单位" #: ../../../__w/calibre/calibre/manual/conversion.rst:921 msgid "``_HEIGHT_PIXELS_`` - the height of the header/footer area in pixels" msgstr "``_HEIGHT_PIXELS_`` —— 页眉/页脚区域的高度,以像素为单位" #: ../../../__w/calibre/calibre/manual/conversion.rst:923 msgid "" "When adding headers and footers make sure you set the page top and bottom " "margins to large enough values, under the :guilabel:`PDF Output` section of " "the conversion dialog." msgstr "在添加页眉和页脚时,请务必在转换对话框的 :guilabel:`PDF输出`部分下,将页面上边距和下边距设置为足够大的数值。" #: ../../../__w/calibre/calibre/manual/conversion.rst:928 msgid "Printable Table of Contents" msgstr "可打印目录" #: ../../../__w/calibre/calibre/manual/conversion.rst:930 msgid "" "You can also insert a printable Table of Contents at the end of the PDF that" " lists the page numbers for every section. This is very useful if you intend" " to print out the PDF to paper. If you wish to use the PDF on an electronic " "device, then the PDF Outline provides this functionality and is generated by" " default." msgstr "您还可以在 PDF 的末尾插入一份“可打印目录”,其中会列出每个章节对应的页码。如果您打算将 PDF 打印成纸质文档,这个功能会非常有用。如果您是在电子设备上使用 PDF,那么“PDF大纲”(书签)已经提供了类似的功能,并且该功能在默认情况下是开启的。" #: ../../../__w/calibre/calibre/manual/conversion.rst:935 msgid "" "You can customize the look of the generated Table of contents by using the " "Extra CSS conversion setting under the Look & feel part of the conversion " "dialog. The default CSS used is listed below, simply copy it and make " "whatever changes you like." msgstr "您可以通过转换对话框中“界面外观”部分下的“额外的CSS”设置来通过自定义生成目录的外观。下面列出了默认使用的 CSS,您只需将其复制并根据需要进行修改即可。" #: ../../../__w/calibre/calibre/manual/conversion.rst:955 msgid "Custom page margins for individual HTML files" msgstr "针对单个 HTML 文件的自定义页面边距" #: ../../../__w/calibre/calibre/manual/conversion.rst:957 msgid "" "If you are converting an EPUB or AZW3 file with multiple individual HTML " "files inside it and you want to change the page margins for a particular " "HTML file you can add the following style block to the HTML file using the " "calibre E-book editor:" msgstr "如果您正在转换一个包含多个独立 HTML 文件的 EPUB 或 AZW3 文件,并且想要更改其中某个特定 HTML 文件的页面边距,可以使用 calibre 电子书编辑器在该 HTML 文件中添加以下样式块:" #: ../../../__w/calibre/calibre/manual/conversion.rst:974 msgid "" "Then, in the PDF output section of the conversion dialog, turn on the option" " to :guilabel:`Use page margins from the document being converted`. Now all " "pages generated from this HTML file will have ``10pt`` margins." msgstr "然后,在转换对话框的“PDF 输出”部分,勾选 :guilabel:`使用输入文档的页边距`选项。这样一来,所有由该 HTML 文件生成的页面都将拥有 10pt 的边距。"