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