Debian Codegraph @

translations/manual/zh_TW/edit.po

raw
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) Kovid Goyal
3 # This file is distributed under the same license as the calibre package.
4 #
5 # Translators:
6 # sodais, 2017
7 # Wang Hulen, 2022
8 # Simon Lee, 2025
9 msgid ""
10 msgstr ""
11 "Project-Id-Version: calibre\n"
12 "Report-Msgid-Bugs-To: \n"
13 "POT-Creation-Date: 2026-02-17 16:44+0000\n"
14 "PO-Revision-Date: 2016-02-29 11:58+0000\n"
15 "Last-Translator: Simon Lee, 2025\n"
16 "Language-Team: Chinese (Taiwan) (http://app.transifex.com/calibre/calibre/language/zh_TW/)\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_TW\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 ""
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 ""
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 ""
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 "guilabel:`文件浏览器`为您提供正在编辑的书本内各种文件的概览。文件按类别排列,文本(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 "在這本書中,許多檔案都有特殊的意義。它們的名稱旁邊通常會有一個圖示,表示特殊含義。例如,在左邊的圖片中,您可以看到檔案:guilabel:`cover_image.jpg`和:guilabel:`title lepage.xhtml`旁邊有封面圖示,這表示它們是圖書封面圖片和標題頁。同樣,:guilabel:`content.opf`檔案旁邊有一個後設資料圖示,表示其中存在圖書後設資料,而:guilabel:`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 "您可以通过右键单击单个文件并选择:guilabel:`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 ""
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 "最后,您可以批量更改所有选定文件的文件扩展名。如上选择多个文件,右键选择:guilabel:`更改所选文件的文件扩展名`。"
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 ""
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 ""
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 "电子书通常都有封面图片。此图像在:guilabel:`文件浏览器`中由图像名称旁边的棕色书图标表示。如果要指定其他图像作为封面,可以通过右键单击该文件并选择:guilabel:`标记为封面‘来实现。"
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 ""
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 "您可以将文件从书内导出到计算机上的其他位置。如果您希望使用专门的工具单独处理文件,这将非常有用。要执行此操作,只需右键单击该文件并选择:guilabel:`导出`。"
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 "处理完导出的文件后,您可以将其重新导入到书中,方法是再次右键单击该文件,然后选择:guilabel:`替换为文件...‘,这将允许您将书籍中的文件替换为以前导出的文件。"
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 "您还可以在多个编辑器实例之间复制文件。在:guilabel:`文件浏览器`中选择要复制的文件,然后右键单击并选择、:guilabel:`将所选文件复制到另一个编辑器实例`。然后,在另一个编辑器实例中,右键单击:guilabel:`文件浏览器`并选择:guilabel:`从其他编辑器实例粘贴文件`。"
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 "您可以透過按一下:guilabel:`檔案->新增檔案` 將電腦中的新圖片、字型、樣式表等加入到書本中。這允許您透過按一下 :guilabel:`匯入資源檔案`按鈕匯入檔案,或者只需在新檔案的框中輸入檔案名稱即可建立新的空白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 "编辑书籍有一个非常强大的搜索和替换界面,允许您搜索和替换当前文件中的文本,跨所有文件,甚至在当前文件的标记区域中搜索和替换文本。您可以使用普通搜索或使用正则表达式进行搜索。要了解如何使用正则表达式进行高级搜索,请参阅:ref:`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 "通过:guilabel:`搜索->查找/替换`菜单项开始搜索和替换(您必须编辑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 "您可以通过:guilabel:`搜索->全部计数`统计搜索表达式的所有匹配项。计数将遍历您在下拉框中选择的任何文件/区域。"
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 ""
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 ""
420
421 #: ../../../__w/calibre/calibre/manual/edit.rst:278
422 msgid "Search ignoring HTML tags"
423 msgstr ""
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 ""
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 ""
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 ""
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 ""
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 ""
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 ""
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 ""
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 ""
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 ""
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 ""
658
659 #: ../../../__w/calibre/calibre/manual/edit.rst:432
660 msgid "Fixing HTML"
661 msgstr ""
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 ""
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 ""
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 ""
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 ""
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 ""
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 ""
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 ""
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 ""
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 ""
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 ""
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 ""
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 ""
884
885 #: ../../../__w/calibre/calibre/manual/edit.rst:595
886 msgid "The Live CSS panel"
887 msgstr ""
888
889 #: ../../../__w/calibre/calibre/manual/edit.rst:597
890 msgid "The Live CSS panel showing the styles for the current element"
891 msgstr ""
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 ""
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 ""
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 ""
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 ""
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 ""
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 ""
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 &nbsp; 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 ""
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 ""
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 ""
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 ""
1127
1128 #: ../../../__w/calibre/calibre/manual/edit.rst:773
1129 msgid "Importing files in other e-book formats as EPUB"
1130 msgstr ""
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 ""
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 ""
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 ""
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 ""
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 ""
1203
1204 #: ../../../__w/calibre/calibre/manual/edit.rst:825
1205 msgid "CSS embedded inside ``<style>`` tags is highlighted"
1206 msgstr ""
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 ""
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 ""
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 ""
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 ""
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 ""
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 ""
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 ""
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 ""