Debian Codegraph @

translations/manual/zh_CN/polish.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 # Kevin Rong <[email protected]>, 2016
7 # RERBIN MA, 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-05-24 03:34+0000\n"
14 "PO-Revision-Date: 2014-07-05 16:50+0000\n"
15 "Last-Translator: RERBIN MA, 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/polish.rst:4
24 msgid "API documentation for the e-book editing tools"
25 msgstr "电子书编辑工具的API文档"
26
27 #: ../../../__w/calibre/calibre/manual/polish.rst:6
28 msgid ""
29 "The e-book editing tools consist of a "
30 ":class:`calibre.ebooks.oeb.polish.container.Container` object that "
31 "represents a book as a collection of HTML + resource files, and various "
32 "tools that can be used to perform operations on the container. All the tools"
33 " are in the form of module level functions in the various "
34 "``calibre.ebooks.oeb.polish.*`` modules."
35 msgstr "电子书编辑工具包括一个“calibre.ebooks.oeb.polish.container.Container”对象,该对象将一本书表示为一组HTML+资源文件,以及可用于在容器上执行操作的各种工具。所有工具都是各种“Calibre.ebooks.oeb.polish.*”模块中模块级函数的形式。"
36
37 #: ../../../__w/calibre/calibre/manual/polish.rst:15
38 msgid "You obtain a container object for a book at a path like this::"
39 msgstr "您可以在如下路径获取图书的容器对象:"
40
41 #: ../../../__w/calibre/calibre/manual/polish.rst:20
42 msgid ""
43 "If you are writing a plugin for the E-book editor, you get the current "
44 "container for the book being edited like this::"
45 msgstr "如果您正在为电子书编辑器编写插件,您将获得正在编辑的图书的当前容器,如下所示:"
46
47 #: ../../../__w/calibre/calibre/manual/polish.rst:30
48 msgid "The Container object"
49 msgstr "容器对象"
50
51 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
52 #: of calibre.ebooks.oeb.polish.container.Container:1
53 msgid ""
54 "A container represents an open e-book as a folder full of files and an OPF "
55 "file. There are two important concepts:"
56 msgstr "容器将一本打开的电子书表示为一个充满文件和 OPF 文件的文件夹。 有两个重要的概念:"
57
58 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
59 #: of calibre.ebooks.oeb.polish.container.Container:4
60 msgid ""
61 "The root folder. This is the base of the e-book. All the e-books files are "
62 "inside this folder or in its sub-folders."
63 msgstr "根文件夹。 这是电子书的基础。 所有电子书文件都位于该文件夹或其子文件夹中。"
64
65 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
66 #: of calibre.ebooks.oeb.polish.container.Container:7
67 msgid ""
68 "Names: These are paths to the books' files relative to the root folder. They"
69 " always contain POSIX separators and are unquoted. They can be thought of as"
70 " canonical identifiers for files in the book. Most methods on the container "
71 "object work with names. Names are always in the NFC Unicode normal form."
72 msgstr "名称:这些是书籍文件相对于根文件夹的路径。 它们始终包含 POSIX 分隔符并且不带引号。 它们可以被认为是书中文件的规范标识符。 容器对象上的大多数方法都使用名称。 名称始终采用 NFC Unicode 范式。"
73
74 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
75 #: of calibre.ebooks.oeb.polish.container.Container:13
76 msgid ""
77 "Clones: the container object supports efficient on-disk cloning, which is "
78 "used to implement checkpoints in the e-book editor. In order to make this "
79 "work, you should never access files on the filesystem directly. Instead, use"
80 " :meth:`raw_data` or :meth:`open` to read/write to component files in the "
81 "book."
82 msgstr "克隆:容器对象支持高效的磁盘克隆,用于在电子书编辑器中实现检查点。 为了实现此目的,您永远不应该直接访问文件系统上的文件。 相反,使用“raw_data”或“open”来读取/写入书中的组件文件。"
83
84 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
85 #: of calibre.ebooks.oeb.polish.container.Container:18
86 msgid ""
87 "When converting between hrefs and names use the methods provided by this "
88 "class, they assume all hrefs are quoted."
89 msgstr "当使用此类提供的方法在href和名称之间进行转换时,它们假定所有href都被引用。"
90
91 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
92 #: of calibre.ebooks.oeb.polish.container.Container.abspath_to_name:1
93 msgid "Convert an absolute path to a canonical name relative to :attr:`root`"
94 msgstr "将绝对路径转换为相对于“root”的规范名称"
95
96 #: ../../../__w/calibre/calibre/manual/polish.rst:0
97 msgid "Parameters"
98 msgstr "参数"
99
100 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
101 #: of calibre.ebooks.oeb.polish.container.Container.abspath_to_name:3
102 msgid ""
103 "The base folder. By default the root for this container object is used."
104 msgstr "基础文件夹。 默认情况下使用此容器对象的根。"
105
106 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
107 #: of calibre.ebooks.oeb.polish.container.Container.add_file:1
108 msgid ""
109 "Add a file to this container. Entries for the file are automatically created"
110 " in the OPF manifest and spine (if the file is a text document)"
111 msgstr "将文件添加到此容器。文件条目自动在OPF清单和书脊中创建(如果文件是文本文档)"
112
113 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
114 #: of calibre.ebooks.oeb.polish.container.Container.add_name_to_manifest:1
115 msgid ""
116 "Add an entry to the manifest for a file with the specified name. Returns the"
117 " manifest id."
118 msgstr "向具有指定名称的文件的清单中添加条目。返回清单ID。"
119
120 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
121 #: of calibre.ebooks.oeb.polish.container.Container.add_properties:1
122 msgid "Add the specified properties to the manifest item identified by name."
123 msgstr "将指定的属性添加到由名称标识的清单项。"
124
125 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
126 #: of calibre.ebooks.oeb.polish.container.Container.apply_unique_properties:1
127 msgid ""
128 "Ensure that the specified properties are set on only the manifest item "
129 "identified by name. You can pass None as the name to remove the property "
130 "from all items."
131 msgstr "请确保仅对由名称标识的清单项设置指定的属性。您可以传递None作为名称,以从所有项中移除属性。"
132
133 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
134 #: of calibre.ebooks.oeb.polish.container.Container.book_type:1
135 msgid "The type of book (epub for EPUB files and azw3 for AZW3 files)"
136 msgstr "图书类型(epub用于EPUB文件,azw3用于AZW3文件)"
137
138 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
139 #: of calibre.ebooks.oeb.polish.container.Container.commit:1
140 msgid ""
141 "Commit all dirtied parsed objects to the filesystem and write out the e-book"
142 " file at outpath."
143 msgstr "将所有有害的解析对象提交到文件系统,并在outpath写出电子书文件。"
144
145 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
146 #: of calibre.ebooks.oeb.polish.container.Container.commit:3
147 msgid ""
148 "The path to write the saved e-book file to. If None, the path of the "
149 "original book file is used."
150 msgstr "要将保存的电子书文件写入的路径。如果没有,则使用原始书籍文件的路径。"
151
152 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
153 #: of calibre.ebooks.oeb.polish.container.Container.commit:4
154 msgid ""
155 "If True the parsed representations of committed items are kept in the cache."
156 msgstr "如果为True,则已提交项的解析表示形式保留在缓存中。"
157
158 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
159 #: of calibre.ebooks.oeb.polish.container.Container.commit_item:1
160 msgid ""
161 "Commit a parsed object to disk (it is serialized and written to the "
162 "underlying file). If ``keep_parsed`` is True the parsed representation is "
163 "retained in the cache. See also: :meth:`parsed`"
164 msgstr "将解析后的对象提交到磁盘(它被序列化并写入底层文件)。 如果“keep_parsed”为 True,解析后的表示将保留在缓存中。 另请参阅:“已解析”"
165
166 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
167 #: of calibre.ebooks.oeb.polish.container.Container.dirty:1
168 msgid ""
169 "Mark the parsed object corresponding to name as dirty. See also: "
170 ":meth:`parsed`."
171 msgstr "将name对应的已解析对象标记为dirty。 另请参阅:“已解析”。"
172
173 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
174 #: of calibre.ebooks.oeb.polish.container.Container.exists:1
175 msgid ""
176 "True iff a file/folder corresponding to the canonical name exists. Note that"
177 " this function suffers from the limitations of the underlying OS filesystem,"
178 " in particular case (in)sensitivity. So on a case insensitive filesystem "
179 "this will return True even if the case of name is different from the case of"
180 " the underlying filesystem file. See also :meth:`has_name`"
181 msgstr "如果存在与规范名称相对应的文件/文件夹,则为 True。 请注意,此函数受到底层操作系统文件系统的限制,特别是大小写(不)敏感性。 因此,在不区分大小写的文件系统上,即使名称的大小写与底层文件系统文件的大小写不同,也会返回 True。 另请参阅“has_name”"
182
183 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
184 #: of calibre.ebooks.oeb.polish.container.Container.filesize:1
185 msgid ""
186 "Return the size in bytes of the file represented by the specified canonical "
187 "name. Automatically handles dirtied parsed objects. See also: :meth:`parsed`"
188 msgstr "返回由指定规范名称表示的文件的大小,以字节为单位。 自动处理混乱的解析对象。 另请参阅:“已解析”"
189
190 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
191 #: of calibre.ebooks.oeb.polish.container.Container.generate_item:1
192 msgid ""
193 "Add an item to the manifest with href derived from the given name. Ensures "
194 "uniqueness of href and id automatically. Returns generated item."
195 msgstr "使用从给定名称派生的HREF将项目添加到清单中。自动保证href和id的唯一性。返回生成的项。"
196
197 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
198 #: of
199 #: calibre.ebooks.oeb.polish.container.Container.get_file_path_for_processing:1
200 msgid ""
201 "Similar to open() except that it returns a file path, instead of an open "
202 "file object."
203 msgstr "与open()类似,不同之处在于它返回文件路径,而不是打开的文件对象。"
204
205 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
206 #: of calibre.ebooks.oeb.polish.container.Container.guide_type_map:1
207 msgid "Mapping of guide type to canonical name"
208 msgstr "指南类型到规范名称的映射"
209
210 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
211 #: of calibre.ebooks.oeb.polish.container.Container.has_name:1
212 msgid ""
213 "Return True iff a file with the same canonical name as that specified "
214 "exists. Unlike :meth:`exists` this method is always case-sensitive."
215 msgstr "当且仅当存在与指定名称具有相同规范名称的文件时返回 True。 与“exists”不同,此方法始终区分大小写。"
216
217 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
218 #: of calibre.ebooks.oeb.polish.container.Container.href_to_name:1
219 msgid ""
220 "Convert an href (relative to base) to a name. base must be a name or None, "
221 "in which case self.root is used."
222 msgstr "将 href(相对于 base)转换为名称。 base 必须是名称或 None,在这种情况下使用 self.root。"
223
224 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
225 #: of calibre.ebooks.oeb.polish.container.Container.insert_into_xml:1
226 msgid ""
227 "Insert item into parent (or append if index is None), fixing indentation. "
228 "Only works with self closing items."
229 msgstr "将项目插入父级(如果索引为无,则追加),修复缩进。仅适用于自动关闭的项目。"
230
231 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
232 #: of calibre.ebooks.oeb.polish.container.Container.is_dir:1
233 msgid "If this container represents an unzipped book (a directory)"
234 msgstr "如果此容器表示解压缩的图书(目录)"
235
236 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
237 #: of calibre.ebooks.oeb.polish.container.Container.iterlinks:1
238 msgid ""
239 "Iterate over all links in name. If get_line_numbers is True the yields "
240 "results of the form (link, line_number, offset). Where line_number is the "
241 "line_number at which the link occurs and offset is the number of characters "
242 "from the start of the line. Note that offset could actually encompass "
243 "several lines if not zero."
244 msgstr "遍历名称中的所有链接。 如果 get_line_numbers 为 True,则产生 (link, line_number, offset) 形式的结果。 其中 line_number 是发生链接的 line_number,offset 是距行开头的字符数。 请注意,如果偏移量不为零,则实际上可以包含多条线。"
245
246 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
247 #: of calibre.ebooks.oeb.polish.container.Container.make_name_unique:1
248 msgid ""
249 "Ensure that `name` does not already exist in this book. If it does, return a"
250 " modified version that does not exist."
251 msgstr "确保本书中不存在“name”。 如果存在,则返回不存在的修改版本。"
252
253 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
254 #: of calibre.ebooks.oeb.polish.container.Container.manifest_has_name:1
255 msgid "Return True if the manifest has an entry corresponding to name"
256 msgstr "如果清单具有与Name对应的条目,则返回True"
257
258 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
259 #: of calibre.ebooks.oeb.polish.container.Container.manifest_id_map:1
260 msgid "Mapping of manifest id to canonical names"
261 msgstr "清单ID到规范名称的映射"
262
263 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
264 #: of calibre.ebooks.oeb.polish.container.Container.manifest_items_of_type:1
265 msgid ""
266 "The names of all manifest items whose media-type matches predicate. "
267 "`predicate` can be a set, a list, a string or a function taking a single "
268 "argument, which will be called with the media-type."
269 msgstr "媒体类型与谓词匹配的所有清单项的名称。 `predicate` 可以是一个集合、一个列表、一个字符串或一个带有单个参数的函数,它将使用媒体类型进行调用。"
270
271 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
272 #: of
273 #: calibre.ebooks.oeb.polish.container.Container.manifest_items_with_property:1
274 msgid "All manifest items that have the specified property"
275 msgstr "具有指定属性的所有清单项"
276
277 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
278 #: of calibre.ebooks.oeb.polish.container.Container.manifest_type_map:1
279 msgid ""
280 "Mapping of manifest media-type to list of canonical names of that media-type"
281 msgstr "将清单媒体类型映射到该媒体类型的规范名称列表"
282
283 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
284 #: of calibre.ebooks.oeb.polish.container.Container.mi:1
285 msgid ""
286 "The metadata of this book as a Metadata object. Note that this object is "
287 "constructed on the fly every time this property is requested, so use it "
288 "sparingly."
289 msgstr "本书的元数据作为 Metadata 对象。 请注意,每次请求此属性时都会动态构造此对象,因此请谨慎使用它。"
290
291 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
292 #: of calibre.ebooks.oeb.polish.container.Container.name_to_abspath:1
293 msgid "Convert a canonical name to an absolute OS dependent path"
294 msgstr "将规范名称转换为操作系统相关的绝对路径"
295
296 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
297 #: of calibre.ebooks.oeb.polish.container.Container.name_to_href:1
298 msgid ""
299 "Convert a name to a href relative to base, which must be a name or None in "
300 "which case self.root is used as the base"
301 msgstr "将名称转换为相对于基准的 href,该基准必须是名称或 None,在这种情况下 self.root 用作基准"
302
303 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
304 #: of
305 #: calibre.ebooks.oeb.polish.container.Container.names_that_must_not_be_changed:1
306 msgid ""
307 "Set of names that must never be renamed. Depends on the e-book file format."
308 msgstr "绝对不能重命名的一组名称。 取决于电子书文件格式。"
309
310 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
311 #: of
312 #: calibre.ebooks.oeb.polish.container.Container.names_that_must_not_be_removed:1
313 msgid ""
314 "Set of names that must never be deleted from the container. Depends on the "
315 "e-book file format."
316 msgstr "绝不能从容器中删除的一组名称。 取决于电子书文件格式。"
317
318 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
319 #: of
320 #: calibre.ebooks.oeb.polish.container.Container.names_that_need_not_be_manifested:1
321 msgid ""
322 "Set of names that are allowed to be missing from the manifest. Depends on "
323 "the e-book file format."
324 msgstr "清单中允许缺失的名称集。 取决于电子书文件格式。"
325
326 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
327 #: of calibre.ebooks.oeb.polish.container.Container.open:1
328 msgid ""
329 "Open the file pointed to by name for direct read/write. Note that this will "
330 "commit the file if it is dirtied and remove it from the parse cache. You "
331 "must finish with this file before accessing the parsed version of it again, "
332 "or bad things will happen."
333 msgstr "打开名称指向的文件以进行直接读/写。 请注意,如果文件脏了,这将提交该文件并将其从解析缓存中删除。 在再次访问该文件的解析版本之前,您必须完成该文件,否则会发生不好的事情。"
334
335 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
336 #: of calibre.ebooks.oeb.polish.container.Container.opf:1
337 msgid "The parsed OPF file"
338 msgstr "解析后的OPF文件"
339
340 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
341 #: of calibre.ebooks.oeb.polish.container.Container.opf_get_or_create:1
342 msgid ""
343 "Convenience method to either return the first XML element with the specified"
344 " name or create it under the opf:package element and then return it, if it "
345 "does not already exist."
346 msgstr "返回具有指定名称的第一个 XML 元素或在 opf:package 元素下创建它然后返回它的便捷方法,如果它尚不存在。"
347
348 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
349 #: of calibre.ebooks.oeb.polish.container.Container.opf_version:1
350 msgid "The version set on the OPF's <package> element"
351 msgstr "OPF <package> 元素上设置的版本"
352
353 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
354 #: of calibre.ebooks.oeb.polish.container.Container.opf_version_parsed:1
355 msgid "The version set on the OPF's <package> element as a tuple of integers"
356 msgstr "OPF 的 <package> 元素上设置的版本作为整数元组"
357
358 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
359 #: of calibre.ebooks.oeb.polish.container.Container.opf_xpath:1
360 msgid ""
361 "Convenience method to evaluate an XPath expression on the OPF file, has the "
362 "opf: and dc: namespace prefixes pre-defined."
363 msgstr "计算 OPF 文件上的 XPath 表达式的便捷方法,具有预定义的 opf: 和 dc: 命名空间前缀。"
364
365 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
366 #: of calibre.ebooks.oeb.polish.container.Container.parsed:1
367 msgid ""
368 "Return a parsed representation of the file specified by name. For HTML and "
369 "XML files an lxml tree is returned. For CSS files a css_parser stylesheet is"
370 " returned. Note that parsed objects are cached for performance. If you make "
371 "any changes to the parsed object, you must call :meth:`dirty` so that the "
372 "container knows to update the cache. See also :meth:`replace`."
373 msgstr "返回按名称指定的文件的已解析表示形式。 对于 HTML 和 XML 文件,将返回 lxml 树。 对于 CSS 文件,会返回 css_parser 样式表。 请注意,已解析的对象会被缓存以提高性能。 如果对解析的对象进行任何更改,则必须调用“dirty”,以便容器知道更新缓存。 另请参阅“替换”。"
374
375 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
376 #: of calibre.ebooks.oeb.polish.container.Container.raw_data:1
377 msgid "Return the raw data corresponding to the file specified by name"
378 msgstr "返回name指定文件对应的原始数据"
379
380 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
381 #: of calibre.ebooks.oeb.polish.container.Container.raw_data:3
382 msgid ""
383 "If True and the file has a text based MIME type, decode it and return a "
384 "unicode object instead of raw bytes."
385 msgstr "如果为 True 并且文件具有基于文本的 MIME 类型,则对其进行解码并返回 unicode 对象而不是原始字节。"
386
387 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
388 #: of calibre.ebooks.oeb.polish.container.Container.raw_data:4
389 msgid ""
390 "If True the returned unicode object is normalized to the NFC normal form as "
391 "is required for the EPUB and AZW3 file formats."
392 msgstr "如果为 True,则返回的 unicode 对象将按照 EPUB 和 AZW3 文件格式的要求标准化为 NFC 范式。"
393
394 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
395 #: of calibre.ebooks.oeb.polish.container.Container.relpath:1
396 msgid ""
397 "Convert an absolute path (with OS separators) to a path relative to base "
398 "(defaults to self.root). The relative path is *not* a name. Use "
399 ":meth:`abspath_to_name` for that."
400 msgstr "将绝对路径(带有OS分隔符)转换为相对于基路径(默认为 self.root)的路径。 相对路径*不是*名称。 为此使用“abspath_to_name”。"
401
402 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
403 #: of calibre.ebooks.oeb.polish.container.Container.remove_from_spine:1
404 msgid ""
405 "Remove the specified items (by canonical name) from the spine. If "
406 "``remove_if_no_longer_in_spine`` is True, the items are also deleted from "
407 "the book, not just from the spine."
408 msgstr "从书脊中删除指定的项目(按规范名称)。 如果“remove_if_no_longer_in_spine”为 True,则这些项目也会从书中删除,而不仅仅是从书脊中删除。"
409
410 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
411 #: of calibre.ebooks.oeb.polish.container.Container.remove_from_xml:1
412 msgid ""
413 "Removes item from parent, fixing indentation (works only with self closing "
414 "items)"
415 msgstr "从父项中删除项目,修复缩进(仅适用于自闭合项目)"
416
417 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
418 #: of calibre.ebooks.oeb.polish.container.Container.remove_item:1
419 msgid ""
420 "Remove the item identified by name from this container. This removes all "
421 "references to the item in the OPF manifest, guide and spine as well as from "
422 "any internal caches."
423 msgstr "从此容器中移除按名称标识的项目。 这会删除 OPF 清单、指南和书脊以及任何内部缓存中对该项目的所有引用。"
424
425 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
426 #: of calibre.ebooks.oeb.polish.container.Container.rename:1
427 msgid ""
428 "Renames a file from current_name to new_name. It automatically rebases all "
429 "links inside the file if the folder the file is in changes. Note however, "
430 "that links are not updated in the other files that could reference this "
431 "file. This is for performance, such updates should be done once, in bulk."
432 msgstr "将文件从 current_name 重命名为 new_name。 如果文件所在的文件夹发生更改,它会自动重新设置文件内的所有链接的基准。 但请注意,可能引用该文件的其他文件中的链接不会更新。 这是为了性能,此类更新应该批量完成一次。"
433
434 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
435 #: of calibre.ebooks.oeb.polish.container.Container.replace:1
436 msgid ""
437 "Replace the parsed object corresponding to name with obj, which must be a "
438 "similar object, i.e. an lxml tree for HTML/XML or a css_parser stylesheet "
439 "for a CSS file."
440 msgstr "将 name 对应的已解析对象替换为 obj,它必须是相似的对象,即 HTML/XML 的 lxml 树或 CSS 文件的 css_parser 样式表。"
441
442 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
443 #: of calibre.ebooks.oeb.polish.container.Container.replace_links:1
444 msgid ""
445 "Replace all links in name using replace_func, which must be a callable that "
446 "accepts a URL and returns the replaced URL. It must also have a 'replaced' "
447 "attribute that is set to True if any actual replacement is done. Convenient "
448 "ways of creating such callables are using the :class:`LinkReplacer` and "
449 ":class:`LinkRebaser` classes."
450 msgstr "使用replace_func替换名称中的所有链接,它必须是接受URL并返回替换的URL的可调用函数。 如果完成任何实际替换,它还必须具有设置为 True 的“replaced”属性。 创建此类可调用对象的便捷方法是使用“LinkReplacer”和“LinkRebaser”类。"
451
452 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
453 #: of calibre.ebooks.oeb.polish.container.Container.serialize_item:1
454 msgid ""
455 "Convert a parsed object (identified by canonical name) into a bytestring. "
456 "See :meth:`parsed`."
457 msgstr "将已解析的对象(由规范名称标识)转换为字节串。 请参阅“已解析”。"
458
459 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
460 #: of calibre.ebooks.oeb.polish.container.Container.set_spine:1
461 msgid ""
462 "Set the spine to be spine_items where spine_items is an iterable of the form"
463 " (name, linear). Will raise an error if one of the names is not present in "
464 "the manifest."
465 msgstr "将spine 设置为spine_items,其中spine_items 是形式为(名称、线性)的可迭代对象。 如果清单中不存在其中一个名称,则会引发错误。"
466
467 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
468 #: of calibre.ebooks.oeb.polish.container.Container.spine_items:1
469 msgid ""
470 "An iterator yielding the path for every item in the books' spine. See also: "
471 ":attr:`spine_iter` and :attr:`spine_items`."
472 msgstr "一个迭代器,生成书脊中每个项目的路径。 另请参阅:“spine_iter”和“spine_items”。"
473
474 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
475 #: of calibre.ebooks.oeb.polish.container.Container.spine_iter:1
476 msgid ""
477 "An iterator that yields item, name is_linear for every item in the books' "
478 "spine. item is the lxml element, name is the canonical file name and "
479 "is_linear is True if the item is linear. See also: :attr:`spine_names` and "
480 ":attr:`spine_items`."
481 msgstr "一个迭代器,为书脊中的每个项目生成项目,名称为 is_linear。 item 是 lxml 元素,name 是规范文件名,如果 item 是线性的,则 is_linear 为 True。 另请参阅:“spine_names”和“spine_items”。"
482
483 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/container.pydocstring
484 #: of calibre.ebooks.oeb.polish.container.Container.spine_names:1
485 msgid ""
486 "An iterator yielding name and is_linear for every item in the books' spine. "
487 "See also: :attr:`spine_iter` and :attr:`spine_items`."
488 msgstr "一个迭代器,为书脊中的每个项目生成名称和 is_linear 。 另请参阅:“spine_iter”和“spine_items”。"
489
490 #: ../../../__w/calibre/calibre/manual/polish.rst:36
491 msgid "Managing component files in a container"
492 msgstr "管理容器中的组件文件"
493
494 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/replace.pydocstring
495 #: of calibre.ebooks.oeb.polish.replace.replace_links:1
496 msgid ""
497 "Replace links to files in the container. Will iterate over all files in the "
498 "container and change the specified links in them."
499 msgstr "替换容器中文件的链接。 将遍历容器中的所有文件并更改其中指定的链接。"
500
501 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/replace.pydocstring
502 #: of calibre.ebooks.oeb.polish.replace.replace_links:3
503 msgid ""
504 "A mapping of old canonical name to new canonical name. For example: "
505 ":code:`{'images/old.png': 'images/new.png'}`"
506 msgstr "旧规范名称到新规范名称的映射。 例如: `{'images/old.png': 'images/new.png'}`"
507
508 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/replace.pydocstring
509 #: of calibre.ebooks.oeb.polish.replace.replace_links:4
510 msgid ""
511 "A callable that takes two arguments ``(name, anchor)`` and returns a new "
512 "anchor. This is useful if you need to change the anchors in HTML files. By "
513 "default, it does nothing."
514 msgstr "一个可调用函数,它接受两个参数``(name,anchor)``并返回一个新的锚点。 如果您需要更改 HTML 文件中的锚点,这非常有用。 默认情况下,它不执行任何操作。"
515
516 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/replace.pydocstring
517 #: of calibre.ebooks.oeb.polish.replace.replace_links:7
518 msgid "If False, links are not replaced in the OPF file."
519 msgstr "如果为 False,则不会替换 OPF 文件中的链接。"
520
521 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/replace.pydocstring
522 #: of calibre.ebooks.oeb.polish.replace.rename_files:1
523 msgid ""
524 "Rename files in the container, automatically updating all links to them."
525 msgstr "重命名容器中的文件,自动更新它们的所有链接。"
526
527 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/replace.pydocstring
528 #: of calibre.ebooks.oeb.polish.replace.rename_files:3
529 msgid ""
530 "A mapping of old canonical name to new canonical name, for example: "
531 ":code:`{'text/chapter1.html': 'chapter1.html'}`."
532 msgstr "旧规范名称到新规范名称的映射,例如:`{'text/chapter1.html': 'chapter1.html'}`。"
533
534 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/replace.pydocstring
535 #: of calibre.ebooks.oeb.polish.replace.get_recommended_folders:1
536 msgid ""
537 "Return the folders that are recommended for the given filenames. The "
538 "recommendation is based on where the majority of files of the same type are "
539 "located in the container. If no files of a particular type are present, the "
540 "recommended folder is assumed to be the folder containing the OPF file."
541 msgstr "返回为给定文件名推荐的文件夹。 该建议基于大多数相同类型的文件在容器中的位置。 如果不存在特定类型的文件,则假定推荐的文件夹是包含 OPF 文件的文件夹。"
542
543 #: ../../../__w/calibre/calibre/manual/polish.rst:47
544 msgid "Pretty printing and auto fixing parse errors"
545 msgstr "漂亮的打印和自动修复解析错误"
546
547 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/pretty.pydocstring
548 #: of calibre.ebooks.oeb.polish.pretty.fix_html:1
549 msgid ""
550 "Fix any parsing errors in the HTML represented as a string in raw. Fixing is"
551 " done using the HTML5 parsing algorithm."
552 msgstr "修复以原始字符串表示的 HTML 中的任何解析错误。 使用 HTML5 解析算法完成修复。"
553
554 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/pretty.pydocstring
555 #: of calibre.ebooks.oeb.polish.pretty.fix_all_html:1
556 msgid ""
557 "Fix any parsing errors in all HTML files in the container. Fixing is done "
558 "using the HTML5 parsing algorithm."
559 msgstr "修复容器中所有 HTML 文件中的任何解析错误。 使用 HTML5 解析算法完成修复。"
560
561 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/pretty.pydocstring
562 #: of calibre.ebooks.oeb.polish.pretty.pretty_html:1
563 msgid "Pretty print the HTML represented as a string in raw"
564 msgstr "漂亮地打印以原始字符串表示的 HTML"
565
566 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/pretty.pydocstring
567 #: of calibre.ebooks.oeb.polish.pretty.pretty_css:1
568 msgid "Pretty print the CSS represented as a string in raw"
569 msgstr "漂亮地打印以原始字符串表示的 CSS"
570
571 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/pretty.pydocstring
572 #: of calibre.ebooks.oeb.polish.pretty.pretty_xml:1
573 msgid ""
574 "Pretty print the XML represented as a string in raw. If ``name`` is the name"
575 " of the OPF, extra OPF-specific prettying is performed."
576 msgstr "漂亮地打印以原始字符串形式表示的 XML。 如果“name”是 OPF 的名称,则会执行额外的 OPF 特定的美化。"
577
578 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/pretty.pydocstring
579 #: of calibre.ebooks.oeb.polish.pretty.pretty_all:1
580 msgid "Pretty print all HTML/CSS/XML files in the container"
581 msgstr "漂亮地打印容器中的所有 HTML/CSS/XML 文件"
582
583 #: ../../../__w/calibre/calibre/manual/polish.rst:65
584 msgid "Managing book jackets"
585 msgstr "管理书封"
586
587 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/jacket.pydocstring
588 #: of calibre.ebooks.oeb.polish.jacket.remove_jacket:1
589 msgid ""
590 "Remove an existing jacket, if any. Returns False if no existing jacket was "
591 "found."
592 msgstr "除去现有的书皮,如果有。 如果未找到现有的书封,则返回 False。"
593
594 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/jacket.pydocstring
595 #: of calibre.ebooks.oeb.polish.jacket.add_or_replace_jacket:1
596 msgid ""
597 "Either create a new jacket from the book's metadata or replace an existing "
598 "jacket. Returns True if an existing jacket was replaced."
599 msgstr "从书籍的元数据创建新的封面或替换现有的书籍封面。 如果替换了现有的书皮,则返回 True。"
600
601 #: ../../../__w/calibre/calibre/manual/polish.rst:74
602 msgid "Splitting and merging of files"
603 msgstr "文件的分割和合并"
604
605 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/split.pydocstring
606 #: of calibre.ebooks.oeb.polish.split.split:1
607 msgid ""
608 "Split the file specified by name at the position specified by loc_or_xpath. "
609 "Splitting automatically migrates all links and references to the affected "
610 "files."
611 msgstr "在 loc_or_xpath 指定的位置分割 name 指定的文件。 拆分会自动迁移受影响文件的所有链接和引用。"
612
613 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/split.pydocstring
614 #: of calibre.ebooks.oeb.polish.split.split:5
615 msgid ""
616 "Should be an XPath expression such as //h:div[@id=\"split_here\"]. Can also "
617 "be a *loc* which is used internally to implement splitting in the preview "
618 "panel."
619 msgstr "应该是 XPath 表达式,例如 //h:div[@id=\"split_here\"]。 也可以是 *loc*,在内部用于实现预览面板中的分割。"
620
621 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/split.pydocstring
622 #: of calibre.ebooks.oeb.polish.split.split:8
623 msgid ""
624 "If True the split occurs before the identified element otherwise after it."
625 msgstr "如果为 True,则分割发生在所识别的元素之前,否则发生在其之后。"
626
627 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/split.pydocstring
628 #: of calibre.ebooks.oeb.polish.split.split:9
629 msgid "Used internally"
630 msgstr "内部使用"
631
632 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/split.pydocstring
633 #: of calibre.ebooks.oeb.polish.split.multisplit:1
634 msgid ""
635 "Split the specified file at multiple locations (all tags that match the "
636 "specified XPath expression). See also: :func:`split`. Splitting "
637 "automatically migrates all links and references to the affected files."
638 msgstr "在多个位置拆分指定文件(与指定 XPath 表达式匹配的所有标记)。 另请参阅:“拆分”。 拆分会自动迁移受影响文件的所有链接和引用。"
639
640 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/split.pydocstring
641 #: of calibre.ebooks.oeb.polish.split.multisplit:5
642 msgid ""
643 "If True the splits occur before the identified element otherwise after it."
644 msgstr "如果为 True,则分割发生在所识别的元素之前,否则发生在其之后。"
645
646 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/split.pydocstring
647 #: of calibre.ebooks.oeb.polish.split.merge:1
648 msgid ""
649 "Merge the specified files into a single file, automatically migrating all "
650 "links and references to the affected files. The file must all either be HTML"
651 " or CSS files."
652 msgstr "将指定文件合并为单个文件,自动迁移受影响文件的所有链接和引用。 该文件必须全部是 HTML 或 CSS 文件。"
653
654 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/split.pydocstring
655 #: of calibre.ebooks.oeb.polish.split.merge:4
656 msgid "Must be either ``'text'`` for HTML files or ``'styles'`` for CSS files"
657 msgstr "对于 HTML 文件必须是 ``'text'`` 对于 CSS 文件必须是 ``'styles'``"
658
659 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/split.pydocstring
660 #: of calibre.ebooks.oeb.polish.split.merge:5
661 msgid "The list of files to be merged"
662 msgstr "要合并的文件列表"
663
664 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/split.pydocstring
665 #: of calibre.ebooks.oeb.polish.split.merge:6
666 msgid ""
667 "Which of the merged files is the *master* file, that is, the file that will "
668 "remain after merging."
669 msgstr "合并后的文件中哪个是*主*文件,即合并后保留的文件。"
670
671 #: ../../../__w/calibre/calibre/manual/polish.rst:85
672 msgid "Managing covers"
673 msgstr "管理封面"
674
675 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/cover.pydocstring
676 #: of calibre.ebooks.oeb.polish.cover.set_cover:1
677 msgid "Set the cover of the book to the image pointed to by cover_path."
678 msgstr "将书籍的封面设置为 cover_path 指向的图像。"
679
680 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/cover.pydocstring
681 #: of calibre.ebooks.oeb.polish.cover.set_cover:3
682 msgid ""
683 "Either the absolute path to an image file or the canonical name of an image "
684 "in the book. When using an image in the book, you must also set options, see"
685 " below."
686 msgstr "图像文件的绝对路径或书中图像的规范名称。 使用书中的图像时,您还必须设置选项,请参见下文。"
687
688 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/cover.pydocstring
689 #: of calibre.ebooks.oeb.polish.cover.set_cover:6
690 msgid ""
691 "An optional callable that takes a single argument. It will be called with "
692 "information about the tasks being processed."
693 msgstr "带有单个参数的可选可调用对象。 它将被调用并提供有关正在处理的任务的信息。"
694
695 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/cover.pydocstring
696 #: of calibre.ebooks.oeb.polish.cover.set_cover:8
697 msgid ""
698 "None or a dictionary that controls how the cover is set. The dictionary can "
699 "have entries: **keep_aspect**: True or False (Preserve aspect ratio of "
700 "covers in EPUB) **no_svg**: True or False (Use an SVG cover wrapper in the "
701 "EPUB titlepage) **existing**: True or False (``cover_path`` refers to an "
702 "existing image in the book)"
703 msgstr "无或控制封面设置方式的字典。 字典可以包含条目: **keep_aspect**:True 或 False(保留 EPUB 中封面的宽高比) **no_svg**:True 或 False(在 EPUB 标题页中使用 SVG 封面包装) **现有**: 对或错(“cover_path”指的是书中现有的图像)"
704
705 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/cover.pydocstring
706 #: of calibre.ebooks.oeb.polish.cover.mark_as_cover:1
707 msgid "Mark the specified image as the cover image."
708 msgstr "将指定图像标记为封面图像。"
709
710 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/cover.pydocstring
711 #: of calibre.ebooks.oeb.polish.cover.mark_as_titlepage:1
712 msgid "Mark the specified HTML file as the titlepage of the EPUB."
713 msgstr "将指定的 HTML 文件标记为 EPUB 的标题页。"
714
715 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/cover.pydocstring
716 #: of calibre.ebooks.oeb.polish.cover.mark_as_titlepage:3
717 msgid "If True the HTML file is moved to the start of the spine"
718 msgstr "如果为 True,则 HTML 文件将移动到书脊的开头"
719
720 #: ../../../__w/calibre/calibre/manual/polish.rst:96
721 msgid "Working with CSS"
722 msgstr "使用 CSS"
723
724 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/fonts.pydocstring
725 #: of calibre.ebooks.oeb.polish.fonts.change_font:1
726 msgid ""
727 "Change a font family from old_name to new_name. Changes all occurrences of "
728 "the font family in stylesheets, style tags and style attributes. If the "
729 "old_name refers to an embedded font, it is removed. You can set new_name to "
730 "None to remove the font family instead of changing it."
731 msgstr "将字体系列从 old_name 更改为 new_name。 更改样式表、样式标签和样式属性中所有出现的字体系列。 如果 old_name 引用嵌入字体,则将其删除。 您可以将 new_name 设置为 None 以删除字体系列而不是更改它。"
732
733 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/css.pydocstring
734 #: of calibre.ebooks.oeb.polish.css.remove_unused_css:1
735 msgid ""
736 "Remove all unused CSS rules from the book. An unused CSS rule is one that "
737 "does not match any actual content."
738 msgstr "从书中删除所有未使用的 CSS 规则。 未使用的 CSS 规则是指与任何实际内容都不匹配的规则。"
739
740 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/css.pydocstring
741 #: of calibre.ebooks.oeb.polish.css.remove_unused_css:3
742 msgid ""
743 "An optional callable that takes a single argument. It is called with "
744 "information about the operations being performed."
745 msgstr "带有单个参数的可选可调用对象。 调用它时会包含有关正在执行的操作的信息。"
746
747 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/css.pydocstring
748 #: of calibre.ebooks.oeb.polish.css.remove_unused_css:4
749 msgid ""
750 "If True, class attributes in the HTML that do not match any CSS rules are "
751 "also removed."
752 msgstr "如果为 True,则 HTML 中与任何 CSS 规则不匹配的类属性也会被删除。"
753
754 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/css.pydocstring
755 #: of calibre.ebooks.oeb.polish.css.remove_unused_css:5
756 msgid "If True, rules with identical selectors are merged."
757 msgstr "如果为 True,则合并具有相同选择器的规则。"
758
759 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/css.pydocstring
760 #: of calibre.ebooks.oeb.polish.css.remove_unused_css:6
761 msgid "If True, rules with identical properties are merged."
762 msgstr "如果为 True,则合并具有相同属性的规则。"
763
764 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/css.pydocstring
765 #: of calibre.ebooks.oeb.polish.css.remove_unused_css:7
766 msgid ""
767 "If True, stylesheets that are not referenced by any content are removed"
768 msgstr "如果为 True,则删除任何内容未引用的样式表"
769
770 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/css.pydocstring
771 #: of calibre.ebooks.oeb.polish.css.filter_css:1
772 msgid "Remove the specified CSS properties from all CSS rules in the book."
773 msgstr "从本书中的所有 CSS 规则中删除指定的 CSS 属性。"
774
775 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/css.pydocstring
776 #: of calibre.ebooks.oeb.polish.css.filter_css:3
777 msgid ""
778 "Set of properties to remove. For example: :code:`{'font-family', 'color'}`."
779 msgstr "要删除的属性集。 例如:`{'font-family', 'color'}`。"
780
781 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/css.pydocstring
782 #: of calibre.ebooks.oeb.polish.css.filter_css:4
783 msgid ""
784 "The files from which to remove the properties. Defaults to all HTML and CSS "
785 "files in the book."
786 msgstr "要从中删除属性的文件。 默认为书中的所有 HTML 和 CSS 文件。"
787
788 #: ../../../__w/calibre/calibre/manual/polish.rst:108
789 msgid "Working with the Table of Contents"
790 msgstr "使用目录"
791
792 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/toc.pydocstring
793 #: of calibre.ebooks.oeb.polish.toc.from_xpaths:1
794 msgid ""
795 "Generate a Table of Contents from a list of XPath expressions. Each "
796 "expression in the list corresponds to a level of the generate ToC. For "
797 "example: :code:`['//h:h1', '//h:h2', '//h:h3']` will generate a three level "
798 "Table of Contents from the ``<h1>``, ``<h2>`` and ``<h3>`` tags."
799 msgstr "从 XPath 表达式列表生成目录。 列表中的每个表达式对应于生成目录的一个级别。 例如: `['//h:h1', '//h:h2', '//h:h3']` 将从 ``<h1>``, ``<h2>` 生成三级目录 ` 和 ``<h3>`` 标签。"
800
801 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/toc.pydocstring
802 #: of calibre.ebooks.oeb.polish.toc.from_links:1
803 msgid "Generate a Table of Contents from links in the book."
804 msgstr "从书中的链接生成目录。"
805
806 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/toc.pydocstring
807 #: of calibre.ebooks.oeb.polish.toc.from_files:1
808 msgid "Generate a Table of Contents from files in the book."
809 msgstr "从书中的文件生成目录。"
810
811 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/toc.pydocstring
812 #: of calibre.ebooks.oeb.polish.toc.create_inline_toc:1
813 msgid ""
814 "Create an inline (HTML) Table of Contents from an existing NCX Table of "
815 "Contents."
816 msgstr "从现有 NCX 目录创建内联 (HTML) 目录。"
817
818 #: ../../../__w/calibre/calibre/src/calibre/ebooks/oeb/polish/toc.pydocstring
819 #: of calibre.ebooks.oeb.polish.toc.create_inline_toc:3
820 msgid "The title for this table of contents."
821 msgstr "此目录的标题。"
822
823 #: ../../../__w/calibre/calibre/manual/polish.rst:122
824 msgid "Edit book tool"
825 msgstr "书籍编辑工具"
826
827 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
828 #: of calibre.gui2.tweak_book.plugin.Tool:1
829 msgid ""
830 "The base class for individual tools in an Edit Book plugin. Useful members "
831 "include:"
832 msgstr "编辑图书插件中各个工具的基类。 有用的成员包括:"
833
834 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
835 #: of calibre.gui2.tweak_book.plugin.Tool:3
836 msgid ""
837 "``self.plugin``: A reference to the :class:`calibre.customize.Plugin` object"
838 " to which this tool belongs."
839 msgstr "“self.plugin”:对该工具所属的“calibre.customize.Plugin”对象的引用。"
840
841 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
842 #: of calibre.gui2.tweak_book.plugin.Tool:4
843 msgid "self. :attr:`boss`"
844 msgstr "self. `boss`"
845
846 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
847 #: of calibre.gui2.tweak_book.plugin.Tool:5
848 msgid "self. :attr:`gui`"
849 msgstr "self. `gui`"
850
851 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
852 #: of calibre.gui2.tweak_book.plugin.Tool:7
853 msgid "Methods that must be overridden in sub classes:"
854 msgstr "必须在子类中重写的方法:"
855
856 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
857 #: of calibre.gui2.tweak_book.plugin.Tool:9
858 msgid ":meth:`create_action`"
859 msgstr "`创建动作`"
860
861 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
862 #: of calibre.gui2.tweak_book.plugin.Tool:10
863 msgid ":meth:`register_shortcut`"
864 msgstr "`注册快捷方式`"
865
866 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
867 #: of calibre.gui2.tweak_book.plugin.Tool.name:1
868 msgid "Set this to a unique name it will be used as a key"
869 msgstr "将其设置为一个唯一的名称,它将用作密钥"
870
871 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
872 #: of calibre.gui2.tweak_book.plugin.Tool.allowed_in_toolbar:1
873 msgid "If True the user can choose to place this tool in the plugins toolbar"
874 msgstr "如果为 True,用户可以选择将此工具放置在插件工具栏中"
875
876 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
877 #: of calibre.gui2.tweak_book.plugin.Tool.allowed_in_menu:1
878 msgid "If True the user can choose to place this tool in the plugins menu"
879 msgstr "如果为 True,则用户可以选择将此工具放置在插件菜单中"
880
881 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
882 #: of calibre.gui2.tweak_book.plugin.Tool.toolbar_button_popup_mode:1
883 msgid ""
884 "The popup mode for the menu (if any) of the toolbar button. Possible values "
885 "are 'delayed', 'instant', 'button'"
886 msgstr "工具栏按钮的菜单(如果有)的弹出模式。 可能的值为“延迟”、“即时”、“按钮”"
887
888 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
889 #: of calibre.gui2.tweak_book.plugin.Tool.boss:1
890 msgid ""
891 "The :class:`calibre.gui2.tweak_book.boss.Boss` object. Used to control the "
892 "user interface."
893 msgstr "`calibre.gui2.tweak_book.boss.Boss` 对象。 用于控制用户界面。"
894
895 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
896 #: of calibre.gui2.tweak_book.plugin.Tool.gui:1
897 msgid "The main window of the user interface"
898 msgstr "用户界面的主窗口"
899
900 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
901 #: of calibre.gui2.tweak_book.plugin.Tool.current_container:1
902 msgid ""
903 "Return the current :class:`calibre.ebooks.oeb.polish.container.Container` "
904 "object that represents the book being edited."
905 msgstr "返回表示正在编辑的书籍的当前“calibre.ebooks.oeb.polish.container.Container”对象。"
906
907 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
908 #: of calibre.gui2.tweak_book.plugin.Tool.register_shortcut:1
909 msgid ""
910 "Register a keyboard shortcut that will trigger the specified ``qaction``. "
911 "This keyboard shortcut will become automatically customizable by the user in"
912 " the Keyboard shortcuts section of the editor preferences."
913 msgstr "注册将触发指定的“qaction”的键盘快捷键。 用户将在编辑器首选项的“键盘快捷键”部分中自动自定义此键盘快捷键。"
914
915 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
916 #: of calibre.gui2.tweak_book.plugin.Tool.register_shortcut:4
917 msgid ""
918 "A QAction object, it will be triggered when the configured key combination "
919 "is pressed by the user."
920 msgstr "一个 QAction 对象,当用户按下配置的组合键时会触发该对象。"
921
922 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
923 #: of calibre.gui2.tweak_book.plugin.Tool.register_shortcut:6
924 msgid ""
925 "A unique name for this shortcut/action. It will be used internally, it must "
926 "not be shared by any other actions in this plugin."
927 msgstr "此快捷方式/操作的唯一名称。 它将在内部使用,不得与此插件中的任何其他操作共享。"
928
929 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
930 #: of calibre.gui2.tweak_book.plugin.Tool.register_shortcut:9
931 msgid ""
932 "A list of the default keyboard shortcuts. If not specified no default "
933 "shortcuts will be set. If the shortcuts specified here conflict with either "
934 "builtin shortcuts or shortcuts from user configuration/other plugins, they "
935 "will be ignored. In that case, users will have to configure the shortcuts "
936 "manually via Preferences. For example: ``default_keys=('Ctrl+J', 'F9')``."
937 msgstr "默认键盘快捷键列表。 如果未指定,则不会设置默认快捷方式。 如果此处指定的快捷方式与内置快捷方式或用户配置/其他插件的快捷方式冲突,它们将被忽略。 在这种情况下,用户必须通过首选项手动配置快捷方式。 例如:``default_keys=('Ctrl+J', 'F9')``。"
938
939 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
940 #: of calibre.gui2.tweak_book.plugin.Tool.register_shortcut:15
941 msgid ""
942 "An optional short description of this action. If not specified the text from"
943 " the QAction will be used."
944 msgstr "此操作的可选简短描述。 如果未指定,将使用 QAction 中的文本。"
945
946 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
947 #: of calibre.gui2.tweak_book.plugin.Tool.register_shortcut:17
948 msgid ""
949 "An optional longer description of this action, it will be used in the "
950 "preferences entry for this shortcut."
951 msgstr "此操作的可选较长描述,它将用于此快捷方式的首选项条目中。"
952
953 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
954 #: of calibre.gui2.tweak_book.plugin.Tool.create_action:1
955 msgid ""
956 "Create a QAction that will be added to either the plugins toolbar or the "
957 "plugins menu depending on ``for_toolbar``. For example::"
958 msgstr "创建一个 QAction,根据“for_toolbar”将其添加到插件工具栏或插件菜单中。 例如:"
959
960 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/plugin.pydocstring
961 #: of calibre.gui2.tweak_book.plugin.Tool.create_action:19
962 msgid "Method :meth:`register_shortcut`."
963 msgstr "方法“register_shortcut”。"
964
965 #: ../../../__w/calibre/calibre/manual/polish.rst:131
966 msgid "Controlling the editor's user interface"
967 msgstr "控制编辑器的用户界面"
968
969 #: ../../../__w/calibre/calibre/manual/polish.rst:133
970 msgid ""
971 "The e-book editor's user interface is controlled by a single global *Boss* "
972 "object. This has many useful methods that can be used in plugin code to "
973 "perform common tasks."
974 msgstr "电子书编辑器的用户界面由单个全局 *Boss* 对象控制。 它有许多有用的方法,可以在插件代码中使用来执行常见任务。"
975
976 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
977 #: of calibre.gui2.tweak_book.boss.Boss.add_savepoint:1
978 msgid "Create a restore checkpoint with the name specified as ``msg``"
979 msgstr "创建一个恢复检查点,名称指定为“msg”"
980
981 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
982 #: of calibre.gui2.tweak_book.boss.Boss.apply_container_update_to_gui:1
983 msgid ""
984 "Update all the components of the user interface to reflect the latest data "
985 "in the current book container."
986 msgstr "更新用户界面的所有组件以反映当前书籍容器中的最新数据。"
987
988 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
989 #: of calibre.gui2.tweak_book.boss.Boss.apply_container_update_to_gui:3
990 msgid ""
991 "If True, the book will be marked as modified, so the user will be prompted "
992 "to save it when quitting."
993 msgstr "如果为 True,该书将被标记为已修改,因此退出时将提示用户保存它。"
994
995 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
996 #: of calibre.gui2.tweak_book.boss.Boss.close_editor:1
997 msgid "Close the editor that is editing the file specified by ``name``"
998 msgstr "关闭正在编辑“name”指定文件的编辑器"
999
1000 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
1001 #: of calibre.gui2.tweak_book.boss.Boss.commit_all_editors_to_container:1
1002 msgid ""
1003 "Commit any changes that the user has made to files open in editors to the "
1004 "container. You should call this method before performing any actions on the "
1005 "current container"
1006 msgstr "将用户对编辑器中打开的文件所做的任何更改提交到容器。 您应该在对当前容器执行任何操作之前调用此方法"
1007
1008 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
1009 #: of calibre.gui2.tweak_book.boss.Boss.currently_editing:1
1010 msgid ""
1011 "Return the name of the file being edited currently or None if no file is "
1012 "being edited"
1013 msgstr "返回当前正在编辑的文件的名称,如果没有正在编辑的文件,则返回 None"
1014
1015 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
1016 #: of calibre.gui2.tweak_book.boss.Boss.edit_file:1
1017 msgid "Open the file specified by name in an editor"
1018 msgstr "在编辑器中打开按名称指定的文件"
1019
1020 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
1021 #: of calibre.gui2.tweak_book.boss.Boss.edit_file:3
1022 msgid ""
1023 "The media type of the file, for example, ``'text/html'``. If not specified "
1024 "it is guessed from the file extension."
1025 msgstr "文件的媒体类型,例如``'text/html'``。 如果未指定,则从文件扩展名猜测。"
1026
1027 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
1028 #: of calibre.gui2.tweak_book.boss.Boss.edit_file:4
1029 msgid "A template to initialize the opened editor with"
1030 msgstr "用于初始化打开的编辑器的模板"
1031
1032 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
1033 #: of calibre.gui2.tweak_book.boss.Boss.open_book:1
1034 msgid ""
1035 "Open the e-book at ``path`` for editing. Will show an error if the e-book is"
1036 " not in a supported format or the current book has unsaved changes."
1037 msgstr "打开“path”处的电子书进行编辑。 如果电子书的格式不受支持或当前书籍有未保存的更改,则会显示错误。"
1038
1039 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
1040 #: of calibre.gui2.tweak_book.boss.Boss.open_book:3
1041 msgid ""
1042 "The name of a file inside the newly opened book to start editing. Can also "
1043 "be a list of names."
1044 msgstr "新打开的书籍中要开始编辑的文件的名称。 也可以是姓名列表。"
1045
1046 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
1047 #: of calibre.gui2.tweak_book.boss.Boss.rewind_savepoint:1
1048 msgid ""
1049 "Undo the previous creation of a restore checkpoint, useful if you create a "
1050 "checkpoint, then abort the operation with no changes"
1051 msgstr "撤消之前创建的恢复检查点,如果您创建检查点,然后中止操作而不进行任何更改,则非常有用"
1052
1053 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
1054 #: of calibre.gui2.tweak_book.boss.Boss.save_book:1
1055 msgid "Save the book. Saving is performed in the background"
1056 msgstr "保存这本书。 保存在后台执行"
1057
1058 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
1059 #: of calibre.gui2.tweak_book.boss.Boss.set_modified:1
1060 msgid "Mark the book as having been modified"
1061 msgstr "将书标记为已修改"
1062
1063 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
1064 #: of calibre.gui2.tweak_book.boss.Boss.show_current_diff:1
1065 msgid "Show the changes to the book from its last checkpointed state"
1066 msgstr "显示书籍相对于上次检查点状态的更改"
1067
1068 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
1069 #: of calibre.gui2.tweak_book.boss.Boss.show_current_diff:3
1070 msgid ""
1071 "If True the diff dialog will have a button to allow the user to revert all "
1072 "changes"
1073 msgstr "如果为 True,diff 对话框将有一个按钮允许用户恢复所有更改"
1074
1075 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
1076 #: of calibre.gui2.tweak_book.boss.Boss.show_current_diff:4
1077 msgid ""
1078 "A container object to compare the current container to. If None, the "
1079 "previously checkpointed container is used"
1080 msgstr "与当前容器进行比较的容器对象。 如果没有,则使用先前设置检查点的容器"
1081
1082 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
1083 #: of calibre.gui2.tweak_book.boss.Boss.show_editor:1
1084 msgid "Show the editor that is editing the file specified by ``name``"
1085 msgstr "显示正在编辑“name”指定文件的编辑器"
1086
1087 #: ../../../__w/calibre/calibre/src/calibre/gui2/tweak_book/boss.pydocstring
1088 #: of calibre.gui2.tweak_book.boss.Boss.sync_preview_to_editor:1
1089 msgid ""
1090 "Sync the position of the preview panel to the current cursor position in the"
1091 " current editor"
1092 msgstr "将预览面板的位置同步到当前编辑器中的当前光标位置"