Home
last modified time | relevance | path

Searched refs:pathtoebook (Results 1 – 13 of 13) sorted by relevance

/dports/deskutils/calibre/calibre-src-5.34.0/src/pyj/read_book/
H A Dopen_book.pyj28 if book and book.manifest.pathtoebook is entry.pathtoebook:
30 if jstype(entry.pathtoebook) is not 'string':
32 fname = entry.pathtoebook.replace(/\\/g, '/')
35 …item(entry.title or _('Unknown'), ui_operations.ask_for_open.bind(None, entry.pathtoebook), fname))
52 key = book.manifest.pathtoebook
54 'key': key, 'pathtoebook': book.manifest.pathtoebook,
H A Doverlay.pyj753 def show_metadata_overlay(mi, pathtoebook, lname, book_id, overlay, container):
797 if pathtoebook:
807 pathtoebook)
815 …ay(self, show_metadata_overlay.bind(None, book.metadata, book.manifest.pathtoebook, lname, book_id…
/dports/deskutils/calibre/calibre-src-5.34.0/src/calibre/gui2/viewer/
H A Dannotations.py58 def save_annotations(annotations_list, annotations_path_key, bld, pathtoebook, in_book_file, sync_a… argument
62 if in_book_file and os.access(pathtoebook, os.W_OK):
63 before_stat = os.stat(pathtoebook)
64 save_annots_to_epub(pathtoebook, annots)
65 update_book(pathtoebook, before_stat, {'calibre-book-annotations.json': annots})
90 pathtoebook = x['pathtoebook']
94 …save_annotations(annotations_list, annotations_path_key, bld, pathtoebook, in_book_file, sync_anno…
H A Dui.py436 …print_book(set_book_path.pathtoebook, book_title=self.current_book_data['metadata']['title'], pare…
472 def load_ebook(self, pathtoebook, open_at=None, reload_book=False): argument
473 if '.' not in os.path.basename(pathtoebook):
474 pathtoebook = os.path.abspath(os.path.realpath(pathtoebook))
486 …t = Thread(name='LoadBook', target=self._load_ebook_worker, args=(pathtoebook, open_at, reload_boo…
494 def _load_ebook_worker(self, pathtoebook, open_at, reload_book): argument
496 ans = prepare_book(pathtoebook, force=reload_book, prepare_notify=self.prepare_notify)
498 … self.book_prepared.emit(False, {'exception': e, 'tb': e.orig_tb, 'pathtoebook': pathtoebook})
501 …ok_prepared.emit(False, {'exception': e, 'tb': traceback.format_exc(), 'pathtoebook': pathtoebook})
504 …self.book_prepared.emit(True, {'base': ans, 'pathtoebook': pathtoebook, 'open_at': open_at, 'reloa…
[all …]
H A Dweb_view.py50 def set_book_path(path, pathtoebook): argument
51 set_book_path.pathtoebook = pathtoebook
644 …self.execute_when_ready('start_book_load', key, initial_position, set_book_path.pathtoebook, highl…
747 path = os.path.dirname(os.path.abspath(set_book_path.pathtoebook))
H A Dtoolbars.py307 … if hasattr(set_book_path, 'pathtoebook') and path == os.path.abspath(set_book_path.pathtoebook):
/dports/deskutils/calibre/calibre-src-5.34.0/src/calibre/ebooks/oeb/iterator/
H A Dbook.py50 def extract_book(pathtoebook, tdir, log=None, view_kepub=False, processed=False, only_input_plugin=… argument
54 plumber = Plumber(pathtoebook, tdir, log, view_kepub=view_kepub)
56 if pathtoebook.lower().endswith('.opf'):
78 book_format = os.path.splitext(pathtoebook)[1][1:].upper()
95 def __init__(self, pathtoebook, log=None, copy_bookmarks_to_file=True, use_tdir_in_cache=False): argument
99 pathtoebook = pathtoebook.strip()
100 self.pathtoebook = os.path.abspath(pathtoebook)
102 ext = os.path.splitext(pathtoebook)[1].replace('.', '').lower()
148 …self.pathtoebook, self.base, only_input_plugin=only_input_plugin, view_kepub=view_kepub, processed…
H A Dbookmarks.py73 raw = self.config['bookmarks_'+self.pathtoebook] or ''
88 self.config['bookmarks_'+self.pathtoebook] = dat
90 self.pathtoebook)[1].lower() == '.epub' and os.access(self.pathtoebook, os.W_OK):
92 with open(self.pathtoebook, 'r+b') as zf:
/dports/deskutils/calibre/calibre-src-5.34.0/src/calibre/srv/
H A Dbooks.py80 fd, pathtoebook = tempfile.mkstemp(prefix='', suffix=('.' + fmt.lower()), dir=tdir)
85 pathtoebook, tdir, {'size':size, 'mtime':mtime, 'hash':bhash}),
86 job_done_callback=job_done, job_data=(bhash, pathtoebook, tdir))
113 bhash, pathtoebook, tdir = job.data
115 safe_remove(pathtoebook)
H A Dconvert.py28 def __init__(self, job_id, book_id, tdir, library_id, pathtoebook, conversion_data): argument
35 self.library_id, self.pathtoebook = library_id, pathtoebook
96 safe_delete_file(job_status.pathtoebook)
H A Drender_book.py783 def render(pathtoebook, output_dir, book_hash=None, serialize_metadata=False, extract_annotations=F… argument
784 pathtoebook = os.path.abspath(pathtoebook)
790 with lopen(pathtoebook, 'rb') as f, quick_metadata:
791 mi = get_metadata(f, os.path.splitext(pathtoebook)[1][1:].lower())
792 book_fmt, opfpath, input_fmt = extract_book(pathtoebook, output_dir, log=default_log)
/dports/deskutils/calibre/calibre-src-5.34.0/src/pyj/
H A Dviewer-main.pyj95 def manifest_received(key, initial_position, pathtoebook, highlights, book_url, end_type, xhr, ev):
103 book.manifest.pathtoebook = pathtoebook
225 def start_book_load(key, initial_position, pathtoebook, highlights, book_url):
226 …xhr = ajax('manifest', manifest_received.bind(None, key, initial_position, pathtoebook, highlights…
/dports/deskutils/calibre/calibre-src-5.34.0/src/calibre/gui2/convert/
H A Dregex_builder.py188 def open_book(self, pathtoebook): argument
194 (pathtoebook, tf))