Debian Codegraph @

translations/manual/pt_BR/db_api.po

raw
1 # SOME DESCRIPTIVE TITLE.
2 # Copyright (C) Kovid Goyal
3 # This file is distributed under the same license as the calibre package.
4 #
5 # Translators:
6 # Artur de Carvalho Alves <[email protected]>, 2015
7 # Claudio Rogerio Carvalho Filho <[email protected]>, 2020
8 # Rodrigo de Araujo <[email protected]>, 2016
9 # Victor Cornaglia Marques Ventura <[email protected]>, 2017
10 msgid ""
11 msgstr ""
12 "Project-Id-Version: calibre\n"
13 "Report-Msgid-Bugs-To: \n"
14 "POT-Creation-Date: 2023-04-20 08:11+0000\n"
15 "PO-Revision-Date: 2014-07-05 16:49+0000\n"
16 "Last-Translator: Claudio Rogerio Carvalho Filho <[email protected]>, 2020\n"
17 "Language-Team: Portuguese (Brazil) (http://app.transifex.com/calibre/calibre/language/pt_BR/)\n"
18 "MIME-Version: 1.0\n"
19 "Content-Type: text/plain; charset=UTF-8\n"
20 "Content-Transfer-Encoding: 8bit\n"
21 "Language: pt_BR\n"
22 "Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
23
24 #: ../../__w/calibre/calibre/manual/db_api.rst:4
25 msgid "API documentation for the database interface"
26 msgstr "Documentação da API para a interface do banco de dados"
27
28 #: ../../__w/calibre/calibre/manual/db_api.rst:9
29 msgid ""
30 "This API is thread safe (it uses a multiple reader, single writer locking "
31 "scheme). You can access this API like this::"
32 msgstr "Esta API é thread-safe (ela usa um esquema de bloqueio de múltiplos leitores e gravador único). É possível acessar esta API assim:"
33
34 #: ../../__w/calibre/calibre/manual/db_api.rst:14
35 msgid ""
36 "If you are in a calibre plugin that is part of the main calibre GUI, you get"
37 " access to it like this instead::"
38 msgstr "Se você estiver em um plug-in do *Calibre* que faz parte da GUI do *Calibre* principal, você terá acesso a ele assim::"
39
40 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
41 #: calibre.db.cache.Cache:1
42 msgid ""
43 "An in-memory cache of the metadata.db file from a calibre library. This "
44 "class also serves as a threadsafe API for accessing the database. The in-"
45 "memory cache is maintained in normal form for maximum performance."
46 msgstr "Um in-memory cache do arquivo metadata.db da biblioteca calibre. Essa classe também serve como um threadsafe API para acessar o banco de dados. O in-memory cache é mantido na forma normal para o máximo desempenho"
47
48 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
49 #: calibre.db.cache.Cache:5
50 msgid ""
51 "SQLITE is simply used as a way to read and write from metadata.db robustly. "
52 "All table reading/sorting/searching/caching logic is re-implemented. This "
53 "was necessary for maximum performance and flexibility."
54 msgstr ""
55
56 #: ../../__w/calibre/calibre/src/calibre/db/listeners.pydocstring of
57 #: calibre.db.listeners.EventType:1
58 msgid "An enumeration."
59 msgstr ""
60
61 #: ../../__w/calibre/calibre/manual/docstring of
62 #: calibre.db.cache.Cache.EventType.book_created:1
63 msgid ""
64 "When a new book record is created in the database, with the book id as the "
65 "only argument"
66 msgstr ""
67
68 #: ../../__w/calibre/calibre/manual/docstring of
69 #: calibre.db.cache.Cache.EventType.book_edited:1
70 msgid "When a book format is edited, with arguments: (book_id, fmt)"
71 msgstr ""
72
73 #: ../../__w/calibre/calibre/manual/docstring of
74 #: calibre.db.cache.Cache.EventType.books_removed:1
75 msgid ""
76 "When books are removed from the database with the list of book ids as the "
77 "only argument"
78 msgstr ""
79
80 #: ../../__w/calibre/calibre/manual/docstring of
81 #: calibre.db.cache.Cache.EventType.format_added:1
82 msgid "When a format is added to a book, with arguments: (book_id, format)"
83 msgstr ""
84
85 #: ../../__w/calibre/calibre/manual/docstring of
86 #: calibre.db.cache.Cache.EventType.formats_removed:1
87 msgid ""
88 "When formats are removed from a book, with arguments: (mapping of book id to"
89 " set of formats removed from the book)"
90 msgstr ""
91
92 #: ../../__w/calibre/calibre/manual/docstring of
93 #: calibre.db.cache.Cache.EventType.indexing_progress_changed:1
94 msgid "When the indexing progress changes"
95 msgstr ""
96
97 #: ../../__w/calibre/calibre/manual/docstring of
98 #: calibre.db.cache.Cache.EventType.items_removed:1
99 msgid ""
100 "When items such as tags or authors are removed from some books. Arguments: "
101 "(field_name, affected book ids, ids of removed items)"
102 msgstr ""
103
104 #: ../../__w/calibre/calibre/manual/docstring of
105 #: calibre.db.cache.Cache.EventType.items_renamed:1
106 msgid ""
107 "When items such as tags or authors are renamed in some or all books. "
108 "Arguments: (field_name, affected book ids, map of old item id to new item "
109 "id)"
110 msgstr ""
111
112 #: ../../__w/calibre/calibre/manual/docstring of
113 #: calibre.db.cache.Cache.EventType.metadata_changed:1
114 msgid ""
115 "When some metadata is changed for some books, with arguments: (name of "
116 "changed field, set of affected book ids)"
117 msgstr ""
118
119 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
120 #: calibre.db.cache.Cache.add_books:1
121 msgid ""
122 "Add the specified books to the library. Books should be an iterable of "
123 "2-tuples, each 2-tuple of the form :code:`(mi, format_map)` where mi is a "
124 "Metadata object and format_map is a dictionary of the form :code:`{fmt: "
125 "path_or_stream}`, for example: :code:`{'EPUB': '/path/to/file.epub'}`."
126 msgstr ""
127
128 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
129 #: calibre.db.cache.Cache.add_books:6
130 msgid ""
131 "Returns a pair of lists: :code:`ids, duplicates`. ``ids`` contains the book "
132 "ids for all newly created books in the database. ``duplicates`` contains the"
133 " :code:`(mi, format_map)` for all books that already exist in the database "
134 "as per the simple duplicate detection heuristic used by :meth:`has_book`."
135 msgstr ""
136
137 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
138 #: calibre.db.cache.Cache.add_custom_book_data:1
139 msgid ""
140 "Add data for name where val_map is a map of book_ids to values. If "
141 "delete_first is True, all previously stored data for name will be removed."
142 msgstr "Adicionar dado para nome onde val_map é um mapa de valores de book_ids. Se delete_first é verdadeiro, todos o dados de anteriores para o nome serão removidos"
143
144 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
145 #: calibre.db.cache.Cache.add_extra_files:1
146 msgid "Add extra data files"
147 msgstr ""
148
149 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
150 #: calibre.db.cache.Cache.add_format:1
151 msgid ""
152 "Add a format to the specified book. Return True if the format was added "
153 "successfully."
154 msgstr ""
155
156 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
157 #: calibre.db.cache.Cache.add_format:0
158 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
159 #: calibre.db.cache.Cache.cover:0
160 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
161 #: calibre.db.cache.Cache.format:0
162 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
163 #: calibre.db.cache.Cache.format_metadata:0
164 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
165 #: calibre.db.cache.Cache.get_all_link_maps_for_book:0
166 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
167 #: calibre.db.cache.Cache.get_link_map:0
168 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
169 #: calibre.db.cache.Cache.get_next_series_num_for:0
170 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
171 #: calibre.db.cache.Cache.remove_formats:0
172 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
173 #: calibre.db.cache.Cache.rename_items:0
174 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
175 #: calibre.db.cache.Cache.search:0
176 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
177 #: calibre.db.cache.Cache.set_field:0
178 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
179 #: calibre.db.cache.Cache.set_link_map:0
180 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
181 #: calibre.db.cache.Cache.tags_older_than:0
182 msgid "Parameters"
183 msgstr "Parâmetros"
184
185 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
186 #: calibre.db.cache.Cache.add_format:3
187 msgid ""
188 "If True replace existing format, otherwise if the format already exists, "
189 "return False."
190 msgstr "Se Verdadeiro substitui o formato existente, caso contrário, se o formato já existe, retorna Falso."
191
192 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
193 #: calibre.db.cache.Cache.add_format:4
194 msgid ""
195 "If True, file type plugins are run on the format before and after being "
196 "added."
197 msgstr "Se verdadeiro, os plugins de tipo de ficheiro são executados no formato antes e depois de serem adicionados."
198
199 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
200 #: calibre.db.cache.Cache.add_format:5
201 msgid "Internal use only."
202 msgstr "Uso interno apenas. "
203
204 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
205 #: calibre.db.cache.Cache.add_listener:1
206 msgid ""
207 "Register a callback function that will be called after certain actions are "
208 "taken on this database. The function must take three arguments: "
209 "(:class:`EventType`, library_id, event_type_specific_data)"
210 msgstr ""
211
212 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
213 #: calibre.db.cache.Cache.all_book_ids:1
214 msgid "Frozen set of all known book ids."
215 msgstr ""
216
217 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
218 #: calibre.db.cache.Cache.all_field_for:1
219 msgid "Same as field_for, except that it operates on multiple books at once"
220 msgstr "O mesmo que field_for, exceto que opera em múltiplos livros de uma só vez"
221
222 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
223 #: calibre.db.cache.Cache.all_field_ids:1
224 msgid "Frozen set of ids for all values in the field ``name``."
225 msgstr ""
226
227 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
228 #: calibre.db.cache.Cache.all_field_names:1
229 msgid ""
230 "Frozen set of all fields names (should only be used for many-one and many-"
231 "many fields)"
232 msgstr ""
233
234 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
235 #: calibre.db.cache.Cache.author_data:1
236 msgid "Return author data as a dictionary with keys: name, sort, link"
237 msgstr "Retorna os dados do autor como um dicionário com chaves: nome, tipo, ligação"
238
239 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
240 #: calibre.db.cache.Cache.author_data:3
241 msgid ""
242 "If no authors with the specified ids are found an empty dictionary is "
243 "returned. If author_ids is None, data for all authors is returned."
244 msgstr ""
245
246 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
247 #: calibre.db.cache.Cache.author_sort_from_authors:1
248 msgid ""
249 "Given a list of authors, return the author_sort string for the authors, "
250 "preferring the author sort associated with the author over the computed "
251 "string."
252 msgstr ""
253
254 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
255 #: calibre.db.cache.Cache.books_for_field:1
256 msgid ""
257 "Return all the books associated with the item identified by ``item_id``, "
258 "where the item belongs to the field ``name``."
259 msgstr ""
260
261 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
262 #: calibre.db.cache.Cache.books_for_field:4
263 msgid ""
264 "Returned value is a set of book ids, or the empty set if the item or the "
265 "field does not exist."
266 msgstr ""
267
268 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
269 #: calibre.db.cache.Cache.books_in_virtual_library:1
270 msgid "Return the set of books in the specified virtual library"
271 msgstr "Devolver o conjunto de livros na biblioteca virtual especificada"
272
273 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
274 #: calibre.db.cache.Cache.compress_covers:1
275 msgid ""
276 "Compress the cover images for the specified books. A compression quality of "
277 "100 will perform lossless compression, otherwise lossy compression."
278 msgstr ""
279
280 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
281 #: calibre.db.cache.Cache.compress_covers:4
282 msgid ""
283 "The progress callback will be called with the book_id and the old and new "
284 "sizes for each book that has been processed. If an error occurs, the new "
285 "size will be a string with the error details."
286 msgstr ""
287
288 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
289 #: calibre.db.cache.Cache.copy_cover_to:1
290 msgid ""
291 "Copy the cover to the file like object ``dest``. Returns False if no cover "
292 "exists or dest is the same file as the current cover. dest can also be a "
293 "path in which case the cover is copied to it if and only if the path is "
294 "different from the current path (taking case sensitivity into account)."
295 msgstr ""
296
297 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
298 #: calibre.db.cache.Cache.copy_format_to:1
299 msgid ""
300 "Copy the format ``fmt`` to the file like object ``dest``. If the specified "
301 "format does not exist, raises :class:`NoSuchFormat` error. dest can also be "
302 "a path (to a file), in which case the format is copied to it, iff the path "
303 "is different from the current path (taking case sensitivity into account)."
304 msgstr ""
305
306 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
307 #: calibre.db.cache.Cache.cover:1
308 msgid ""
309 "Return the cover image or None. By default, returns the cover as a "
310 "bytestring."
311 msgstr "Retorna a imagem de capa ou nada. Por padrão, retorna a capa como um bytestring."
312
313 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
314 #: calibre.db.cache.Cache.cover:4
315 msgid ""
316 "WARNING: Using as_path will copy the cover to a temp file and return the "
317 "path to the temp file. You should delete the temp file when you are done "
318 "with it."
319 msgstr ""
320
321 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
322 #: calibre.db.cache.Cache.cover:8
323 msgid ""
324 "If True return the image as an open file object (a SpooledTemporaryFile)"
325 msgstr ""
326
327 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
328 #: calibre.db.cache.Cache.cover:9
329 msgid "If True return the image as a QImage object"
330 msgstr "Se verdadeiro retorna a imagem como um objeto QImage."
331
332 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
333 #: calibre.db.cache.Cache.cover:10
334 msgid "If True return the image as a QPixmap object"
335 msgstr ""
336
337 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
338 #: calibre.db.cache.Cache.cover:11
339 msgid "If True return the image as a path pointing to a temporary file"
340 msgstr "Se verdadeiro retorna a imagem como um caminho para um arquivo temporário."
341
342 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
343 #: calibre.db.cache.Cache.data_for_find_identical_books:1
344 msgid ""
345 "Return data that can be used to implement :meth:`find_identical_books` in a "
346 "worker process without access to the db. See db.utils for an implementation."
347 msgstr "Dados de retorno que podem ser usados para implementar :meth:`find_identical_books` num processo sem acesso à BD. Veja db.utils para uma implementação."
348
349 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
350 #: calibre.db.cache.Cache.data_for_has_book:1
351 msgid ""
352 "Return data suitable for use in :meth:`has_book`. This can be used for an "
353 "implementation of :meth:`has_book` in a worker process without access to the"
354 " db."
355 msgstr ""
356
357 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
358 #: calibre.db.cache.Cache.delete_custom_book_data:1
359 msgid ""
360 "Delete data for name. By default deletes all data, if you only want to "
361 "delete data for some book ids, pass in a list of book ids."
362 msgstr ""
363
364 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
365 #: calibre.db.cache.Cache.delete_trash_entry:1
366 msgid ""
367 "Delete an entry from the trash. Here category is 'b' for books and 'f' for "
368 "formats."
369 msgstr ""
370
371 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
372 #: calibre.db.cache.Cache.embed_metadata:1
373 msgid ""
374 "Update metadata in all formats of the specified book_ids to current metadata"
375 " in the database."
376 msgstr ""
377
378 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
379 #: calibre.db.cache.Cache.expire_old_trash:1
380 msgid "Expire entries from the trash that are too old"
381 msgstr ""
382
383 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
384 #: calibre.db.cache.Cache.fast_field_for:1
385 msgid ""
386 "Same as field_for, except that it avoids the extra lookup to get the field "
387 "object"
388 msgstr ""
389
390 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
391 #: calibre.db.cache.Cache.field_for:1
392 msgid ""
393 "Return the value of the field ``name`` for the book identified by "
394 "``book_id``. If no such book exists or it has no defined value for the field"
395 " ``name`` or no such field exists, then ``default_value`` is returned."
396 msgstr ""
397
398 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
399 #: calibre.db.cache.Cache.field_for:6
400 msgid ""
401 "``default_value`` is not used for title, title_sort, authors, author_sort "
402 "and series_index. This is because these always have values in the db. "
403 "``default_value`` is used for all custom columns."
404 msgstr ""
405
406 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
407 #: calibre.db.cache.Cache.field_for:10
408 msgid ""
409 "The returned value for is_multiple fields are always tuples, even when no "
410 "values are found (in other words, default_value is ignored). The exception "
411 "is identifiers for which the returned value is always a dictionary. The "
412 "returned tuples are always in link order, that is, the order in which they "
413 "were created."
414 msgstr ""
415
416 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
417 #: calibre.db.cache.Cache.field_ids_for:1
418 msgid ""
419 "Return the ids (as a tuple) for the values that the field ``name`` has on "
420 "the book identified by ``book_id``. If there are no values, or no such book,"
421 " or no such field, an empty tuple is returned."
422 msgstr ""
423
424 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
425 #: calibre.db.cache.Cache.find_identical_books:1
426 msgid ""
427 "Finds books that have a superset of the authors in mi and the same title "
428 "(title is fuzzy matched). See also :meth:`data_for_find_identical_books`."
429 msgstr ""
430
431 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
432 #: calibre.db.cache.Cache.format:1
433 msgid ""
434 "Return the e-book format as a bytestring or `None` if the format doesn't "
435 "exist, or we don't have permission to write to the e-book file."
436 msgstr ""
437
438 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
439 #: calibre.db.cache.Cache.format:4
440 msgid ""
441 "If True the e-book format is returned as a file object. Note that the file "
442 "object is a SpooledTemporaryFile, so if what you want to do is copy the "
443 "format to another file, use :meth:`copy_format_to` instead for performance."
444 msgstr ""
445
446 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
447 #: calibre.db.cache.Cache.format:8
448 msgid ""
449 "Copies the format file to a temp file and returns the path to the temp file"
450 msgstr ""
451
452 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
453 #: calibre.db.cache.Cache.format:10
454 msgid ""
455 "If True and returning a path the filename is the same as that used in the "
456 "library. Note that using this means that repeated calls yield the same temp "
457 "file (which is re-created each time)"
458 msgstr ""
459
460 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
461 #: calibre.db.cache.Cache.format_abspath:1
462 msgid ""
463 "Return absolute path to the e-book file of format `format`. You should "
464 "almost never use this, as it breaks the threadsafe promise of this API. "
465 "Instead use, :meth:`copy_format_to`."
466 msgstr ""
467
468 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
469 #: calibre.db.cache.Cache.format_abspath:5
470 msgid ""
471 "Currently used only in calibredb list, the viewer, edit book, compare_format"
472 " to original format, open with, bulk metadata edit and the catalogs (via "
473 "get_data_as_dict())."
474 msgstr ""
475
476 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
477 #: calibre.db.cache.Cache.format_abspath:9
478 msgid ""
479 "Apart from the viewer, open with and edit book, I don't believe any of the "
480 "others do any file write I/O with the results of this call."
481 msgstr ""
482
483 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
484 #: calibre.db.cache.Cache.format_hash:1
485 msgid ""
486 "Return the hash of the specified format for the specified book. The kind of "
487 "hash is backend dependent, but is usually SHA-256."
488 msgstr ""
489
490 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
491 #: calibre.db.cache.Cache.format_metadata:1
492 msgid ""
493 "Return the path, size and mtime for the specified format for the specified "
494 "book. You should not use path unless you absolutely have to, since accessing"
495 " it directly breaks the threadsafe guarantees of this API. Instead use the "
496 ":meth:`copy_format_to` method."
497 msgstr ""
498
499 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
500 #: calibre.db.cache.Cache.format_metadata:6
501 msgid ""
502 "If ``True`` cached values are used, otherwise a slow filesystem access is "
503 "done. The cache values could be out of date if access was performed to the "
504 "filesystem outside of this API."
505 msgstr ""
506
507 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
508 #: calibre.db.cache.Cache.format_metadata:10
509 msgid ""
510 "If ``True`` The max_size field of the database is updated for this book."
511 msgstr ""
512
513 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
514 #: calibre.db.cache.Cache.formats:1
515 msgid ""
516 "Return tuple of all formats for the specified book. If verify_formats is "
517 "True, verifies that the files exist on disk."
518 msgstr ""
519
520 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
521 #: calibre.db.cache.Cache.get_all_link_maps_for_book:1
522 msgid ""
523 "Returns all links for all fields referenced by book identified by book_id. "
524 "If book_id doesn't exist then the method returns {}."
525 msgstr ""
526
527 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
528 #: calibre.db.cache.Cache.get_all_link_maps_for_book:4
529 msgid ""
530 "Example: Assume author A has link X, author B has link Y, tag S has link F, "
531 "and tag T has link G. If book 1 has author A and tag T, this method returns "
532 "{'authors':{'A':'X'}, 'tags':{'T', 'G'}} If book 2's author is neither A nor"
533 " B and has no tags, this method returns {}"
534 msgstr ""
535
536 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
537 #: calibre.db.cache.Cache.get_all_link_maps_for_book:9
538 msgid "the book id in question."
539 msgstr ""
540
541 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
542 #: calibre.db.cache.Cache.get_all_link_maps_for_book:0
543 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
544 #: calibre.db.cache.Cache.get_link_map:0
545 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
546 #: calibre.db.cache.Cache.remove_formats:0
547 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
548 #: calibre.db.cache.Cache.set_link_map:0
549 msgid "Returns"
550 msgstr ""
551
552 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
553 #: calibre.db.cache.Cache.get_all_link_maps_for_book:11
554 msgid ""
555 "{field: {field_value, link_value}, ... for all fields with a field_value "
556 "having a non-empty link value for that book"
557 msgstr ""
558
559 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
560 #: calibre.db.cache.Cache.get_categories:1
561 msgid "Used internally to implement the Tag Browser"
562 msgstr ""
563
564 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
565 #: calibre.db.cache.Cache.get_custom_book_data:1
566 msgid ""
567 "Get data for name. By default returns data for all book_ids, pass in a list "
568 "of book ids if you only want some data. Returns a map of book_id to values. "
569 "If a particular value could not be decoded, uses default for it."
570 msgstr ""
571
572 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
573 #: calibre.db.cache.Cache.get_id_map:1
574 msgid ""
575 "Return a mapping of id numbers to values for the specified field. The field "
576 "must be a many-one or many-many field, otherwise a ValueError is raised."
577 msgstr ""
578
579 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
580 #: calibre.db.cache.Cache.get_ids_for_custom_book_data:1
581 msgid "Return the set of book ids for which name has data."
582 msgstr ""
583
584 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
585 #: calibre.db.cache.Cache.get_item_id:1
586 msgid ""
587 "Return the item id for item_name (case-insensitive) or None if not found"
588 msgstr ""
589
590 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
591 #: calibre.db.cache.Cache.get_item_ids:1
592 msgid "Return the item id for item_name (case-insensitive)"
593 msgstr ""
594
595 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
596 #: calibre.db.cache.Cache.get_item_name:1
597 msgid ""
598 "Return the item name for the item specified by item_id in the specified "
599 "field. See also :meth:`get_id_map`."
600 msgstr ""
601
602 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
603 #: calibre.db.cache.Cache.get_link_map:1
604 msgid "Return a dict of links for the supplied field."
605 msgstr ""
606
607 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
608 #: calibre.db.cache.Cache.get_link_map:3
609 msgid "the lookup name of the field for which the link map is desired"
610 msgstr ""
611
612 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
613 #: calibre.db.cache.Cache.get_link_map:5
614 msgid "{field_value:link_value, ...} for non-empty links"
615 msgstr ""
616
617 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
618 #: calibre.db.cache.Cache.get_metadata:1
619 msgid ""
620 "Return metadata for the book identified by book_id as a "
621 ":class:`calibre.ebooks.metadata.book.base.Metadata` object. Note that the "
622 "list of formats is not verified. If get_cover is True, the cover is "
623 "returned, either a path to temp file as mi.cover or if cover_as_data is True"
624 " then as mi.cover_data."
625 msgstr ""
626
627 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
628 #: calibre.db.cache.Cache.get_next_series_num_for:1
629 msgid ""
630 "Return the next series index for the specified series, taking into account "
631 "the various preferences that control next series number generation."
632 msgstr ""
633
634 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
635 #: calibre.db.cache.Cache.get_next_series_num_for:4
636 msgid "The series-like field (defaults to the builtin series column)"
637 msgstr ""
638
639 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
640 #: calibre.db.cache.Cache.get_next_series_num_for:5
641 msgid ""
642 "If True, returns a mapping of book_id to current series_index value instead."
643 msgstr ""
644
645 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
646 #: calibre.db.cache.Cache.get_proxy_metadata:1
647 msgid ""
648 "Like :meth:`get_metadata` except that it returns a ProxyMetadata object that"
649 " only reads values from the database on demand. This is much faster than "
650 "get_metadata when only a small number of fields need to be accessed from the"
651 " returned metadata object."
652 msgstr ""
653
654 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
655 #: calibre.db.cache.Cache.get_usage_count_by_id:1
656 msgid ""
657 "Return a mapping of id to usage count for all values of the specified field,"
658 " which must be a many-one or many-many field."
659 msgstr ""
660
661 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
662 #: calibre.db.cache.Cache.has_book:1
663 msgid ""
664 "Return True iff the database contains an entry with the same title as the "
665 "passed in Metadata object. The comparison is case-insensitive. See also "
666 ":meth:`data_for_has_book`."
667 msgstr ""
668
669 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
670 #: calibre.db.cache.Cache.has_format:1
671 msgid "Return True iff the format exists on disk"
672 msgstr "Retorna Verdadeiro se o formato existir no disco. "
673
674 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
675 #: calibre.db.cache.Cache.has_id:1
676 msgid "Return True iff the specified book_id exists in the db"
677 msgstr "Retorna Verdadeiro se o id do livro especificado existir na base de dados."
678
679 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
680 #: calibre.db.cache.Cache.init:1
681 msgid "Initialize this cache with data from the backend."
682 msgstr ""
683
684 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
685 #: calibre.db.cache.Cache.list_extra_files_matching:1
686 msgid ""
687 "List extra data files matching the specified pattern. Empty pattern matches "
688 "all. Recursive globbing with ** is supported."
689 msgstr ""
690
691 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
692 #: calibre.db.cache.Cache.move_book_from_trash:1
693 msgid "Undelete a book from the trash directory"
694 msgstr ""
695
696 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
697 #: calibre.db.cache.Cache.move_format_from_trash:1
698 msgid "Undelete a format from the trash directory"
699 msgstr ""
700
701 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
702 #: calibre.db.cache.Cache.multisort:1
703 msgid ""
704 "Return a list of sorted book ids. If ids_to_sort is None, all book ids are "
705 "returned."
706 msgstr ""
707
708 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
709 #: calibre.db.cache.Cache.multisort:4
710 msgid ""
711 "fields must be a list of 2-tuples of the form (field_name, ascending=True or"
712 " False). The most significant field is the first 2-tuple."
713 msgstr ""
714
715 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
716 #: calibre.db.cache.Cache.pref:1
717 msgid ""
718 "Return the value for the specified preference or the value specified as "
719 "``default`` if the preference is not set."
720 msgstr ""
721
722 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
723 #: calibre.db.cache.Cache.read_backup:1
724 msgid ""
725 "Return the OPF metadata backup for the book as a bytestring or None if no "
726 "such backup exists."
727 msgstr ""
728
729 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
730 #: calibre.db.cache.Cache.remove_books:1
731 msgid ""
732 "Remove the books specified by the book_ids from the database and delete "
733 "their format files. If ``permanent`` is False, then the format files are "
734 "placed in the per-library trash directory."
735 msgstr ""
736
737 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
738 #: calibre.db.cache.Cache.remove_formats:1
739 msgid "Remove the specified formats from the specified books."
740 msgstr "Remover os formatos especificados dos livros indicados."
741
742 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
743 #: calibre.db.cache.Cache.remove_formats:3
744 msgid "A mapping of book_id to a list of formats to be removed from the book."
745 msgstr ""
746
747 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
748 #: calibre.db.cache.Cache.remove_formats:4
749 msgid ""
750 "If True, only remove the record for the format from the db, do not delete "
751 "the actual format file from the filesystem."
752 msgstr ""
753
754 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
755 #: calibre.db.cache.Cache.remove_formats:5
756 msgid ""
757 "A map of book id to set of formats actually deleted from the filesystem for "
758 "that book"
759 msgstr ""
760
761 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
762 #: calibre.db.cache.Cache.remove_items:1
763 msgid ""
764 "Delete all items in the specified field with the specified ids. Returns the "
765 "set of affected book ids. ``restrict_to_book_ids`` is an optional set of "
766 "books ids. If specified the items will only be removed from those books."
767 msgstr ""
768
769 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
770 #: calibre.db.cache.Cache.rename_items:1
771 msgid ""
772 "Rename items from a many-one or many-many field such as tags or series."
773 msgstr ""
774
775 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
776 #: calibre.db.cache.Cache.rename_items:3
777 msgid ""
778 "When renaming in a series-like field also change the series_index values."
779 msgstr ""
780
781 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
782 #: calibre.db.cache.Cache.rename_items:4
783 msgid ""
784 "An optional set of book ids for which the rename is to be performed, "
785 "defaults to all books."
786 msgstr ""
787
788 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
789 #: calibre.db.cache.Cache.restore_book:1
790 msgid ""
791 "Restore the book entry in the database for a book that already exists on the"
792 " filesystem"
793 msgstr ""
794
795 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
796 #: calibre.db.cache.Cache.restore_original_format:1
797 msgid ""
798 "Restore the specified format from the previously saved ORIGINAL_FORMAT, if "
799 "any. Return True on success. The ORIGINAL_FORMAT is deleted after a "
800 "successful restore."
801 msgstr ""
802
803 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
804 #: calibre.db.cache.Cache.safe_read_lock:1
805 msgid ""
806 "A safe read lock is a lock that does nothing if the thread already has a "
807 "write lock, otherwise it acquires a read lock. This is necessary to prevent "
808 "DowngradeLockErrors, which can happen when updating the search cache in the "
809 "presence of composite columns. Updating the search cache holds an exclusive "
810 "lock, but searching a composite column involves reading field values via "
811 "ProxyMetadata which tries to get a shared lock. There may be other scenarios"
812 " that trigger this as well."
813 msgstr ""
814
815 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
816 #: calibre.db.cache.Cache.safe_read_lock:9
817 msgid ""
818 "This property returns a new lock object on every access. This lock object is"
819 " not recursive (for performance) and must only be used in a with statement "
820 "as ``with cache.safe_read_lock:`` otherwise bad things will happen."
821 msgstr ""
822
823 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
824 #: calibre.db.cache.Cache.save_original_format:1
825 msgid ""
826 "Save a copy of the specified format as ORIGINAL_FORMAT, overwriting any "
827 "existing ORIGINAL_FORMAT."
828 msgstr ""
829
830 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
831 #: calibre.db.cache.Cache.search:1
832 msgid ""
833 "Search the database for the specified query, returning a set of matched book"
834 " ids."
835 msgstr ""
836
837 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
838 #: calibre.db.cache.Cache.search:3
839 msgid ""
840 "A restriction that is ANDed to the specified query. Note that restrictions "
841 "are cached, therefore the search for a AND b will be slower than a with "
842 "restriction b."
843 msgstr ""
844
845 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
846 #: calibre.db.cache.Cache.search:6
847 msgid "Used internally (virtual fields such as on_device to search over)."
848 msgstr ""
849
850 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
851 #: calibre.db.cache.Cache.search:8
852 msgid ""
853 "If not None, a set of book ids for which books will be searched instead of "
854 "searching all books."
855 msgstr ""
856
857 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
858 #: calibre.db.cache.Cache.set_conversion_options:1
859 msgid "options must be a map of the form {book_id:conversion_options}"
860 msgstr ""
861
862 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
863 #: calibre.db.cache.Cache.set_cover:1
864 msgid ""
865 "Set the cover for this book. The data can be either a QImage, QPixmap, file "
866 "object or bytestring. It can also be None, in which case any existing cover "
867 "is removed."
868 msgstr ""
869
870 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
871 #: calibre.db.cache.Cache.set_field:1
872 msgid ""
873 "Set the values of the field specified by ``name``. Returns the set of all "
874 "book ids that were affected by the change."
875 msgstr ""
876
877 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
878 #: calibre.db.cache.Cache.set_field:3
879 msgid "Mapping of book_ids to values that should be applied."
880 msgstr ""
881
882 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
883 #: calibre.db.cache.Cache.set_field:4
884 msgid ""
885 "If True, the case of many-one or many-many fields will be changed. For "
886 "example, if a book has the tag ``tag1`` and you set the tag for another "
887 "book to ``Tag1`` then the both books will have the tag ``Tag1`` if "
888 "allow_case_change is True, otherwise they will both have the tag ``tag1``."
889 msgstr ""
890
891 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
892 #: calibre.db.cache.Cache.set_field:8
893 msgid "Used internally, you should never change it."
894 msgstr "Usado internamente. Nunca deve ser alterado. "
895
896 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
897 #: calibre.db.cache.Cache.set_link_map:1
898 msgid ""
899 "Sets links for item values in field Note: this method doesn't change values "
900 "not in the value_to_link_map"
901 msgstr ""
902
903 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
904 #: calibre.db.cache.Cache.set_link_map:4
905 msgid "the lookup name"
906 msgstr ""
907
908 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
909 #: calibre.db.cache.Cache.set_link_map:5
910 msgid ""
911 "dict(field_value:link, ...). Note that these are values, not field ids."
912 msgstr ""
913
914 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
915 #: calibre.db.cache.Cache.set_link_map:7
916 msgid "books changed by setting the link"
917 msgstr ""
918
919 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
920 #: calibre.db.cache.Cache.set_metadata:1
921 msgid "Set metadata for the book `id` from the `Metadata` object `mi`"
922 msgstr ""
923
924 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
925 #: calibre.db.cache.Cache.set_metadata:3
926 msgid ""
927 "Setting force_changes=True will force set_metadata to update fields even if "
928 "mi contains empty values. In this case, 'None' is distinguished from "
929 "'empty'. If mi.XXX is None, the XXX is not replaced, otherwise it is. The "
930 "tags, identifiers, and cover attributes are special cases. Tags and "
931 "identifiers cannot be set to None so they will always be replaced if "
932 "force_changes is true. You must ensure that mi contains the values you want "
933 "the book to have. Covers are always changed if a new cover is provided, but "
934 "are never deleted. Also note that force_changes has no effect on setting "
935 "title or authors."
936 msgstr ""
937
938 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
939 #: calibre.db.cache.Cache.set_pref:1
940 msgid ""
941 "Set the specified preference to the specified value. See also :meth:`pref`."
942 msgstr ""
943
944 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
945 #: calibre.db.cache.Cache.split_if_is_multiple_composite:1
946 msgid ""
947 "If f is a composite column lookup key and the column is is_multiple then "
948 "split v into unique non-empty values. The comparison is case sensitive. "
949 "Order is not preserved. Return a list() for compatibility with proxy "
950 "metadata field getters, for example tags."
951 msgstr ""
952
953 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
954 #: calibre.db.cache.Cache.tags_older_than:1
955 msgid ""
956 "Return the ids of all books having the tag ``tag`` that are older than the "
957 "specified time. tag comparison is case insensitive."
958 msgstr ""
959
960 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
961 #: calibre.db.cache.Cache.tags_older_than:4
962 msgid ""
963 "A timedelta object or None. If None, then all ids with the tag are returned."
964 msgstr ""
965
966 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
967 #: calibre.db.cache.Cache.tags_older_than:7
968 msgid ""
969 "If not None the list of matches will be restricted to books that have this "
970 "tag"
971 msgstr ""
972
973 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
974 #: calibre.db.cache.Cache.tags_older_than:10
975 msgid ""
976 "A list of authors. If not None the list of matches will be restricted to "
977 "books that have these authors (case insensitive)."
978 msgstr ""
979
980 #: ../../__w/calibre/calibre/src/calibre/db/cache.pydocstring of
981 #: calibre.db.cache.Cache.user_categories_for_books:1
982 msgid ""
983 "Return the user categories for the specified books. proxy_metadata_map is "
984 "optional and is useful for a performance boost, in contexts where a "
985 "ProxyMetadata object for the books already exists. It should be a mapping of"
986 " book_ids to their corresponding ProxyMetadata objects."
987 msgstr ""