| 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 |
# Pei Qing, 2024 |
| 7 |
# RERBIN MA, 2025-2026 |
| 8 |
# tony shen <[email protected]>, 2020,2024 |
| 9 |
msgid "" |
| 10 |
msgstr "" |
| 11 |
"Project-Id-Version: calibre\n" |
| 12 |
"Report-Msgid-Bugs-To: \n" |
| 13 |
"POT-Creation-Date: 2026-03-12 02:31+0000\n" |
| 14 |
"PO-Revision-Date: 2016-02-29 11:58+0000\n" |
| 15 |
"Last-Translator: RERBIN MA, 2025-2026\n" |
| 16 |
"Language-Team: Chinese (China) (http://app.transifex.com/calibre/calibre/language/zh_CN/)\n" |
| 17 |
"MIME-Version: 1.0\n" |
| 18 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 19 |
"Content-Transfer-Encoding: 8bit\n" |
| 20 |
"Language: zh_CN\n" |
| 21 |
"Plural-Forms: nplurals=1; plural=0;\n" |
| 22 |
|
| 23 |
#: ../../../__w/calibre/calibre/manual/edit.rst:4 |
| 24 |
msgid "Editing e-books" |
| 25 |
msgstr "编辑书籍" |
| 26 |
|
| 27 |
#: ../../../__w/calibre/calibre/manual/edit.rst:6 |
| 28 |
msgid "" |
| 29 |
"calibre has an integrated e-book editor that can be used to edit books in " |
| 30 |
"the EPUB, KEPUB (Kobo) and AZW3 (Kindle) formats. The editor shows you the " |
| 31 |
"HTML and CSS that is used internally inside the book files, with a live " |
| 32 |
"preview that updates as you make changes. It also contains various automated" |
| 33 |
" tools to perform common cleanup and fixing tasks." |
| 34 |
msgstr "calibre 内置了一个电子书编辑器,可用于编辑 EPUB、KEPUB(Kobo)和 AZW3(Kindle)格式的书籍。该编辑器可以显示书籍文件内部使用的 HTML 和 CSS,并在你进行修改时提供实时预览。此外,它还包含多种自动化工具,用于执行常见的清理和修复任务。" |
| 35 |
|
| 36 |
#: ../../../__w/calibre/calibre/manual/edit.rst:12 |
| 37 |
msgid "" |
| 38 |
"You can use this editor by right clicking on any book in calibre and " |
| 39 |
"selecting :guilabel:`Edit book`." |
| 40 |
msgstr "你可以通过在calibre里右键单击任意一本书--选择“编辑书籍”来进入编辑器" |
| 41 |
|
| 42 |
#: ../../../__w/calibre/calibre/manual/edit.rst:15 |
| 43 |
#: ../../../__w/calibre/calibre/manual/edit.rst:230 |
| 44 |
msgid "The Edit book tool" |
| 45 |
msgstr "书籍编辑工具" |
| 46 |
|
| 47 |
#: ../../../__w/calibre/calibre/manual/edit.rst:23 |
| 48 |
msgid "Contents" |
| 49 |
msgstr "目录" |
| 50 |
|
| 51 |
#: ../../../__w/calibre/calibre/manual/edit.rst:26 |
| 52 |
msgid "Basic workflow" |
| 53 |
msgstr "基本的工作流程" |
| 54 |
|
| 55 |
#: ../../../__w/calibre/calibre/manual/edit.rst:29 |
| 56 |
msgid "" |
| 57 |
"A video tour of the calibre E-book editor is available :website:`here " |
| 58 |
"<demo#tutorials>`." |
| 59 |
msgstr "calibre电子书编辑器的视频向导在 `此处 <demo#tutorials>`。" |
| 60 |
|
| 61 |
#: ../../../__w/calibre/calibre/manual/edit.rst:31 |
| 62 |
msgid "" |
| 63 |
"When you first open a book with the Edit book tool, you will be presented " |
| 64 |
"with a list of files on the left. These are the individual HTML files, " |
| 65 |
"stylesheets, images, etc. that make up the content of the book. Simply " |
| 66 |
"double click on a file to start editing it. Note that if you want to do " |
| 67 |
"anything more sophisticated than making a few small tweaks, you will need to" |
| 68 |
" know `HTML Tutorial <https://www.w3schools.com/Html/default.asp>`_ and `CSS" |
| 69 |
" Tutorial <https://www.w3schools.com/css/default.asp>`_." |
| 70 |
msgstr "当你首次使用“编辑书籍”工具打开一本书时,界面左侧会显示一个文件列表。这些文件包括构成图书内容的各个 HTML 文件、样式表、图片等。只需双击某个文件即可开始编辑。\n请注意,如果你想进行比简单修改更复杂的操作,则需要了解“HTML 教程 <https://www.w3schools.com/Html/default.asp>”和“CSS 教程 <https://www.w3schools.com/css/default.asp>”。" |
| 71 |
|
| 72 |
#: ../../../__w/calibre/calibre/manual/edit.rst:39 |
| 73 |
msgid "" |
| 74 |
"As you make changes to the HTML or CSS in the editor, the changes will be " |
| 75 |
"previewed, live, in the preview panel to the right. When you are happy with " |
| 76 |
"how the changes you have made look, click the :guilabel:`Save` button or use" |
| 77 |
" :guilabel:`File->Save` to save your changes into the e-book." |
| 78 |
msgstr "当您在编辑器中更改HTML或CSS时,更改将在右侧的预览面板中实时预览。如果您对所做更改的外观感到满意,请单击:guilabel:`保存`按钮或使用:guilabel:`文件->保存`将更改保存到电子书中。" |
| 79 |
|
| 80 |
#: ../../../__w/calibre/calibre/manual/edit.rst:44 |
| 81 |
msgid "" |
| 82 |
"One useful feature is :guilabel:`Checkpoints`. Before you embark on some " |
| 83 |
"ambitious set of edits, you can create a checkpoint. The checkpoint will " |
| 84 |
"preserve the current state of your book, then if in the future you decide " |
| 85 |
"you don't like the changes you have made, you can go back to the state when " |
| 86 |
"you created the checkpoint. To create a checkpoint, use " |
| 87 |
":guilabel:`Edit->Create checkpoint`. Checkpoints will also be automatically " |
| 88 |
"created for you whenever you run any automated tool like global search and " |
| 89 |
"replace. The checkpointing functionality is in addition to the normal " |
| 90 |
"undo/redo mechanism when editing individual files. Checkpoints are needed " |
| 91 |
"for when changes are spread over multiple files in the book." |
| 92 |
msgstr "一项有用的功能是“检查点”。 在开始进行一些雄心勃勃的编辑之前,您可以创建一个检查点。 检查点将保留图书的当前状态,如果将来您决定不喜欢所做的更改,则可以返回到创建检查点时的状态。 要创建检查点,请使用“编辑->创建检查点”。 每当您运行任何自动化工具时,例如全局搜索和替换,也会自动为您创建检查点。 检查点功能是编辑单个文件时正常撤消/重做机制之外的功能。 当更改分布在书中的多个文件时,需要检查点。" |
| 93 |
|
| 94 |
#: ../../../__w/calibre/calibre/manual/edit.rst:55 |
| 95 |
msgid "" |
| 96 |
"That is the basic work flow for editing books -- Open a file, make changes, " |
| 97 |
"preview and save. The rest of this manual will discuss the various tools and" |
| 98 |
" features present to allow you to perform specific tasks efficiently." |
| 99 |
msgstr "这是编辑图书的基本工作流程--打开文件、进行更改、预览和保存。本手册的其余部分将讨论现有的各种工具和功能,使您能够高效地执行特定任务。" |
| 100 |
|
| 101 |
#: ../../../__w/calibre/calibre/manual/edit.rst:60 |
| 102 |
msgid "The File browser" |
| 103 |
msgstr "文件浏览器" |
| 104 |
|
| 105 |
#: ../../../__w/calibre/calibre/manual/edit.rst:62 |
| 106 |
msgid "The File browser showing files in the book" |
| 107 |
msgstr "显示书中文件的文件浏览器" |
| 108 |
|
| 109 |
#: ../../../__w/calibre/calibre/manual/edit.rst:66 |
| 110 |
msgid "" |
| 111 |
"The :guilabel:`File browser` gives you an overview of the various files " |
| 112 |
"inside the book you are editing. The files are arranged by category, with " |
| 113 |
"text (HTML) files at the top, followed by stylesheet (CSS) files, images and" |
| 114 |
" so on. Simply double click on a file to start editing it. Editing is " |
| 115 |
"supported for HTML, CSS and image files. The order of text files is the same" |
| 116 |
" order that they would be displayed in, if you were reading the book. All " |
| 117 |
"other files are arranged alphabetically." |
| 118 |
msgstr "`文件浏览器`为您提供正在编辑的书本内各种文件的概览。文件按类别排列,文本(HTML)文件位于顶部,后面是样式表(CSS)文件、图像等。只需双击文件即可开始编辑。HTML、CSS和图像文件支持编辑。如果您正在阅读图书,则文本文件的顺序与它们的显示顺序相同。所有其他文件都按字母顺序排列。" |
| 119 |
|
| 120 |
#: ../../../__w/calibre/calibre/manual/edit.rst:74 |
| 121 |
msgid "" |
| 122 |
"By hovering your mouse over an entry, you can see its size, and also, at the" |
| 123 |
" bottom of the screen, the full path to the file inside the book. Note that " |
| 124 |
"files inside e-books are compressed, so the size of the final book is not " |
| 125 |
"the sum of the individual file sizes." |
| 126 |
msgstr "通过将鼠标悬停在条目上,您可以看到它的大小,还可以在屏幕底部看到书中文件的完整路径。请注意,电子书中的文件是压缩的,因此最终图书的大小不是单个文件大小的总和。" |
| 127 |
|
| 128 |
#: ../../../__w/calibre/calibre/manual/edit.rst:79 |
| 129 |
msgid "" |
| 130 |
"Many files have special meaning, in the book. These will typically have an " |
| 131 |
"icon next to their names, indicating the special meaning. For example, in " |
| 132 |
"the picture to the left, you can see that the files " |
| 133 |
":guilabel:`cover_image.jpg` and :guilabel:`titlepage.xhtml` have the icon of" |
| 134 |
" a cover next to them, this indicates they are the book cover image and " |
| 135 |
"titlepage. Similarly, the :guilabel:`content.opf` file has a metadata icon " |
| 136 |
"next to it, indicating the book metadata is present in it and the " |
| 137 |
":guilabel:`toc.ncx` file has a T icon next to it, indicating it is the Table" |
| 138 |
" of Contents." |
| 139 |
msgstr "在这本书中,许多文件都有特殊的意义。它们的名称旁边通常会有一个图标,表示特殊含义。例如,在左边的图片中,您可以看到文件`cover_image.jpg`和`title lepage.xhtml`旁边有封面图标,这表示它们是图书封面图片和标题页。同样,`content.opf`文件旁边有一个元数据图标,表示其中存在图书元数据,而`toc.ncx`文件旁边有一个T图标,表示它是目录。" |
| 140 |
|
| 141 |
#: ../../../__w/calibre/calibre/manual/edit.rst:88 |
| 142 |
msgid "" |
| 143 |
"You can perform many actions on individual files, by right clicking them." |
| 144 |
msgstr "通过右键单击单个文件,可以对它们执行许多操作。" |
| 145 |
|
| 146 |
#: ../../../__w/calibre/calibre/manual/edit.rst:91 |
| 147 |
msgid "Renaming files" |
| 148 |
msgstr "重命名文件" |
| 149 |
|
| 150 |
#: ../../../__w/calibre/calibre/manual/edit.rst:93 |
| 151 |
msgid "" |
| 152 |
"You can rename an individual file by right clicking it and selecting " |
| 153 |
":guilabel:`Rename`. Renaming a file automatically updates all links and " |
| 154 |
"references to it throughout the book. So all you have to do is provide the " |
| 155 |
"new name, calibre will take care of the rest." |
| 156 |
msgstr "您可以通过右键单击单个文件并选择:`Rename`来重命名该文件。重命名文件会自动更新整本书中对该文件的所有链接和引用。所以你要做的就是提供新的名字,其他的都会由Calibre来处理。" |
| 157 |
|
| 158 |
#: ../../../__w/calibre/calibre/manual/edit.rst:98 |
| 159 |
msgid "" |
| 160 |
"You can also bulk rename many files at once. This is useful if you want the " |
| 161 |
"files to have some simple name pattern. For example you might want to rename" |
| 162 |
" all the HTML files to have names Chapter-1.html, Chapter-2.html and so on. " |
| 163 |
"Select the files you want bulk renamed by holding down the :kbd:`Shift` or " |
| 164 |
":kbd:`Ctrl` key and clicking the files. Then right click and select " |
| 165 |
":guilabel:`Bulk rename`. Enter a prefix and what number you would like the " |
| 166 |
"automatic numbering to start at, click OK and you are done. The bulk rename " |
| 167 |
"dialog also lets you rename files by the order they appear in the book " |
| 168 |
"instead of the order you selected them in, useful, for instance to rename " |
| 169 |
"all images by the order they appear." |
| 170 |
msgstr "您还可以一次批量重命名多个文件。 如果您希望文件具有一些简单的名称模式,这非常有用。 例如,您可能想要将所有 HTML 文件重命名为 Chapter-1.html、Chapter-2.html 等。 按住“Shift”或“Ctrl”键并单击文件,选择要批量重命名的文件。 然后右键单击并选择“批量重命名”。 输入前缀以及您希望自动编号从哪个数字开始,单击“确定”即可完成。 批量重命名对话框还允许您按照文件在书中出现的顺序重命名文件,而不是您选择它们的顺序重命名文件,这很有用,例如按它们出现的顺序重命名所有图像。" |
| 171 |
|
| 172 |
#: ../../../__w/calibre/calibre/manual/edit.rst:109 |
| 173 |
msgid "" |
| 174 |
"Finally, you can bulk change the file extension for all selected files. " |
| 175 |
"Select multiple files, as above, and right click and choose " |
| 176 |
":guilabel:`Change the file extension for the selected files`." |
| 177 |
msgstr "最后,您可以批量更改所有选定文件的文件扩展名。如上选择多个文件,右键选择`更改所选文件的文件扩展名`。" |
| 178 |
|
| 179 |
#: ../../../__w/calibre/calibre/manual/edit.rst:114 |
| 180 |
msgid "Merging files" |
| 181 |
msgstr "合并文件" |
| 182 |
|
| 183 |
#: ../../../__w/calibre/calibre/manual/edit.rst:116 |
| 184 |
msgid "" |
| 185 |
"Sometimes, you may want to merge two HTML files or two CSS files together. " |
| 186 |
"It can sometimes be useful to have everything in a single file. Be wary, " |
| 187 |
"though, putting a lot of content into a single file will cause performance " |
| 188 |
"problems when viewing the book in a typical e-book reader." |
| 189 |
msgstr "有时,您可能希望将两个HTML文件或两个CSS文件合并在一起。有时将所有内容都放在一个文件中会很有用。不过要小心,在典型的电子书阅读器中查看图书时,将大量内容放入单个文件会导致性能问题。" |
| 190 |
|
| 191 |
#: ../../../__w/calibre/calibre/manual/edit.rst:121 |
| 192 |
msgid "" |
| 193 |
"To merge multiple files together, select them by holding the :kbd:`Ctrl` key" |
| 194 |
" and clicking on them (make sure you only select files of one type, either " |
| 195 |
"all HTML files or all CSS files and so on). Then right click and select " |
| 196 |
"merge. That's all, calibre will merge the files, automatically taking care " |
| 197 |
"of migrating all links and references to the merged files. Note that merging" |
| 198 |
" files can sometimes cause text styling to change, since the individual " |
| 199 |
"files could have used different stylesheets." |
| 200 |
msgstr "要将多个文件合并在一起,请按住“Ctrl”键并单击它们来选择它们(确保仅选择一种类型的文件,可以是所有 HTML 文件或所有 CSS 文件等)。 然后右键单击并选择合并。 就这样,calibre 将合并文件,自动迁移所有链接和对合并文件的引用。 请注意,合并文件有时会导致文本样式发生更改,因为各个文件可能使用不同的样式表。" |
| 201 |
|
| 202 |
#: ../../../__w/calibre/calibre/manual/edit.rst:129 |
| 203 |
msgid "" |
| 204 |
"You can also select text files and then drag and drop the text files onto " |
| 205 |
"another text file to merge the dropped text files into the target text file." |
| 206 |
msgstr "您还可以选择文本文件,然后将文本文件拖放到另一个文本文件上,以将拖放的文本文件合并到目标文本文件中。" |
| 207 |
|
| 208 |
#: ../../../__w/calibre/calibre/manual/edit.rst:133 |
| 209 |
msgid "Changing text file order" |
| 210 |
msgstr "更改文本文件顺序" |
| 211 |
|
| 212 |
#: ../../../__w/calibre/calibre/manual/edit.rst:135 |
| 213 |
msgid "" |
| 214 |
"You can re-arrange the order in which text (HTML) files are opened when " |
| 215 |
"reading the book by simply dragging and dropping them in the :guilabel:`File" |
| 216 |
" browser` or clicking on the file to move and then pressing the " |
| 217 |
":kbd:`Ctrl+Shift` modifiers with the :kbd:`Up`, :kbd:`Down`, :kbd:`Home` or " |
| 218 |
":kbd:`End` keys. For the technically inclined, this is called re-ordering " |
| 219 |
"the book spine." |
| 220 |
msgstr "您可以在阅读本书时重新排列文本(HTML)文件的打开顺序,只需将它们拖放到“文件浏览器”中,或者单击要移动的文件,然后按“Ctrl+Shift”修饰符即可 “向上”、“向下”、“Home”或“End”键。 对于技术性的人来说,这称为重新排序 书脊。" |
| 221 |
|
| 222 |
#: ../../../__w/calibre/calibre/manual/edit.rst:141 |
| 223 |
msgid "" |
| 224 |
"Note that you have to drop the items *between* other items, not on top of " |
| 225 |
"them, this can be a little fiddly until you get used to it. Dropping on top " |
| 226 |
"of another file will cause the files to be merged." |
| 227 |
msgstr "请注意,您必须将项目放在其他项目*之间*,而不是放在它们上面,这可能有点麻烦,直到您习惯为止。 放在另一个文件的顶部将导致文件被合并。" |
| 228 |
|
| 229 |
#: ../../../__w/calibre/calibre/manual/edit.rst:146 |
| 230 |
msgid "Marking the cover" |
| 231 |
msgstr "标记封面" |
| 232 |
|
| 233 |
#: ../../../__w/calibre/calibre/manual/edit.rst:148 |
| 234 |
msgid "" |
| 235 |
"E-books typically have a cover image. This image is indicated in the " |
| 236 |
":guilabel:`File browser` by the icon of a brown book next to the image name." |
| 237 |
" If you want to designate some other image as the cover, you can do so by " |
| 238 |
"right clicking on the file and choosing :guilabel:`Mark as cover`." |
| 239 |
msgstr "电子书通常都有封面图片。此图像在`文件浏览器`中由图像名称旁边的棕色书图标表示。如果要指定其他图像作为封面,可以通过右键单击该文件并选择`标记为封面‘来实现。" |
| 240 |
|
| 241 |
#: ../../../__w/calibre/calibre/manual/edit.rst:153 |
| 242 |
msgid "" |
| 243 |
"In addition, EPUB files have the concept of a *titlepage*. A title page is a" |
| 244 |
" HTML file that acts as the title page/cover for the book. You can mark an " |
| 245 |
"HTML file as the titlepage when editing EPUBs by right-clicking. Be careful " |
| 246 |
"that the file you mark contains only the cover information. If it contains " |
| 247 |
"other content, such as the first chapter, then that content will be lost if " |
| 248 |
"the user ever converts the EPUB file in calibre to another format. This is " |
| 249 |
"because when converting, calibre assumes that the marked title page contains" |
| 250 |
" only the cover and no other content." |
| 251 |
msgstr "此外,EPUB文件还具有*title page*的概念。标题页是充当图书标题页/封面的HTML文件。在编辑ePub时,您可以通过右键单击将HTML文件标记为标题页。请注意,您标记的文件仅包含封面信息。如果它包含其他内容,如第一章,则如果用户将Calibre格式的EPUB文件转换为另一种格式,则该内容将丢失。这是因为在转换时,Calibre假定标记的标题页只包含封面,不包含其他内容。" |
| 252 |
|
| 253 |
#: ../../../__w/calibre/calibre/manual/edit.rst:163 |
| 254 |
msgid "Deleting files" |
| 255 |
msgstr "删除文件" |
| 256 |
|
| 257 |
#: ../../../__w/calibre/calibre/manual/edit.rst:165 |
| 258 |
msgid "" |
| 259 |
"You can delete files by either right clicking on them or by selecting them " |
| 260 |
"and pressing the Delete key. Deleting a file removes all references to the " |
| 261 |
"file from the OPF file, saving you that chore. However, references in other " |
| 262 |
"places are not removed, you can use the Check Book tool to easily find and " |
| 263 |
"remove/replace them." |
| 264 |
msgstr "您可以通过右键单击文件或选择文件并按Delete键来删除文件。删除文件会从OPF文件中删除对该文件的所有引用,从而省去了这项工作。但是,其他位置的参照不会被删除,您可以使用Check Book工具轻松地查找和删除/替换它们。" |
| 265 |
|
| 266 |
#: ../../../__w/calibre/calibre/manual/edit.rst:172 |
| 267 |
msgid "Exporting files" |
| 268 |
msgstr "正在导出文件" |
| 269 |
|
| 270 |
#: ../../../__w/calibre/calibre/manual/edit.rst:174 |
| 271 |
msgid "" |
| 272 |
"You can export a file from inside the book to somewhere else on your " |
| 273 |
"computer. This is useful if you want to work on the file in isolation, with " |
| 274 |
"specialised tools. To do this, simply right click on the file and choose " |
| 275 |
":guilabel:`Export`." |
| 276 |
msgstr "您可以将文件从书内导出到计算机上的其他位置。如果您希望使用专门的工具单独处理文件,这将非常有用。要执行此操作,只需右键单击该文件并选择“导出”。" |
| 277 |
|
| 278 |
#: ../../../__w/calibre/calibre/manual/edit.rst:179 |
| 279 |
msgid "" |
| 280 |
"Once you are done working on the exported file, you can re-import it into " |
| 281 |
"the book, by right clicking on the file again and choosing " |
| 282 |
":guilabel:`Replace with file...` which will allow you to replace the file in" |
| 283 |
" the book with the previously exported file." |
| 284 |
msgstr "处理完导出的文件后,您可以将其重新导入到书中,方法是再次右键单击该文件,然后选择“替换为文件...”,这将允许您将书籍中的文件替换为以前导出的文件。" |
| 285 |
|
| 286 |
#: ../../../__w/calibre/calibre/manual/edit.rst:184 |
| 287 |
msgid "" |
| 288 |
"You can also copy files between multiple editor instances. Select the files " |
| 289 |
"you want to copy in the :guilabel:`File browser`, then right click and " |
| 290 |
"choose, :guilabel:`Copy selected files to another editor instance`. Then, in" |
| 291 |
" the other editor instance, right click in the :guilabel:`File browser` and " |
| 292 |
"choose :guilabel:`Paste file from other editor instance`." |
| 293 |
msgstr "您还可以在多个编辑器实例之间复制文件。在`文件浏览器`中选择要复制的文件,然后右键单击并选择、`将所选文件复制到另一个编辑器实例`。然后,在另一个编辑器实例中,右键单击`文件浏览器`并选择`从其他编辑器实例粘贴文件`。" |
| 294 |
|
| 295 |
#: ../../../__w/calibre/calibre/manual/edit.rst:191 |
| 296 |
msgid "Adding new images/fonts/etc. or creating new blank files" |
| 297 |
msgstr "增加新的图片/字体等或者创建新空文件" |
| 298 |
|
| 299 |
#: ../../../__w/calibre/calibre/manual/edit.rst:193 |
| 300 |
msgid "" |
| 301 |
"You can add a new image, font, stylesheet, etc. from your computer into the " |
| 302 |
"book by clicking :guilabel:`File->New file`. This lets you either import a " |
| 303 |
"file by clicking the :guilabel:`Import resource file` button or create a new" |
| 304 |
" blank HTML file or stylesheet by simply entering the file name into the box" |
| 305 |
" for the new file." |
| 306 |
msgstr "您可以通过单击“文件->新建文件”将计算机中的新图像、字体、样式表等添加到书本中。这允许您通过单击“导入资源文件”按钮导入文件,或者只需在新文件的框中输入文件名即可创建新的空白HTML文件或样式表。" |
| 307 |
|
| 308 |
#: ../../../__w/calibre/calibre/manual/edit.rst:198 |
| 309 |
msgid "" |
| 310 |
"You can also import multiple files into the book at once using File->Import " |
| 311 |
"files into book." |
| 312 |
msgstr "您还可以使用文件->将文件导入书本,一次将多个文件导入书本。" |
| 313 |
|
| 314 |
#: ../../../__w/calibre/calibre/manual/edit.rst:202 |
| 315 |
msgid "Replacing files" |
| 316 |
msgstr "替代文件" |
| 317 |
|
| 318 |
#: ../../../__w/calibre/calibre/manual/edit.rst:204 |
| 319 |
msgid "" |
| 320 |
"You can easily replace existing files in the book, by right clicking on the " |
| 321 |
"file and choosing replace. This will automatically update all links and " |
| 322 |
"references, in case the replacement file has a different name than the file " |
| 323 |
"being replaced." |
| 324 |
msgstr "通过右键单击文件并选择替换,您可以轻松地替换图书中的现有文件。这将自动更新所有链接和引用,以防替换文件的名称与要替换的文件不同。" |
| 325 |
|
| 326 |
#: ../../../__w/calibre/calibre/manual/edit.rst:210 |
| 327 |
msgid "Linking stylesheets to HTML files efficiently" |
| 328 |
msgstr "有效地将样式表链接到HTML文件" |
| 329 |
|
| 330 |
#: ../../../__w/calibre/calibre/manual/edit.rst:212 |
| 331 |
msgid "" |
| 332 |
"As a convenience, you can select multiple HTML files in the File browser, " |
| 333 |
"right click and choose Link stylesheets to have calibre automatically insert" |
| 334 |
" the <link> tags for those stylesheets into all the selected HTML files." |
| 335 |
msgstr "为了方便起见,您可以在文件浏览器中选择多个HTML文件,右键单击并选择链接样式表,以便Calibre自动将这些样式表的 <link> 标记插入到所有选定的HTML文件中。" |
| 336 |
|
| 337 |
#: ../../../__w/calibre/calibre/manual/edit.rst:222 |
| 338 |
msgid "Search & replace" |
| 339 |
msgstr "搜索并替换" |
| 340 |
|
| 341 |
#: ../../../__w/calibre/calibre/manual/edit.rst:224 |
| 342 |
msgid "" |
| 343 |
"Edit book has a very powerful search and replace interface that allows you " |
| 344 |
"to search and replace text in the current file, across all files and even in" |
| 345 |
" a marked region of the current file. You can search using a normal search " |
| 346 |
"or using regular expressions. To learn how to use regular expressions for " |
| 347 |
"advanced searching, see :ref:`regexptutorial`." |
| 348 |
msgstr "编辑书籍有一个非常强大的搜索和替换界面,允许您搜索和替换当前文件中的文本,跨所有文件,甚至在当前文件的标记区域中搜索和替换文本。您可以使用普通搜索或使用正则表达式进行搜索。要了解如何使用正则表达式进行高级搜索,请参阅`regexptutorial`。" |
| 349 |
|
| 350 |
#: ../../../__w/calibre/calibre/manual/edit.rst:234 |
| 351 |
msgid "" |
| 352 |
"Start the search and replace via the :guilabel:`Search->Find/replace` menu " |
| 353 |
"entry (you must be editing an HTML or CSS file)." |
| 354 |
msgstr "通过“搜索->查找/替换”菜单项开始搜索和替换(您必须编辑HTML或CSS文件)。" |
| 355 |
|
| 356 |
#: ../../../__w/calibre/calibre/manual/edit.rst:237 |
| 357 |
msgid "" |
| 358 |
"Type the text you want to find into the Find box and its replacement into " |
| 359 |
"the Replace box. You can the click the appropriate buttons to Find the next " |
| 360 |
"match, replace the current match and replace all matches." |
| 361 |
msgstr "在“查找”框中键入要查找的文本,并在“替换”框中替换它。您可以单击相应的按钮查找下一个匹配项、替换当前匹配项和替换所有匹配项。" |
| 362 |
|
| 363 |
#: ../../../__w/calibre/calibre/manual/edit.rst:241 |
| 364 |
msgid "" |
| 365 |
"Using the drop downs at the bottom of the box, you can have the search " |
| 366 |
"operate over the current file, all text files, all style files or all files." |
| 367 |
" You can also choose the search mode to be a normal (string) search or a " |
| 368 |
"regular expression search." |
| 369 |
msgstr "使用框底部的下拉列表,您可以对当前文件、所有文本文件、所有样式文件或所有文件进行搜索。您还可以将搜索模式选择为普通(字符串)搜索或正则表达式搜索。" |
| 370 |
|
| 371 |
#: ../../../__w/calibre/calibre/manual/edit.rst:246 |
| 372 |
msgid "" |
| 373 |
"You can count all the matches for a search expression via " |
| 374 |
":guilabel:`Search->Count all`. The count will run over whatever " |
| 375 |
"files/regions you have selected in the dropdown box." |
| 376 |
msgstr "您可以通过“搜索->全部计数”统计搜索表达式的所有匹配项。计数将遍历您在下拉框中选择的任何文件/区域。" |
| 377 |
|
| 378 |
#: ../../../__w/calibre/calibre/manual/edit.rst:250 |
| 379 |
msgid "" |
| 380 |
"You can also go to a specific line in the currently open editor via " |
| 381 |
":guilabel:`Search->Go to line`." |
| 382 |
msgstr "您还可以通过“搜索->转到行”转到当前打开的编辑器中的特定行。" |
| 383 |
|
| 384 |
#: ../../../__w/calibre/calibre/manual/edit.rst:254 |
| 385 |
msgid "" |
| 386 |
"Remember, to harness the full power of search and replace, you will need to " |
| 387 |
"use regular expressions. See :ref:`regexptutorial`." |
| 388 |
msgstr "请记住,要充分利用搜索和替换的功能,您将需要使用正则表达式。 请参阅“正则表达式教程”。" |
| 389 |
|
| 390 |
#: ../../../__w/calibre/calibre/manual/edit.rst:258 |
| 391 |
msgid "Saved searches" |
| 392 |
msgstr "保存的查找" |
| 393 |
|
| 394 |
#: ../../../__w/calibre/calibre/manual/edit.rst:260 |
| 395 |
msgid "" |
| 396 |
"You can save frequently used search/replace expressions (including function " |
| 397 |
"mode expressions) and reuse them multiple times. To save a search simply " |
| 398 |
"right click in the Find box and select :guilabel:`Save current search`." |
| 399 |
msgstr "您可以保存常用的搜索/替换表达式(包括函数模式表达式)并多次重复使用。 要保存搜索,只需右键单击“查找”框并选择“保存当前搜索”。" |
| 400 |
|
| 401 |
#: ../../../__w/calibre/calibre/manual/edit.rst:264 |
| 402 |
msgid "" |
| 403 |
"You can bring up the saved searches via :guilabel:`Search->Saved searches`. " |
| 404 |
"This will present you with a list of search and replace expressions that you" |
| 405 |
" can apply. You can even select multiple entries in the list by holding down" |
| 406 |
" the :kbd:`Ctrl` key while clicking so as to run multiple search and replace" |
| 407 |
" expressions in a single operation." |
| 408 |
msgstr "您可以通过“搜索->保存的搜索”调出保存的搜索。 这将为您提供可以应用的搜索和替换表达式的列表。 您甚至可以通过按住“Ctrl”键并单击来选择列表中的多个条目,以便在单个操作中运行多个搜索和替换表达式。" |
| 409 |
|
| 410 |
#: ../../../__w/calibre/calibre/manual/edit.rst:271 |
| 411 |
msgid "Function mode" |
| 412 |
msgstr "功能模式" |
| 413 |
|
| 414 |
#: ../../../__w/calibre/calibre/manual/edit.rst:273 |
| 415 |
msgid "" |
| 416 |
"Function mode allows you to write arbitrarily powerful Python functions that" |
| 417 |
" are run on every Find/replace. You can do pretty much any text manipulation" |
| 418 |
" you like in function mode. For more information, see :doc:`function_mode`." |
| 419 |
msgstr "函数模式允许您编写在每个查找/替换上运行的任意强大的 Python 函数。 您可以在功能模式下进行几乎任何您喜欢的文本操作。 有关更多信息,请参阅“function_mode”。" |
| 420 |
|
| 421 |
#: ../../../__w/calibre/calibre/manual/edit.rst:278 |
| 422 |
msgid "Search ignoring HTML tags" |
| 423 |
msgstr "搜索时忽略 HTML 标签" |
| 424 |
|
| 425 |
#: ../../../__w/calibre/calibre/manual/edit.rst:280 |
| 426 |
msgid "" |
| 427 |
"There is also a dedicated tool for searching for text, ignoring any HTML " |
| 428 |
"tags in between. For example, if the book has the HTML ``Emphasis on a " |
| 429 |
"<i>word</i>.`` you can search for ``on a word`` and it will be found even " |
| 430 |
"though there is an ``<i>`` tag in the middle. Use this tool via the " |
| 431 |
":guilabel:`Search->Search ignoring HTML markup` menu item." |
| 432 |
msgstr "还有一个专门的工具用于搜索文本,忽略之间的任何 HTML 标签。 例如,如果这本书有 HTML“Empahisis on a <i>word</i>.”,您可以搜索“on a word”,即使中间有“<i>”标签,也会找到它。 通过“搜索->搜索忽略 HTML 标记”菜单项使用此工具。" |
| 433 |
|
| 434 |
#: ../../../__w/calibre/calibre/manual/edit.rst:287 |
| 435 |
msgid "Automated tools" |
| 436 |
msgstr "自动化工具" |
| 437 |
|
| 438 |
#: ../../../__w/calibre/calibre/manual/edit.rst:289 |
| 439 |
msgid "" |
| 440 |
"Edit book has various tools to help with common tasks. These are accessed " |
| 441 |
"via the :guilabel:`Tools` menu." |
| 442 |
msgstr "Edit book 有各种工具可以帮助完成常见任务。 这些可以通过“工具”菜单访问。" |
| 443 |
|
| 444 |
#: ../../../__w/calibre/calibre/manual/edit.rst:293 |
| 445 |
msgid "Editing the Table of Contents" |
| 446 |
msgstr "正在编辑目录" |
| 447 |
|
| 448 |
#: ../../../__w/calibre/calibre/manual/edit.rst:295 |
| 449 |
msgid "" |
| 450 |
"There is a dedicated tool to ease editing of the Table of Contents. Launch " |
| 451 |
"it with :guilabel:`Tools->Table of Contents->Edit Table of Contents`." |
| 452 |
msgstr "有一个专用工具可以轻松编辑目录。 使用“工具->目录->编辑目录”启动它。" |
| 453 |
|
| 454 |
#: ../../../__w/calibre/calibre/manual/edit.rst:298 |
| 455 |
msgid "The Edit Table of Contents tool" |
| 456 |
msgstr "目录编辑工具" |
| 457 |
|
| 458 |
#: ../../../__w/calibre/calibre/manual/edit.rst:302 |
| 459 |
msgid "" |
| 460 |
"The Edit Table of Contents tool shows you the current Table of Contents (if " |
| 461 |
"any) on the left. Simply double click on any entry to change its text. You " |
| 462 |
"can also re-arrange entries by drag and drop or by using the buttons to the " |
| 463 |
"right." |
| 464 |
msgstr "编辑目录工具在左侧显示当前目录(如果有)。 只需双击任何条目即可更改其文本。 您还可以通过拖放或使用右侧的按钮来重新排列条目。" |
| 465 |
|
| 466 |
#: ../../../__w/calibre/calibre/manual/edit.rst:306 |
| 467 |
msgid "" |
| 468 |
"For books that do not have a pre-existing Table of Contents, the tool gives " |
| 469 |
"you various options to auto-generate a Table of Contents from the text. You " |
| 470 |
"can generate from the headings in the document, from links, from individual " |
| 471 |
"files and so on." |
| 472 |
msgstr "对于没有预先存在目录的书籍,该工具为您提供了各种选项来从文本自动生成目录。 您可以从文档中的标题、链接、单个文件等生成。" |
| 473 |
|
| 474 |
#: ../../../__w/calibre/calibre/manual/edit.rst:311 |
| 475 |
msgid "" |
| 476 |
"You can edit individual entries by clicking on them and then clicking the " |
| 477 |
":guilabel:`Change the location this entry points to` button. This will open " |
| 478 |
"up a mini-preview of the book, simply move the mouse cursor over the book " |
| 479 |
"view panel, and click where you want the entry to point to. A thick green " |
| 480 |
"line will show you the location. Click OK once you are happy with the " |
| 481 |
"location." |
| 482 |
msgstr "您可以通过单击单个条目,然后单击“更改此条目指向的位置”按钮来编辑各个条目。 这将打开书籍的迷你预览,只需将鼠标光标移到书籍视图面板上,然后单击您希望条目指向的位置即可。 一条粗绿线将向您显示该位置。 对位置感到满意后,单击“确定”。" |
| 483 |
|
| 484 |
#: ../../../__w/calibre/calibre/manual/edit.rst:317 |
| 485 |
msgid "" |
| 486 |
"The Edit Table of Contents tool, how to change the location an entry points " |
| 487 |
"to" |
| 488 |
msgstr "编辑目录工具,如何更改条目指向的位置" |
| 489 |
|
| 490 |
#: ../../../__w/calibre/calibre/manual/edit.rst:322 |
| 491 |
msgid "Checking the book" |
| 492 |
msgstr "正在检查书籍" |
| 493 |
|
| 494 |
#: ../../../__w/calibre/calibre/manual/edit.rst:324 |
| 495 |
msgid "" |
| 496 |
"The :guilabel:`Check book` tool searches your book for problems that could " |
| 497 |
"prevent it working as intended on actual reader devices. Activate it via " |
| 498 |
":guilabel:`Tools->Check book`." |
| 499 |
msgstr "“检查图书”工具会搜索您的图书以查找可能妨碍其在实际阅读器设备上正常运行的问题。 通过“工具->支票簿”激活它。" |
| 500 |
|
| 501 |
#: ../../../__w/calibre/calibre/manual/edit.rst:328 |
| 502 |
msgid "The Check book tool" |
| 503 |
msgstr "书籍检查工具" |
| 504 |
|
| 505 |
#: ../../../__w/calibre/calibre/manual/edit.rst:332 |
| 506 |
msgid "" |
| 507 |
"Any problems found are reported in a nice, easy to use list. Clicking any " |
| 508 |
"entry in the list shows you some help about that error as well as giving you" |
| 509 |
" the option to auto-fix that error, if the error can be fixed automatically." |
| 510 |
" You can also double click the error to open the location of the error in an" |
| 511 |
" editor, so you can fix it yourself." |
| 512 |
msgstr "发现的任何问题都会报告在一个漂亮且易于使用的列表中。 单击列表中的任何条目会显示有关该错误的一些帮助,并为您提供自动修复该错误的选项,如果该错误可以自动修复。 您还可以双击错误以在编辑器中打开错误位置,以便您可以自行修复。" |
| 513 |
|
| 514 |
#: ../../../__w/calibre/calibre/manual/edit.rst:339 |
| 515 |
msgid "Some of the checks performed are:" |
| 516 |
msgstr "执行的一些检查包括:" |
| 517 |
|
| 518 |
#: ../../../__w/calibre/calibre/manual/edit.rst:341 |
| 519 |
msgid "" |
| 520 |
"Malformed HTML markup. Any HTML markup that does not parse as well-formed " |
| 521 |
"XML is reported. Correcting it will ensure that your markup works as " |
| 522 |
"intended in all contexts. calibre can also auto-fix these errors, but auto-" |
| 523 |
"fixing can sometimes have unexpected effects, so use with care. As always, a" |
| 524 |
" checkpoint is created before auto-fixing so you can easily revert all " |
| 525 |
"changes. Auto-fixing works by parsing the markup using the HTML5 algorithm, " |
| 526 |
"which is highly fault tolerant and then converting to well formed XML." |
| 527 |
msgstr "HTML 标记格式错误。 任何不能解析为格式良好的 XML 的 HTML 标记都会被报告。 纠正它将确保您的标记在所有上下文中都能按预期工作。 calibre 还可以自动修复这些错误,但自动修复有时会产生意想不到的效果,因此请谨慎使用。 与往常一样,在自动修复之前会创建一个检查点,以便您可以轻松恢复所有更改。 自动修复的工作原理是使用 HTML5 算法解析标记,该算法具有高度容错性,然后转换为格式良好的 XML。" |
| 528 |
|
| 529 |
#: ../../../__w/calibre/calibre/manual/edit.rst:350 |
| 530 |
msgid "" |
| 531 |
"Malformed or unknown CSS styles. Any CSS that is not valid or that has " |
| 532 |
"properties not defined in the CSS 2.1 standard (plus a few from CSS 3) are " |
| 533 |
"reported. CSS is checked in all stylesheets, inline style attributes and " |
| 534 |
"<style> tags in HTML files." |
| 535 |
msgstr "CSS 样式格式错误或未知。 任何无效的 CSS 或具有 CSS 2.1 标准(以及 CSS 3 中的一些)中未定义的属性的 CSS 都会被报告。 所有样式表、内联样式属性和 HTML 文件中的<style> 标签均检查 CSS。" |
| 536 |
|
| 537 |
#: ../../../__w/calibre/calibre/manual/edit.rst:355 |
| 538 |
msgid "" |
| 539 |
"Broken links. Links that point to files inside the book that are missing are" |
| 540 |
" reported." |
| 541 |
msgstr "损坏的链接。 报告指向书中丢失的文件的链接。" |
| 542 |
|
| 543 |
#: ../../../__w/calibre/calibre/manual/edit.rst:358 |
| 544 |
msgid "" |
| 545 |
"Unreferenced files. Files in the book that are not referenced by any other " |
| 546 |
"file or are not in the spine are reported." |
| 547 |
msgstr "未引用的文件。 报告书中未被任何其他文件引用或不在 书脊中的文件。" |
| 548 |
|
| 549 |
#: ../../../__w/calibre/calibre/manual/edit.rst:361 |
| 550 |
msgid "" |
| 551 |
"Various common problems in OPF files such as duplicate spine or manifest " |
| 552 |
"items, broken idrefs or meta cover tags, missing required sections and so " |
| 553 |
"on." |
| 554 |
msgstr "OPF 文件中的各种常见问题,例如重复的 书脊或清单项、损坏的 idref 或元覆盖标签、缺少必需的部分等。" |
| 555 |
|
| 556 |
#: ../../../__w/calibre/calibre/manual/edit.rst:365 |
| 557 |
msgid "" |
| 558 |
"Various compatibility checks for known problems that can cause the book to " |
| 559 |
"malfunction on reader devices." |
| 560 |
msgstr "针对可能导致图书在阅读器设备上出现故障的已知问题进行各种兼容性检查。" |
| 561 |
|
| 562 |
#: ../../../__w/calibre/calibre/manual/edit.rst:369 |
| 563 |
msgid "Adding a cover" |
| 564 |
msgstr "正在添加封面" |
| 565 |
|
| 566 |
#: ../../../__w/calibre/calibre/manual/edit.rst:371 |
| 567 |
msgid "" |
| 568 |
"You can easily add a cover to the book via :guilabel:`Tools->Add cover`. " |
| 569 |
"This allows you to either choose an existing image in the book as the cover " |
| 570 |
"or import a new image into the book and make it the cover. When editing EPUB" |
| 571 |
" files, the HTML wrapper for the cover is automatically generated. If an " |
| 572 |
"existing cover in the book is found, it is replaced. The tool also " |
| 573 |
"automatically takes care of correctly marking the cover files as covers in " |
| 574 |
"the OPF." |
| 575 |
msgstr "您可以通过“工具->添加封面”轻松为书籍添加封面。 这允许您选择书中的现有图像作为封面,或将新图像导入书中并将其设为封面。 编辑 EPUB 文件时,会自动生成封面的 HTML 包装器。 如果在书中找到现有封面,则将其替换。 该工具还会自动将封面文件正确标记为 OPF 中的封面。" |
| 576 |
|
| 577 |
#: ../../../__w/calibre/calibre/manual/edit.rst:380 |
| 578 |
msgid "Embedding referenced fonts" |
| 579 |
msgstr "嵌入使用到的字体" |
| 580 |
|
| 581 |
#: ../../../__w/calibre/calibre/manual/edit.rst:382 |
| 582 |
msgid "" |
| 583 |
"Accessed via :guilabel:`Tools->Embed reference fonts`, this tool finds all " |
| 584 |
"fonts referenced in the book and if they are not already embedded, searches " |
| 585 |
"your computer for them and embeds them into the book, if found. Please make " |
| 586 |
"sure that you have the necessary copyrights for embedding commercially " |
| 587 |
"licensed fonts, before doing this." |
| 588 |
msgstr "通过“工具->嵌入参考字体”访问,该工具会查找书中引用的所有字体,如果尚未嵌入,则会在您的计算机中搜索它们,如果找到,并将其嵌入到书中。 在执行此操作之前,请确保您拥有嵌入商业许可字体所需的版权。" |
| 589 |
|
| 590 |
#: ../../../__w/calibre/calibre/manual/edit.rst:389 |
| 591 |
msgid "Subsetting embedded fonts" |
| 592 |
msgstr "子集化嵌入字体" |
| 593 |
|
| 594 |
#: ../../../__w/calibre/calibre/manual/edit.rst:391 |
| 595 |
msgid "" |
| 596 |
"Accessed via :guilabel:`Tools->Subset embedded fonts`, this tool reduces all" |
| 597 |
" the fonts in the book to only contain glyphs for the text actually present " |
| 598 |
"in the book. This commonly reduces the size of the font files by ~ 50%. " |
| 599 |
"However, be aware that once the fonts are subset, if you add new text whose " |
| 600 |
"characters are not previously present in the subset font, the font will not " |
| 601 |
"work for the new text. So do this only as the last step in your workflow." |
| 602 |
msgstr "通过“工具->子集嵌入字体”访问,该工具将书中的所有字体减少到仅包含书中实际存在的文本的字形。 这通常会将字体文件的大小减少约 50%。 但是,请注意,一旦字体成为子集,如果您添加的新文本的字符以前不存在于子集字体中,则该字体将不适用于新文本。 因此,仅将此作为工作流程的最后一步。" |
| 603 |
|
| 604 |
#: ../../../__w/calibre/calibre/manual/edit.rst:399 |
| 605 |
msgid "Smartening punctuation" |
| 606 |
msgstr "规范标点" |
| 607 |
|
| 608 |
#: ../../../__w/calibre/calibre/manual/edit.rst:401 |
| 609 |
msgid "" |
| 610 |
"Convert plain text dashes, ellipsis, quotes, multiple hyphens, etc. into " |
| 611 |
"their typographically correct equivalents. Note that the algorithm can " |
| 612 |
"sometimes generate incorrect results, especially when single quotes at the " |
| 613 |
"start of contractions are involved. Accessed via :guilabel:`Tools->Smarten " |
| 614 |
"punctuation`." |
| 615 |
msgstr "将纯文本破折号、省略号、引号、多个连字符等转换为印刷正确的等效内容。 请注意,该算法有时会生成不正确的结果,尤其是在缩写开头涉及单引号时。 通过“工具->智能标点符号”访问。" |
| 616 |
|
| 617 |
#: ../../../__w/calibre/calibre/manual/edit.rst:408 |
| 618 |
msgid "Transforming CSS properties" |
| 619 |
msgstr "转换 CSS 属性" |
| 620 |
|
| 621 |
#: ../../../__w/calibre/calibre/manual/edit.rst:410 |
| 622 |
msgid "" |
| 623 |
"Create rules to transform the styling of the book. For example, create a " |
| 624 |
"rule to convert all red text to green or to double the font size of all text" |
| 625 |
" in the book or make text of a certain font family italic, etc." |
| 626 |
msgstr "创建规则来改变书籍的样式。 例如,创建一条规则将所有红色文本转换为绿色,或者将书中所有文本的字体大小加倍,或者将特定字体系列的文本设置为斜体等。" |
| 627 |
|
| 628 |
#: ../../../__w/calibre/calibre/manual/edit.rst:414 |
| 629 |
msgid "" |
| 630 |
"Creating the rules is simple, the rules follow a natural language format, " |
| 631 |
"that looks like:" |
| 632 |
msgstr "创建规则很简单,规则遵循自然语言格式,如下所示:" |
| 633 |
|
| 634 |
#: ../../../__w/calibre/calibre/manual/edit.rst:417 |
| 635 |
msgid "If the property *color* is *red* *change* it to *green*" |
| 636 |
msgstr "如果属性*颜色*是*红色*,将其*更改*为*绿色*" |
| 637 |
|
| 638 |
#: ../../../__w/calibre/calibre/manual/edit.rst:418 |
| 639 |
msgid "If the property *font-size* is *any value* *multiply* the value by *2*" |
| 640 |
msgstr "如果属性 *font-size* 是 *任何值* *将该值乘以 *2*" |
| 641 |
|
| 642 |
#: ../../../__w/calibre/calibre/manual/edit.rst:420 |
| 643 |
msgid "Accessed via :guilabel:`Tools->Transform styles`." |
| 644 |
msgstr "通过“工具->变换样式”访问。" |
| 645 |
|
| 646 |
#: ../../../__w/calibre/calibre/manual/edit.rst:423 |
| 647 |
msgid "Removing unused CSS rules" |
| 648 |
msgstr "移除无用的 CSS 规则" |
| 649 |
|
| 650 |
#: ../../../__w/calibre/calibre/manual/edit.rst:425 |
| 651 |
msgid "" |
| 652 |
"Remove all unused CSS rules from stylesheets and <style> tags. Some books " |
| 653 |
"created from production templates can have a large number of extra CSS rules" |
| 654 |
" that don't match any actual content. These extra rules can slow down " |
| 655 |
"readers that need to process them all. Accessed via :guilabel:`Tools->Remove" |
| 656 |
" unused CSS`." |
| 657 |
msgstr "从样式表和 <style> 标签中删除所有未使用的 CSS 规则。 一些从生产模板创建的书籍可能具有大量与任何实际内容不匹配的额外 CSS 规则。 这些额外的规则可能会减慢需要处理所有规则的读者的速度。 通过“工具->删除未使用的 CSS”访问。" |
| 658 |
|
| 659 |
#: ../../../__w/calibre/calibre/manual/edit.rst:432 |
| 660 |
msgid "Fixing HTML" |
| 661 |
msgstr "正在修正HTML" |
| 662 |
|
| 663 |
#: ../../../__w/calibre/calibre/manual/edit.rst:434 |
| 664 |
msgid "" |
| 665 |
"This tool simply converts HTML that cannot be parsed as XML into well-formed" |
| 666 |
" XML. It is very common in e-books to have non-well-formed XML, so this tool" |
| 667 |
" simply automates the process of fixing such HTML. The tool works by parsing" |
| 668 |
" the HTML using the HTML5 algorithm (the algorithm used in all modern " |
| 669 |
"browsers) and then converting the result into XML. Be aware that auto-fixing" |
| 670 |
" can sometimes have counter-intuitive results. If you prefer, you can use " |
| 671 |
"the Check Book tool discussed above to find and manually correct problems in" |
| 672 |
" the HTML. Accessed via :guilabel:`Tools->Fix HTML`." |
| 673 |
msgstr "该工具只是将无法解析为 XML 的 HTML 转换为格式良好的 XML。 在电子书中,格式不正确的 XML 很常见,因此该工具只是自动执行修复此类 HTML 的过程。 该工具的工作原理是使用 HTML5 算法(所有现代浏览器中使用的算法)解析 HTML,然后将结果转换为 XML。 请注意,自动修复有时会产生违反直觉的结果。 如果您愿意,可以使用上面讨论的 Check Book 工具来查找并手动更正 HTML 中的问题。 通过“工具->修复 HTML”访问。" |
| 674 |
|
| 675 |
#: ../../../__w/calibre/calibre/manual/edit.rst:444 |
| 676 |
msgid "Beautifying files" |
| 677 |
msgstr "美化文件" |
| 678 |
|
| 679 |
#: ../../../__w/calibre/calibre/manual/edit.rst:446 |
| 680 |
msgid "" |
| 681 |
"This tool is used to auto-format all HTML and CSS files so that they \"look " |
| 682 |
"pretty\". The code is auto-indented so that it lines up nicely, blank lines " |
| 683 |
"are inserted where appropriate and so on. Note that beautifying also auto-" |
| 684 |
"fixes broken HTML/CSS. Therefore, if you don't want any auto-fixing to be " |
| 685 |
"performed, first use the Check Book tool to correct all problems and only " |
| 686 |
"then run beautify. Accessed via :guilabel:`Tools->Beautify all files`." |
| 687 |
msgstr "该工具用于自动格式化所有 HTML 和 CSS 文件,使它们“看起来很漂亮”。 代码会自动缩进,以便很好地排列,在适当的位置插入空行等等。 请注意,美化还会自动修复损坏的 HTML/CSS。 因此,如果您不想执行任何自动修复,请先使用检查簿工具修复所有问题,然后再运行美化。 通过“工具->美化所有文件”访问。" |
| 688 |
|
| 689 |
#: ../../../__w/calibre/calibre/manual/edit.rst:454 |
| 690 |
msgid "" |
| 691 |
"In HTML any text can have significant whitespace, via the CSS white-space " |
| 692 |
"directive. Therefore, beautification could potentially change the rendering " |
| 693 |
"of the HTML. To avoid this as far as possible, the beautify algorithm only " |
| 694 |
"beautifies block level tags that contain other block level tags. So, for " |
| 695 |
"example, text inside a <p> tag will not have its whitespace changed. But a " |
| 696 |
"<body> tag that contains only other <p> and <div> tags will be beautified. " |
| 697 |
"This can sometimes mean that a particular file will not be affected by " |
| 698 |
"beautify as it has no suitable block level tags. In such cases you can try " |
| 699 |
"different beautification tools, that are less careful, for example: `HTML " |
| 700 |
"Tidy <https://infohound.net/tidy/>`_." |
| 701 |
msgstr "在 HTML 中,通过 CSS 空白指令,任何文本都可以具有显着的空白。 因此,美化可能会改变 HTML 的呈现。 为了尽可能避免这种情况,美化算法仅美化包含其他块级标签的块级标签。 因此,例如,<p> 标记内的文本不会更改其空格。 但是只包含其他<p>和 <div> 标签的<body>标签将会被美化。 这有时意味着特定文件不会受到美化的影响,因为它没有合适的块级标签。 在这种情况下,您可以尝试不同的美化工具,这些工具不太仔细,例如:`HTML Tidy <https://infohound.net/tidy/>`_。" |
| 702 |
|
| 703 |
#: ../../../__w/calibre/calibre/manual/edit.rst:467 |
| 704 |
msgid "Inserting an inline Table of Contents" |
| 705 |
msgstr "插入内联目录" |
| 706 |
|
| 707 |
#: ../../../__w/calibre/calibre/manual/edit.rst:469 |
| 708 |
msgid "" |
| 709 |
"Normally in e-books, the Table of Contents is separate from the main text " |
| 710 |
"and is typically accessed via a special Table of Contents button/menu in the" |
| 711 |
" e-book reading device. You can also have calibre automatically generate an " |
| 712 |
"*inline* Table of Contents that becomes part of the text of the book. It is " |
| 713 |
"generated based on the currently defined Table of Contents." |
| 714 |
msgstr "通常在电子书中,目录与正文是分开的,并且通常通过电子书阅读设备中的特殊目录按钮/菜单来访问。 您还可以让 calibre 自动生成*内联*目录,该目录成为书籍文本的一部分。 它是根据当前定义的目录生成的。" |
| 715 |
|
| 716 |
#: ../../../__w/calibre/calibre/manual/edit.rst:475 |
| 717 |
msgid "" |
| 718 |
"If you use this tool multiple times, each invocation will cause the " |
| 719 |
"previously created inline Table of Contents to be replaced. The tool can be " |
| 720 |
"accessed via :guilabel:`Tools->Table of Contents->Insert inline Table of " |
| 721 |
"Contents`." |
| 722 |
msgstr "如果多次使用此工具,每次调用都会导致先前创建的内联目录被替换。 可以通过“工具->目录->插入内联目录”访问该工具。" |
| 723 |
|
| 724 |
#: ../../../__w/calibre/calibre/manual/edit.rst:480 |
| 725 |
msgid "Setting Semantics" |
| 726 |
msgstr "正在设置语义" |
| 727 |
|
| 728 |
#: ../../../__w/calibre/calibre/manual/edit.rst:482 |
| 729 |
msgid "" |
| 730 |
"This tool is used to set *semantics* in EPUB files. Semantics are simply, " |
| 731 |
"links in the OPF file that identify certain locations in the book as having " |
| 732 |
"special meaning. You can use them to identify the foreword, dedication, " |
| 733 |
"cover, table of contents, etc. Simply choose the type of semantic " |
| 734 |
"information you want to specify and then select the location in the book the" |
| 735 |
" link should point to. This tool can be accessed via :guilabel:`Tools->Set " |
| 736 |
"semantics`." |
| 737 |
msgstr "该工具用于设置 EPUB 文件中的*语义*。 语义很简单,就是 OPF 文件中的链接,用于将书中的某些位置标识为具有特殊含义。 您可以使用它们来识别前言、奉献、封面、目录等。只需选择要指定的语义信息类型,然后选择链接应指向的书中位置。 可以通过“工具->设置语义”访问该工具。" |
| 738 |
|
| 739 |
#: ../../../__w/calibre/calibre/manual/edit.rst:490 |
| 740 |
msgid "Filtering style information" |
| 741 |
msgstr "过滤样式信息" |
| 742 |
|
| 743 |
#: ../../../__w/calibre/calibre/manual/edit.rst:492 |
| 744 |
msgid "" |
| 745 |
"This tool can be used to easily remove specified CSS style properties from " |
| 746 |
"the entire book. You can tell it what properties you want removed, for " |
| 747 |
"example, ``color, background-color, line-height`` and it will remove them " |
| 748 |
"from everywhere they occur --- stylesheets, ``<style>`` tags and inline " |
| 749 |
"``style`` attributes. After removing the style information, a summary of all" |
| 750 |
" the changes made is displayed so you can see exactly what was changed. The " |
| 751 |
"tool can be accessed via :guilabel:`Tools->Filter style information`." |
| 752 |
msgstr "该工具可用于轻松地从整本书中删除指定的 CSS 样式属性。 你可以告诉它你想要删除哪些属性,例如“颜色、背景颜色、行高”,它会从它们出现的任何地方删除它们——样式表、“<style>”标签和内联“ style`` 属性。 删除样式信息后,将显示所有所做更改的摘要,以便您可以准确地看到更改的内容。 可以通过“工具->过滤样式信息”访问该工具。" |
| 753 |
|
| 754 |
#: ../../../__w/calibre/calibre/manual/edit.rst:502 |
| 755 |
msgid "Upgrading the book's internals" |
| 756 |
msgstr "升级本书的内部结构" |
| 757 |
|
| 758 |
#: ../../../__w/calibre/calibre/manual/edit.rst:504 |
| 759 |
msgid "" |
| 760 |
"This tool can be used to upgrade the book's internals, if possible. For " |
| 761 |
"instance it will upgrade EPUB 2 books to EPUB 3 books. The tool can be " |
| 762 |
"accessed via :guilabel:`Upgrade book internals`." |
| 763 |
msgstr "如果可能的话,该工具可用于升级本书的内部结构。 例如,它将 EPUB 2 图书升级为 EPUB 3 图书。 该工具可以通过“升级图书内部结构”来访问。" |
| 764 |
|
| 765 |
#: ../../../__w/calibre/calibre/manual/edit.rst:511 |
| 766 |
msgid "Checkpoints" |
| 767 |
msgstr "还原点" |
| 768 |
|
| 769 |
#: ../../../__w/calibre/calibre/manual/edit.rst:513 |
| 770 |
msgid "" |
| 771 |
":guilabel:`Checkpoints` are a way to mark the current state of the book as " |
| 772 |
"\"special\". You can then go on to do whatever changes you want to the book " |
| 773 |
"and if you don't like the results, return to the checkpointed state. " |
| 774 |
"Checkpoints are automatically created every time you run any of the " |
| 775 |
"automated tools described in the previous section." |
| 776 |
msgstr "“检查点”是一种将书籍当前状态标记为“特殊”的方法。 然后,您可以继续对本书进行任何您想要的更改,如果您不喜欢结果,请返回到检查点状态。 每次运行上一节中描述的任何自动化工具时,都会自动创建检查点。" |
| 777 |
|
| 778 |
#: ../../../__w/calibre/calibre/manual/edit.rst:519 |
| 779 |
msgid "" |
| 780 |
"You can create a checkpoint via :guilabel:`Edit->Create checkpoint`. And go " |
| 781 |
"back to a previous checkpoint with :guilabel:`Edit->Revert to ...`" |
| 782 |
msgstr "您可以通过“编辑->创建检查点”创建检查点。 并使用“编辑->恢复到...”返回到上一个检查点" |
| 783 |
|
| 784 |
#: ../../../__w/calibre/calibre/manual/edit.rst:522 |
| 785 |
msgid "" |
| 786 |
"The check pointing functionality is in addition to the normal Undo/redo " |
| 787 |
"mechanism when editing individual files. Checkpoints are needed for when " |
| 788 |
"changes are spread over multiple files in the book or when you wish to be " |
| 789 |
"able to revert a large group of related changes as a whole." |
| 790 |
msgstr "检查点功能是编辑单个文件时正常撤消/重做机制之外的功能。 当更改分布在书中的多个文件中或当您希望能够整体恢复一大组相关更改时,需要检查点。" |
| 791 |
|
| 792 |
#: ../../../__w/calibre/calibre/manual/edit.rst:527 |
| 793 |
msgid "" |
| 794 |
"You can see a list of available checkpoints via " |
| 795 |
":guilabel:`View->Checkpoints`. You can compare the current state of the book" |
| 796 |
" to a specified checkpoint using the :ref:`diff` tool -- by selecting the " |
| 797 |
"checkpoint of interest and clicking the :guilabel:`Compare` button. The " |
| 798 |
":guilabel:`Revert to` button restores the book to the selected checkpoint, " |
| 799 |
"undoing all changes since that checkpoint was created." |
| 800 |
msgstr "您可以通过“视图->检查点”查看可用检查点的列表。 您可以使用“diff”工具将书籍的当前状态与指定的检查点进行比较 - 通过选择感兴趣的检查点并单击“比较”按钮。 “恢复到”按钮将书籍恢复到选定的检查点,撤消自创建该检查点以来的所有更改。" |
| 801 |
|
| 802 |
#: ../../../__w/calibre/calibre/manual/edit.rst:535 |
| 803 |
msgid "The Live preview panel" |
| 804 |
msgstr "实时预览面板" |
| 805 |
|
| 806 |
#: ../../../__w/calibre/calibre/manual/edit.rst:537 |
| 807 |
msgid "The Live preview panel showing a rendering of the current file" |
| 808 |
msgstr "显示当前文件渲染的实时预览面板" |
| 809 |
|
| 810 |
#: ../../../__w/calibre/calibre/manual/edit.rst:541 |
| 811 |
msgid "" |
| 812 |
"The live preview panel shows you the changes you are making live (with a " |
| 813 |
"second or two of delay). As you edit HTML or CSS files, the preview panel is" |
| 814 |
" updated automatically to reflect your changes. As you move the cursor " |
| 815 |
"around in the editor, the preview panel will track its location, showing you" |
| 816 |
" the corresponding location in the book. Clicking in the preview panel, will" |
| 817 |
" cause the cursor in the editor to be positioned over the element you " |
| 818 |
"clicked. If you click a link pointing to another file in the book, that file" |
| 819 |
" will be opened in the edit and the preview panel, automatically." |
| 820 |
msgstr "“实时预览”面板可以实时显示您所做的更改(会有 1 到 2 秒的延迟)。当您编辑 HTML 或 CSS 文件时,预览面板会自动更新以反映这些改动。当您在编辑器中移动光标时,预览面板会跟踪光标位置,并为您跳转到书中对应的位置。反之,在预览面板中点击某个位置,编辑器中的光标也会自动定位到您点击的元素上。如果您点击了一个指向书中其他文件的链接,该文件会自动在编辑器和预览面板中同步打开。" |
| 821 |
|
| 822 |
#: ../../../__w/calibre/calibre/manual/edit.rst:550 |
| 823 |
msgid "" |
| 824 |
"You can turn off the automatic syncing of position and live preview of " |
| 825 |
"changes -- by buttons under the preview panel. The live update of the " |
| 826 |
"preview panel only happens when you are not actively typing in the editor, " |
| 827 |
"so as not to be distracting or slow you down, waiting for the preview to " |
| 828 |
"render." |
| 829 |
msgstr "您可以通过预览面板下的按钮关闭位置自动同步和更改的实时预览。 预览面板的实时更新仅在您未在编辑器中主动输入时发生,以免在等待预览渲染时分散您的注意力或减慢您的速度。" |
| 830 |
|
| 831 |
#: ../../../__w/calibre/calibre/manual/edit.rst:555 |
| 832 |
msgid "" |
| 833 |
"The preview panel shows you how the text will look when viewed. However, the" |
| 834 |
" preview panel is not a substitute for actually testing your book on an " |
| 835 |
"actual reader device. It is both more, and less capable than an actual " |
| 836 |
"reader. It will tolerate errors and sloppy markup much better than most " |
| 837 |
"reader devices. It will also not show you page margins, page breaks and " |
| 838 |
"embedded fonts that use font name aliasing. Use the preview panel while you " |
| 839 |
"are working on the book, but once you are done, review it in an actual " |
| 840 |
"reader device or software emulator." |
| 841 |
msgstr "预览面板向您显示文本在查看时的外观。 但是,预览面板并不能替代在实际阅读器设备上实际测试您的图书。 它比实际读者的能力更强,也更弱。 它比大多数阅读器设备更好地容忍错误和草率标记。 它还不会显示页边距、分页符和使用字体名称别名的嵌入字体。 在阅读本书时使用预览面板,但完成后,请在实际的阅读器设备或软件模拟器中查看它。" |
| 842 |
|
| 843 |
#: ../../../__w/calibre/calibre/manual/edit.rst:564 |
| 844 |
msgid "" |
| 845 |
"The preview panel does not support embedded fonts if the name of the font " |
| 846 |
"inside the font file does not match the name in the CSS @font-face rule. You" |
| 847 |
" can use the Check Book tool to quickly find and fix any such problem fonts." |
| 848 |
msgstr "如果字体文件中的字体名称与 CSS @font-face 规则中的名称不匹配,则预览面板不支持嵌入字体。 您可以使用检查簿工具快速查找并修复任何此类问题字体。" |
| 849 |
|
| 850 |
#: ../../../__w/calibre/calibre/manual/edit.rst:570 |
| 851 |
msgid "Splitting HTML files" |
| 852 |
msgstr "分割HTML文件" |
| 853 |
|
| 854 |
#: ../../../__w/calibre/calibre/manual/edit.rst:574 |
| 855 |
msgid "" |
| 856 |
"One, perhaps non-obvious, use of the preview panel is to split long HTML " |
| 857 |
"files. While viewing the file you want to split, click the :guilabel:`Split " |
| 858 |
"mode` button under the preview panel |spmb|. Then simply move your mouse to " |
| 859 |
"the place where you want to split the file and click. A thick green line " |
| 860 |
"will show you exactly where the split will happen as you move your mouse. " |
| 861 |
"Once you have found the location you want, simply click and the split will " |
| 862 |
"be performed." |
| 863 |
msgstr "预览面板的一种用途是分割长 HTML 文件,也许不是显而易见的。 查看要拆分的文件时,单击预览面板 |spmb| 下的“拆分模式”按钮。 然后只需将鼠标移动到要分割文件的位置并单击即可。 当您移动鼠标时,一条粗绿线将准确显示分割发生的位置。 找到所需位置后,只需单击即可执行分割。" |
| 864 |
|
| 865 |
#: ../../../__w/calibre/calibre/manual/edit.rst:572 |
| 866 |
msgid "spmb" |
| 867 |
msgstr "预览面板" |
| 868 |
|
| 869 |
#: ../../../__w/calibre/calibre/manual/edit.rst:581 |
| 870 |
msgid "" |
| 871 |
"Splitting the file will automatically update all links and references that " |
| 872 |
"pointed into the bottom half of the file and will open the newly split file " |
| 873 |
"in an editor." |
| 874 |
msgstr "拆分文件将自动更新指向文件下半部分的所有链接和引用,并将在编辑器中打开新拆分的文件。" |
| 875 |
|
| 876 |
#: ../../../__w/calibre/calibre/manual/edit.rst:585 |
| 877 |
msgid "" |
| 878 |
"You can also split a single HTML file at multiple locations automatically, " |
| 879 |
"by right clicking inside the file in the editor and choosing " |
| 880 |
":guilabel:`Split at multiple locations`. This will allow you to easily split" |
| 881 |
" a large file at all heading tags or all tags having a certain class and so " |
| 882 |
"on." |
| 883 |
msgstr "您还可以通过在编辑器中右键单击文件内部并选择“在多个位置拆分”来自动在多个位置拆分单个 HTML 文件。 这将允许您轻松地在所有标题标签或具有特定类别的所有标签等处拆分大文件。" |
| 884 |
|
| 885 |
#: ../../../__w/calibre/calibre/manual/edit.rst:595 |
| 886 |
msgid "The Live CSS panel" |
| 887 |
msgstr "实时 CSS 面板" |
| 888 |
|
| 889 |
#: ../../../__w/calibre/calibre/manual/edit.rst:597 |
| 890 |
msgid "The Live CSS panel showing the styles for the current element" |
| 891 |
msgstr "显示当前元素样式的实时 CSS 面板" |
| 892 |
|
| 893 |
#: ../../../__w/calibre/calibre/manual/edit.rst:602 |
| 894 |
msgid "" |
| 895 |
"The :guilabel:`Live CSS` panel shows you all the style rules that apply to " |
| 896 |
"the tag you are currently editing. The name of tag, along with its line " |
| 897 |
"number in the editor are displayed, followed by a list of matching style " |
| 898 |
"rules." |
| 899 |
msgstr "“实时CSS”面板向您显示适用于您当前正在编辑的标签的所有样式规则。 显示标签的名称及其在编辑器中的行号,后面是匹配样式规则的列表。" |
| 900 |
|
| 901 |
#: ../../../__w/calibre/calibre/manual/edit.rst:606 |
| 902 |
msgid "" |
| 903 |
"It is a great way to quickly see which style rules apply to any tag. The " |
| 904 |
"view also has clickable links (in blue), which take you directly to the " |
| 905 |
"location where the style was defined, in case you wish to make any changes " |
| 906 |
"to the style rules. Style rules that apply directly to the tag, as well as " |
| 907 |
"rules that are inherited from parent tags are shown." |
| 908 |
msgstr "这是快速查看哪些样式规则适用于任何 标签的好方法。 该视图还有可单击的链接(蓝色),如果您希望对样式规则进行任何更改,可以直接转到定义样式的位置。 显示直接应用于标记的样式规则以及从父标记继承的规则。" |
| 909 |
|
| 910 |
#: ../../../__w/calibre/calibre/manual/edit.rst:612 |
| 911 |
msgid "" |
| 912 |
"The panel also shows you what the finally calculated styles for the tag are." |
| 913 |
" Properties in the list that are superseded by higher priority rules are " |
| 914 |
"shown with a line through them." |
| 915 |
msgstr "该面板还向您显示最终计算出的标签样式。 列表中被更高优先级规则取代的属性用一条线显示。" |
| 916 |
|
| 917 |
#: ../../../__w/calibre/calibre/manual/edit.rst:616 |
| 918 |
msgid "You can enable the Live CSS panel via :guilabel:`View->Live CSS`." |
| 919 |
msgstr "您可以通过“视图->实时CSS”启用实时CSS 面板。" |
| 920 |
|
| 921 |
#: ../../../__w/calibre/calibre/manual/edit.rst:623 |
| 922 |
msgid "Miscellaneous tools" |
| 923 |
msgstr "杂项工具" |
| 924 |
|
| 925 |
#: ../../../__w/calibre/calibre/manual/edit.rst:625 |
| 926 |
msgid "There are a few more tools that can be useful while you edit the book." |
| 927 |
msgstr "在您编辑本书时,还有一些有用的工具。" |
| 928 |
|
| 929 |
#: ../../../__w/calibre/calibre/manual/edit.rst:628 |
| 930 |
msgid "The Table of Contents view" |
| 931 |
msgstr "目录视图" |
| 932 |
|
| 933 |
#: ../../../__w/calibre/calibre/manual/edit.rst:630 |
| 934 |
msgid "" |
| 935 |
"The Table of Contents view shows you the current table of contents in the " |
| 936 |
"book. Double clicking on any entry opens the place that entry points to in " |
| 937 |
"an editor. You can right click to edit the Table of Contents, refresh the " |
| 938 |
"view or expand/collapse all items. Access this view via " |
| 939 |
":guilabel:`View->Table of Contents`." |
| 940 |
msgstr "目录视图显示书中当前的目录。 双击任何条目会在编辑器中打开该条目所指向的位置。 您可以右键单击以编辑目录、刷新视图或展开/折叠所有项目。 通过“视图->目录”访问此视图。" |
| 941 |
|
| 942 |
#: ../../../__w/calibre/calibre/manual/edit.rst:637 |
| 943 |
msgid "Checking the spelling of words in the book" |
| 944 |
msgstr "检查图书中单词的拼写" |
| 945 |
|
| 946 |
#: ../../../__w/calibre/calibre/manual/edit.rst:639 |
| 947 |
msgid "You can run a spelling checker via :guilabel:`Tools->Check spelling`." |
| 948 |
msgstr "您可以通过“工具->检查拼写”运行拼写检查器。" |
| 949 |
|
| 950 |
#: ../../../__w/calibre/calibre/manual/edit.rst:641 |
| 951 |
msgid "The Check spelling tool" |
| 952 |
msgstr "检查拼写工具" |
| 953 |
|
| 954 |
#: ../../../__w/calibre/calibre/manual/edit.rst:646 |
| 955 |
msgid "" |
| 956 |
"Words are shown with the number of times they occur in the book and the " |
| 957 |
"language the word belongs to. Language information is taken from the books " |
| 958 |
"metadata and from ``lang`` attributes in the HTML files. This allows the " |
| 959 |
"spell checker to work well even with books that contain text in multiple " |
| 960 |
"languages. For example, in the following HTML extract, the word color will " |
| 961 |
"be checked using American English and the word colour using British " |
| 962 |
"English::" |
| 963 |
msgstr "单词会显示它们在书中出现的次数以及该单词所属的语言。 语言信息取自书籍元数据和 HTML 文件中的“lang”属性。 这使得拼写检查器即使在包含多种语言文本的书籍上也能正常工作。 例如,在以下 HTML 摘录中,将使用美式英语检查单词 color,使用英式英语检查单词 color:" |
| 964 |
|
| 965 |
#: ../../../__w/calibre/calibre/manual/edit.rst:656 |
| 966 |
msgid "" |
| 967 |
"You can double click a word to highlight the next occurrence of that word in" |
| 968 |
" the editor. This is useful if you wish to manually edit the word, or see " |
| 969 |
"what context it is in." |
| 970 |
msgstr "您可以双击某个单词以突出显示该单词在编辑器中下一次出现的位置。 如果您希望手动编辑单词或查看它所处的上下文,这非常有用。" |
| 971 |
|
| 972 |
#: ../../../__w/calibre/calibre/manual/edit.rst:660 |
| 973 |
msgid "" |
| 974 |
"To change a word, simply double click one of the suggested alternative " |
| 975 |
"spellings on the right, or type in your own corrected spelling and click the" |
| 976 |
" :guilabel:`Change selected word to` button. This will replace all " |
| 977 |
"occurrences of the word in the book. You can also right click on a word in " |
| 978 |
"the main word list to change the word conveniently from the right click " |
| 979 |
"menu." |
| 980 |
msgstr "要更改单词,只需双击右侧建议的替代拼写之一,或者输入您自己更正的拼写,然后单击“将所选单词更改为”按钮。 这将替换书中出现的所有单词。 您还可以右键单击主单词列表中的单词,从右键菜单中方便地更改单词。" |
| 981 |
|
| 982 |
#: ../../../__w/calibre/calibre/manual/edit.rst:666 |
| 983 |
msgid "" |
| 984 |
"You can have the spelling checker ignore a word for the current session by " |
| 985 |
"clicking the :guilabel:`Ignore` button. You can also add a word to the user " |
| 986 |
"dictionary by clicking the :guilabel:`Add to dictionary` button. The " |
| 987 |
"spelling checker supports multiple user dictionaries, so you can select the " |
| 988 |
"dictionary you want the word added to." |
| 989 |
msgstr "您可以通过单击“忽略”按钮让拼写检查器忽略当前会话的单词。 您还可以通过单击“添加到词典”按钮将单词添加到用户词典中。 拼写检查器支持多个用户词典,因此您可以选择要将单词添加到的词典。" |
| 990 |
|
| 991 |
#: ../../../__w/calibre/calibre/manual/edit.rst:672 |
| 992 |
msgid "" |
| 993 |
"You can also have the spelling checker display all the words in your book, " |
| 994 |
"not just the incorrectly spelled ones. This is useful to see what words are " |
| 995 |
"most common in your book and to run a simple search and replace on " |
| 996 |
"individual words." |
| 997 |
msgstr "您还可以让拼写检查器显示书中的所有单词,而不仅仅是拼写错误的单词。 这对于查看书中最常见的单词以及对单个单词进行简单搜索和替换非常有用。" |
| 998 |
|
| 999 |
#: ../../../__w/calibre/calibre/manual/edit.rst:677 |
| 1000 |
msgid "" |
| 1001 |
"If you make any changes to the book by editing files while the spell check " |
| 1002 |
"tool is open, you should click the :guilabel:`Refresh` button in the Spell " |
| 1003 |
"check tool. If you do not do this and continue to use the Spell check tool, " |
| 1004 |
"you could lose the changes you have made in the editor." |
| 1005 |
msgstr "如果您在拼写检查工具打开时通过编辑文件对图书进行任何更改,则应单击拼写检查工具中的“刷新”按钮。 如果您不这样做并继续使用拼写检查工具,您可能会丢失在编辑器中所做的更改。" |
| 1006 |
|
| 1007 |
#: ../../../__w/calibre/calibre/manual/edit.rst:683 |
| 1008 |
msgid "" |
| 1009 |
"To exclude an individual file from being spell checked when running the " |
| 1010 |
"spell check tool, you can use the :guilabel:`Exclude files` button or add " |
| 1011 |
"the following comment just under the opening tag in the file::" |
| 1012 |
msgstr "要在运行拼写检查工具时排除单个文件进行拼写检查,您可以使用“排除文件”按钮或在文件的开始 标记下方添加以下注释:" |
| 1013 |
|
| 1014 |
#: ../../../__w/calibre/calibre/manual/edit.rst:691 |
| 1015 |
msgid "Adding new dictionaries" |
| 1016 |
msgstr "正在添加新的字典" |
| 1017 |
|
| 1018 |
#: ../../../__w/calibre/calibre/manual/edit.rst:693 |
| 1019 |
msgid "" |
| 1020 |
"The spelling checker comes with builtin dictionaries for the English and " |
| 1021 |
"Spanish languages. You can install your own dictionaries via " |
| 1022 |
":guilabel:`Preferences->Editor->Manage spelling dictionaries`. The spell " |
| 1023 |
"checker can use dictionaries from the LibreOffice program (in the .oxt " |
| 1024 |
"format). You can download these dictionaries from `The LibreOffice " |
| 1025 |
"Extensions repository <https://extensions.libreoffice.org/?Tags%5B%5D=50>`_." |
| 1026 |
msgstr "拼写检查器附带英语和西班牙语的内置词典。 您可以通过“首选项->编辑器->管理拼写词典”安装自己的词典。 拼写检查器可以使用 LibreOffice 程序中的词典(.oxt 格式)。 您可以从“LibreOffice 扩展存储库 <https://extensions.libreoffice.org/?Tags%5B%5D=50>”下载这些词典。" |
| 1027 |
|
| 1028 |
#: ../../../__w/calibre/calibre/manual/edit.rst:702 |
| 1029 |
msgid "Inserting special characters" |
| 1030 |
msgstr "插入特殊字符" |
| 1031 |
|
| 1032 |
#: ../../../__w/calibre/calibre/manual/edit.rst:704 |
| 1033 |
msgid "" |
| 1034 |
"You can insert characters that are difficult to type by using the " |
| 1035 |
":guilabel:`Edit->Insert special character` tool. This shows you all Unicode " |
| 1036 |
"characters, simply click on the character you want to type. If you hold " |
| 1037 |
":kbd:`Ctrl` while clicking, the window will close itself after inserting the" |
| 1038 |
" selected character. This tool can be used to insert special characters into" |
| 1039 |
" the main text or into any other area of the user interface, such as the " |
| 1040 |
"Search and replace tool." |
| 1041 |
msgstr "您可以使用“编辑->插入特殊字符”工具插入难以键入的字符。 这会显示所有 Unicode 字符,只需单击您要输入的字符即可。 如果在单击时按住“Ctrl”,窗口将在插入所选字符后自行关闭。 该工具可用于将特殊字符插入到主文本或用户界面的任何其他区域,例如搜索和替换工具。" |
| 1042 |
|
| 1043 |
#: ../../../__w/calibre/calibre/manual/edit.rst:712 |
| 1044 |
msgid "" |
| 1045 |
"Because there are a lot of characters, you can define your own " |
| 1046 |
":guilabel:`Favorite` characters, that will be shown first. Simply right " |
| 1047 |
"click on a character to mark it as favorite. You can also right click on a " |
| 1048 |
"character in favorites to remove it from favorites. Finally, you can re-" |
| 1049 |
"arrange the order of characters in favorites by clicking the :guilabel:`Re-" |
| 1050 |
"arrange favorites` button and then drag and dropping the characters in " |
| 1051 |
"favorites around." |
| 1052 |
msgstr "因为角色很多,您可以定义自己的“最喜欢的”角色,这些角色将首先显示。 只需右键单击一个角色即可将其标记为收藏夹。 您还可以右键单击收藏夹中的角色将其从收藏夹中删除。 最后,您可以通过单击“重新排列收藏夹”按钮,然后拖放收藏夹中的字符来重新排列收藏夹中的字符顺序。" |
| 1053 |
|
| 1054 |
#: ../../../__w/calibre/calibre/manual/edit.rst:719 |
| 1055 |
msgid "" |
| 1056 |
"You can also directly type in special characters using the keyboard. To do " |
| 1057 |
"this, you type the Unicode code for the character (in hexadecimal) and then " |
| 1058 |
"press the :kbd:`Alt+X` key which will convert the previously typed code into" |
| 1059 |
" the corresponding character. For example, to type ÿ you would type ff and " |
| 1060 |
"then :kbd:`Alt+X`. To type a non-breaking space you would use a0 and then " |
| 1061 |
":kbd:`Alt+X`, to type the horizontal ellipsis you would use 2026 and " |
| 1062 |
":kbd:`Alt+X` and so on." |
| 1063 |
msgstr "您也可以使用键盘直接输入特殊字符。 为此,请键入该字符的 Unicode 代码(十六进制),然后按“Alt+X”键,这会将之前键入的代码转换为相应的字符。 例如,要输入 ÿ,您可以输入 ff,然后输入“Alt+X”。 要输入不间断空格,您可以使用 a0,然后使用“Alt+X”,要输入水平省略号,您可以使用 2026 和“Alt+X”,依此类推。" |
| 1064 |
|
| 1065 |
#: ../../../__w/calibre/calibre/manual/edit.rst:727 |
| 1066 |
msgid "" |
| 1067 |
"Finally, you can type in special characters by using HTML named entities. " |
| 1068 |
"For example, typing will be replaced by a non breaking space when you" |
| 1069 |
" type the semi-colon. The replacement happens only when typing the semi-" |
| 1070 |
"colon." |
| 1071 |
msgstr "最后,您可以使用 HTML 命名实体输入特殊字符。 例如,输入 空格; 当您键入分号时,将被不间断空格替换。 仅当键入分号时才会进行替换。" |
| 1072 |
|
| 1073 |
#: ../../../__w/calibre/calibre/manual/edit.rst:732 |
| 1074 |
msgid "The code inspector view" |
| 1075 |
msgstr "代码检查器视图" |
| 1076 |
|
| 1077 |
#: ../../../__w/calibre/calibre/manual/edit.rst:734 |
| 1078 |
msgid "" |
| 1079 |
"This view shows you the HTML coding and CSS that applies to the current " |
| 1080 |
"element of interest. You open it by right clicking a location in the preview" |
| 1081 |
" panel and choosing :guilabel:`Inspect`. It allows you to see the HTML " |
| 1082 |
"coding for that element and more importantly, the CSS styles that apply to " |
| 1083 |
"it. You can even dynamically edit the styles and see what effect your " |
| 1084 |
"changes have instantly. Note that editing the styles does not actually make " |
| 1085 |
"changes to the book contents, it only allows for quick experimentation. The " |
| 1086 |
"ability to live edit inside the Inspector is under development." |
| 1087 |
msgstr "此视图向您显示适用于当前感兴趣元素的 HTML 编码和 CSS。 您可以通过右键单击预览面板中的某个位置并选择“检查”来打开它。 它允许您查看该元素的 HTML 编码,更重要的是,查看适用于该元素的 CSS 样式。 您甚至可以动态编辑样式并立即查看更改的效果。 请注意,编辑样式实际上并不会更改书籍内容,它仅允许快速实验。 Inspector 内的实时编辑功能正在开发中。" |
| 1088 |
|
| 1089 |
#: ../../../__w/calibre/calibre/manual/edit.rst:744 |
| 1090 |
msgid "Checking external links" |
| 1091 |
msgstr "正在检查外部链接" |
| 1092 |
|
| 1093 |
#: ../../../__w/calibre/calibre/manual/edit.rst:746 |
| 1094 |
msgid "" |
| 1095 |
"You can use this tool to check all links in your book that point to external" |
| 1096 |
" websites. The tool will try to visit every externally linked website, and " |
| 1097 |
"if the visit fails, it will report all broken links in a convenient format " |
| 1098 |
"for you to fix." |
| 1099 |
msgstr "您可以使用此工具检查书中指向外部网站的所有链接。 该工具将尝试访问每个外部链接的网站,如果访问失败,它将以方便的格式报告所有损坏的链接,以便您修复。" |
| 1100 |
|
| 1101 |
#: ../../../__w/calibre/calibre/manual/edit.rst:753 |
| 1102 |
msgid "Downloading external resources" |
| 1103 |
msgstr "正在下载外部资源" |
| 1104 |
|
| 1105 |
#: ../../../__w/calibre/calibre/manual/edit.rst:755 |
| 1106 |
msgid "" |
| 1107 |
"You can use this tool to automatically download any images/stylesheets/etc. " |
| 1108 |
"in the book that are not bundled with the book (i.e. they have URLs pointing" |
| 1109 |
" to a location on the internet). The tool will find all such resources and " |
| 1110 |
"automatically download them, add them to the book and replace all references" |
| 1111 |
" to them to use the downloaded files." |
| 1112 |
msgstr "您可以使用此工具自动下载任何图像/样式表/等。 书中未与本书捆绑在一起的内容(即它们的 URL 指向互联网上的某个位置)。 该工具将找到所有此类资源并自动下载它们,将它们添加到书中并替换对它们的所有引用以使用下载的文件。" |
| 1113 |
|
| 1114 |
#: ../../../__w/calibre/calibre/manual/edit.rst:763 |
| 1115 |
msgid "Arranging files into folders by type" |
| 1116 |
msgstr "按类型将文件整理到文件夹中" |
| 1117 |
|
| 1118 |
#: ../../../__w/calibre/calibre/manual/edit.rst:765 |
| 1119 |
msgid "" |
| 1120 |
"Often when editing EPUB files that you get from somewhere, you will find " |
| 1121 |
"that the files inside the EPUB are arranged haphazardly, in different sub-" |
| 1122 |
"folders. This tool allows you to automatically move all files into sub-" |
| 1123 |
"folders based on their types. Access it via :guilabel:`Tools->Arrange into " |
| 1124 |
"folders`. Note that this tool only changes how the files are arranged inside" |
| 1125 |
" the EPUB, it does not change how they are displayed in the File browser." |
| 1126 |
msgstr "通常,当编辑从某处获取的 EPUB 文件时,您会发现 EPUB 内的文件随意排列在不同的子文件夹中。 该工具允许您根据文件的类型自动将所有文件移动到子文件夹中。 通过“工具->排列到文件夹”访问它。 请注意,此工具仅更改文件在 EPUB 内的排列方式,不会更改文件在文件浏览器中的显示方式。" |
| 1127 |
|
| 1128 |
#: ../../../__w/calibre/calibre/manual/edit.rst:773 |
| 1129 |
msgid "Importing files in other e-book formats as EPUB" |
| 1130 |
msgstr "将其他电子书格式的文件导入为 EPUB" |
| 1131 |
|
| 1132 |
#: ../../../__w/calibre/calibre/manual/edit.rst:775 |
| 1133 |
msgid "" |
| 1134 |
"The editor includes the ability to import files in some other e-book formats" |
| 1135 |
" directly as a new EPUB, without going through a full conversion. This is " |
| 1136 |
"particularly useful to directly create EPUB files from your own hand-edited " |
| 1137 |
"HTML files. You can do this via :guilabel:`File->Import an HTML or DOCX file" |
| 1138 |
" as a new book`." |
| 1139 |
msgstr "该编辑器能够将其他一些电子书格式的文件直接导入为新的 EPUB,而无需进行完全转换。 这对于直接从您自己手工编辑的 HTML 文件创建 EPUB 文件特别有用。 您可以通过“文件->导入 HTML 或 DOCX 文件作为新书”来完成此操作。" |
| 1140 |
|
| 1141 |
#: ../../../__w/calibre/calibre/manual/edit.rst:788 |
| 1142 |
msgid "The Reports tool" |
| 1143 |
msgstr "报表工具" |
| 1144 |
|
| 1145 |
#: ../../../__w/calibre/calibre/manual/edit.rst:790 |
| 1146 |
msgid "" |
| 1147 |
"The editor includes a nice *Reports* tool (via :guilabel:`Tools->Reports`) " |
| 1148 |
"that shows summaries of the files, images, links, words, characters and " |
| 1149 |
"styles used in the book. Every line in the report is hot-linked. Double " |
| 1150 |
"clicking a line jumps to the place in the book where that item is used or " |
| 1151 |
"defined (as appropriate). For example, in the :guilabel:`Links` view, you " |
| 1152 |
"can double click entries in the :guilabel:`Source` column to jump to where " |
| 1153 |
"the link is defined and entries in the :guilabel:`Target` column to jump to " |
| 1154 |
"where the link points." |
| 1155 |
msgstr "该编辑器包括一个很好的*报告*工具(通过“工具->报告”),显示书中使用的文件、图像、链接、单词、字符和样式的摘要。 报告中的每一行都是热链接的。 双击一行可跳转到书中使用或定义该项目的位置(视情况而定)。 例如,在“链接”视图中,您可以双击“源”列中的条目以跳转到定义链接的位置,双击“目标”列中的条目以跳转到链接指向的位置。" |
| 1156 |
|
| 1157 |
#: ../../../__w/calibre/calibre/manual/edit.rst:798 |
| 1158 |
msgid "The Reports tool with information and statistics about the book" |
| 1159 |
msgstr "包含有关本书的信息和统计数据的报告工具" |
| 1160 |
|
| 1161 |
#: ../../../__w/calibre/calibre/manual/edit.rst:805 |
| 1162 |
msgid "Special features in the code editor" |
| 1163 |
msgstr "代码编辑器中的特殊功能" |
| 1164 |
|
| 1165 |
#: ../../../__w/calibre/calibre/manual/edit.rst:807 |
| 1166 |
msgid "" |
| 1167 |
"The calibre HTML editor is very powerful. It has many features that make " |
| 1168 |
"editing of HTML (and CSS) easier." |
| 1169 |
msgstr "calibre HTML 编辑器非常强大。 它具有许多使 HTML(和 CSS)编辑变得更容易的功能。" |
| 1170 |
|
| 1171 |
#: ../../../__w/calibre/calibre/manual/edit.rst:811 |
| 1172 |
msgid "Syntax highlighting" |
| 1173 |
msgstr "语法高亮" |
| 1174 |
|
| 1175 |
#: ../../../__w/calibre/calibre/manual/edit.rst:813 |
| 1176 |
msgid "" |
| 1177 |
"The HTML editor has very sophisticated syntax highlighting. Features " |
| 1178 |
"include:" |
| 1179 |
msgstr "HTML 编辑器具有非常复杂的语法突出显示。 特点包括:" |
| 1180 |
|
| 1181 |
#: ../../../__w/calibre/calibre/manual/edit.rst:815 |
| 1182 |
msgid "The text inside bold, italic and heading tags is made bold/italic" |
| 1183 |
msgstr "粗体、斜体和标题标签内的文本变为粗体/斜体" |
| 1184 |
|
| 1185 |
#: ../../../__w/calibre/calibre/manual/edit.rst:816 |
| 1186 |
msgid "" |
| 1187 |
"As you move your cursor through the HTML, the matching HTML tags are " |
| 1188 |
"highlighted, and you can jump to the opening or closing tag with the " |
| 1189 |
"keyboard shortcuts :kbd:`Ctrl+{` and :kbd:`Ctrl+}`. Similarly, you can " |
| 1190 |
"select the contents of a tag with :kbd:`Ctrl+Alt+T` or :kbd:`Ctrl+Shift+T`." |
| 1191 |
msgstr "当您在 HTML 中移动光标时,匹配的 HTML 标记会突出显示,您可以使用键盘快捷键“Ctrl+{”和“Ctrl+}”跳转到开始或结束标记。 同样,您可以使用“Ctrl+Alt+T”或“Ctrl+Shift+T”选择 标签的内容。" |
| 1192 |
|
| 1193 |
#: ../../../__w/calibre/calibre/manual/edit.rst:821 |
| 1194 |
msgid "Invalid HTML is highlighted with a red underline" |
| 1195 |
msgstr "已用紅線間底無效的HTML" |
| 1196 |
|
| 1197 |
#: ../../../__w/calibre/calibre/manual/edit.rst:822 |
| 1198 |
msgid "" |
| 1199 |
"Spelling errors in the text inside HTML tags and attributes such as title " |
| 1200 |
"are highlighted. The spell checking is language aware, based on the value of" |
| 1201 |
" the ``lang`` attribute of the current tag and the overall book language." |
| 1202 |
msgstr "HTML 标签内的文本和标题等属性中的拼写错误会突出显示。 拼写检查是语言感知的,基于当前标签的“lang”属性值和整体书籍语言。" |
| 1203 |
|
| 1204 |
#: ../../../__w/calibre/calibre/manual/edit.rst:825 |
| 1205 |
msgid "CSS embedded inside ``<style>`` tags is highlighted" |
| 1206 |
msgstr "嵌入在``<style>``标签内的CSS被突出显示" |
| 1207 |
|
| 1208 |
#: ../../../__w/calibre/calibre/manual/edit.rst:826 |
| 1209 |
msgid "" |
| 1210 |
"Special characters that can be hard to distinguish such as non-breaking " |
| 1211 |
"spaces, different types of hyphens, etc. are highlighted." |
| 1212 |
msgstr "难以区分的特殊字符会突出显示,例如不间断空格、不同类型的连字符等。" |
| 1213 |
|
| 1214 |
#: ../../../__w/calibre/calibre/manual/edit.rst:828 |
| 1215 |
msgid "" |
| 1216 |
"Links to other files in ``<a>`` tags, ``<img>`` and ``<link>`` tags all have" |
| 1217 |
" the filenames highlighted. If the filename they point to does not exist, " |
| 1218 |
"the filename is marked with a red underline." |
| 1219 |
msgstr "``<a>`` 标签、``<img>`` 和``<link>`` 标签中其他文件的链接都突出显示文件名。 如果它们指向的文件名不存在,则该文件名会标有红色下划线。" |
| 1220 |
|
| 1221 |
#: ../../../__w/calibre/calibre/manual/edit.rst:833 |
| 1222 |
msgid "Context sensitive help" |
| 1223 |
msgstr "上下文帮助" |
| 1224 |
|
| 1225 |
#: ../../../__w/calibre/calibre/manual/edit.rst:835 |
| 1226 |
msgid "" |
| 1227 |
"You can right click on an HTML tag name or a CSS property name to get help " |
| 1228 |
"for that tag or property." |
| 1229 |
msgstr "您可以右键单击 HTML 标记名称或 CSS 属性名称来获取该标记或属性的帮助。" |
| 1230 |
|
| 1231 |
#: ../../../__w/calibre/calibre/manual/edit.rst:837 |
| 1232 |
msgid "" |
| 1233 |
"You can also hold down the :kbd:`Ctrl` key and click on any filename inside " |
| 1234 |
"a link tag to open that file in the editor automatically. Similarly, " |
| 1235 |
":kbd:`Ctrl` clicking a class name will take you to the first style rule that" |
| 1236 |
" matches the tag and class." |
| 1237 |
msgstr "您还可以按住“Ctrl”键并单击链接标记内的任何文件名,以在编辑器中自动打开该文件。 同样,“Ctrl”单击类名将带您到达与 标签和类匹配的第一个样式规则。" |
| 1238 |
|
| 1239 |
#: ../../../__w/calibre/calibre/manual/edit.rst:841 |
| 1240 |
msgid "" |
| 1241 |
"Right clicking a class name in an HTML file will allow you to rename the " |
| 1242 |
"class, changing all occurrences of the class throughout the book and all its" |
| 1243 |
" stylesheets." |
| 1244 |
msgstr "右键单击 HTML 文件中的类名将允许您重命名该类,从而更改该类在本书及其所有样式表中出现的所有位置。" |
| 1245 |
|
| 1246 |
#: ../../../__w/calibre/calibre/manual/edit.rst:848 |
| 1247 |
msgid "Auto-complete" |
| 1248 |
msgstr "自动完成" |
| 1249 |
|
| 1250 |
#: ../../../__w/calibre/calibre/manual/edit.rst:850 |
| 1251 |
msgid "" |
| 1252 |
"When editing an e-book, one of the most tedious tasks is creating links to " |
| 1253 |
"other files inside the book, or to CSS stylesheets, or images. You have to " |
| 1254 |
"figure out the correct filename and relative path to the file. The editor " |
| 1255 |
"has auto-complete to make that easier." |
| 1256 |
msgstr "编辑电子书时,最繁琐的任务之一是创建指向书中其他文件、CSS 样式表或图像的链接。 您必须找出正确的文件名和文件的相对路径。 编辑器具有自动完成功能,使操作变得更容易。" |
| 1257 |
|
| 1258 |
#: ../../../__w/calibre/calibre/manual/edit.rst:855 |
| 1259 |
msgid "" |
| 1260 |
"As you type a filename, the editor automatically pops up suggestions. Simply" |
| 1261 |
" use the :kbd:`Tab` key to select the correct file name. The editor even " |
| 1262 |
"offers suggestions for links pointing to an anchor inside another HTML file." |
| 1263 |
" After you type the ``#`` character, the editor will show you a list of all " |
| 1264 |
"anchors in the target file, with a small snippet of text to help you choose " |
| 1265 |
"the right anchor." |
| 1266 |
msgstr "当您键入文件名时,编辑器会自动弹出建议。 只需使用“Tab”键即可选择正确的文件名。 该编辑器甚至还提供了指向另一个 HTML 文件中的锚点的链接的建议。 输入“#”字符后,编辑器将显示目标文件中所有锚点的列表,其中包含一小段文本以帮助您选择正确的锚点。" |
| 1267 |
|
| 1268 |
#: ../../../__w/calibre/calibre/manual/edit.rst:861 |
| 1269 |
msgid "" |
| 1270 |
"Note that unlike most other completion systems, the editor's completion " |
| 1271 |
"system uses subsequence matching. This means that you can type just two or " |
| 1272 |
"three letters from anywhere in the filename to complete the filename. For " |
| 1273 |
"example, say you want the filename ``../images/arrow1.png``, you can simply " |
| 1274 |
"type ``ia1`` and press :kbd:`Tab` to complete the filename. When searching " |
| 1275 |
"for matches, the completion system prioritizes letters that are at the start" |
| 1276 |
" of a word, or immediately after a path separator. Once you get used to this" |
| 1277 |
" system, you will find it saves you a lot of time and effort." |
| 1278 |
msgstr "请注意,与大多数其他完成系统不同,编辑器的完成系统使用子序列匹配。 这意味着您只需键入文件名中任意位置的两个或三个字母即可完成文件名。 例如,假设您想要文件名“../images/arrow1.png”,您可以简单地键入“ia1”并按“Tab”来完成文件名。 搜索匹配项时,补全系统会优先考虑位于单词开头或紧接路径分隔符之后的字母。 一旦你习惯了这个系统,你会发现它为你节省了大量的时间和精力。" |
| 1279 |
|
| 1280 |
#: ../../../__w/calibre/calibre/manual/edit.rst:871 |
| 1281 |
msgid "Snippets" |
| 1282 |
msgstr "片段" |
| 1283 |
|
| 1284 |
#: ../../../__w/calibre/calibre/manual/edit.rst:873 |
| 1285 |
msgid "" |
| 1286 |
"The calibre E-book editor supports *snippets*. A snippet is a piece of text " |
| 1287 |
"that is either re-used often or contains a lot of redundant text. The editor" |
| 1288 |
" allows you to insert a snippet with only a few key strokes. The snippets " |
| 1289 |
"are very powerful, with many features, such as placeholders you can jump " |
| 1290 |
"between, automatic mirroring of repeated text and so on. For more " |
| 1291 |
"information, see :doc:`snippets`." |
| 1292 |
msgstr "calibre 电子书编辑器支持*片段*。 片段是经常重复使用或包含大量冗余文本的一段文本。 该编辑器允许您只需敲击几个键即可插入片段。 这些片段非常强大,具有许多功能,例如可以在之间跳转的占位符、重复文本的自动镜像等等。 有关更多信息,请参阅“片段”。" |