mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
6377b6a2ec
commit
1053533932
@ -182,7 +182,7 @@ files into book.
|
|||||||
Replacing files
|
Replacing files
|
||||||
^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
You can easily replace existing files int he book, by right clicking on the
|
You can easily replace existing files in the book, by right clicking on the
|
||||||
file and choosing replace. This will automatically update all links and
|
file and choosing replace. This will automatically update all links and
|
||||||
references, in case the replacement file has a different name than the file
|
references, in case the replacement file has a different name than the file
|
||||||
being replaced.
|
being replaced.
|
||||||
|
@ -75,7 +75,7 @@ class DemoTool(Tool):
|
|||||||
|
|
||||||
container = self.current_container # The book being edited as a container object
|
container = self.current_container # The book being edited as a container object
|
||||||
|
|
||||||
# Iterate over all style declarations int he book, this means css
|
# Iterate over all style declarations in the book, this means css
|
||||||
# stylesheets, <style> tags and style="" attributes
|
# stylesheets, <style> tags and style="" attributes
|
||||||
for name, media_type in container.mime_map.iteritems():
|
for name, media_type in container.mime_map.iteritems():
|
||||||
if media_type in OEB_STYLES:
|
if media_type in OEB_STYLES:
|
||||||
|
@ -71,7 +71,7 @@ def set_cover(container, cover_path, report=None, options=None):
|
|||||||
Set the cover of the book to the image pointed to by cover_path.
|
Set the cover of the book to the image pointed to by cover_path.
|
||||||
|
|
||||||
:param cover_path: Either the absolute path to an image file or the
|
:param cover_path: Either the absolute path to an image file or the
|
||||||
canonical name of an image in the book. When using an image int he book,
|
canonical name of an image in the book. When using an image in the book,
|
||||||
you must also set options, see below.
|
you must also set options, see below.
|
||||||
:param report: An optional callable that takes a single argument. It will
|
:param report: An optional callable that takes a single argument. It will
|
||||||
be called with information about the tasks being processed.
|
be called with information about the tasks being processed.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user