| 1 |
# SOME DESCRIPTIVE TITLE. |
| 2 |
# Copyright (C) Kovid Goyal |
| 3 |
# This file is distributed under the same license as the calibre package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: calibre 9.15.0\n" |
| 10 |
"Report-Msgid-Bugs-To: \n" |
| 11 |
"POT-Creation-Date: 2026-09-18 07:37+0530\n" |
| 12 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 14 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#: ../../../home/kovid/work/calibre/manual/polish.rst:4 |
| 20 |
msgid "API documentation for the e-book editing tools" |
| 21 |
msgstr "" |
| 22 |
|
| 23 |
#: ../../../home/kovid/work/calibre/manual/polish.rst:6 |
| 24 |
msgid "The e-book editing tools consist of a :class:`calibre.ebooks.oeb.polish.container.Container` object that represents a book as a collection of HTML + resource files, and various tools that can be used to perform operations on the container. All the tools are in the form of module level functions in the various ``calibre.ebooks.oeb.polish.*`` modules." |
| 25 |
msgstr "" |
| 26 |
|
| 27 |
#: ../../../home/kovid/work/calibre/manual/polish.rst:15 |
| 28 |
msgid "You obtain a container object for a book at a path like this::" |
| 29 |
msgstr "" |
| 30 |
|
| 31 |
#: ../../../home/kovid/work/calibre/manual/polish.rst:20 |
| 32 |
msgid "If you are writing a plugin for the E-book editor, you get the current container for the book being edited like this::" |
| 33 |
msgstr "" |
| 34 |
|
| 35 |
#: ../../../home/kovid/work/calibre/manual/polish.rst:30 |
| 36 |
msgid "The Container object" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container:1 |
| 40 |
msgid "A container represents an open e-book as a folder full of files and an OPF file. There are two important concepts:" |
| 41 |
msgstr "" |
| 42 |
|
| 43 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container:4 |
| 44 |
msgid "The root folder. This is the base of the e-book. All the e-books files are inside this folder or in its sub-folders." |
| 45 |
msgstr "" |
| 46 |
|
| 47 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container:7 |
| 48 |
msgid "Names: These are paths to the books' files relative to the root folder. They always contain POSIX separators and are unquoted. They can be thought of as canonical identifiers for files in the book. Most methods on the container object work with names. Names are always in the NFC Unicode normal form." |
| 49 |
msgstr "" |
| 50 |
|
| 51 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container:13 |
| 52 |
msgid "Clones: the container object supports efficient on-disk cloning, which is used to implement checkpoints in the e-book editor. In order to make this work, you should never access files on the filesystem directly. Instead, use :meth:`raw_data` or :meth:`open` to read/write to component files in the book." |
| 53 |
msgstr "" |
| 54 |
|
| 55 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container:18 |
| 56 |
msgid "When converting between hrefs and names use the methods provided by this class, they assume all hrefs are quoted." |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.abspath_to_name:1 |
| 60 |
msgid "Convert an absolute path to a canonical name relative to :attr:`root`" |
| 61 |
msgstr "" |
| 62 |
|
| 63 |
#: ../../../home/kovid/work/calibre/manual/polish.rst:0 |
| 64 |
msgid "Parameters" |
| 65 |
msgstr "" |
| 66 |
|
| 67 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.abspath_to_name:3 |
| 68 |
msgid "The base folder. By default the root for this container object is used." |
| 69 |
msgstr "" |
| 70 |
|
| 71 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.add_file:1 |
| 72 |
msgid "Add a file to this container. Entries for the file are automatically created in the OPF manifest and spine (if the file is a text document)" |
| 73 |
msgstr "" |
| 74 |
|
| 75 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.add_name_to_manifest:1 |
| 76 |
msgid "Add an entry to the manifest for a file with the specified name. Returns the manifest id." |
| 77 |
msgstr "" |
| 78 |
|
| 79 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.add_properties:1 |
| 80 |
msgid "Add the specified properties to the manifest item identified by name." |
| 81 |
msgstr "" |
| 82 |
|
| 83 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.apply_unique_properties:1 |
| 84 |
msgid "Ensure that the specified properties are set on only the manifest item identified by name. You can pass None as the name to remove the property from all items." |
| 85 |
msgstr "" |
| 86 |
|
| 87 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.book_type:1 |
| 88 |
msgid "The type of book (epub for EPUB files and azw3 for AZW3 files)" |
| 89 |
msgstr "" |
| 90 |
|
| 91 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.commit:1 |
| 92 |
msgid "Commit all dirtied parsed objects to the filesystem and write out the e-book file at outpath." |
| 93 |
msgstr "" |
| 94 |
|
| 95 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.commit:3 |
| 96 |
msgid "The path to write the saved e-book file to. If None, the path of the original book file is used." |
| 97 |
msgstr "" |
| 98 |
|
| 99 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.commit:4 |
| 100 |
msgid "If True the parsed representations of committed items are kept in the cache." |
| 101 |
msgstr "" |
| 102 |
|
| 103 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.commit_item:1 |
| 104 |
msgid "Commit a parsed object to disk (it is serialized and written to the underlying file). If ``keep_parsed`` is True the parsed representation is retained in the cache. See also: :meth:`parsed`" |
| 105 |
msgstr "" |
| 106 |
|
| 107 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.dirty:1 |
| 108 |
msgid "Mark the parsed object corresponding to name as dirty. See also: :meth:`parsed`." |
| 109 |
msgstr "" |
| 110 |
|
| 111 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.exists:1 |
| 112 |
msgid "True iff a file/folder corresponding to the canonical name exists. Note that this function suffers from the limitations of the underlying OS filesystem, in particular case (in)sensitivity. So on a case insensitive filesystem this will return True even if the case of name is different from the case of the underlying filesystem file. See also :meth:`has_name`" |
| 113 |
msgstr "" |
| 114 |
|
| 115 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.filesize:1 |
| 116 |
msgid "Return the size in bytes of the file represented by the specified canonical name. Automatically handles dirtied parsed objects. See also: :meth:`parsed`" |
| 117 |
msgstr "" |
| 118 |
|
| 119 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.generate_item:1 |
| 120 |
msgid "Add an item to the manifest with href derived from the given name. Ensures uniqueness of href and id automatically. Returns generated item." |
| 121 |
msgstr "" |
| 122 |
|
| 123 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.get_file_path_for_processing:1 |
| 124 |
msgid "Similar to open() except that it returns a file path, instead of an open file object." |
| 125 |
msgstr "" |
| 126 |
|
| 127 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.guide_type_map:1 |
| 128 |
msgid "Mapping of guide type to canonical name" |
| 129 |
msgstr "" |
| 130 |
|
| 131 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.has_name:1 |
| 132 |
msgid "Return True iff a file with the same canonical name as that specified exists. Unlike :meth:`exists` this method is always case-sensitive." |
| 133 |
msgstr "" |
| 134 |
|
| 135 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.href_to_name:1 |
| 136 |
msgid "Convert an href (relative to base) to a name. base must be a name or None, in which case self.root is used." |
| 137 |
msgstr "" |
| 138 |
|
| 139 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.insert_into_xml:1 |
| 140 |
msgid "Insert item into parent (or append if index is None), fixing indentation. Only works with self closing items." |
| 141 |
msgstr "" |
| 142 |
|
| 143 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.is_dir:1 |
| 144 |
msgid "If this container represents an unzipped book (a directory)" |
| 145 |
msgstr "" |
| 146 |
|
| 147 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.iterlinks:1 |
| 148 |
msgid "Iterate over all links in name. If get_line_numbers is True the yields results of the form (link, line_number, offset). Where line_number is the line_number at which the link occurs and offset is the number of characters from the start of the line. Note that offset could actually encompass several lines if not zero." |
| 149 |
msgstr "" |
| 150 |
|
| 151 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.make_name_unique:1 |
| 152 |
msgid "Ensure that `name` does not already exist in this book. If it does, return a modified version that does not exist." |
| 153 |
msgstr "" |
| 154 |
|
| 155 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.manifest_has_name:1 |
| 156 |
msgid "Return True if the manifest has an entry corresponding to name" |
| 157 |
msgstr "" |
| 158 |
|
| 159 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.manifest_id_map:1 |
| 160 |
msgid "Mapping of manifest id to canonical names" |
| 161 |
msgstr "" |
| 162 |
|
| 163 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.manifest_items_of_type:1 |
| 164 |
msgid "The names of all manifest items whose media-type matches predicate. `predicate` can be a set, a list, a string or a function taking a single argument, which will be called with the media-type." |
| 165 |
msgstr "" |
| 166 |
|
| 167 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.manifest_items_with_property:1 |
| 168 |
msgid "All manifest items that have the specified property" |
| 169 |
msgstr "" |
| 170 |
|
| 171 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.manifest_type_map:1 |
| 172 |
msgid "Mapping of manifest media-type to list of canonical names of that media-type" |
| 173 |
msgstr "" |
| 174 |
|
| 175 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.mi:1 |
| 176 |
msgid "The metadata of this book as a Metadata object. Note that this object is constructed on the fly every time this property is requested, so use it sparingly." |
| 177 |
msgstr "" |
| 178 |
|
| 179 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.name_to_abspath:1 |
| 180 |
msgid "Convert a canonical name to an absolute OS dependent path" |
| 181 |
msgstr "" |
| 182 |
|
| 183 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.name_to_href:1 |
| 184 |
msgid "Convert a name to a href relative to base, which must be a name or None in which case self.root is used as the base" |
| 185 |
msgstr "" |
| 186 |
|
| 187 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.names_that_must_not_be_changed:1 |
| 188 |
msgid "Set of names that must never be renamed. Depends on the e-book file format." |
| 189 |
msgstr "" |
| 190 |
|
| 191 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.names_that_must_not_be_removed:1 |
| 192 |
msgid "Set of names that must never be deleted from the container. Depends on the e-book file format." |
| 193 |
msgstr "" |
| 194 |
|
| 195 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.names_that_need_not_be_manifested:1 |
| 196 |
msgid "Set of names that are allowed to be missing from the manifest. Depends on the e-book file format." |
| 197 |
msgstr "" |
| 198 |
|
| 199 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.open:1 |
| 200 |
msgid "Open the file pointed to by name for direct read/write. Note that this will commit the file if it is dirtied and remove it from the parse cache. You must finish with this file before accessing the parsed version of it again, or bad things will happen." |
| 201 |
msgstr "" |
| 202 |
|
| 203 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.opf:1 |
| 204 |
msgid "The parsed OPF file" |
| 205 |
msgstr "" |
| 206 |
|
| 207 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.opf_get_or_create:1 |
| 208 |
msgid "Convenience method to either return the first XML element with the specified name or create it under the opf:package element and then return it, if it does not already exist." |
| 209 |
msgstr "" |
| 210 |
|
| 211 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.opf_version:1 |
| 212 |
msgid "The version set on the OPF's <package> element" |
| 213 |
msgstr "" |
| 214 |
|
| 215 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.opf_version_parsed:1 |
| 216 |
msgid "The version set on the OPF's <package> element as a tuple of integers" |
| 217 |
msgstr "" |
| 218 |
|
| 219 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.opf_xpath:1 |
| 220 |
msgid "Convenience method to evaluate an XPath expression on the OPF file, has the opf: and dc: namespace prefixes pre-defined." |
| 221 |
msgstr "" |
| 222 |
|
| 223 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.parsed:1 |
| 224 |
msgid "Return a parsed representation of the file specified by name. For HTML and XML files an lxml tree is returned. For CSS files a css_parser stylesheet is returned. Note that parsed objects are cached for performance. If you make any changes to the parsed object, you must call :meth:`dirty` so that the container knows to update the cache. See also :meth:`replace`." |
| 225 |
msgstr "" |
| 226 |
|
| 227 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.raw_data:1 |
| 228 |
msgid "Return the raw data corresponding to the file specified by name" |
| 229 |
msgstr "" |
| 230 |
|
| 231 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.raw_data:3 |
| 232 |
msgid "If True and the file has a text based MIME type, decode it and return a unicode object instead of raw bytes." |
| 233 |
msgstr "" |
| 234 |
|
| 235 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.raw_data:4 |
| 236 |
msgid "If True the returned unicode object is normalized to the NFC normal form as is required for the EPUB and AZW3 file formats." |
| 237 |
msgstr "" |
| 238 |
|
| 239 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.relpath:1 |
| 240 |
msgid "Convert an absolute path (with OS separators) to a path relative to base (defaults to self.root). The relative path is *not* a name. Use :meth:`abspath_to_name` for that." |
| 241 |
msgstr "" |
| 242 |
|
| 243 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.remove_from_spine:1 |
| 244 |
msgid "Remove the specified items (by canonical name) from the spine. If ``remove_if_no_longer_in_spine`` is True, the items are also deleted from the book, not just from the spine." |
| 245 |
msgstr "" |
| 246 |
|
| 247 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.remove_from_xml:1 |
| 248 |
msgid "Removes item from parent, fixing indentation (works only with self closing items)" |
| 249 |
msgstr "" |
| 250 |
|
| 251 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.remove_item:1 |
| 252 |
msgid "Remove the item identified by name from this container. This removes all references to the item in the OPF manifest, guide and spine as well as from any internal caches." |
| 253 |
msgstr "" |
| 254 |
|
| 255 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.rename:1 |
| 256 |
msgid "Renames a file from current_name to new_name. It automatically rebases all links inside the file if the folder the file is in changes. Note however, that links are not updated in the other files that could reference this file. This is for performance, such updates should be done once, in bulk." |
| 257 |
msgstr "" |
| 258 |
|
| 259 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.replace:1 |
| 260 |
msgid "Replace the parsed object corresponding to name with obj, which must be a similar object, i.e. an lxml tree for HTML/XML or a css_parser stylesheet for a CSS file." |
| 261 |
msgstr "" |
| 262 |
|
| 263 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.replace_links:1 |
| 264 |
msgid "Replace all links in name using replace_func, which must be a callable that accepts a URL and returns the replaced URL. It must also have a 'replaced' attribute that is set to True if any actual replacement is done. Convenient ways of creating such callables are using the :class:`LinkReplacer` and :class:`LinkRebaser` classes." |
| 265 |
msgstr "" |
| 266 |
|
| 267 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.serialize_item:1 |
| 268 |
msgid "Convert a parsed object (identified by canonical name) into a bytestring. See :meth:`parsed`." |
| 269 |
msgstr "" |
| 270 |
|
| 271 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.set_spine:1 |
| 272 |
msgid "Set the spine to be spine_items where spine_items is an iterable of the form (name, linear). Will raise an error if one of the names is not present in the manifest." |
| 273 |
msgstr "" |
| 274 |
|
| 275 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.spine_items:1 |
| 276 |
msgid "An iterator yielding the path for every item in the books' spine. See also: :attr:`spine_iter` and :attr:`spine_items`." |
| 277 |
msgstr "" |
| 278 |
|
| 279 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.spine_iter:1 |
| 280 |
msgid "An iterator that yields item, name is_linear for every item in the books' spine. item is the lxml element, name is the canonical file name and is_linear is True if the item is linear. See also: :attr:`spine_names` and :attr:`spine_items`." |
| 281 |
msgstr "" |
| 282 |
|
| 283 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/container.py:docstring of calibre.ebooks.oeb.polish.container.Container.spine_names:1 |
| 284 |
msgid "An iterator yielding name and is_linear for every item in the books' spine. See also: :attr:`spine_iter` and :attr:`spine_items`." |
| 285 |
msgstr "" |
| 286 |
|
| 287 |
#: ../../../home/kovid/work/calibre/manual/polish.rst:36 |
| 288 |
msgid "Managing component files in a container" |
| 289 |
msgstr "" |
| 290 |
|
| 291 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/replace.py:docstring of calibre.ebooks.oeb.polish.replace.replace_links:1 |
| 292 |
msgid "Replace links to files in the container. Will iterate over all files in the container and change the specified links in them." |
| 293 |
msgstr "" |
| 294 |
|
| 295 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/replace.py:docstring of calibre.ebooks.oeb.polish.replace.replace_links:3 |
| 296 |
msgid "A mapping of old canonical name to new canonical name. For example: :code:`{'images/old.png': 'images/new.png'}`" |
| 297 |
msgstr "" |
| 298 |
|
| 299 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/replace.py:docstring of calibre.ebooks.oeb.polish.replace.replace_links:4 |
| 300 |
msgid "A callable that takes two arguments ``(name, anchor)`` and returns a new anchor. This is useful if you need to change the anchors in HTML files. By default, it does nothing." |
| 301 |
msgstr "" |
| 302 |
|
| 303 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/replace.py:docstring of calibre.ebooks.oeb.polish.replace.replace_links:7 |
| 304 |
msgid "If False, links are not replaced in the OPF file." |
| 305 |
msgstr "" |
| 306 |
|
| 307 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/replace.py:docstring of calibre.ebooks.oeb.polish.replace.rename_files:1 |
| 308 |
msgid "Rename files in the container, automatically updating all links to them." |
| 309 |
msgstr "" |
| 310 |
|
| 311 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/replace.py:docstring of calibre.ebooks.oeb.polish.replace.rename_files:3 |
| 312 |
msgid "A mapping of old canonical name to new canonical name, for example: :code:`{'text/chapter1.html': 'chapter1.html'}`." |
| 313 |
msgstr "" |
| 314 |
|
| 315 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/replace.py:docstring of calibre.ebooks.oeb.polish.replace.get_recommended_folders:1 |
| 316 |
msgid "Return the folders that are recommended for the given filenames. The recommendation is based on where the majority of files of the same type are located in the container. If no files of a particular type are present, the recommended folder is assumed to be the folder containing the OPF file." |
| 317 |
msgstr "" |
| 318 |
|
| 319 |
#: ../../../home/kovid/work/calibre/manual/polish.rst:47 |
| 320 |
msgid "Pretty printing and auto fixing parse errors" |
| 321 |
msgstr "" |
| 322 |
|
| 323 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/pretty.py:docstring of calibre.ebooks.oeb.polish.pretty.fix_html:1 |
| 324 |
msgid "Fix any parsing errors in the HTML represented as a string in raw. Fixing is done using the HTML5 parsing algorithm." |
| 325 |
msgstr "" |
| 326 |
|
| 327 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/pretty.py:docstring of calibre.ebooks.oeb.polish.pretty.fix_all_html:1 |
| 328 |
msgid "Fix any parsing errors in all HTML files in the container. Fixing is done using the HTML5 parsing algorithm." |
| 329 |
msgstr "" |
| 330 |
|
| 331 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/pretty.py:docstring of calibre.ebooks.oeb.polish.pretty.pretty_html:1 |
| 332 |
msgid "Pretty print the HTML represented as a string in raw" |
| 333 |
msgstr "" |
| 334 |
|
| 335 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/pretty.py:docstring of calibre.ebooks.oeb.polish.pretty.pretty_css:1 |
| 336 |
msgid "Pretty print the CSS represented as a string in raw" |
| 337 |
msgstr "" |
| 338 |
|
| 339 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/pretty.py:docstring of calibre.ebooks.oeb.polish.pretty.pretty_xml:1 |
| 340 |
msgid "Pretty print the XML represented as a string in raw. If ``name`` is the name of the OPF, extra OPF-specific prettying is performed." |
| 341 |
msgstr "" |
| 342 |
|
| 343 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/pretty.py:docstring of calibre.ebooks.oeb.polish.pretty.pretty_all:1 |
| 344 |
msgid "Pretty print all HTML/CSS/XML files in the container" |
| 345 |
msgstr "" |
| 346 |
|
| 347 |
#: ../../../home/kovid/work/calibre/manual/polish.rst:65 |
| 348 |
msgid "Managing book jackets" |
| 349 |
msgstr "" |
| 350 |
|
| 351 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/jacket.py:docstring of calibre.ebooks.oeb.polish.jacket.remove_jacket:1 |
| 352 |
msgid "Remove an existing jacket, if any. Returns False if no existing jacket was found." |
| 353 |
msgstr "" |
| 354 |
|
| 355 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/jacket.py:docstring of calibre.ebooks.oeb.polish.jacket.add_or_replace_jacket:1 |
| 356 |
msgid "Either create a new jacket from the book's metadata or replace an existing jacket. Returns True if an existing jacket was replaced." |
| 357 |
msgstr "" |
| 358 |
|
| 359 |
#: ../../../home/kovid/work/calibre/manual/polish.rst:74 |
| 360 |
msgid "Splitting and merging of files" |
| 361 |
msgstr "" |
| 362 |
|
| 363 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/split.py:docstring of calibre.ebooks.oeb.polish.split.split:1 |
| 364 |
msgid "Split the file specified by name at the position specified by loc_or_xpath. Splitting automatically migrates all links and references to the affected files." |
| 365 |
msgstr "" |
| 366 |
|
| 367 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/split.py:docstring of calibre.ebooks.oeb.polish.split.split:5 |
| 368 |
msgid "Should be an XPath expression such as //h:div[@id=\"split_here\"]. Can also be a *loc* which is used internally to implement splitting in the preview panel." |
| 369 |
msgstr "" |
| 370 |
|
| 371 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/split.py:docstring of calibre.ebooks.oeb.polish.split.split:8 |
| 372 |
msgid "If True the split occurs before the identified element otherwise after it." |
| 373 |
msgstr "" |
| 374 |
|
| 375 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/split.py:docstring of calibre.ebooks.oeb.polish.split.split:9 |
| 376 |
msgid "Used internally" |
| 377 |
msgstr "" |
| 378 |
|
| 379 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/split.py:docstring of calibre.ebooks.oeb.polish.split.multisplit:1 |
| 380 |
msgid "Split the specified file at multiple locations (all tags that match the specified XPath expression). See also: :func:`split`. Splitting automatically migrates all links and references to the affected files." |
| 381 |
msgstr "" |
| 382 |
|
| 383 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/split.py:docstring of calibre.ebooks.oeb.polish.split.multisplit:5 |
| 384 |
msgid "If True the splits occur before the identified element otherwise after it." |
| 385 |
msgstr "" |
| 386 |
|
| 387 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/split.py:docstring of calibre.ebooks.oeb.polish.split.merge:1 |
| 388 |
msgid "Merge the specified files into a single file, automatically migrating all links and references to the affected files. The file must all either be HTML or CSS files." |
| 389 |
msgstr "" |
| 390 |
|
| 391 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/split.py:docstring of calibre.ebooks.oeb.polish.split.merge:4 |
| 392 |
msgid "Must be either ``'text'`` for HTML files or ``'styles'`` for CSS files" |
| 393 |
msgstr "" |
| 394 |
|
| 395 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/split.py:docstring of calibre.ebooks.oeb.polish.split.merge:5 |
| 396 |
msgid "The list of files to be merged" |
| 397 |
msgstr "" |
| 398 |
|
| 399 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/split.py:docstring of calibre.ebooks.oeb.polish.split.merge:6 |
| 400 |
msgid "Which of the merged files is the *master* file, that is, the file that will remain after merging." |
| 401 |
msgstr "" |
| 402 |
|
| 403 |
#: ../../../home/kovid/work/calibre/manual/polish.rst:85 |
| 404 |
msgid "Managing covers" |
| 405 |
msgstr "" |
| 406 |
|
| 407 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/cover.py:docstring of calibre.ebooks.oeb.polish.cover.set_cover:1 |
| 408 |
msgid "Set the cover of the book to the image pointed to by cover_path." |
| 409 |
msgstr "" |
| 410 |
|
| 411 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/cover.py:docstring of calibre.ebooks.oeb.polish.cover.set_cover:3 |
| 412 |
msgid "Either the absolute path to an image file or the canonical name of an image in the book. When using an image in the book, you must also set options, see below." |
| 413 |
msgstr "" |
| 414 |
|
| 415 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/cover.py:docstring of calibre.ebooks.oeb.polish.cover.set_cover:6 |
| 416 |
msgid "An optional callable that takes a single argument. It will be called with information about the tasks being processed." |
| 417 |
msgstr "" |
| 418 |
|
| 419 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/cover.py:docstring of calibre.ebooks.oeb.polish.cover.set_cover:8 |
| 420 |
msgid "None or a dictionary that controls how the cover is set. The dictionary can have entries: **keep_aspect**: True or False (Preserve aspect ratio of covers in EPUB) **no_svg**: True or False (Use an SVG cover wrapper in the EPUB titlepage) **existing**: True or False (``cover_path`` refers to an existing image in the book)" |
| 421 |
msgstr "" |
| 422 |
|
| 423 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/cover.py:docstring of calibre.ebooks.oeb.polish.cover.mark_as_cover:1 |
| 424 |
msgid "Mark the specified image as the cover image." |
| 425 |
msgstr "" |
| 426 |
|
| 427 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/cover.py:docstring of calibre.ebooks.oeb.polish.cover.mark_as_titlepage:1 |
| 428 |
msgid "Mark the specified HTML file as the titlepage of the EPUB." |
| 429 |
msgstr "" |
| 430 |
|
| 431 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/cover.py:docstring of calibre.ebooks.oeb.polish.cover.mark_as_titlepage:3 |
| 432 |
msgid "If True the HTML file is moved to the start of the spine" |
| 433 |
msgstr "" |
| 434 |
|
| 435 |
#: ../../../home/kovid/work/calibre/manual/polish.rst:96 |
| 436 |
msgid "Working with CSS" |
| 437 |
msgstr "" |
| 438 |
|
| 439 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/fonts.py:docstring of calibre.ebooks.oeb.polish.fonts.change_font:1 |
| 440 |
msgid "Change a font family from old_name to new_name. Changes all occurrences of the font family in stylesheets, style tags and style attributes. If the old_name refers to an embedded font, it is removed. You can set new_name to None to remove the font family instead of changing it." |
| 441 |
msgstr "" |
| 442 |
|
| 443 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/css.py:docstring of calibre.ebooks.oeb.polish.css.remove_unused_css:1 |
| 444 |
msgid "Remove all unused CSS rules from the book. An unused CSS rule is one that does not match any actual content." |
| 445 |
msgstr "" |
| 446 |
|
| 447 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/css.py:docstring of calibre.ebooks.oeb.polish.css.remove_unused_css:3 |
| 448 |
msgid "An optional callable that takes a single argument. It is called with information about the operations being performed." |
| 449 |
msgstr "" |
| 450 |
|
| 451 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/css.py:docstring of calibre.ebooks.oeb.polish.css.remove_unused_css:4 |
| 452 |
msgid "If True, class attributes in the HTML that do not match any CSS rules are also removed." |
| 453 |
msgstr "" |
| 454 |
|
| 455 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/css.py:docstring of calibre.ebooks.oeb.polish.css.remove_unused_css:5 |
| 456 |
msgid "If True, rules with identical selectors are merged." |
| 457 |
msgstr "" |
| 458 |
|
| 459 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/css.py:docstring of calibre.ebooks.oeb.polish.css.remove_unused_css:6 |
| 460 |
msgid "If True, rules with identical properties are merged." |
| 461 |
msgstr "" |
| 462 |
|
| 463 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/css.py:docstring of calibre.ebooks.oeb.polish.css.remove_unused_css:7 |
| 464 |
msgid "If True, stylesheets that are not referenced by any content are removed" |
| 465 |
msgstr "" |
| 466 |
|
| 467 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/css.py:docstring of calibre.ebooks.oeb.polish.css.filter_css:1 |
| 468 |
msgid "Remove the specified CSS properties from all CSS rules in the book." |
| 469 |
msgstr "" |
| 470 |
|
| 471 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/css.py:docstring of calibre.ebooks.oeb.polish.css.filter_css:3 |
| 472 |
msgid "Set of properties to remove. For example: :code:`{'font-family', 'color'}`." |
| 473 |
msgstr "" |
| 474 |
|
| 475 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/css.py:docstring of calibre.ebooks.oeb.polish.css.filter_css:4 |
| 476 |
msgid "The files from which to remove the properties. Defaults to all HTML and CSS files in the book." |
| 477 |
msgstr "" |
| 478 |
|
| 479 |
#: ../../../home/kovid/work/calibre/manual/polish.rst:108 |
| 480 |
msgid "Working with the Table of Contents" |
| 481 |
msgstr "" |
| 482 |
|
| 483 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/toc.py:docstring of calibre.ebooks.oeb.polish.toc.from_xpaths:1 |
| 484 |
msgid "Generate a Table of Contents from a list of XPath expressions. Each expression in the list corresponds to a level of the generate ToC. For example: :code:`['//h:h1', '//h:h2', '//h:h3']` will generate a three level Table of Contents from the ``<h1>``, ``<h2>`` and ``<h3>`` tags." |
| 485 |
msgstr "" |
| 486 |
|
| 487 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/toc.py:docstring of calibre.ebooks.oeb.polish.toc.from_links:1 |
| 488 |
msgid "Generate a Table of Contents from links in the book." |
| 489 |
msgstr "" |
| 490 |
|
| 491 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/toc.py:docstring of calibre.ebooks.oeb.polish.toc.from_files:1 |
| 492 |
msgid "Generate a Table of Contents from files in the book." |
| 493 |
msgstr "" |
| 494 |
|
| 495 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/toc.py:docstring of calibre.ebooks.oeb.polish.toc.create_inline_toc:1 |
| 496 |
msgid "Create an inline (HTML) Table of Contents from an existing NCX Table of Contents." |
| 497 |
msgstr "" |
| 498 |
|
| 499 |
#: ../../../home/kovid/work/calibre/src/calibre/ebooks/oeb/polish/toc.py:docstring of calibre.ebooks.oeb.polish.toc.create_inline_toc:3 |
| 500 |
msgid "The title for this table of contents." |
| 501 |
msgstr "" |
| 502 |
|
| 503 |
#: ../../../home/kovid/work/calibre/manual/polish.rst:122 |
| 504 |
msgid "Edit book tool" |
| 505 |
msgstr "" |
| 506 |
|
| 507 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool:1 |
| 508 |
msgid "The base class for individual tools in an Edit Book plugin. Useful members include:" |
| 509 |
msgstr "" |
| 510 |
|
| 511 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool:3 |
| 512 |
msgid "``self.plugin``: A reference to the :class:`calibre.customize.Plugin` object to which this tool belongs." |
| 513 |
msgstr "" |
| 514 |
|
| 515 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool:4 |
| 516 |
msgid "self. :attr:`boss`" |
| 517 |
msgstr "" |
| 518 |
|
| 519 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool:5 |
| 520 |
msgid "self. :attr:`gui`" |
| 521 |
msgstr "" |
| 522 |
|
| 523 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool:7 |
| 524 |
msgid "Methods that must be overridden in sub classes:" |
| 525 |
msgstr "" |
| 526 |
|
| 527 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool:9 |
| 528 |
msgid ":meth:`create_action`" |
| 529 |
msgstr "" |
| 530 |
|
| 531 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool:10 |
| 532 |
msgid ":meth:`register_shortcut`" |
| 533 |
msgstr "" |
| 534 |
|
| 535 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool.name:1 |
| 536 |
msgid "Set this to a unique name it will be used as a key" |
| 537 |
msgstr "" |
| 538 |
|
| 539 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool.allowed_in_toolbar:1 |
| 540 |
msgid "If True the user can choose to place this tool in the plugins toolbar" |
| 541 |
msgstr "" |
| 542 |
|
| 543 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool.allowed_in_menu:1 |
| 544 |
msgid "If True the user can choose to place this tool in the plugins menu" |
| 545 |
msgstr "" |
| 546 |
|
| 547 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool.toolbar_button_popup_mode:1 |
| 548 |
msgid "The popup mode for the menu (if any) of the toolbar button. Possible values are 'delayed', 'instant', 'button'" |
| 549 |
msgstr "" |
| 550 |
|
| 551 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool.boss:1 |
| 552 |
msgid "The :class:`calibre.gui2.tweak_book.boss.Boss` object. Used to control the user interface." |
| 553 |
msgstr "" |
| 554 |
|
| 555 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool.gui:1 |
| 556 |
msgid "The main window of the user interface" |
| 557 |
msgstr "" |
| 558 |
|
| 559 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool.current_container:1 |
| 560 |
msgid "Return the current :class:`calibre.ebooks.oeb.polish.container.Container` object that represents the book being edited." |
| 561 |
msgstr "" |
| 562 |
|
| 563 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool.register_shortcut:1 |
| 564 |
msgid "Register a keyboard shortcut that will trigger the specified ``qaction``. This keyboard shortcut will become automatically customizable by the user in the Keyboard shortcuts section of the editor preferences." |
| 565 |
msgstr "" |
| 566 |
|
| 567 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool.register_shortcut:4 |
| 568 |
msgid "A QAction object, it will be triggered when the configured key combination is pressed by the user." |
| 569 |
msgstr "" |
| 570 |
|
| 571 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool.register_shortcut:6 |
| 572 |
msgid "A unique name for this shortcut/action. It will be used internally, it must not be shared by any other actions in this plugin." |
| 573 |
msgstr "" |
| 574 |
|
| 575 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool.register_shortcut:9 |
| 576 |
msgid "A list of the default keyboard shortcuts. If not specified no default shortcuts will be set. If the shortcuts specified here conflict with either builtin shortcuts or shortcuts from user configuration/other plugins, they will be ignored. In that case, users will have to configure the shortcuts manually via Preferences. For example: ``default_keys=('Ctrl+J', 'F9')``." |
| 577 |
msgstr "" |
| 578 |
|
| 579 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool.register_shortcut:15 |
| 580 |
msgid "An optional short description of this action. If not specified the text from the QAction will be used." |
| 581 |
msgstr "" |
| 582 |
|
| 583 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool.register_shortcut:17 |
| 584 |
msgid "An optional longer description of this action, it will be used in the preferences entry for this shortcut." |
| 585 |
msgstr "" |
| 586 |
|
| 587 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool.create_action:1 |
| 588 |
msgid "Create a QAction that will be added to either the plugins toolbar or the plugins menu depending on ``for_toolbar``. For example::" |
| 589 |
msgstr "" |
| 590 |
|
| 591 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/plugin.py:docstring of calibre.gui2.tweak_book.plugin.Tool.create_action:19 |
| 592 |
msgid "Method :meth:`register_shortcut`." |
| 593 |
msgstr "" |
| 594 |
|
| 595 |
#: ../../../home/kovid/work/calibre/manual/polish.rst:131 |
| 596 |
msgid "Controlling the editor's user interface" |
| 597 |
msgstr "" |
| 598 |
|
| 599 |
#: ../../../home/kovid/work/calibre/manual/polish.rst:133 |
| 600 |
msgid "The e-book editor's user interface is controlled by a single global *Boss* object. This has many useful methods that can be used in plugin code to perform common tasks." |
| 601 |
msgstr "" |
| 602 |
|
| 603 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.add_savepoint:1 |
| 604 |
msgid "Create a restore checkpoint with the name specified as ``msg``" |
| 605 |
msgstr "" |
| 606 |
|
| 607 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.apply_container_update_to_gui:1 |
| 608 |
msgid "Update all the components of the user interface to reflect the latest data in the current book container." |
| 609 |
msgstr "" |
| 610 |
|
| 611 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.apply_container_update_to_gui:3 |
| 612 |
msgid "If True, the book will be marked as modified, so the user will be prompted to save it when quitting." |
| 613 |
msgstr "" |
| 614 |
|
| 615 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.close_editor:1 |
| 616 |
msgid "Close the editor that is editing the file specified by ``name``" |
| 617 |
msgstr "" |
| 618 |
|
| 619 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.commit_all_editors_to_container:1 |
| 620 |
msgid "Commit any changes that the user has made to files open in editors to the container. You should call this method before performing any actions on the current container" |
| 621 |
msgstr "" |
| 622 |
|
| 623 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.currently_editing:1 |
| 624 |
msgid "Return the name of the file being edited currently or None if no file is being edited" |
| 625 |
msgstr "" |
| 626 |
|
| 627 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.edit_file:1 |
| 628 |
msgid "Open the file specified by name in an editor" |
| 629 |
msgstr "" |
| 630 |
|
| 631 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.edit_file:3 |
| 632 |
msgid "The media type of the file, for example, ``'text/html'``. If not specified it is guessed from the file extension." |
| 633 |
msgstr "" |
| 634 |
|
| 635 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.edit_file:4 |
| 636 |
msgid "A template to initialize the opened editor with" |
| 637 |
msgstr "" |
| 638 |
|
| 639 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.open_book:1 |
| 640 |
msgid "Open the e-book at ``path`` for editing. Will show an error if the e-book is not in a supported format or the current book has unsaved changes." |
| 641 |
msgstr "" |
| 642 |
|
| 643 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.open_book:3 |
| 644 |
msgid "The name of a file inside the newly opened book to start editing. Can also be a list of names." |
| 645 |
msgstr "" |
| 646 |
|
| 647 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.rewind_savepoint:1 |
| 648 |
msgid "Undo the previous creation of a restore checkpoint, useful if you create a checkpoint, then abort the operation with no changes" |
| 649 |
msgstr "" |
| 650 |
|
| 651 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.save_book:1 |
| 652 |
msgid "Save the book. Saving is performed in the background" |
| 653 |
msgstr "" |
| 654 |
|
| 655 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.set_modified:1 |
| 656 |
msgid "Mark the book as having been modified" |
| 657 |
msgstr "" |
| 658 |
|
| 659 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.show_current_diff:1 |
| 660 |
msgid "Show the changes to the book from its last checkpointed state" |
| 661 |
msgstr "" |
| 662 |
|
| 663 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.show_current_diff:3 |
| 664 |
msgid "If True the diff dialog will have a button to allow the user to revert all changes" |
| 665 |
msgstr "" |
| 666 |
|
| 667 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.show_current_diff:4 |
| 668 |
msgid "A container object to compare the current container to. If None, the previously checkpointed container is used" |
| 669 |
msgstr "" |
| 670 |
|
| 671 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.show_editor:1 |
| 672 |
msgid "Show the editor that is editing the file specified by ``name``" |
| 673 |
msgstr "" |
| 674 |
|
| 675 |
#: ../../../home/kovid/work/calibre/src/calibre/gui2/tweak_book/boss.py:docstring of calibre.gui2.tweak_book.boss.Boss.sync_preview_to_editor:1 |
| 676 |
msgid "Sync the position of the preview panel to the current cursor position in the current editor" |
| 677 |
msgstr "" |