Debian Codegraph @

translations/manual/zh_TW/plugins.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 msgid ""
7 msgstr ""
8 "Project-Id-Version: calibre\n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2026-02-17 16:44+0000\n"
11 "PO-Revision-Date: 2014-06-17 08:35+0000\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: Chinese (Taiwan) (http://app.transifex.com/calibre/calibre/language/zh_TW/)\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Language: zh_TW\n"
18 "Plural-Forms: nplurals=1; plural=0;\n"
19
20 #: ../../../__w/calibre/calibre/manual/plugins.rst:4
21 msgid "API documentation for plugins"
22 msgstr "插件API文档"
23
24 #: ../../../__w/calibre/calibre/manual/plugins.rst:9
25 msgid ""
26 "Defines various abstract base classes that can be subclassed to create "
27 "powerful plugins. The useful classes are:"
28 msgstr "定义了各种抽象的基类,它们的子类可以创建功能强大的插件。这些有用的类包括:"
29
30 #: ../../../__w/calibre/calibre/manual/plugins.rst:19
31 msgid "Plugin"
32 msgstr "插件"
33
34 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
35 #: calibre.customize.Plugin:1
36 msgid "A calibre plugin. Useful members include:"
37 msgstr "一个 calibre 插件。重要的成员包括:"
38
39 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
40 #: calibre.customize.Plugin:3
41 msgid "``self.installation_type``: Stores how the plugin was installed."
42 msgstr ""
43
44 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
45 #: calibre.customize.Plugin:4
46 msgid "``self.plugin_path``: Stores path to the ZIP file that contains"
47 msgstr ""
48
49 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
50 #: calibre.customize.Plugin:5
51 msgid "this plugin or None if it is a builtin plugin"
52 msgstr "这个插件或空(当它是一个内建插件)"
53
54 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
55 #: calibre.customize.Plugin:7
56 msgid "``self.site_customization``: Stores a customization string entered"
57 msgstr "``self.site_customization``: 存储一个用户输入的自定义字符串"
58
59 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
60 #: calibre.customize.Plugin:8
61 msgid "by the user."
62 msgstr "。"
63
64 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
65 #: calibre.customize.Plugin:10
66 msgid "Methods that should be overridden in sub classes:"
67 msgstr "在子类中应当重写的方法:"
68
69 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
70 #: calibre.customize.Plugin:12
71 msgid ":meth:`initialize`"
72 msgstr ":meth:`initialize`"
73
74 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
75 #: calibre.customize.Plugin:13
76 msgid ":meth:`customization_help`"
77 msgstr ":meth:`customization_help`"
78
79 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
80 #: calibre.customize.Plugin:15
81 msgid "Useful methods:"
82 msgstr "有用的方法:"
83
84 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
85 #: calibre.customize.Plugin:17
86 msgid ":meth:`temporary_file`"
87 msgstr ":meth:`temporary_file`"
88
89 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
90 #: calibre.customize.Plugin:18
91 msgid ":meth:`__enter__`"
92 msgstr ":meth:`__enter__`"
93
94 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
95 #: calibre.customize.Plugin:19
96 msgid ":meth:`load_resources`"
97 msgstr ":meth:`load_resources`"
98
99 #: ../../../__w/calibre/calibre/manual/docstring of
100 #: calibre.customize.InterfaceActionBase.supported_platforms:1
101 #: ../../../__w/calibre/calibre/manual/docstring of
102 #: calibre.customize.MetadataReaderPlugin.supported_platforms:1
103 #: ../../../__w/calibre/calibre/manual/docstring of
104 #: calibre.customize.MetadataWriterPlugin.supported_platforms:1
105 #: ../../../__w/calibre/calibre/manual/docstring of
106 #: calibre.customize.Plugin.supported_platforms:1
107 #: ../../../__w/calibre/calibre/manual/docstring of
108 #: calibre.customize.PreferencesPlugin.supported_platforms:1
109 #: ../../../__w/calibre/calibre/manual/docstring of
110 #: calibre.customize.conversion.InputFormatPlugin.supported_platforms:1
111 #: ../../../__w/calibre/calibre/manual/docstring of
112 #: calibre.customize.conversion.OutputFormatPlugin.supported_platforms:1
113 #: ../../../__w/calibre/calibre/manual/docstring of
114 #: calibre.devices.usbms.driver.USBMS.supported_platforms:1
115 #: ../../../__w/calibre/calibre/manual/docstring of
116 #: calibre.ebooks.metadata.sources.base.Source.supported_platforms:1
117 msgid ""
118 "List of platforms this plugin works on. For example: ``['windows', 'osx', "
119 "'linux']``"
120 msgstr "插件工作平台列表,例如:``['windows', 'osx', 'linux']``"
121
122 #: ../../../__w/calibre/calibre/manual/docstring of
123 #: calibre.customize.Plugin.name:1
124 msgid ""
125 "The name of this plugin. You must set it something other than Trivial Plugin"
126 " for it to work."
127 msgstr ""
128
129 #: ../../../__w/calibre/calibre/manual/docstring of
130 #: calibre.customize.MetadataReaderPlugin.version:1
131 #: ../../../__w/calibre/calibre/manual/docstring of
132 #: calibre.customize.MetadataWriterPlugin.version:1
133 #: ../../../__w/calibre/calibre/manual/docstring of
134 #: calibre.customize.Plugin.version:1
135 msgid "The version of this plugin as a 3-tuple (major, minor, revision)"
136 msgstr ""
137
138 #: ../../../__w/calibre/calibre/manual/docstring of
139 #: calibre.customize.Plugin.description:1
140 #: ../../../__w/calibre/calibre/manual/docstring of
141 #: calibre.devices.usbms.driver.USBMS.description:1
142 msgid "A short string describing what this plugin does"
143 msgstr ""
144
145 #: ../../../__w/calibre/calibre/manual/docstring of
146 #: calibre.customize.InterfaceActionBase.author:1
147 #: ../../../__w/calibre/calibre/manual/docstring of
148 #: calibre.customize.MetadataReaderPlugin.author:1
149 #: ../../../__w/calibre/calibre/manual/docstring of
150 #: calibre.customize.MetadataWriterPlugin.author:1
151 #: ../../../__w/calibre/calibre/manual/docstring of
152 #: calibre.customize.Plugin.author:1
153 #: ../../../__w/calibre/calibre/manual/docstring of
154 #: calibre.customize.PreferencesPlugin.author:1
155 #: ../../../__w/calibre/calibre/manual/docstring of
156 #: calibre.devices.usbms.driver.USBMS.author:1
157 #: ../../../__w/calibre/calibre/manual/docstring of
158 #: calibre.ebooks.metadata.sources.base.Source.author:1
159 msgid "The author of this plugin"
160 msgstr ""
161
162 #: ../../../__w/calibre/calibre/manual/docstring of
163 #: calibre.customize.Plugin.priority:1
164 msgid ""
165 "When more than one plugin exists for a filetype, the plugins are run in "
166 "order of decreasing priority. Plugins with higher priority will be run "
167 "first. The highest possible priority is ``sys.maxsize``. Default priority is"
168 " 1."
169 msgstr ""
170
171 #: ../../../__w/calibre/calibre/manual/docstring of
172 #: calibre.customize.Plugin.minimum_calibre_version:1
173 msgid "The earliest version of calibre this plugin requires"
174 msgstr ""
175
176 #: ../../../__w/calibre/calibre/manual/docstring of
177 #: calibre.customize.Plugin.installation_type:1
178 msgid "The way this plugin is installed"
179 msgstr ""
180
181 #: ../../../__w/calibre/calibre/manual/docstring of
182 #: calibre.customize.Plugin.can_be_disabled:1
183 msgid ""
184 "If False, the user will not be able to disable this plugin. Use with care."
185 msgstr ""
186
187 #: ../../../__w/calibre/calibre/manual/docstring of
188 #: calibre.customize.CatalogPlugin.type:1
189 #: ../../../__w/calibre/calibre/manual/docstring of
190 #: calibre.customize.FileTypePlugin.type:1
191 #: ../../../__w/calibre/calibre/manual/docstring of
192 #: calibre.customize.InterfaceActionBase.type:1
193 #: ../../../__w/calibre/calibre/manual/docstring of
194 #: calibre.customize.MetadataReaderPlugin.type:1
195 #: ../../../__w/calibre/calibre/manual/docstring of
196 #: calibre.customize.MetadataWriterPlugin.type:1
197 #: ../../../__w/calibre/calibre/manual/docstring of
198 #: calibre.customize.Plugin.type:1
199 #: ../../../__w/calibre/calibre/manual/docstring of
200 #: calibre.customize.PreferencesPlugin.type:1
201 #: ../../../__w/calibre/calibre/manual/docstring of
202 #: calibre.customize.conversion.InputFormatPlugin.type:1
203 #: ../../../__w/calibre/calibre/manual/docstring of
204 #: calibre.customize.conversion.OutputFormatPlugin.type:1
205 #: ../../../__w/calibre/calibre/manual/docstring of
206 #: calibre.devices.interface.DevicePlugin.type:1
207 #: ../../../__w/calibre/calibre/manual/docstring of
208 #: calibre.ebooks.metadata.sources.base.Source.type:1
209 msgid "The type of this plugin. Used for categorizing plugins in the GUI"
210 msgstr ""
211
212 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
213 #: calibre.customize.Plugin.initialize:1
214 msgid ""
215 "Called once when calibre plugins are initialized. Plugins are re-"
216 "initialized every time a new plugin is added. Also note that if the plugin "
217 "is run in a worker process, such as for adding books, then the plugin will "
218 "be initialized for every new worker process."
219 msgstr ""
220
221 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
222 #: calibre.customize.Plugin.initialize:6
223 msgid ""
224 "Perform any plugin specific initialization here, such as extracting "
225 "resources from the plugin ZIP file. The path to the ZIP file is available as"
226 " ``self.plugin_path``."
227 msgstr ""
228
229 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
230 #: calibre.customize.Plugin.initialize:10
231 msgid ""
232 "Note that ``self.site_customization`` is **not** available at this point."
233 msgstr ""
234
235 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
236 #: calibre.customize.Plugin.config_widget:1
237 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
238 #: of calibre.ebooks.metadata.sources.base.Source.config_widget:1
239 msgid ""
240 "Implement this method and :meth:`save_settings` in your plugin to use a "
241 "custom configuration dialog, rather then relying on the simple string based "
242 "default customization."
243 msgstr ""
244
245 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
246 #: calibre.customize.Plugin.config_widget:5
247 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
248 #: of calibre.ebooks.metadata.sources.base.Source.config_widget:5
249 msgid ""
250 "This method, if implemented, must return a QWidget. The widget can have an "
251 "optional method validate() that takes no arguments and is called immediately"
252 " after the user clicks OK. Changes are applied if and only if the method "
253 "returns True."
254 msgstr ""
255
256 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
257 #: calibre.customize.Plugin.config_widget:10
258 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
259 #: of calibre.ebooks.metadata.sources.base.Source.config_widget:10
260 msgid ""
261 "If for some reason you cannot perform the configuration at this time, return"
262 " a tuple of two strings (message, details), these will be displayed as a "
263 "warning dialog to the user and the process will be aborted."
264 msgstr ""
265
266 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
267 #: calibre.customize.Plugin.save_settings:1
268 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
269 #: of calibre.ebooks.metadata.sources.base.Source.save_settings:1
270 msgid "Save the settings specified by the user with config_widget."
271 msgstr ""
272
273 #: ../../../__w/calibre/calibre/manual/plugins.rst:0
274 msgid "Parameters"
275 msgstr "参数"
276
277 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
278 #: calibre.customize.Plugin.save_settings:3
279 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
280 #: of calibre.ebooks.metadata.sources.base.Source.save_settings:3
281 msgid "The widget returned by :meth:`config_widget`."
282 msgstr ""
283
284 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
285 #: calibre.customize.Plugin.do_user_config:1
286 msgid ""
287 "This method shows a configuration dialog for this plugin. It returns True if"
288 " the user clicks OK, False otherwise. The changes are automatically applied."
289 msgstr ""
290
291 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
292 #: calibre.customize.Plugin.load_resources:1
293 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
294 #: of calibre.gui2.actions.InterfaceAction.load_resources:1
295 msgid ""
296 "If this plugin comes in a ZIP file (user added plugin), this method will "
297 "allow you to load resources from the ZIP file."
298 msgstr ""
299
300 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
301 #: calibre.customize.Plugin.load_resources:4
302 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
303 #: of calibre.gui2.actions.InterfaceAction.load_resources:4
304 msgid "For example to load an image::"
305 msgstr ""
306
307 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
308 #: calibre.customize.Plugin.load_resources:10
309 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
310 #: of calibre.gui2.actions.InterfaceAction.load_resources:10
311 msgid "List of paths to resources in the ZIP file using / as separator"
312 msgstr ""
313
314 #: ../../../__w/calibre/calibre/manual/plugins.rst:0
315 msgid "Returns"
316 msgstr ""
317
318 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
319 #: calibre.customize.Plugin.load_resources:12
320 msgid ""
321 "A dictionary of the form ``{name: file_contents}``. Any names that were not "
322 "found in the ZIP file will not be present in the dictionary."
323 msgstr ""
324
325 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
326 #: calibre.customize.Plugin.customization_help:1
327 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
328 #: of calibre.ebooks.metadata.sources.base.Source.customization_help:1
329 msgid ""
330 "Return a string giving help on how to customize this plugin. By default "
331 "raise a :class:`NotImplementedError`, which indicates that the plugin does "
332 "not require customization."
333 msgstr ""
334
335 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
336 #: calibre.customize.Plugin.customization_help:5
337 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
338 #: of calibre.ebooks.metadata.sources.base.Source.customization_help:5
339 msgid ""
340 "If you re-implement this method in your subclass, the user will be asked to "
341 "enter a string as customization for this plugin. The customization string "
342 "will be available as ``self.site_customization``."
343 msgstr ""
344
345 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
346 #: calibre.customize.Plugin.customization_help:10
347 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
348 #: of calibre.ebooks.metadata.sources.base.Source.customization_help:10
349 msgid ""
350 "Site customization could be anything, for example, the path to a needed "
351 "binary on the user's computer."
352 msgstr ""
353
354 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
355 #: calibre.customize.Plugin.customization_help:13
356 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
357 #: of calibre.ebooks.metadata.sources.base.Source.customization_help:13
358 msgid "If True return HTML help, otherwise return plain text help."
359 msgstr ""
360
361 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
362 #: calibre.customize.Plugin.temporary_file:1
363 msgid ""
364 "Return a file-like object that is a temporary file on the file system. This "
365 "file will remain available even after being closed and will only be removed "
366 "on interpreter shutdown. Use the ``name`` member of the returned object to "
367 "access the full path to the created temporary file."
368 msgstr ""
369
370 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
371 #: calibre.customize.Plugin.temporary_file:6
372 msgid "The suffix that the temporary file will have."
373 msgstr ""
374
375 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
376 #: calibre.customize.Plugin.cli_main:1
377 msgid ""
378 "This method is the main entry point for your plugins command line interface."
379 " It is called when the user does: calibre-debug -r \"Plugin Name\". Any "
380 "arguments passed are present in the args variable."
381 msgstr ""
382
383 #: ../../../__w/calibre/calibre/manual/plugins.rst:28
384 msgid "FileTypePlugin"
385 msgstr "文件类型插件"
386
387 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
388 #: calibre.customize.CatalogPlugin:1
389 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
390 #: calibre.customize.FileTypePlugin:1
391 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
392 #: calibre.customize.InterfaceActionBase:1
393 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
394 #: calibre.customize.MetadataReaderPlugin:1
395 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
396 #: calibre.customize.MetadataWriterPlugin:1
397 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
398 #: calibre.customize.PreferencesPlugin:1
399 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
400 #: of calibre.customize.conversion.InputFormatPlugin:1
401 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
402 #: of calibre.customize.conversion.OutputFormatPlugin:1
403 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
404 #: calibre.devices.interface.DevicePlugin:1
405 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
406 #: of calibre.ebooks.metadata.sources.base.Source:1
407 msgid "Bases: :py:class:`~calibre.customize.Plugin`"
408 msgstr ""
409
410 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
411 #: calibre.customize.FileTypePlugin:1
412 msgid "A plugin that is associated with a particular set of file types."
413 msgstr ""
414
415 #: ../../../__w/calibre/calibre/manual/docstring of
416 #: calibre.customize.FileTypePlugin.file_types:1
417 msgid ""
418 "Set of file types for which this plugin should be run. Use '*' for all file "
419 "types. For example: ``{'lit', 'mobi', 'prc'}``"
420 msgstr ""
421
422 #: ../../../__w/calibre/calibre/manual/docstring of
423 #: calibre.customize.FileTypePlugin.on_import:1
424 msgid "If True, this plugin is run when books are added to the database"
425 msgstr ""
426
427 #: ../../../__w/calibre/calibre/manual/docstring of
428 #: calibre.customize.FileTypePlugin.on_postimport:1
429 msgid ""
430 "If True, this plugin is run after books are added to the database. In this "
431 "case the postimport and postadd methods of the plugin are called."
432 msgstr ""
433
434 #: ../../../__w/calibre/calibre/manual/docstring of
435 #: calibre.customize.FileTypePlugin.on_postconvert:1
436 msgid ""
437 "If True, this plugin is run after a book is converted. In this case the "
438 "postconvert method of the plugin is called."
439 msgstr ""
440
441 #: ../../../__w/calibre/calibre/manual/docstring of
442 #: calibre.customize.FileTypePlugin.on_postdelete:1
443 msgid ""
444 "If True, this plugin is run after a book file is deleted from the database. "
445 "In this case the postdelete method of the plugin is called."
446 msgstr ""
447
448 #: ../../../__w/calibre/calibre/manual/docstring of
449 #: calibre.customize.FileTypePlugin.on_preprocess:1
450 msgid "If True, this plugin is run just before a conversion"
451 msgstr ""
452
453 #: ../../../__w/calibre/calibre/manual/docstring of
454 #: calibre.customize.FileTypePlugin.on_postprocess:1
455 msgid ""
456 "If True, this plugin is run after conversion on the final file produced by "
457 "the conversion output plugin."
458 msgstr ""
459
460 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
461 #: calibre.customize.FileTypePlugin.run:1
462 msgid ""
463 "Run the plugin. Must be implemented in subclasses. It should perform "
464 "whatever modifications are required on the e-book and return the absolute "
465 "path to the modified e-book. If no modifications are needed, it should "
466 "return the path to the original e-book. If an error is encountered it should"
467 " raise an Exception. The default implementation simply return the path to "
468 "the original e-book. Note that the path to the original file (before any "
469 "file type plugins are run, is available as self.original_path_to_file)."
470 msgstr ""
471
472 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
473 #: calibre.customize.FileTypePlugin.run:11
474 msgid ""
475 "The modified e-book file should be created with the :meth:`temporary_file` "
476 "method."
477 msgstr ""
478
479 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
480 #: calibre.customize.FileTypePlugin.run:14
481 msgid "Absolute path to the e-book."
482 msgstr ""
483
484 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
485 #: calibre.customize.FileTypePlugin.run:16
486 msgid "Absolute path to the modified e-book."
487 msgstr ""
488
489 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
490 #: calibre.customize.FileTypePlugin.postimport:1
491 msgid ""
492 "Called post import, i.e., after the book file has been added to the "
493 "database. Note that this is different from :meth:`postadd` which is called "
494 "when the book record is created for the first time. This method is called "
495 "whenever a new file is added to a book record. It is useful for modifying "
496 "the book record based on the contents of the newly added file."
497 msgstr ""
498
499 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
500 #: calibre.customize.FileTypePlugin.postadd:8
501 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
502 #: calibre.customize.FileTypePlugin.postconvert:5
503 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
504 #: calibre.customize.FileTypePlugin.postdelete:6
505 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
506 #: calibre.customize.FileTypePlugin.postimport:6
507 msgid "Database id of the added book."
508 msgstr ""
509
510 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
511 #: calibre.customize.FileTypePlugin.postconvert:6
512 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
513 #: calibre.customize.FileTypePlugin.postdelete:7
514 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
515 #: calibre.customize.FileTypePlugin.postimport:7
516 msgid "The file type of the book that was added."
517 msgstr ""
518
519 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
520 #: calibre.customize.FileTypePlugin.postconvert:7
521 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
522 #: calibre.customize.FileTypePlugin.postdelete:8
523 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
524 #: calibre.customize.FileTypePlugin.postimport:8
525 msgid "Library database."
526 msgstr ""
527
528 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
529 #: calibre.customize.FileTypePlugin.postconvert:1
530 msgid ""
531 "Called post conversion, i.e., after the conversion output book file has been"
532 " added to the database. Note that it is run after a conversion only, not "
533 "after a book is added. It is useful for modifying the book record based on "
534 "the contents of the newly added file."
535 msgstr ""
536
537 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
538 #: calibre.customize.FileTypePlugin.postdelete:1
539 msgid ""
540 "Called post deletion, i.e., after the book file has been deleted from the "
541 "database. Note that it is not run when a book record is deleted, only when "
542 "one or more formats from the book are deleted. It is useful for modifying "
543 "the book record based on the format of the deleted file."
544 msgstr ""
545
546 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
547 #: calibre.customize.FileTypePlugin.postadd:1
548 msgid ""
549 "Called post add, i.e. after a book has been added to the db. Note that this "
550 "is different from :meth:`postimport`, which is called after a single book "
551 "file has been added to a book. postadd() is called only when an entire book "
552 "record with possibly more than one book file has been created for the first "
553 "time. This is useful if you wish to modify the book record in the database "
554 "when the book is first added to calibre."
555 msgstr ""
556
557 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
558 #: calibre.customize.FileTypePlugin.postadd:9
559 msgid ""
560 "Map of file format to path from which the file format was added. Note that "
561 "this might or might not point to an actual existing file, as sometimes files"
562 " are added as streams. In which case it might be a dummy value or a non-"
563 "existent path."
564 msgstr ""
565
566 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
567 #: calibre.customize.FileTypePlugin.postadd:13
568 msgid "Library database"
569 msgstr ""
570
571 #: ../../../__w/calibre/calibre/manual/plugins.rst:39
572 msgid "Metadata plugins"
573 msgstr "元数据插件"
574
575 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
576 #: calibre.customize.MetadataReaderPlugin:1
577 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
578 #: calibre.customize.MetadataWriterPlugin:1
579 msgid "A plugin that implements reading metadata from a set of file types."
580 msgstr ""
581
582 #: ../../../__w/calibre/calibre/manual/docstring of
583 #: calibre.customize.MetadataReaderPlugin.file_types:1
584 #: ../../../__w/calibre/calibre/manual/docstring of
585 #: calibre.customize.MetadataWriterPlugin.file_types:1
586 msgid ""
587 "Set of file types for which this plugin should be run. For example: "
588 "``set(['lit', 'mobi', 'prc'])``"
589 msgstr ""
590
591 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
592 #: calibre.customize.MetadataReaderPlugin.get_metadata:1
593 msgid ""
594 "Return metadata for the file represented by stream (a file like object that "
595 "supports reading). Raise an exception when there is an error with the input "
596 "data."
597 msgstr ""
598
599 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
600 #: calibre.customize.MetadataReaderPlugin.get_metadata:5
601 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
602 #: calibre.customize.MetadataWriterPlugin.set_metadata:5
603 msgid ""
604 "The type of file. Guaranteed to be one of the entries in :attr:`file_types`."
605 msgstr ""
606
607 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
608 #: calibre.customize.MetadataReaderPlugin.get_metadata:7
609 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
610 #: calibre.customize.MetadataWriterPlugin.set_metadata:7
611 msgid "A :class:`calibre.ebooks.metadata.book.Metadata` object"
612 msgstr ""
613
614 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
615 #: calibre.customize.MetadataWriterPlugin.set_metadata:1
616 msgid ""
617 "Set metadata for the file represented by stream (a file like object that "
618 "supports reading). Raise an exception when there is an error with the input "
619 "data."
620 msgstr ""
621
622 #: ../../../__w/calibre/calibre/manual/plugins.rst:54
623 msgid "Catalog plugins"
624 msgstr "书目插件"
625
626 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
627 #: calibre.customize.CatalogPlugin:1
628 msgid "A plugin that implements a catalog generator."
629 msgstr ""
630
631 #: ../../../__w/calibre/calibre/manual/docstring of
632 #: calibre.customize.CatalogPlugin.file_types:1
633 msgid ""
634 "Output file type for which this plugin should be run. For example: 'epub' or"
635 " 'xml'"
636 msgstr ""
637
638 #: ../../../__w/calibre/calibre/manual/docstring of
639 #: calibre.customize.CatalogPlugin.cli_options:1
640 msgid ""
641 "CLI parser options specific to this plugin, declared as `namedtuple` "
642 "`Option`:"
643 msgstr ""
644
645 #: ../../../__w/calibre/calibre/manual/docstring of
646 #: calibre.customize.CatalogPlugin.cli_options:3
647 msgid ""
648 "from collections import namedtuple Option = namedtuple('Option', 'option, "
649 "default, dest, help') cli_options = [Option('--catalog-title', default = 'My"
650 " Catalog', dest = 'catalog_title', help = (_('Title of generated catalog. "
651 "\\nDefault:') + \" '\" + '%default' + \"'\"))] cli_options parsed in "
652 "calibre.db.cli.cmd_catalog:option_parser()"
653 msgstr ""
654
655 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
656 #: calibre.customize.CatalogPlugin.initialize:1
657 msgid ""
658 "If plugin is not a built-in, copy the plugin's .ui and .py files from the "
659 "ZIP file to $TMPDIR. Tab will be dynamically generated and added to the "
660 "Catalog Options dialog in calibre.gui2.dialogs.catalog.py:Catalog"
661 msgstr ""
662
663 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
664 #: calibre.customize.CatalogPlugin.run:1
665 msgid ""
666 "Run the plugin. Must be implemented in subclasses. It should generate the "
667 "catalog in the format specified in file_types, returning the absolute path "
668 "to the generated catalog file. If an error is encountered it should raise an"
669 " Exception."
670 msgstr ""
671
672 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
673 #: calibre.customize.CatalogPlugin.run:7
674 msgid ""
675 "The generated catalog file should be created with the :meth:`temporary_file`"
676 " method."
677 msgstr ""
678
679 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
680 #: calibre.customize.CatalogPlugin.run:10
681 msgid "Absolute path to the generated catalog file."
682 msgstr ""
683
684 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
685 #: calibre.customize.CatalogPlugin.run:11
686 msgid "A dictionary of keyword arguments"
687 msgstr ""
688
689 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
690 #: calibre.customize.CatalogPlugin.run:12
691 msgid "A LibraryDatabase2 object"
692 msgstr ""
693
694 #: ../../../__w/calibre/calibre/manual/plugins.rst:64
695 msgid "Metadata download plugins"
696 msgstr "元数据下载插件"
697
698 #: ../../../__w/calibre/calibre/manual/docstring of
699 #: calibre.ebooks.metadata.sources.base.Source.capabilities:1
700 msgid ""
701 "Set of capabilities supported by this plugin. Useful capabilities are: "
702 "'identify', 'cover'"
703 msgstr ""
704
705 #: ../../../__w/calibre/calibre/manual/docstring of
706 #: calibre.ebooks.metadata.sources.base.Source.touched_fields:1
707 msgid ""
708 "List of metadata fields that can potentially be download by this plugin "
709 "during the identify phase"
710 msgstr ""
711
712 #: ../../../__w/calibre/calibre/manual/docstring of
713 #: calibre.ebooks.metadata.sources.base.Source.has_html_comments:1
714 msgid "Set this to True if your plugin returns HTML formatted comments"
715 msgstr ""
716
717 #: ../../../__w/calibre/calibre/manual/docstring of
718 #: calibre.ebooks.metadata.sources.base.Source.supports_gzip_transfer_encoding:1
719 msgid ""
720 "Setting this to True means that the browser object will indicate that it "
721 "supports gzip transfer encoding. This can speedup downloads but make sure "
722 "that the source actually supports gzip transfer encoding correctly first"
723 msgstr ""
724
725 #: ../../../__w/calibre/calibre/manual/docstring of
726 #: calibre.ebooks.metadata.sources.base.Source.ignore_ssl_errors:1
727 msgid ""
728 "Set this to True to ignore HTTPS certificate errors when connecting to this "
729 "source."
730 msgstr ""
731
732 #: ../../../__w/calibre/calibre/manual/docstring of
733 #: calibre.ebooks.metadata.sources.base.Source.cached_cover_url_is_reliable:1
734 msgid ""
735 "Cached cover URLs can sometimes be unreliable (i.e. the download could fail "
736 "or the returned image could be bogus). If that is often the case with this "
737 "source, set to False"
738 msgstr ""
739
740 #: ../../../__w/calibre/calibre/manual/docstring of
741 #: calibre.ebooks.metadata.sources.base.Source.options:1
742 msgid ""
743 "A list of :class:`Option` objects. They will be used to automatically "
744 "construct the configuration widget for this plugin"
745 msgstr ""
746
747 #: ../../../__w/calibre/calibre/manual/docstring of
748 #: calibre.ebooks.metadata.sources.base.Source.config_help_message:1
749 msgid ""
750 "A string that is displayed at the top of the config widget for this plugin"
751 msgstr ""
752
753 #: ../../../__w/calibre/calibre/manual/docstring of
754 #: calibre.ebooks.metadata.sources.base.Source.can_get_multiple_covers:1
755 msgid "If True this source can return multiple covers for a given query"
756 msgstr ""
757
758 #: ../../../__w/calibre/calibre/manual/docstring of
759 #: calibre.ebooks.metadata.sources.base.Source.auto_trim_covers:1
760 msgid ""
761 "If set to True covers downloaded by this plugin are automatically trimmed."
762 msgstr ""
763
764 #: ../../../__w/calibre/calibre/manual/docstring of
765 #: calibre.ebooks.metadata.sources.base.Source.prefer_results_with_isbn:1
766 msgid ""
767 "If set to True, and this source returns multiple results for a query, some "
768 "of which have ISBNs and some of which do not, the results without ISBNs will"
769 " be ignored"
770 msgstr ""
771
772 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
773 #: of calibre.ebooks.metadata.sources.base.Source.is_configured:1
774 msgid ""
775 "Return False if your plugin needs to be configured before it can be used. "
776 "For example, it might need a username/password/API key."
777 msgstr ""
778
779 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
780 #: of calibre.ebooks.metadata.sources.base.Source.get_author_tokens:1
781 msgid ""
782 "Take a list of authors and return a list of tokens useful for an AND search "
783 "query. This function tries to return tokens in first name middle names last "
784 "name order, by assuming that if a comma is in the author name, the name is "
785 "in lastname, other names form."
786 msgstr ""
787
788 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
789 #: of calibre.ebooks.metadata.sources.base.Source.get_title_tokens:1
790 msgid ""
791 "Take a title and return a list of tokens useful for an AND search query. "
792 "Excludes connectives(optionally) and punctuation."
793 msgstr ""
794
795 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
796 #: of calibre.ebooks.metadata.sources.base.Source.split_jobs:1
797 msgid "Split a list of jobs into at most num groups, as evenly as possible"
798 msgstr ""
799
800 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
801 #: of calibre.ebooks.metadata.sources.base.Source.test_fields:1
802 msgid ""
803 "Return the first field from self.touched_fields that is null on the mi "
804 "object"
805 msgstr ""
806
807 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
808 #: of calibre.ebooks.metadata.sources.base.Source.clean_downloaded_metadata:1
809 msgid ""
810 "Call this method in your plugin's identify method to normalize metadata "
811 "before putting the Metadata object into result_queue. You can of course, use"
812 " a custom algorithm suited to your metadata source."
813 msgstr ""
814
815 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
816 #: of calibre.ebooks.metadata.sources.base.Source.get_book_url:1
817 msgid ""
818 "Return a 3-tuple or None. The 3-tuple is of the form: (identifier_type, "
819 "identifier_value, URL). The URL is the URL for the book identified by "
820 "identifiers at this source. identifier_type, identifier_value specify the "
821 "identifier corresponding to the URL. This URL must be browsable to by a "
822 "human using a browser. It is meant to provide a clickable link for the user "
823 "to easily visit the books page at this source. If no URL is found, return "
824 "None. This method must be quick, and consistent, so only implement it if it "
825 "is possible to construct the URL from a known scheme given identifiers."
826 msgstr ""
827
828 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
829 #: of calibre.ebooks.metadata.sources.base.Source.get_book_url_name:1
830 msgid "Return a human readable name from the return value of get_book_url()."
831 msgstr ""
832
833 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
834 #: of calibre.ebooks.metadata.sources.base.Source.get_book_urls:1
835 msgid ""
836 "Override this method if you would like to return multiple URLs for this "
837 "book. Return a list of 3-tuples. By default this method simply calls "
838 ":func:`get_book_url`."
839 msgstr ""
840
841 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
842 #: of calibre.ebooks.metadata.sources.base.Source.get_cached_cover_url:1
843 msgid ""
844 "Return cached cover URL for the book identified by the identifiers "
845 "dictionary or None if no such URL exists."
846 msgstr ""
847
848 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
849 #: of calibre.ebooks.metadata.sources.base.Source.get_cached_cover_url:4
850 msgid ""
851 "Note that this method must only return validated URLs, i.e. not URLS that "
852 "could result in a generic cover image or a not found error."
853 msgstr ""
854
855 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
856 #: of calibre.ebooks.metadata.sources.base.Source.id_from_url:1
857 msgid ""
858 "Parse a URL and return a tuple of the form: (identifier_type, "
859 "identifier_value). If the URL does not match the pattern for the metadata "
860 "source, return None."
861 msgstr ""
862
863 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
864 #: of calibre.ebooks.metadata.sources.base.Source.identify_results_keygen:1
865 msgid ""
866 "Return a function that is used to generate a key that can sort Metadata "
867 "objects by their relevance given a search query (title, authors, "
868 "identifiers)."
869 msgstr ""
870
871 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
872 #: of calibre.ebooks.metadata.sources.base.Source.identify_results_keygen:5
873 msgid "These keys are used to sort the results of a call to :meth:`identify`."
874 msgstr ""
875
876 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
877 #: of calibre.ebooks.metadata.sources.base.Source.identify_results_keygen:7
878 msgid ""
879 "For details on the default algorithm see "
880 ":class:`InternalMetadataCompareKeyGen`. Re-implement this function in your "
881 "plugin if the default algorithm is not suitable."
882 msgstr ""
883
884 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
885 #: of calibre.ebooks.metadata.sources.base.Source.identify:1
886 msgid "Identify a book by its Title/Author/ISBN/etc."
887 msgstr ""
888
889 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
890 #: of calibre.ebooks.metadata.sources.base.Source.identify:3
891 msgid ""
892 "If identifiers(s) are specified and no match is found and this metadata "
893 "source does not store all related identifiers (for example, all ISBNs of a "
894 "book), this method should retry with just the title and author (assuming "
895 "they were specified)."
896 msgstr ""
897
898 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
899 #: of calibre.ebooks.metadata.sources.base.Source.identify:8
900 msgid ""
901 "If this metadata source also provides covers, the URL to the cover should be"
902 " cached so that a subsequent call to the get covers API with the same "
903 "ISBN/special identifier does not need to get the cover URL again. Use the "
904 "caching API for this."
905 msgstr ""
906
907 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
908 #: of calibre.ebooks.metadata.sources.base.Source.identify:13
909 msgid ""
910 "Every Metadata object put into result_queue by this method must have a "
911 "`source_relevance` attribute that is an integer indicating the order in "
912 "which the results were returned by the metadata source for this query. This "
913 "integer will be used by :meth:`compare_identify_results`. If the order is "
914 "unimportant, set it to zero for every result."
915 msgstr ""
916
917 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
918 #: of calibre.ebooks.metadata.sources.base.Source.identify:19
919 msgid ""
920 "Make sure that any cover/ISBN mapping information is cached before the "
921 "Metadata object is put into result_queue."
922 msgstr ""
923
924 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
925 #: of calibre.ebooks.metadata.sources.base.Source.identify:22
926 msgid "A log object, use it to output debugging information/errors"
927 msgstr ""
928
929 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
930 #: of calibre.ebooks.metadata.sources.base.Source.identify:23
931 msgid ""
932 "A result Queue, results should be put into it. Each result is a Metadata "
933 "object"
934 msgstr ""
935
936 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
937 #: of calibre.ebooks.metadata.sources.base.Source.identify:25
938 msgid ""
939 "If abort.is_set() returns True, abort further processing and return as soon "
940 "as possible"
941 msgstr ""
942
943 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
944 #: of calibre.ebooks.metadata.sources.base.Source.identify:27
945 msgid "The title of the book, can be None"
946 msgstr ""
947
948 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
949 #: of calibre.ebooks.metadata.sources.base.Source.identify:28
950 msgid "A list of authors of the book, can be None"
951 msgstr ""
952
953 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
954 #: of calibre.ebooks.metadata.sources.base.Source.identify:29
955 msgid "A dictionary of other identifiers, most commonly {'isbn':'1234...'}"
956 msgstr ""
957
958 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
959 #: of calibre.ebooks.metadata.sources.base.Source.identify:31
960 msgid ""
961 "Timeout in seconds, no network request should hang for longer than timeout."
962 msgstr ""
963
964 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
965 #: of calibre.ebooks.metadata.sources.base.Source.identify:33
966 msgid ""
967 "None if no errors occurred, otherwise a unicode representation of the error "
968 "suitable for showing to the user"
969 msgstr ""
970
971 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
972 #: of calibre.ebooks.metadata.sources.base.Source.download_cover:1
973 msgid ""
974 "Download a cover and put it into result_queue. The parameters all have the "
975 "same meaning as for :meth:`identify`. Put (self, cover_data) into "
976 "result_queue."
977 msgstr ""
978
979 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
980 #: of calibre.ebooks.metadata.sources.base.Source.download_cover:5
981 msgid ""
982 "This method should use cached cover URLs for efficiency whenever possible. "
983 "When cached data is not present, most plugins simply call identify and use "
984 "its results."
985 msgstr ""
986
987 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
988 #: of calibre.ebooks.metadata.sources.base.Source.download_cover:9
989 msgid ""
990 "If the parameter get_best_cover is True and this plugin can get multiple "
991 "covers, it should only get the \"best\" one."
992 msgstr ""
993
994 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
995 #: of calibre.ebooks.metadata.sources.base.InternalMetadataCompareKeyGen:1
996 msgid ""
997 "Generate a sort key for comparison of the relevance of Metadata objects, "
998 "given a search query. This is used only to compare results from the same "
999 "metadata source, not across different sources."
1000 msgstr ""
1001
1002 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
1003 #: of calibre.ebooks.metadata.sources.base.InternalMetadataCompareKeyGen:5
1004 msgid ""
1005 "The sort key ensures that an ascending order sort is a sort by order of "
1006 "decreasing relevance."
1007 msgstr ""
1008
1009 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
1010 #: of calibre.ebooks.metadata.sources.base.InternalMetadataCompareKeyGen:8
1011 msgid "The algorithm is:"
1012 msgstr ""
1013
1014 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
1015 #: of calibre.ebooks.metadata.sources.base.InternalMetadataCompareKeyGen:10
1016 msgid ""
1017 "Prefer results that have at least one identifier the same as for the query"
1018 msgstr ""
1019
1020 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
1021 #: of calibre.ebooks.metadata.sources.base.InternalMetadataCompareKeyGen:11
1022 msgid "Prefer results with a cached cover URL"
1023 msgstr ""
1024
1025 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
1026 #: of calibre.ebooks.metadata.sources.base.InternalMetadataCompareKeyGen:12
1027 msgid "Prefer results with all available fields filled in"
1028 msgstr ""
1029
1030 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
1031 #: of calibre.ebooks.metadata.sources.base.InternalMetadataCompareKeyGen:13
1032 msgid ""
1033 "Prefer results with the same language as the current user interface language"
1034 msgstr ""
1035
1036 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
1037 #: of calibre.ebooks.metadata.sources.base.InternalMetadataCompareKeyGen:14
1038 msgid "Prefer results that are an exact title match to the query"
1039 msgstr ""
1040
1041 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
1042 #: of calibre.ebooks.metadata.sources.base.InternalMetadataCompareKeyGen:15
1043 msgid "Prefer results with longer comments (greater than 10% longer)"
1044 msgstr ""
1045
1046 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
1047 #: of calibre.ebooks.metadata.sources.base.InternalMetadataCompareKeyGen:16
1048 msgid ""
1049 "Use the relevance of the result as reported by the metadata source's search"
1050 msgstr ""
1051
1052 #: ../../../__w/calibre/calibre/src/calibre/ebooks/metadata/sources/base.pydocstring
1053 #: of calibre.ebooks.metadata.sources.base.InternalMetadataCompareKeyGen:17
1054 msgid "engine"
1055 msgstr ""
1056
1057 #: ../../../__w/calibre/calibre/manual/plugins.rst:76
1058 msgid "Conversion plugins"
1059 msgstr "转换插件"
1060
1061 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1062 #: of calibre.customize.conversion.InputFormatPlugin:1
1063 msgid ""
1064 "InputFormatPlugins are responsible for converting a document into "
1065 "HTML+OPF+CSS+etc. The results of the conversion *must* be encoded in UTF-8. "
1066 "The main action happens in :meth:`convert`."
1067 msgstr ""
1068
1069 #: ../../../__w/calibre/calibre/manual/docstring of
1070 #: calibre.customize.conversion.InputFormatPlugin.file_types:1
1071 msgid ""
1072 "Set of file types for which this plugin should be run For example: "
1073 "``set(['azw', 'mobi', 'prc'])``"
1074 msgstr ""
1075
1076 #: ../../../__w/calibre/calibre/manual/docstring of
1077 #: calibre.customize.conversion.InputFormatPlugin.is_image_collection:1
1078 msgid ""
1079 "If True, this input plugin generates a collection of images, one per HTML "
1080 "file. This can be set dynamically, in the convert method if the input files "
1081 "can be both image collections and non-image collections. If you set this to "
1082 "True, you must implement the get_images() method that returns a list of "
1083 "images."
1084 msgstr ""
1085
1086 #: ../../../__w/calibre/calibre/manual/docstring of
1087 #: calibre.customize.conversion.InputFormatPlugin.core_usage:1
1088 msgid ""
1089 "Number of CPU cores used by this plugin. A value of -1 means that it uses "
1090 "all available cores"
1091 msgstr ""
1092
1093 #: ../../../__w/calibre/calibre/manual/docstring of
1094 #: calibre.customize.conversion.InputFormatPlugin.for_viewer:1
1095 msgid ""
1096 "If set to True, the input plugin will perform special processing to make its"
1097 " output suitable for viewing"
1098 msgstr ""
1099
1100 #: ../../../__w/calibre/calibre/manual/docstring of
1101 #: calibre.customize.conversion.InputFormatPlugin.output_encoding:1
1102 msgid ""
1103 "The encoding that this input plugin creates files in. A value of None means "
1104 "that the encoding is undefined and must be detected individually"
1105 msgstr ""
1106
1107 #: ../../../__w/calibre/calibre/manual/docstring of
1108 #: calibre.customize.conversion.InputFormatPlugin.common_options:1
1109 #: ../../../__w/calibre/calibre/manual/docstring of
1110 #: calibre.customize.conversion.OutputFormatPlugin.common_options:1
1111 msgid ""
1112 "Options shared by all Input format plugins. Do not override in sub-classes. "
1113 "Use :attr:`options` instead. Every option must be an instance of "
1114 ":class:`OptionRecommendation`."
1115 msgstr ""
1116
1117 #: ../../../__w/calibre/calibre/manual/docstring of
1118 #: calibre.customize.conversion.InputFormatPlugin.options:1
1119 #: ../../../__w/calibre/calibre/manual/docstring of
1120 #: calibre.customize.conversion.OutputFormatPlugin.options:1
1121 msgid ""
1122 "Options to customize the behavior of this plugin. Every option must be an "
1123 "instance of :class:`OptionRecommendation`."
1124 msgstr ""
1125
1126 #: ../../../__w/calibre/calibre/manual/docstring of
1127 #: calibre.customize.conversion.InputFormatPlugin.recommendations:1
1128 #: ../../../__w/calibre/calibre/manual/docstring of
1129 #: calibre.customize.conversion.OutputFormatPlugin.recommendations:1
1130 msgid ""
1131 "A set of 3-tuples of the form (option_name, recommended_value, "
1132 "recommendation_level)"
1133 msgstr ""
1134
1135 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1136 #: of calibre.customize.conversion.InputFormatPlugin.get_images:1
1137 msgid ""
1138 "Return a list of absolute paths to the images, if this input plugin "
1139 "represents an image collection. The list of images is in the same order as "
1140 "the spine and the TOC."
1141 msgstr ""
1142
1143 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1144 #: of calibre.customize.conversion.InputFormatPlugin.convert:1
1145 msgid ""
1146 "This method must be implemented in sub-classes. It must return the path to "
1147 "the created OPF file or an :class:`OEBBook` instance. All output should be "
1148 "contained in the current folder. If this plugin creates files outside the "
1149 "current folder they must be deleted/marked for deletion before this method "
1150 "returns."
1151 msgstr ""
1152
1153 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1154 #: of calibre.customize.conversion.InputFormatPlugin.convert:8
1155 msgid "A file like object that contains the input file."
1156 msgstr ""
1157
1158 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1159 #: of calibre.customize.conversion.InputFormatPlugin.convert:9
1160 msgid ""
1161 "Options to customize the conversion process. Guaranteed to have attributes "
1162 "corresponding to all the options declared by this plugin. In addition, it "
1163 "will have a verbose attribute that takes integral values from zero upwards. "
1164 "Higher numbers mean be more verbose. Another useful attribute is "
1165 "``input_profile`` that is an instance of "
1166 ":class:`calibre.customize.profiles.InputProfile`."
1167 msgstr ""
1168
1169 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1170 #: of calibre.customize.conversion.InputFormatPlugin.convert:17
1171 msgid ""
1172 "The extension (without the .) of the input file. It is guaranteed to be one "
1173 "of the `file_types` supported by this plugin."
1174 msgstr ""
1175
1176 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1177 #: of calibre.customize.conversion.InputFormatPlugin.convert:20
1178 msgid ""
1179 "A :class:`calibre.utils.logging.Log` object. All output should use this "
1180 "object."
1181 msgstr ""
1182
1183 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1184 #: of calibre.customize.conversion.InputFormatPlugin.convert:22
1185 msgid ""
1186 "A dictionary of various information that the input plugin can get easily "
1187 "that would speed up the subsequent stages of the conversion."
1188 msgstr ""
1189
1190 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1191 #: of calibre.customize.conversion.InputFormatPlugin.postprocess_book:1
1192 msgid ""
1193 "Called to allow the input plugin to perform postprocessing after the book "
1194 "has been parsed."
1195 msgstr ""
1196
1197 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1198 #: of calibre.customize.conversion.InputFormatPlugin.specialize:1
1199 msgid ""
1200 "Called to allow the input plugin to specialize the parsed book for a "
1201 "particular output format. Called after postprocess_book and before any "
1202 "transforms are performed on the parsed book."
1203 msgstr ""
1204
1205 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1206 #: of
1207 #: calibre.customize.conversion.InputFormatPlugin.gui_configuration_widget:1
1208 msgid ""
1209 "Called to create the widget used for configuring this plugin in the calibre "
1210 "GUI. The widget must be an instance of the PluginWidget class. See the "
1211 "builtin input plugins for examples."
1212 msgstr ""
1213
1214 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1215 #: of calibre.customize.conversion.OutputFormatPlugin:1
1216 msgid ""
1217 "OutputFormatPlugins are responsible for converting an OEB document "
1218 "(OPF+HTML) into an output e-book."
1219 msgstr ""
1220
1221 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1222 #: of calibre.customize.conversion.OutputFormatPlugin:4
1223 msgid ""
1224 "The OEB document can be assumed to be encoded in UTF-8. The main action "
1225 "happens in :meth:`convert`."
1226 msgstr ""
1227
1228 #: ../../../__w/calibre/calibre/manual/docstring of
1229 #: calibre.customize.conversion.OutputFormatPlugin.file_type:1
1230 msgid ""
1231 "The file type (extension without leading period) that this plugin outputs"
1232 msgstr ""
1233
1234 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1235 #: of calibre.customize.conversion.OutputFormatPlugin.description:1
1236 msgid ""
1237 "str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str"
1238 msgstr ""
1239
1240 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1241 #: of calibre.customize.conversion.OutputFormatPlugin.description:4
1242 msgid ""
1243 "Create a new string object from the given object. If encoding or errors is "
1244 "specified, then the object must expose a data buffer that will be decoded "
1245 "using the given encoding and error handler. Otherwise, returns the result of"
1246 " object.__str__() (if defined) or repr(object). encoding defaults to "
1247 "'utf-8'. errors defaults to 'strict'."
1248 msgstr ""
1249
1250 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1251 #: of calibre.customize.conversion.OutputFormatPlugin.convert:1
1252 msgid ""
1253 "Render the contents of `oeb_book` (which is an instance of "
1254 ":class:`calibre.ebooks.oeb.OEBBook`) to the file specified by output."
1255 msgstr ""
1256
1257 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1258 #: of calibre.customize.conversion.OutputFormatPlugin.convert:4
1259 msgid ""
1260 "Either a file like object or a string. If it is a string it is the path to a"
1261 " folder that may or may not exist. The output plugin should write its output"
1262 " into that folder. If it is a file like object, the output plugin should "
1263 "write its output into the file."
1264 msgstr ""
1265
1266 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1267 #: of calibre.customize.conversion.OutputFormatPlugin.convert:8
1268 msgid ""
1269 "The input plugin that was used at the beginning of the conversion pipeline."
1270 msgstr ""
1271
1272 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1273 #: of calibre.customize.conversion.OutputFormatPlugin.convert:10
1274 msgid ""
1275 "Conversion options. Guaranteed to have attributes corresponding to the "
1276 "OptionRecommendations of this plugin."
1277 msgstr ""
1278
1279 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1280 #: of calibre.customize.conversion.OutputFormatPlugin.convert:12
1281 msgid "The logger. Print debug/info messages etc. using this."
1282 msgstr ""
1283
1284 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1285 #: of calibre.customize.conversion.OutputFormatPlugin.specialize_options:1
1286 msgid ""
1287 "Can be used to change the values of conversion options, as used by the "
1288 "conversion pipeline."
1289 msgstr ""
1290
1291 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1292 #: of
1293 #: calibre.customize.conversion.OutputFormatPlugin.specialize_css_for_output:1
1294 msgid ""
1295 "Can be used to make changes to the CSS during the CSS flattening process."
1296 msgstr ""
1297
1298 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1299 #: of
1300 #: calibre.customize.conversion.OutputFormatPlugin.specialize_css_for_output:4
1301 msgid "The item (HTML file) being processed"
1302 msgstr ""
1303
1304 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1305 #: of
1306 #: calibre.customize.conversion.OutputFormatPlugin.specialize_css_for_output:5
1307 msgid ""
1308 "A Stylizer object containing the flattened styles for item. You can get the "
1309 "style for any element by stylizer.style(element)."
1310 msgstr ""
1311
1312 #: ../../../__w/calibre/calibre/src/calibre/customize/conversion.pydocstring
1313 #: of
1314 #: calibre.customize.conversion.OutputFormatPlugin.gui_configuration_widget:1
1315 msgid ""
1316 "Called to create the widget used for configuring this plugin in the calibre "
1317 "GUI. The widget must be an instance of the PluginWidget class. See the "
1318 "builtin output plugins for examples."
1319 msgstr ""
1320
1321 #: ../../../__w/calibre/calibre/manual/plugins.rst:91
1322 msgid "Device drivers"
1323 msgstr "设备驱动程序"
1324
1325 #: ../../../__w/calibre/calibre/manual/plugins.rst:95
1326 msgid ""
1327 "The base class for all device drivers is :class:`DevicePlugin`. However, if "
1328 "your device exposes itself as a USBMS drive to the operating system, you "
1329 "should use the USBMS class instead as it implements all the logic needed to "
1330 "support these kinds of devices."
1331 msgstr "所有设备驱动的基类都是:class:`设备插件`。但是,如果您的设备将自己作为一个USBMS驱动器暴露给操作系统,那么您应该使用USBMS类,因为它实现了支持这些类型设备所需的所有逻辑。"
1332
1333 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1334 #: calibre.devices.interface.DevicePlugin:1
1335 msgid ""
1336 "Defines the interface that should be implemented by backends that "
1337 "communicate with an e-book reader."
1338 msgstr ""
1339
1340 #: ../../../__w/calibre/calibre/manual/docstring of
1341 #: calibre.devices.interface.DevicePlugin.FORMATS:1
1342 #: ../../../__w/calibre/calibre/manual/docstring of
1343 #: calibre.devices.usbms.driver.USBMS.FORMATS:1
1344 msgid "Ordered list of supported formats"
1345 msgstr ""
1346
1347 #: ../../../__w/calibre/calibre/manual/docstring of
1348 #: calibre.devices.interface.DevicePlugin.VENDOR_ID:1
1349 #: ../../../__w/calibre/calibre/manual/docstring of
1350 #: calibre.devices.usbms.device.Device.VENDOR_ID:1
1351 msgid ""
1352 "VENDOR_ID can be either an integer, a list of integers or a dictionary If it"
1353 " is a dictionary, it must be a dictionary of dictionaries, of the form::"
1354 msgstr ""
1355
1356 #: ../../../__w/calibre/calibre/manual/docstring of
1357 #: calibre.devices.interface.DevicePlugin.PRODUCT_ID:1
1358 #: ../../../__w/calibre/calibre/manual/docstring of
1359 #: calibre.devices.usbms.device.Device.PRODUCT_ID:1
1360 msgid "An integer or a list of integers"
1361 msgstr ""
1362
1363 #: ../../../__w/calibre/calibre/manual/docstring of
1364 #: calibre.devices.interface.DevicePlugin.BCD:1
1365 #: ../../../__w/calibre/calibre/manual/docstring of
1366 #: calibre.devices.usbms.device.Device.BCD:1
1367 msgid ""
1368 "BCD can be either None to not distinguish between devices based on BCD, or "
1369 "it can be a list of the BCD numbers of all devices supported by this driver."
1370 msgstr ""
1371
1372 #: ../../../__w/calibre/calibre/manual/docstring of
1373 #: calibre.devices.interface.DevicePlugin.THUMBNAIL_HEIGHT:1
1374 msgid "Height for thumbnails on the device"
1375 msgstr ""
1376
1377 #: ../../../__w/calibre/calibre/manual/docstring of
1378 #: calibre.devices.interface.DevicePlugin.THUMBNAIL_COMPRESSION_QUALITY:1
1379 msgid ""
1380 "Compression quality for thumbnails. Set this closer to 100 to have better "
1381 "quality thumbnails with fewer compression artifacts. Of course, the "
1382 "thumbnails get larger as well."
1383 msgstr ""
1384
1385 #: ../../../__w/calibre/calibre/manual/docstring of
1386 #: calibre.devices.interface.DevicePlugin.WANTS_UPDATED_THUMBNAILS:1
1387 msgid ""
1388 "Set this to True if the device supports updating cover thumbnails during "
1389 "sync_booklists. Setting it to true will ask device.py to refresh the cover "
1390 "thumbnails during book matching"
1391 msgstr ""
1392
1393 #: ../../../__w/calibre/calibre/manual/docstring of
1394 #: calibre.devices.interface.DevicePlugin.CAN_SET_METADATA:1
1395 #: ../../../__w/calibre/calibre/manual/docstring of
1396 #: calibre.devices.usbms.driver.USBMS.CAN_SET_METADATA:1
1397 msgid "Whether the metadata on books can be set via the GUI."
1398 msgstr ""
1399
1400 #: ../../../__w/calibre/calibre/manual/docstring of
1401 #: calibre.devices.interface.DevicePlugin.CAN_DO_DEVICE_DB_PLUGBOARD:1
1402 msgid "Whether the device can handle device_db metadata plugboards"
1403 msgstr ""
1404
1405 #: ../../../__w/calibre/calibre/manual/docstring of
1406 #: calibre.devices.interface.DevicePlugin.path_sep:1
1407 msgid "Path separator for paths to books on device"
1408 msgstr ""
1409
1410 #: ../../../__w/calibre/calibre/manual/docstring of
1411 #: calibre.devices.interface.DevicePlugin.icon:1
1412 msgid "Icon for this device"
1413 msgstr "设备图标"
1414
1415 #: ../../../__w/calibre/calibre/manual/docstring of
1416 #: calibre.devices.interface.DevicePlugin.OPEN_FEEDBACK_MESSAGE:1
1417 msgid ""
1418 "GUI displays this as a message if not None in the status bar. Useful if "
1419 "opening can take a long time"
1420 msgstr ""
1421
1422 #: ../../../__w/calibre/calibre/manual/docstring of
1423 #: calibre.devices.interface.DevicePlugin.VIRTUAL_BOOK_EXTENSIONS:1
1424 msgid ""
1425 "Set of extensions that are \"virtual books\" on the device and therefore "
1426 "cannot be viewed/saved/added to library. For example: "
1427 "``frozenset(['kobo'])``"
1428 msgstr ""
1429
1430 #: ../../../__w/calibre/calibre/manual/docstring of
1431 #: calibre.devices.interface.DevicePlugin.VIRTUAL_BOOK_EXTENSION_MESSAGE:1
1432 msgid "Message to display to user for virtual book extensions."
1433 msgstr ""
1434
1435 #: ../../../__w/calibre/calibre/manual/docstring of
1436 #: calibre.devices.interface.DevicePlugin.NUKE_COMMENTS:1
1437 msgid ""
1438 "Whether to nuke comments in the copy of the book sent to the device. If not "
1439 "None this should be short string that the comments will be replaced by."
1440 msgstr ""
1441
1442 #: ../../../__w/calibre/calibre/manual/docstring of
1443 #: calibre.devices.interface.DevicePlugin.MANAGES_DEVICE_PRESENCE:1
1444 msgid ""
1445 "If True indicates that this driver completely manages device detection, "
1446 "ejecting and so forth. If you set this to True, you *must* implement the "
1447 "detect_managed_devices and debug_managed_device_detection methods. A driver "
1448 "with this set to true is responsible for detection of devices, managing a "
1449 "blacklist of devices, a list of ejected devices and so forth. calibre will "
1450 "periodically call the detect_managed_devices() method and if it returns a "
1451 "detected device, calibre will call open(). open() will be called every time "
1452 "a device is returned even if previous calls to open() failed, therefore the "
1453 "driver must maintain its own blacklist of failed devices. Similarly, when "
1454 "ejecting, calibre will call eject() and then assuming the next call to "
1455 "detect_managed_devices() returns None, it will call post_yank_cleanup()."
1456 msgstr ""
1457
1458 #: ../../../__w/calibre/calibre/manual/docstring of
1459 #: calibre.devices.interface.DevicePlugin.SLOW_DRIVEINFO:1
1460 msgid ""
1461 "If set the True, calibre will call the :meth:`get_driveinfo()` method after "
1462 "the books lists have been loaded to get the driveinfo."
1463 msgstr ""
1464
1465 #: ../../../__w/calibre/calibre/manual/docstring of
1466 #: calibre.devices.interface.DevicePlugin.ASK_TO_ALLOW_CONNECT:1
1467 msgid ""
1468 "If set to True, calibre will ask the user if they want to manage the device "
1469 "with calibre, the first time it is detected. If you set this to True you "
1470 "must implement :meth:`get_device_uid()` and "
1471 ":meth:`ignore_connected_device()` and :meth:`get_user_blacklisted_devices` "
1472 "and :meth:`set_user_blacklisted_devices`"
1473 msgstr ""
1474
1475 #: ../../../__w/calibre/calibre/manual/docstring of
1476 #: calibre.devices.interface.DevicePlugin.user_feedback_after_callback:1
1477 msgid ""
1478 "Set this to a dictionary of the form {'title':title, 'msg':msg, "
1479 "'det_msg':detailed_msg} to have calibre popup a message to the user after "
1480 "some callbacks are run (currently only upload_books). Be careful to not spam"
1481 " the user with too many messages. This variable is checked after *every* "
1482 "callback, so only set it when you really need to."
1483 msgstr ""
1484
1485 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1486 #: calibre.devices.interface.DevicePlugin.get_open_popup_message:1
1487 msgid ""
1488 "GUI displays this as a non-modal popup. Should be an instance of "
1489 "OpenPopupMessage"
1490 msgstr ""
1491
1492 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1493 #: calibre.devices.interface.DevicePlugin.model_metadata:1
1494 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1495 #: of calibre.devices.usbms.device.Device.model_metadata:1
1496 msgid "Metadata about all the actual device models this driver supports"
1497 msgstr ""
1498
1499 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1500 #: calibre.devices.interface.DevicePlugin.is_usb_connected:1
1501 msgid ""
1502 "Return True, device_info if a device handled by this plugin is currently "
1503 "connected."
1504 msgstr ""
1505
1506 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1507 #: calibre.devices.interface.DevicePlugin.is_usb_connected:3
1508 msgid "List of devices currently connected"
1509 msgstr ""
1510
1511 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1512 #: calibre.devices.interface.DevicePlugin.debug_managed_device_detection:1
1513 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1514 #: calibre.devices.interface.DevicePlugin.detect_managed_devices:1
1515 msgid "Called only if MANAGES_DEVICE_PRESENCE is True."
1516 msgstr ""
1517
1518 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1519 #: calibre.devices.interface.DevicePlugin.detect_managed_devices:3
1520 msgid ""
1521 "Scan for devices that this driver can handle. Should return a device object "
1522 "if a device is found. This object will be passed to the open() method as the"
1523 " connected_device. If no device is found, return None. The returned object "
1524 "can be anything, calibre does not use it, it is only passed to open()."
1525 msgstr ""
1526
1527 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1528 #: calibre.devices.interface.DevicePlugin.detect_managed_devices:9
1529 msgid ""
1530 "This method is called periodically by the GUI, so make sure it is not too "
1531 "resource intensive. Use a cache to avoid repeatedly scanning the system."
1532 msgstr ""
1533
1534 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1535 #: calibre.devices.interface.DevicePlugin.detect_managed_devices:13
1536 msgid "Set of USB devices found on the system."
1537 msgstr ""
1538
1539 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1540 #: calibre.devices.interface.DevicePlugin.detect_managed_devices:15
1541 msgid ""
1542 "If True and the driver uses a cache to prevent repeated scanning, the cache "
1543 "must be flushed."
1544 msgstr ""
1545
1546 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1547 #: calibre.devices.interface.DevicePlugin.debug_managed_device_detection:3
1548 msgid ""
1549 "Should write information about the devices detected on the system to output,"
1550 " which is a file like object."
1551 msgstr ""
1552
1553 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1554 #: calibre.devices.interface.DevicePlugin.debug_managed_device_detection:6
1555 msgid ""
1556 "Should return True if a device was detected and successfully opened, "
1557 "otherwise False."
1558 msgstr ""
1559
1560 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1561 #: calibre.devices.interface.DevicePlugin.reset:1
1562 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1563 #: of calibre.devices.usbms.device.Device.reset:1
1564 msgid "The key to unlock the device"
1565 msgstr ""
1566
1567 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1568 #: calibre.devices.interface.DevicePlugin.reset:2
1569 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1570 #: of calibre.devices.usbms.device.Device.reset:2
1571 msgid "If true the packet stream to/from the device is logged"
1572 msgstr ""
1573
1574 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1575 #: calibre.devices.interface.DevicePlugin.reset:3
1576 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1577 #: calibre.devices.interface.DevicePlugin.set_progress_reporter:3
1578 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1579 #: of calibre.devices.usbms.device.Device.reset:3
1580 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1581 #: of calibre.devices.usbms.device.Device.set_progress_reporter:3
1582 msgid ""
1583 "Function that is called with a % progress (number between 0 and 100) for "
1584 "various tasks. If it is called with -1 that means that the task does not "
1585 "have any progress information"
1586 msgstr ""
1587
1588 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1589 #: calibre.devices.interface.DevicePlugin.reset:7
1590 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1591 #: of calibre.devices.usbms.device.Device.reset:7
1592 msgid "Device information from the device scanner"
1593 msgstr ""
1594
1595 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1596 #: calibre.devices.interface.DevicePlugin.can_handle_windows:1
1597 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1598 #: of calibre.devices.usbms.device.Device.can_handle_windows:1
1599 msgid ""
1600 "Optional method to perform further checks on a device to see if this driver "
1601 "is capable of handling it. If it is not it should return False. This method "
1602 "is only called after the vendor, product ids and the bcd have matched, so it"
1603 " can do some relatively time intensive checks. The default implementation "
1604 "returns True. This method is called only on Windows. See also "
1605 ":meth:`can_handle`."
1606 msgstr ""
1607
1608 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1609 #: calibre.devices.interface.DevicePlugin.can_handle_windows:8
1610 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1611 #: of calibre.devices.usbms.device.Device.can_handle_windows:8
1612 msgid ""
1613 "Note that for devices based on USBMS this method by default delegates to "
1614 ":meth:`can_handle`. So you only need to override :meth:`can_handle` in your"
1615 " subclass of USBMS."
1616 msgstr ""
1617
1618 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1619 #: calibre.devices.interface.DevicePlugin.can_handle_windows:12
1620 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1621 #: of calibre.devices.usbms.device.Device.can_handle_windows:12
1622 msgid ""
1623 "A usbdevice as returned by :func:`calibre.devices.winusb.scan_usb_devices`"
1624 msgstr ""
1625
1626 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1627 #: calibre.devices.interface.DevicePlugin.can_handle:1
1628 msgid "Unix version of :meth:`can_handle_windows`."
1629 msgstr ""
1630
1631 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1632 #: calibre.devices.interface.DevicePlugin.can_handle:3
1633 msgid "Is a tuple of (vid, pid, bcd, manufacturer, product, serial number)"
1634 msgstr ""
1635
1636 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1637 #: calibre.devices.interface.DevicePlugin.open:1
1638 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1639 #: of calibre.devices.usbms.device.Device.open:1
1640 msgid ""
1641 "Perform any device specific initialization. Called after the device is "
1642 "detected but before any other functions that communicate with the device. "
1643 "For example: For devices that present themselves as USB Mass storage "
1644 "devices, this method would be responsible for mounting the device or if the "
1645 "device has been automounted, for finding out where it has been mounted. The "
1646 "method :meth:`calibre.devices.usbms.device.Device.open` has an "
1647 "implementation of this function that should serve as a good example for USB "
1648 "Mass storage devices."
1649 msgstr ""
1650
1651 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1652 #: calibre.devices.interface.DevicePlugin.open:11
1653 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1654 #: of calibre.devices.usbms.device.Device.open:11
1655 msgid ""
1656 "This method can raise an OpenFeedback exception to display a message to the "
1657 "user."
1658 msgstr ""
1659
1660 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1661 #: calibre.devices.interface.DevicePlugin.open:14
1662 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1663 #: of calibre.devices.usbms.device.Device.open:14
1664 msgid ""
1665 "The device that we are trying to open. It is a tuple of (vendor id, product "
1666 "id, bcd, manufacturer name, product name, device serial number). However, "
1667 "some devices have no serial number and on Windows only the first three "
1668 "fields are present, the rest are None."
1669 msgstr ""
1670
1671 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1672 #: calibre.devices.interface.DevicePlugin.open:20
1673 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1674 #: of calibre.devices.usbms.device.Device.open:20
1675 msgid ""
1676 "The UUID of the current calibre library. Can be None if there is no library "
1677 "(for example when used from the command line)."
1678 msgstr ""
1679
1680 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1681 #: calibre.devices.interface.DevicePlugin.eject:1
1682 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1683 #: of calibre.devices.usbms.device.Device.eject:1
1684 msgid ""
1685 "Un-mount / eject the device from the OS. This does not check if there are "
1686 "pending GUI jobs that need to communicate with the device."
1687 msgstr ""
1688
1689 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1690 #: calibre.devices.interface.DevicePlugin.eject:4
1691 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1692 #: of calibre.devices.usbms.device.Device.eject:4
1693 msgid ""
1694 "NOTE: That this method may not be called on the same thread as the rest of "
1695 "the device methods."
1696 msgstr ""
1697
1698 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1699 #: calibre.devices.interface.DevicePlugin.post_yank_cleanup:1
1700 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1701 #: of calibre.devices.usbms.device.Device.post_yank_cleanup:1
1702 msgid "Called if the user yanks the device without ejecting it first."
1703 msgstr ""
1704
1705 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1706 #: calibre.devices.interface.DevicePlugin.set_progress_reporter:1
1707 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1708 #: of calibre.devices.usbms.device.Device.set_progress_reporter:1
1709 msgid "Set a function to report progress information."
1710 msgstr ""
1711
1712 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1713 #: calibre.devices.interface.DevicePlugin.get_device_information:1
1714 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1715 #: of calibre.devices.usbms.driver.USBMS.get_device_information:1
1716 msgid "Ask device for device information. See L{DeviceInfoQuery}."
1717 msgstr ""
1718
1719 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1720 #: calibre.devices.interface.DevicePlugin.get_device_information:3
1721 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1722 #: of calibre.devices.usbms.driver.USBMS.get_device_information:3
1723 msgid ""
1724 "(device name, device version, software version on device, MIME type) The "
1725 "tuple can optionally have a fifth element, which is a drive information "
1726 "dictionary. See usbms.driver for an example."
1727 msgstr ""
1728
1729 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1730 #: calibre.devices.interface.DevicePlugin.get_driveinfo:1
1731 msgid ""
1732 "Return the driveinfo dictionary. Usually called from "
1733 "get_device_information(), but if loading the driveinfo is slow for this "
1734 "driver, then it should set SLOW_DRIVEINFO. In this case, this method will be"
1735 " called by calibre after the book lists have been loaded. Note that it is "
1736 "not called on the device thread, so the driver should cache the drive info "
1737 "in the books() method and this function should return the cached data."
1738 msgstr ""
1739
1740 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1741 #: calibre.devices.interface.DevicePlugin.card_prefix:1
1742 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1743 #: of calibre.devices.usbms.device.Device.card_prefix:1
1744 msgid ""
1745 "Return a 2 element list of the prefix to paths on the cards. If no card is "
1746 "present None is set for the card's prefix. E.G. ('/place', '/place2') (None,"
1747 " 'place2') ('place', None) (None, None)"
1748 msgstr ""
1749
1750 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1751 #: calibre.devices.interface.DevicePlugin.total_space:1
1752 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1753 #: of calibre.devices.usbms.device.Device.total_space:1
1754 msgid "Get total space available on the mountpoints:"
1755 msgstr ""
1756
1757 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1758 #: calibre.devices.interface.DevicePlugin.free_space:2
1759 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1760 #: calibre.devices.interface.DevicePlugin.total_space:2
1761 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1762 #: of calibre.devices.usbms.device.Device.free_space:2
1763 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1764 #: of calibre.devices.usbms.device.Device.total_space:2
1765 msgid "Main memory"
1766 msgstr "主記憶體"
1767
1768 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1769 #: calibre.devices.interface.DevicePlugin.total_space:3
1770 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1771 #: of calibre.devices.usbms.device.Device.total_space:3
1772 msgid "Memory Card A"
1773 msgstr ""
1774
1775 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1776 #: calibre.devices.interface.DevicePlugin.total_space:4
1777 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1778 #: of calibre.devices.usbms.device.Device.total_space:4
1779 msgid "Memory Card B"
1780 msgstr ""
1781
1782 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1783 #: calibre.devices.interface.DevicePlugin.total_space:6
1784 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1785 #: of calibre.devices.usbms.device.Device.total_space:6
1786 msgid ""
1787 "A 3 element list with total space in bytes of (1, 2, 3). If a particular "
1788 "device doesn't have any of these locations it should return 0."
1789 msgstr ""
1790
1791 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1792 #: calibre.devices.interface.DevicePlugin.free_space:1
1793 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1794 #: of calibre.devices.usbms.device.Device.free_space:1
1795 msgid "Get free space available on the mountpoints:"
1796 msgstr ""
1797
1798 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1799 #: calibre.devices.interface.DevicePlugin.free_space:3
1800 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1801 #: of calibre.devices.usbms.device.Device.free_space:3
1802 msgid "Card A"
1803 msgstr "記憶卡 A"
1804
1805 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1806 #: calibre.devices.interface.DevicePlugin.free_space:4
1807 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1808 #: of calibre.devices.usbms.device.Device.free_space:4
1809 msgid "Card B"
1810 msgstr "記憶卡 B"
1811
1812 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1813 #: calibre.devices.interface.DevicePlugin.free_space:6
1814 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
1815 #: of calibre.devices.usbms.device.Device.free_space:6
1816 msgid ""
1817 "A 3 element list with free space in bytes of (1, 2, 3). If a particular "
1818 "device doesn't have any of these locations it should return -1."
1819 msgstr ""
1820
1821 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1822 #: calibre.devices.interface.DevicePlugin.books:1
1823 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1824 #: of calibre.devices.usbms.driver.USBMS.books:1
1825 msgid "Return a list of e-books on the device."
1826 msgstr ""
1827
1828 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1829 #: calibre.devices.interface.DevicePlugin.books:3
1830 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1831 #: of calibre.devices.usbms.driver.USBMS.books:3
1832 msgid ""
1833 "If 'carda' or 'cardb' return a list of e-books on the specific storage card,"
1834 " otherwise return list of e-books in main memory of device. If a card is "
1835 "specified and no books are on the card return empty list."
1836 msgstr ""
1837
1838 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1839 #: calibre.devices.interface.DevicePlugin.books:8
1840 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1841 #: of calibre.devices.usbms.driver.USBMS.books:8
1842 msgid "A BookList."
1843 msgstr ""
1844
1845 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1846 #: calibre.devices.interface.DevicePlugin.upload_books:1
1847 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1848 #: of calibre.devices.usbms.driver.USBMS.upload_books:1
1849 msgid ""
1850 "Upload a list of books to the device. If a file already exists on the "
1851 "device, it should be replaced. This method should raise a "
1852 ":class:`FreeSpaceError` if there is not enough free space on the device. The"
1853 " text of the FreeSpaceError must contain the word \"card\" if ``on_card`` is"
1854 " not None otherwise it must contain the word \"memory\"."
1855 msgstr ""
1856
1857 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1858 #: calibre.devices.interface.DevicePlugin.upload_books:7
1859 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1860 #: of calibre.devices.usbms.driver.USBMS.upload_books:7
1861 msgid "A list of paths"
1862 msgstr ""
1863
1864 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1865 #: calibre.devices.interface.DevicePlugin.upload_books:8
1866 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1867 #: of calibre.devices.usbms.driver.USBMS.upload_books:8
1868 msgid ""
1869 "A list of file names that the books should have once uploaded to the device."
1870 " len(names) == len(files)"
1871 msgstr ""
1872
1873 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1874 #: calibre.devices.interface.DevicePlugin.upload_books:10
1875 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1876 #: of calibre.devices.usbms.driver.USBMS.upload_books:10
1877 msgid ""
1878 "If not None, it is a list of :class:`Metadata` objects. The idea is to use "
1879 "the metadata to determine where on the device to put the book. len(metadata)"
1880 " == len(files). Apart from the regular cover (path to cover), there may also"
1881 " be a thumbnail attribute, which should be used in preference. The thumbnail"
1882 " attribute is of the form (width, height, cover_data as jpeg)."
1883 msgstr ""
1884
1885 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1886 #: calibre.devices.interface.DevicePlugin.upload_books:17
1887 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1888 #: of calibre.devices.usbms.driver.USBMS.upload_books:17
1889 msgid ""
1890 "A list of 3-element tuples. The list is meant to be passed to "
1891 ":meth:`add_books_to_metadata`."
1892 msgstr ""
1893
1894 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1895 #: calibre.devices.interface.DevicePlugin.add_books_to_metadata:1
1896 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1897 #: of calibre.devices.usbms.driver.USBMS.add_books_to_metadata:1
1898 msgid ""
1899 "Add locations to the booklists. This function must not communicate with the "
1900 "device."
1901 msgstr ""
1902
1903 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1904 #: calibre.devices.interface.DevicePlugin.add_books_to_metadata:4
1905 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1906 #: of calibre.devices.usbms.driver.USBMS.add_books_to_metadata:4
1907 msgid "Result of a call to L{upload_books}"
1908 msgstr ""
1909
1910 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1911 #: calibre.devices.interface.DevicePlugin.add_books_to_metadata:5
1912 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1913 #: of calibre.devices.usbms.driver.USBMS.add_books_to_metadata:5
1914 msgid "List of :class:`Metadata` objects, same as for :meth:`upload_books`."
1915 msgstr ""
1916
1917 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1918 #: calibre.devices.interface.DevicePlugin.add_books_to_metadata:7
1919 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1920 #: calibre.devices.interface.DevicePlugin.remove_books_from_metadata:5
1921 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1922 #: calibre.devices.interface.DevicePlugin.sync_booklists:3
1923 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1924 #: of calibre.devices.usbms.driver.USBMS.add_books_to_metadata:7
1925 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1926 #: of calibre.devices.usbms.driver.USBMS.remove_books_from_metadata:5
1927 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1928 #: of calibre.devices.usbms.driver.USBMS.sync_booklists:3
1929 msgid ""
1930 "A tuple containing the result of calls to (:meth:`books(oncard=None)`, "
1931 ":meth:`books(oncard='carda')`, :meth`books(oncard='cardb')`)."
1932 msgstr ""
1933
1934 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1935 #: calibre.devices.interface.DevicePlugin.delete_books:1
1936 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1937 #: of calibre.devices.usbms.driver.USBMS.delete_books:1
1938 msgid "Delete books at paths on device."
1939 msgstr ""
1940
1941 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1942 #: calibre.devices.interface.DevicePlugin.remove_books_from_metadata:1
1943 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1944 #: of calibre.devices.usbms.driver.USBMS.remove_books_from_metadata:1
1945 msgid ""
1946 "Remove books from the metadata list. This function must not communicate with"
1947 " the device."
1948 msgstr ""
1949
1950 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1951 #: calibre.devices.interface.DevicePlugin.remove_books_from_metadata:4
1952 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1953 #: of calibre.devices.usbms.driver.USBMS.remove_books_from_metadata:4
1954 msgid "paths to books on the device."
1955 msgstr ""
1956
1957 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1958 #: calibre.devices.interface.DevicePlugin.sync_booklists:1
1959 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
1960 #: of calibre.devices.usbms.driver.USBMS.sync_booklists:1
1961 msgid "Update metadata on device."
1962 msgstr ""
1963
1964 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1965 #: calibre.devices.interface.DevicePlugin.get_file:1
1966 msgid "Read the file at ``path`` on the device and write it to outfile."
1967 msgstr ""
1968
1969 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1970 #: calibre.devices.interface.DevicePlugin.get_file:3
1971 msgid "file object like ``sys.stdout`` or the result of an :func:`open` call."
1972 msgstr ""
1973
1974 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1975 #: calibre.devices.interface.DevicePlugin.config_widget:1
1976 msgid ""
1977 "Should return a QWidget. The QWidget contains the settings for the device "
1978 "interface"
1979 msgstr ""
1980
1981 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1982 #: calibre.devices.interface.DevicePlugin.save_settings:1
1983 msgid ""
1984 "Should save settings to disk. Takes the widget created in "
1985 ":meth:`config_widget` and saves all settings to disk."
1986 msgstr ""
1987
1988 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1989 #: calibre.devices.interface.DevicePlugin.settings:1
1990 msgid ""
1991 "Should return an opts object. The opts object should have at least one "
1992 "attribute `format_map` which is an ordered list of formats for the device."
1993 msgstr ""
1994
1995 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
1996 #: calibre.devices.interface.DevicePlugin.set_plugboards:1
1997 msgid ""
1998 "provide the driver the current set of plugboards and a function to select a "
1999 "specific plugboard. This method is called immediately before add_books and "
2000 "sync_booklists."
2001 msgstr ""
2002
2003 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2004 #: calibre.devices.interface.DevicePlugin.set_plugboards:5
2005 msgid "pb_func is a callable with the following signature::"
2006 msgstr ""
2007
2008 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2009 #: calibre.devices.interface.DevicePlugin.set_plugboards:6
2010 msgid "def pb_func(device_name, format, plugboards)"
2011 msgstr ""
2012
2013 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2014 #: calibre.devices.interface.DevicePlugin.set_plugboards:8
2015 msgid ""
2016 "You give it the current device name (either the class name or "
2017 "DEVICE_PLUGBOARD_NAME), the format you are interested in (a 'real' format or"
2018 " 'device_db'), and the plugboards (you were given those by set_plugboards, "
2019 "the same place you got this method)."
2020 msgstr ""
2021
2022 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2023 #: calibre.devices.interface.DevicePlugin.set_plugboards:13
2024 msgid "None or a single plugboard instance."
2025 msgstr ""
2026
2027 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2028 #: calibre.devices.interface.DevicePlugin.set_driveinfo_name:1
2029 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
2030 #: of calibre.devices.usbms.driver.USBMS.set_driveinfo_name:1
2031 msgid ""
2032 "Set the device name in the driveinfo file to 'name'. This setting will "
2033 "persist until the file is re-created or the name is changed again."
2034 msgstr ""
2035
2036 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2037 #: calibre.devices.interface.DevicePlugin.set_driveinfo_name:4
2038 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
2039 #: of calibre.devices.usbms.driver.USBMS.set_driveinfo_name:4
2040 msgid ""
2041 "Non-disk devices should implement this method based on the location codes "
2042 "returned by the get_device_information() method."
2043 msgstr ""
2044
2045 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2046 #: calibre.devices.interface.DevicePlugin.prepare_addable_books:1
2047 msgid ""
2048 "Given a list of paths, returns another list of paths. These paths point to "
2049 "addable versions of the books."
2050 msgstr ""
2051
2052 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2053 #: calibre.devices.interface.DevicePlugin.prepare_addable_books:4
2054 msgid ""
2055 "If there is an error preparing a book, then instead of a path, the position "
2056 "in the returned list for that book should be a three tuple: (original_path, "
2057 "the exception instance, traceback)"
2058 msgstr ""
2059
2060 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2061 #: calibre.devices.interface.DevicePlugin.startup:1
2062 msgid ""
2063 "Called when calibre is starting the device. Do any initialization required. "
2064 "Note that multiple instances of the class can be instantiated, and thus "
2065 "__init__ can be called multiple times, but only one instance will have this "
2066 "method called. This method is called on the device thread, not the GUI "
2067 "thread."
2068 msgstr ""
2069
2070 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2071 #: calibre.devices.interface.DevicePlugin.shutdown:1
2072 msgid ""
2073 "Called when calibre is shutting down, either for good or in preparation to "
2074 "restart. Do any cleanup required. This method is called on the device "
2075 "thread, not the GUI thread."
2076 msgstr ""
2077
2078 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2079 #: calibre.devices.interface.DevicePlugin.get_device_uid:1
2080 msgid ""
2081 "Must return a unique id for the currently connected device (this is called "
2082 "immediately after a successful call to open()). You must implement this "
2083 "method if you set ASK_TO_ALLOW_CONNECT = True"
2084 msgstr ""
2085
2086 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2087 #: calibre.devices.interface.DevicePlugin.ignore_connected_device:1
2088 msgid ""
2089 "Should ignore the device identified by uid (the result of a call to "
2090 "get_device_uid()) in the future. You must implement this method if you set "
2091 "ASK_TO_ALLOW_CONNECT = True. Note that this function is called immediately "
2092 "after open(), so if open() caches some state, the driver should reset that "
2093 "state."
2094 msgstr ""
2095
2096 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2097 #: calibre.devices.interface.DevicePlugin.get_user_blacklisted_devices:1
2098 msgid ""
2099 "Return map of device uid to friendly name for all devices that the user has "
2100 "asked to be ignored."
2101 msgstr ""
2102
2103 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2104 #: calibre.devices.interface.DevicePlugin.set_user_blacklisted_devices:1
2105 msgid "Set the list of device uids that should be ignored by this driver."
2106 msgstr ""
2107
2108 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2109 #: calibre.devices.interface.DevicePlugin.specialize_global_preferences:1
2110 msgid ""
2111 "Implement this method if your device wants to override a particular "
2112 "preference. You must ensure that all call sites that want a preference that "
2113 "can be overridden use device_prefs['something'] instead of "
2114 "prefs['something']. Your method should call "
2115 "device_prefs.set_overrides(pref=val, pref=val, ...). Currently used for: "
2116 "metadata management (prefs['manage_device_metadata'])"
2117 msgstr ""
2118
2119 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2120 #: calibre.devices.interface.DevicePlugin.set_library_info:1
2121 msgid ""
2122 "Implement this method if you want information about the current calibre "
2123 "library. This method is called at startup and when the calibre library "
2124 "changes while connected."
2125 msgstr ""
2126
2127 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2128 #: calibre.devices.interface.DevicePlugin.is_dynamically_controllable:1
2129 msgid ""
2130 "Called by the device manager when starting plugins. If this method returns a"
2131 " string, then a) it supports the device manager's dynamic control interface,"
2132 " and b) that name is to be used when talking to the plugin."
2133 msgstr ""
2134
2135 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2136 #: calibre.devices.interface.DevicePlugin.get_option:5
2137 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2138 #: calibre.devices.interface.DevicePlugin.is_dynamically_controllable:5
2139 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2140 #: calibre.devices.interface.DevicePlugin.is_running:3
2141 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2142 #: calibre.devices.interface.DevicePlugin.set_option:4
2143 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2144 #: calibre.devices.interface.DevicePlugin.start_plugin:5
2145 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2146 #: calibre.devices.interface.DevicePlugin.stop_plugin:6
2147 msgid ""
2148 "This method can be called on the GUI thread. A driver that implements this "
2149 "method must be thread safe."
2150 msgstr ""
2151
2152 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2153 #: calibre.devices.interface.DevicePlugin.start_plugin:1
2154 msgid ""
2155 "This method is called to start the plugin. The plugin should begin to accept"
2156 " device connections however it does that. If the plugin is already accepting"
2157 " connections, then do nothing."
2158 msgstr ""
2159
2160 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2161 #: calibre.devices.interface.DevicePlugin.stop_plugin:1
2162 msgid ""
2163 "This method is called to stop the plugin. The plugin should no longer accept"
2164 " connections, and should cleanup behind itself. It is likely that this "
2165 "method should call shutdown. If the plugin is already not accepting "
2166 "connections, then do nothing."
2167 msgstr ""
2168
2169 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2170 #: calibre.devices.interface.DevicePlugin.get_option:1
2171 msgid ""
2172 "Return the value of the option indicated by opt_string. This method can be "
2173 "called when the plugin is not started. Return None if the option does not "
2174 "exist."
2175 msgstr ""
2176
2177 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2178 #: calibre.devices.interface.DevicePlugin.set_option:1
2179 msgid ""
2180 "Set the value of the option indicated by opt_string. This method can be "
2181 "called when the plugin is not started."
2182 msgstr ""
2183
2184 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2185 #: calibre.devices.interface.DevicePlugin.is_running:1
2186 msgid "Return True if the plugin is started, otherwise false"
2187 msgstr ""
2188
2189 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2190 #: calibre.devices.interface.DevicePlugin.synchronize_with_db:1
2191 msgid ""
2192 "Called during book matching when a book on the device is matched with a book"
2193 " in calibre's db. The method is responsible for synchronizing data from the "
2194 "device to calibre's db (if needed)."
2195 msgstr ""
2196
2197 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2198 #: calibre.devices.interface.DevicePlugin.synchronize_with_db:5
2199 msgid ""
2200 "The method must return a two-value tuple. The first value is a set of "
2201 "calibre book ids changed if calibre's database was changed or None if the "
2202 "database was not changed. If the first value is an empty set then the "
2203 "metadata for the book on the device is updated with calibre's metadata and "
2204 "given back to the device, but no GUI refresh of that book is done. This is "
2205 "useful when the calibre data is correct but must be sent to the device."
2206 msgstr ""
2207
2208 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2209 #: calibre.devices.interface.DevicePlugin.synchronize_with_db:13
2210 msgid ""
2211 "The second value is itself a 2-value tuple. The first value in the tuple "
2212 "specifies whether a book format should be sent to the device. The intent is "
2213 "to permit verifying that the book on the device is the same as the book in "
2214 "calibre. This value must be None if no book is to be sent, otherwise return "
2215 "the base file name on the device (a string like foobar.epub). Be sure to "
2216 "include the extension in the name. The device subsystem will construct a "
2217 "send_books job for all books with not- None returned values. Note: other "
2218 "than to later retrieve the extension, the name is ignored in cases where the"
2219 " device uses a template to generate the file name, which most do. The second"
2220 " value in the returned tuple indicated whether the format is future-dated. "
2221 "Return True if it is, otherwise return False. calibre will display a dialog "
2222 "to the user listing all future dated books."
2223 msgstr ""
2224
2225 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2226 #: calibre.devices.interface.DevicePlugin.synchronize_with_db:27
2227 msgid ""
2228 "Extremely important: this method is called on the GUI thread. It must be "
2229 "threadsafe with respect to the device manager's thread."
2230 msgstr ""
2231
2232 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2233 #: calibre.devices.interface.DevicePlugin.synchronize_with_db:30
2234 msgid ""
2235 "book_id: the calibre id for the book in the database. book_metadata: the "
2236 "Metadata object for the book coming from the device. first_call: True if "
2237 "this is the first call during a sync, False otherwise"
2238 msgstr ""
2239
2240 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2241 #: calibre.devices.interface.BookList:1
2242 msgid "Bases: :py:class:`list`"
2243 msgstr ""
2244
2245 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2246 #: calibre.devices.interface.BookList:1
2247 msgid "A list of books. Each Book object must have the fields"
2248 msgstr ""
2249
2250 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2251 #: calibre.devices.interface.BookList:3
2252 msgid "title"
2253 msgstr ""
2254
2255 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2256 #: calibre.devices.interface.BookList:4
2257 msgid "authors"
2258 msgstr ""
2259
2260 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2261 #: calibre.devices.interface.BookList:5
2262 msgid "size (file size of the book)"
2263 msgstr ""
2264
2265 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2266 #: calibre.devices.interface.BookList:6
2267 msgid "datetime (a UTC time tuple)"
2268 msgstr ""
2269
2270 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2271 #: calibre.devices.interface.BookList:7
2272 msgid "path (path on the device to the book)"
2273 msgstr ""
2274
2275 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2276 #: calibre.devices.interface.BookList:8
2277 msgid ""
2278 "thumbnail (can be None) thumbnail is either a str/bytes object with the "
2279 "image data or it should have an attribute image_path that stores an absolute"
2280 " (platform native) path to the image"
2281 msgstr ""
2282
2283 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2284 #: calibre.devices.interface.BookList:11
2285 msgid "tags (a list of strings, can be empty)."
2286 msgstr ""
2287
2288 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2289 #: calibre.devices.interface.BookList.supports_collections:1
2290 msgid "Return True if the device supports collections for this book list."
2291 msgstr ""
2292
2293 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2294 #: calibre.devices.interface.BookList.add_book:1
2295 msgid ""
2296 "Add the book to the booklist. Intent is to maintain any device-internal "
2297 "metadata. Return True if booklists must be sync'ed"
2298 msgstr ""
2299
2300 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2301 #: calibre.devices.interface.BookList.remove_book:1
2302 msgid ""
2303 "Remove a book from the booklist. Correct any device metadata at the same "
2304 "time"
2305 msgstr ""
2306
2307 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2308 #: calibre.devices.interface.BookList.get_collections:1
2309 msgid ""
2310 "Return a dictionary of collections created from collection_attributes. Each "
2311 "entry in the dictionary is of the form collection name:[list of books]"
2312 msgstr ""
2313
2314 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2315 #: calibre.devices.interface.BookList.get_collections:5
2316 msgid ""
2317 "The list of books is sorted by book title, except for collections created "
2318 "from series, in which case series_index is used."
2319 msgstr ""
2320
2321 #: ../../../__w/calibre/calibre/src/calibre/devices/interface.pydocstring of
2322 #: calibre.devices.interface.BookList.get_collections:8
2323 msgid "A list of attributes of the Book object"
2324 msgstr ""
2325
2326 #: ../../../__w/calibre/calibre/manual/plugins.rst:110
2327 msgid "USB Mass Storage based devices"
2328 msgstr "基于USB大容量存储的设备"
2329
2330 #: ../../../__w/calibre/calibre/manual/plugins.rst:112
2331 msgid ""
2332 "The base class for such devices is "
2333 ":class:`calibre.devices.usbms.driver.USBMS`. This class in turn inherits "
2334 "some of its functionality from its bases, documented below. A typical basic "
2335 "USBMS based driver looks like this:"
2336 msgstr "此类设备的基类为:类:`校准设备.usbms.驱动程序.USBMS`. 这个类又继承了它的一些功能,如下所述。基于USBMS的典型基本驱动程序如下所示:"
2337
2338 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
2339 #: of calibre.devices.usbms.device.Device:1
2340 msgid ""
2341 "Bases: :py:class:`~calibre.devices.usbms.deviceconfig.DeviceConfig`, "
2342 ":py:class:`~calibre.devices.interface.DevicePlugin`"
2343 msgstr ""
2344
2345 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
2346 #: of calibre.devices.usbms.device.Device:1
2347 msgid ""
2348 "This class provides logic common to all drivers for devices that export "
2349 "themselves as USB Mass Storage devices. Provides implementations for "
2350 "mounting/ejecting of USBMS devices on all platforms."
2351 msgstr ""
2352
2353 #: ../../../__w/calibre/calibre/manual/docstring of
2354 #: calibre.devices.usbms.device.Device.WINDOWS_MAIN_MEM:1
2355 msgid ""
2356 "String identifying the main memory of the device in the Windows PnP id "
2357 "strings This can be None, string, list of strings or compiled regex"
2358 msgstr ""
2359
2360 #: ../../../__w/calibre/calibre/manual/docstring of
2361 #: calibre.devices.usbms.device.Device.WINDOWS_CARD_A_MEM:1
2362 msgid ""
2363 "String identifying the first card of the device in the Windows PnP id "
2364 "strings This can be None, string, list of strings or compiled regex"
2365 msgstr ""
2366
2367 #: ../../../__w/calibre/calibre/manual/docstring of
2368 #: calibre.devices.usbms.device.Device.WINDOWS_CARD_B_MEM:1
2369 msgid ""
2370 "String identifying the second card of the device in the Windows PnP id "
2371 "strings This can be None, string, list of strings or compiled regex"
2372 msgstr ""
2373
2374 #: ../../../__w/calibre/calibre/manual/docstring of
2375 #: calibre.devices.usbms.device.Device.OSX_MAIN_MEM_VOL_PAT:1
2376 msgid ""
2377 "Used by the new driver detection to disambiguate main memory from storage "
2378 "cards. Should be a regular expression that matches the main memory mount "
2379 "point assigned by macOS"
2380 msgstr ""
2381
2382 #: ../../../__w/calibre/calibre/manual/docstring of
2383 #: calibre.devices.usbms.device.Device.MAX_PATH_LEN:1
2384 msgid "The maximum length of paths created on the device"
2385 msgstr ""
2386
2387 #: ../../../__w/calibre/calibre/manual/docstring of
2388 #: calibre.devices.usbms.device.Device.NEWS_IN_FOLDER:1
2389 msgid "Put news in its own folder"
2390 msgstr ""
2391
2392 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
2393 #: of calibre.devices.usbms.device.Device.windows_sort_drives:1
2394 msgid ""
2395 "Called to disambiguate main memory and storage card for devices that do not "
2396 "distinguish between them on the basis of `WINDOWS_CARD_NAME`. For example: "
2397 "The EB600"
2398 msgstr ""
2399
2400 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
2401 #: of calibre.devices.usbms.device.Device.sanitize_callback:1
2402 msgid ""
2403 "Callback to allow individual device drivers to override the path "
2404 "sanitization used by :meth:`create_upload_path`."
2405 msgstr ""
2406
2407 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
2408 #: of calibre.devices.usbms.device.Device.filename_callback:1
2409 msgid ""
2410 "Callback to allow drivers to change the default file name set by "
2411 ":meth:`create_upload_path`."
2412 msgstr ""
2413
2414 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
2415 #: of calibre.devices.usbms.device.Device.sanitize_path_components:1
2416 msgid ""
2417 "Perform any device specific sanitization on the path components for files to"
2418 " be uploaded to the device"
2419 msgstr ""
2420
2421 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
2422 #: of calibre.devices.usbms.device.Device.get_annotations:1
2423 msgid "Resolve path_map to annotation_map of files found on the device"
2424 msgstr ""
2425
2426 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/device.pydocstring
2427 #: of calibre.devices.usbms.device.Device.add_annotation_to_library:1
2428 msgid "Add an annotation to the calibre library"
2429 msgstr ""
2430
2431 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
2432 #: of calibre.devices.usbms.driver.USBMS:1
2433 msgid ""
2434 "Bases: :py:class:`~calibre.devices.usbms.cli.CLI`, "
2435 ":py:class:`~calibre.devices.usbms.device.Device`"
2436 msgstr ""
2437
2438 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
2439 #: of calibre.devices.usbms.driver.USBMS:1
2440 msgid ""
2441 "The base class for all USBMS devices. Implements the logic for "
2442 "sending/getting/updating metadata/caching metadata/etc."
2443 msgstr ""
2444
2445 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
2446 #: of calibre.devices.usbms.driver.USBMS.upload_cover:1
2447 msgid "Upload book cover to the device. Default implementation does nothing."
2448 msgstr ""
2449
2450 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
2451 #: of calibre.devices.usbms.driver.USBMS.upload_cover:3
2452 msgid "The full path to the folder where the associated book is located."
2453 msgstr ""
2454
2455 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
2456 #: of calibre.devices.usbms.driver.USBMS.upload_cover:4
2457 msgid "The name of the book file without the extension."
2458 msgstr ""
2459
2460 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
2461 #: of calibre.devices.usbms.driver.USBMS.upload_cover:5
2462 msgid "metadata belonging to the book. Use metadata.thumbnail for cover"
2463 msgstr ""
2464
2465 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
2466 #: of calibre.devices.usbms.driver.USBMS.upload_cover:7
2467 msgid "The full path to the e-book file"
2468 msgstr ""
2469
2470 #: ../../../__w/calibre/calibre/src/calibre/devices/usbms/driver.pydocstring
2471 #: of calibre.devices.usbms.driver.USBMS.normalize_path:1
2472 msgid "Return path with platform native path separators"
2473 msgstr ""
2474
2475 #: ../../../__w/calibre/calibre/manual/plugins.rst:157
2476 msgid "User interface actions"
2477 msgstr ""
2478
2479 #: ../../../__w/calibre/calibre/manual/plugins.rst:159
2480 msgid ""
2481 "If you are adding your own plugin in a ZIP file, you should subclass both "
2482 "InterfaceActionBase and InterfaceAction. The :meth:`load_actual_plugin` "
2483 "method of your InterfaceActionBase subclass must return an instantiated "
2484 "object of your InterfaceAction subclass."
2485 msgstr ""
2486
2487 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2488 #: of calibre.gui2.actions.InterfaceAction:1
2489 msgid "Bases: :py:class:`~PyQt6.QtCore.QObject`"
2490 msgstr ""
2491
2492 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2493 #: of calibre.gui2.actions.InterfaceAction:1
2494 msgid ""
2495 "A plugin representing an \"action\" that can be taken in the graphical user "
2496 "interface. All the items in the toolbar and context menus are implemented by"
2497 " these plugins."
2498 msgstr ""
2499
2500 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2501 #: of calibre.gui2.actions.InterfaceAction:5
2502 msgid ""
2503 "Note that this class is the base class for these plugins, however, to "
2504 "integrate the plugin with calibre's plugin system, you have to make a "
2505 "wrapper class that references the actual plugin. See the "
2506 ":mod:`calibre.customize.builtins` module for examples."
2507 msgstr ""
2508
2509 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2510 #: of calibre.gui2.actions.InterfaceAction:10
2511 msgid ""
2512 "If two :class:`InterfaceAction` objects have the same name, the one with "
2513 "higher priority takes precedence."
2514 msgstr ""
2515
2516 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2517 #: of calibre.gui2.actions.InterfaceAction:13
2518 msgid ""
2519 "Sub-classes should implement the :meth:`genesis`, :meth:`library_changed`, "
2520 ":meth:`location_selected`, :meth:`shutting_down`, "
2521 ":meth:`initialization_complete` and :meth:`tag_browser_context_action` "
2522 "methods."
2523 msgstr ""
2524
2525 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2526 #: of calibre.gui2.actions.InterfaceAction:17
2527 msgid ""
2528 "Once initialized, this plugin has access to the main calibre GUI via the "
2529 ":attr:`gui` member. You can access other plugins by name, for example::"
2530 msgstr ""
2531
2532 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2533 #: of calibre.gui2.actions.InterfaceAction:22
2534 msgid ""
2535 "To access the actual plugin, use the :attr:`interface_action_base_plugin` "
2536 "attribute, this attribute only becomes available after the plugin has been "
2537 "initialized. Useful if you want to use methods from the plugin class like "
2538 "do_user_config()."
2539 msgstr ""
2540
2541 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2542 #: of calibre.gui2.actions.InterfaceAction:27
2543 msgid ""
2544 "The QAction specified by :attr:`action_spec` is automatically create and "
2545 "made available as ``self.qaction``."
2546 msgstr ""
2547
2548 #: ../../../__w/calibre/calibre/manual/docstring of
2549 #: calibre.gui2.actions.InterfaceAction.name:1
2550 msgid ""
2551 "The plugin name. If two plugins with the same name are present, the one with"
2552 " higher priority takes precedence."
2553 msgstr ""
2554
2555 #: ../../../__w/calibre/calibre/manual/docstring of
2556 #: calibre.gui2.actions.InterfaceAction.priority:1
2557 msgid ""
2558 "The plugin priority. If two plugins with the same name are present, the one "
2559 "with higher priority takes precedence."
2560 msgstr ""
2561
2562 #: ../../../__w/calibre/calibre/manual/docstring of
2563 #: calibre.gui2.actions.InterfaceAction.popup_type:1
2564 msgid "The menu popup type for when this plugin is added to a toolbar"
2565 msgstr ""
2566
2567 #: ../../../__w/calibre/calibre/manual/docstring of
2568 #: calibre.gui2.actions.InterfaceAction.auto_repeat:1
2569 msgid ""
2570 "Whether this action should be auto repeated when its shortcut key is held "
2571 "down."
2572 msgstr ""
2573
2574 #: ../../../__w/calibre/calibre/manual/docstring of
2575 #: calibre.gui2.actions.InterfaceAction.action_spec:1
2576 msgid ""
2577 "Of the form: (text, icon_path, tooltip, keyboard shortcut). icon, tooltip "
2578 "and keyboard shortcut can be None. keyboard shortcut must be either a "
2579 "string, None or tuple of shortcuts. If None, a keyboard shortcut "
2580 "corresponding to the action is not registered. If you pass an empty tuple, "
2581 "then the shortcut is registered with no default key binding."
2582 msgstr ""
2583
2584 #: ../../../__w/calibre/calibre/manual/docstring of
2585 #: calibre.gui2.actions.InterfaceAction.action_shortcut_name:1
2586 msgid ""
2587 "If not None, used for the name displayed to the user when customizing the "
2588 "keyboard shortcuts for the above action spec instead of action_spec[0]"
2589 msgstr ""
2590
2591 #: ../../../__w/calibre/calibre/manual/docstring of
2592 #: calibre.gui2.actions.InterfaceAction.action_add_menu:1
2593 msgid "If True, a menu is automatically created and added to self.qaction"
2594 msgstr ""
2595
2596 #: ../../../__w/calibre/calibre/manual/docstring of
2597 #: calibre.gui2.actions.InterfaceAction.action_menu_clone_qaction:1
2598 msgid ""
2599 "If True, a clone of self.qaction is added to the menu of self.qaction If you"
2600 " want the text of this action to be different from that of self.qaction, set"
2601 " this variable to the new text"
2602 msgstr ""
2603
2604 #: ../../../__w/calibre/calibre/manual/docstring of
2605 #: calibre.gui2.actions.InterfaceAction.dont_add_to:1
2606 msgid ""
2607 "Set of locations to which this action must not be added. See "
2608 ":attr:`all_locations` for a list of possible locations"
2609 msgstr ""
2610
2611 #: ../../../__w/calibre/calibre/manual/docstring of
2612 #: calibre.gui2.actions.InterfaceAction.dont_remove_from:1
2613 msgid ""
2614 "Set of locations from which this action must not be removed. See "
2615 ":attr:`all_locations` for a list of possible locations"
2616 msgstr ""
2617
2618 #: ../../../__w/calibre/calibre/manual/docstring of
2619 #: calibre.gui2.actions.InterfaceAction.action_type:1
2620 msgid ""
2621 "Type of action 'current' means acts on the current view 'global' means an "
2622 "action that does not act on the current view, but rather on calibre as a "
2623 "whole"
2624 msgstr ""
2625
2626 #: ../../../__w/calibre/calibre/manual/docstring of
2627 #: calibre.gui2.actions.InterfaceAction.accepts_drops:1
2628 msgid ""
2629 "If True, then this InterfaceAction will have the opportunity to interact "
2630 "with drag and drop events. See the methods, :meth:`accept_enter_event`, "
2631 ":meth`:accept_drag_move_event`, :meth:`drop_event` for details."
2632 msgstr ""
2633
2634 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2635 #: of calibre.gui2.actions.InterfaceAction.accept_drag_move_event:1
2636 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2637 #: of calibre.gui2.actions.InterfaceAction.accept_enter_event:1
2638 msgid ""
2639 "This method should return True iff this interface action is capable of "
2640 "handling the drag event. Do not call accept/ignore on the event, that will "
2641 "be taken care of by the calibre UI."
2642 msgstr ""
2643
2644 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2645 #: of calibre.gui2.actions.InterfaceAction.drop_event:1
2646 msgid ""
2647 "This method should perform some useful action and return True iff this "
2648 "interface action is capable of handling the drop event. Do not call "
2649 "accept/ignore on the event, that will be taken care of by the calibre UI. "
2650 "You should not perform blocking/long operations in this function. Instead "
2651 "emit a signal or use QTimer.singleShot and return quickly. See the builtin "
2652 "actions for examples."
2653 msgstr ""
2654
2655 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2656 #: of calibre.gui2.actions.InterfaceAction.create_menu_action:1
2657 msgid ""
2658 "Convenience method to easily add actions to a QMenu. Returns the created "
2659 "QAction. This action has one extra attribute calibre_shortcut_unique_name "
2660 "which if not None refers to the unique name under which this action is "
2661 "registered with the keyboard manager."
2662 msgstr ""
2663
2664 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2665 #: of calibre.gui2.actions.InterfaceAction.create_menu_action:6
2666 msgid "The QMenu the newly created action will be added to"
2667 msgstr ""
2668
2669 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2670 #: of calibre.gui2.actions.InterfaceAction.create_menu_action:7
2671 msgid ""
2672 "A unique name for this action, this must be globally unique, so make it as "
2673 "descriptive as possible. If in doubt, add an UUID to it."
2674 msgstr ""
2675
2676 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2677 #: of calibre.gui2.actions.InterfaceAction.create_menu_action:10
2678 msgid "The text of the action."
2679 msgstr ""
2680
2681 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2682 #: of calibre.gui2.actions.InterfaceAction.create_menu_action:11
2683 msgid ""
2684 "Either a QIcon or a file name. The file name is passed to the QIcon.ic() "
2685 "builtin, so you do not need to pass the full path to the images folder."
2686 msgstr ""
2687
2688 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2689 #: of calibre.gui2.actions.InterfaceAction.create_menu_action:14
2690 msgid ""
2691 "A string, a list of strings, None or False. If False, no keyboard shortcut "
2692 "is registered for this action. If None, a keyboard shortcut with no default "
2693 "keybinding is registered. String and list of strings register a shortcut "
2694 "with default keybinding as specified."
2695 msgstr ""
2696
2697 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2698 #: of calibre.gui2.actions.InterfaceAction.create_menu_action:18
2699 msgid "A description for this action. Used to set tooltips."
2700 msgstr ""
2701
2702 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2703 #: of calibre.gui2.actions.InterfaceAction.create_menu_action:20
2704 msgid ""
2705 "A callable which is connected to the triggered signal of the created action."
2706 msgstr ""
2707
2708 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2709 #: of calibre.gui2.actions.InterfaceAction.create_menu_action:22
2710 msgid ""
2711 "The text displayed to the user when customizing the keyboard shortcuts for "
2712 "this action. By default it is set to the value of ``text``."
2713 msgstr ""
2714
2715 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2716 #: of calibre.gui2.actions.InterfaceAction.create_menu_action:25
2717 msgid ""
2718 "Shortcuts for actions that don't always appear, or are library dependent, "
2719 "may disappear when other keyboard shortcuts are edited unless "
2720 "```persist_shortcut``` is set True."
2721 msgstr ""
2722
2723 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2724 #: of calibre.gui2.actions.InterfaceAction.load_resources:12
2725 msgid ""
2726 "A dictionary of the form ``{name : file_contents}``. Any names that were not"
2727 " found in the ZIP file will not be present in the dictionary."
2728 msgstr ""
2729
2730 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2731 #: of calibre.gui2.actions.InterfaceAction.genesis:1
2732 msgid ""
2733 "Setup this plugin. Only called once during initialization. self.gui is "
2734 "available. The action specified by :attr:`action_spec` is available as "
2735 "``self.qaction``."
2736 msgstr ""
2737
2738 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2739 #: of calibre.gui2.actions.InterfaceAction.location_selected:1
2740 msgid ""
2741 "Called whenever the book list being displayed in calibre changes. Currently "
2742 "values for loc are: ``library, main, card and cardb``."
2743 msgstr ""
2744
2745 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2746 #: of calibre.gui2.actions.InterfaceAction.location_selected:4
2747 msgid ""
2748 "This method should enable/disable this action and its sub actions as "
2749 "appropriate for the location."
2750 msgstr ""
2751
2752 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2753 #: of calibre.gui2.actions.InterfaceAction.library_about_to_change:1
2754 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2755 #: of calibre.gui2.actions.InterfaceAction.library_changed:1
2756 msgid "Called whenever the current library is changed."
2757 msgstr ""
2758
2759 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2760 #: of calibre.gui2.actions.InterfaceAction.library_about_to_change:3
2761 msgid "The LibraryDatabase corresponding to the previous library."
2762 msgstr ""
2763
2764 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2765 #: of calibre.gui2.actions.InterfaceAction.library_about_to_change:4
2766 msgid "The LibraryDatabase corresponding to the new library."
2767 msgstr ""
2768
2769 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2770 #: of calibre.gui2.actions.InterfaceAction.library_changed:3
2771 msgid "The LibraryDatabase corresponding to the current library."
2772 msgstr ""
2773
2774 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2775 #: of calibre.gui2.actions.InterfaceAction.gui_layout_complete:1
2776 msgid ""
2777 "Called once per action when the layout of the main GUI is completed. If your"
2778 " action needs to make changes to the layout, they should be done here, "
2779 "rather than in :meth:`initialization_complete`."
2780 msgstr ""
2781
2782 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2783 #: of calibre.gui2.actions.InterfaceAction.initialization_complete:1
2784 msgid ""
2785 "Called once per action when the initialization of the main GUI is completed."
2786 msgstr ""
2787
2788 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2789 #: of calibre.gui2.actions.InterfaceAction.tag_browser_context_action:1
2790 msgid ""
2791 "Called when displaying the context menu in the Tag browser. ``index`` is the"
2792 " QModelIndex that points to the Tag browser item that was right clicked. "
2793 "Test it for validity with index.valid() and get the underlying TagTreeItem "
2794 "object with index.data(Qt.ItemDataRole.UserRole). Any action objects yielded"
2795 " by this method will be added to the context menu."
2796 msgstr ""
2797
2798 #: ../../../__w/calibre/calibre/src/calibre/gui2/actions/__init__.pydocstring
2799 #: of calibre.gui2.actions.InterfaceAction.shutting_down:1
2800 msgid ""
2801 "Called once per plugin when the main GUI is in the process of shutting down."
2802 " Release any used resources, but try not to block the shutdown for long "
2803 "periods of time."
2804 msgstr ""
2805
2806 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
2807 #: calibre.customize.InterfaceActionBase.load_actual_plugin:1
2808 msgid "This method must return the actual interface action plugin object."
2809 msgstr ""
2810
2811 #: ../../../__w/calibre/calibre/manual/plugins.rst:175
2812 msgid "Preferences plugins"
2813 msgstr "首选项插件"
2814
2815 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
2816 #: calibre.customize.PreferencesPlugin:1
2817 msgid "A plugin representing a widget displayed in the Preferences dialog."
2818 msgstr ""
2819
2820 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
2821 #: calibre.customize.PreferencesPlugin:3
2822 msgid ""
2823 "This plugin has only one important method :meth:`create_widget`. The various"
2824 " fields of the plugin control how it is categorized in the UI."
2825 msgstr ""
2826
2827 #: ../../../__w/calibre/calibre/manual/docstring of
2828 #: calibre.customize.PreferencesPlugin.config_widget:1
2829 msgid ""
2830 "Import path to module that contains a class named ConfigWidget which "
2831 "implements the ConfigWidgetInterface. Used by :meth:`create_widget`."
2832 msgstr ""
2833
2834 #: ../../../__w/calibre/calibre/manual/docstring of
2835 #: calibre.customize.PreferencesPlugin.category_order:1
2836 msgid ""
2837 "Where in the list of categories the :attr:`category` of this plugin should "
2838 "be."
2839 msgstr ""
2840
2841 #: ../../../__w/calibre/calibre/manual/docstring of
2842 #: calibre.customize.PreferencesPlugin.name_order:1
2843 msgid ""
2844 "Where in the list of names in a category, the :attr:`gui_name` of this "
2845 "plugin should be"
2846 msgstr ""
2847
2848 #: ../../../__w/calibre/calibre/manual/docstring of
2849 #: calibre.customize.PreferencesPlugin.category:1
2850 msgid "The category this plugin should be in"
2851 msgstr ""
2852
2853 #: ../../../__w/calibre/calibre/manual/docstring of
2854 #: calibre.customize.PreferencesPlugin.gui_category:1
2855 msgid "The category name displayed to the user for this plugin"
2856 msgstr ""
2857
2858 #: ../../../__w/calibre/calibre/manual/docstring of
2859 #: calibre.customize.PreferencesPlugin.gui_name:1
2860 msgid "The name displayed to the user for this plugin"
2861 msgstr ""
2862
2863 #: ../../../__w/calibre/calibre/manual/docstring of
2864 #: calibre.customize.PreferencesPlugin.icon:1
2865 msgid "The icon for this plugin, should be an absolute path"
2866 msgstr ""
2867
2868 #: ../../../__w/calibre/calibre/manual/docstring of
2869 #: calibre.customize.PreferencesPlugin.description:1
2870 msgid "The description used for tooltips and the like"
2871 msgstr ""
2872
2873 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
2874 #: calibre.customize.PreferencesPlugin.create_widget:1
2875 msgid ""
2876 "Create and return the actual Qt widget used for setting this group of "
2877 "preferences. The widget must implement the "
2878 ":class:`calibre.gui2.preferences.ConfigWidgetInterface`."
2879 msgstr ""
2880
2881 #: ../../../__w/calibre/calibre/src/calibre/customize/__init__.pydocstring of
2882 #: calibre.customize.PreferencesPlugin.create_widget:5
2883 msgid ""
2884 "The default implementation uses :attr:`config_widget` to instantiate the "
2885 "widget."
2886 msgstr ""
2887
2888 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
2889 #: of calibre.gui2.preferences.ConfigWidgetInterface:1
2890 msgid ""
2891 "This class defines the interface that all widgets displayed in the "
2892 "Preferences dialog must implement. See :class:`ConfigWidgetBase` for a base "
2893 "class that implements this interface and defines various convenience methods"
2894 " as well."
2895 msgstr ""
2896
2897 #: ../../../__w/calibre/calibre/manual/docstring of
2898 #: calibre.gui2.preferences.ConfigWidgetBase.changed_signal:1
2899 #: ../../../__w/calibre/calibre/manual/docstring of
2900 #: calibre.gui2.preferences.ConfigWidgetInterface.changed_signal:1
2901 msgid ""
2902 "This signal must be emitted whenever the user changes a value in this widget"
2903 msgstr ""
2904
2905 #: ../../../__w/calibre/calibre/manual/docstring of
2906 #: calibre.gui2.preferences.ConfigWidgetBase.supports_restoring_to_defaults:1
2907 #: ../../../__w/calibre/calibre/manual/docstring of
2908 #: calibre.gui2.preferences.ConfigWidgetInterface.supports_restoring_to_defaults:1
2909 msgid "Set to True iff the :meth:`restore_to_defaults` method is implemented."
2910 msgstr ""
2911
2912 #: ../../../__w/calibre/calibre/manual/docstring of
2913 #: calibre.gui2.preferences.ConfigWidgetInterface.restore_defaults_desc:1
2914 msgid "The tooltip for the \"Restore defaults\" button"
2915 msgstr ""
2916
2917 #: ../../../__w/calibre/calibre/manual/docstring of
2918 #: calibre.gui2.preferences.ConfigWidgetBase.restart_critical:1
2919 #: ../../../__w/calibre/calibre/manual/docstring of
2920 #: calibre.gui2.preferences.ConfigWidgetInterface.restart_critical:1
2921 msgid ""
2922 "If True the Preferences dialog will not allow the user to set any more "
2923 "preferences. Only has effect if :meth:`commit` returns True."
2924 msgstr ""
2925
2926 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
2927 #: of calibre.gui2.preferences.ConfigWidgetInterface.genesis:1
2928 msgid ""
2929 "Called once before the widget is displayed, should perform any necessary "
2930 "setup."
2931 msgstr ""
2932
2933 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
2934 #: of calibre.gui2.preferences.ConfigWidgetInterface.genesis:4
2935 msgid "The main calibre graphical user interface"
2936 msgstr ""
2937
2938 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
2939 #: of calibre.gui2.preferences.ConfigWidgetBase.initialize:1
2940 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
2941 #: of calibre.gui2.preferences.ConfigWidgetInterface.initialize:1
2942 msgid ""
2943 "Should set all config values to their initial values (the values stored in "
2944 "the config files). A \"return\" statement is optional. Return False if the "
2945 "dialog is not to be shown."
2946 msgstr ""
2947
2948 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
2949 #: of calibre.gui2.preferences.ConfigWidgetBase.restore_defaults:1
2950 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
2951 #: of calibre.gui2.preferences.ConfigWidgetInterface.restore_defaults:1
2952 msgid "Should set all config values to their defaults."
2953 msgstr ""
2954
2955 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
2956 #: of calibre.gui2.preferences.ConfigWidgetBase.commit:1
2957 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
2958 #: of calibre.gui2.preferences.ConfigWidgetInterface.commit:1
2959 msgid ""
2960 "Save any changed settings. Return True if the changes require a restart, "
2961 "False otherwise. Raise an :class:`AbortCommit` exception to indicate that an"
2962 " error occurred. You are responsible for giving the user feedback about what"
2963 " the error is and how to correct it."
2964 msgstr ""
2965
2966 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
2967 #: of calibre.gui2.preferences.ConfigWidgetInterface.refresh_gui:1
2968 msgid ""
2969 "Called once after this widget is committed. Responsible for causing the gui "
2970 "to reread any changed settings. Note that by default the GUI re-initializes "
2971 "various elements anyway, so most widgets won't need to use this method."
2972 msgstr ""
2973
2974 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
2975 #: of calibre.gui2.preferences.ConfigWidgetInterface.initial_tab_changed:1
2976 msgid ""
2977 "Called if the initially displayed tab is changed before the widget is shown,"
2978 " but after it is initialized."
2979 msgstr ""
2980
2981 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
2982 #: of calibre.gui2.preferences.ConfigWidgetBase:1
2983 msgid ""
2984 "Base class that contains code to easily add standard config widgets like "
2985 "checkboxes, combo boxes, text fields and so on. See the :meth:`register` "
2986 "method."
2987 msgstr ""
2988
2989 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
2990 #: of calibre.gui2.preferences.ConfigWidgetBase:5
2991 msgid ""
2992 "This class automatically handles change notification, resetting to default, "
2993 "translation between gui objects and config objects, etc. for registered "
2994 "settings."
2995 msgstr ""
2996
2997 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
2998 #: of calibre.gui2.preferences.ConfigWidgetBase:9
2999 msgid ""
3000 "If your config widget inherits from this class but includes setting that are"
3001 " not registered, you should override the :class:`ConfigWidgetInterface` "
3002 "methods and call the base class methods inside the overrides."
3003 msgstr ""
3004
3005 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
3006 #: of calibre.gui2.preferences.ConfigWidgetBase.register:1
3007 msgid "Register a setting."
3008 msgstr ""
3009
3010 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
3011 #: of calibre.gui2.preferences.ConfigWidgetBase.register:3
3012 msgid "The setting name"
3013 msgstr ""
3014
3015 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
3016 #: of calibre.gui2.preferences.ConfigWidgetBase.register:4
3017 msgid "The config object that reads/writes the setting"
3018 msgstr ""
3019
3020 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
3021 #: of calibre.gui2.preferences.ConfigWidgetBase.register:5
3022 msgid ""
3023 "The name of the GUI object that presents an interface to change the setting."
3024 " By default it is assumed to be ``'opt_' + name``."
3025 msgstr ""
3026
3027 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
3028 #: of calibre.gui2.preferences.ConfigWidgetBase.register:8
3029 msgid ""
3030 "If this setting is a multiple choice (combobox) based setting, the list of "
3031 "choices. The list is a list of two element tuples of the form: ``[(gui name,"
3032 " value), ...]``"
3033 msgstr ""
3034
3035 #: ../../../__w/calibre/calibre/src/calibre/gui2/preferences/__init__.pydocstring
3036 #: of calibre.gui2.preferences.ConfigWidgetBase.register:11
3037 msgid ""
3038 "The class responsible for managing this setting. The default class handles "
3039 "almost all cases, so this param is rarely used."
3040 msgstr ""