31298 Commits

Author SHA1 Message Date
Kovid Goyal
2da1f63821
Ensure worker process is killed on viewer exit 2019-11-06 07:19:58 +05:30
Kovid Goyal
bcc9f16df2
Duplicates dialog: Sort sub-list of matching books already in calibre by author for easier inspection. Fixes #1851386 [[enhancement] sort authors per title in duplicated window after import](https://bugs.launchpad.net/calibre/+bug/1851386) 2019-11-06 07:10:46 +05:30
Kovid Goyal
abd6492691
Fix regression in calibre 4 causing shortcuts to not be displayed in context menus on windows because of stupidity from Qt https://bugreports.qt.io/browse/QTBUG-61181 2019-11-05 15:18:12 +05:30
Kovid Goyal
0dc03ed11e
Viewer: Change the default color scheme to "System" which matches the colors used by the rest of calibre/the operating system
Also means that if you switch color schemes while the viewer is running,
the viewer will follow along automatically.
2019-11-05 15:07:52 +05:30
Kovid Goyal
c46a5f8127
Reload book if set_path() fails for any reason 2019-11-05 10:11:01 +05:30
Kovid Goyal
bc83a98ddf
Viewer: When resizing and the resizing back to the old size ensure we return to the same page in paged mode. Fixes #1847507 [Viewer: when ToC is opened and closed, it doesn't return to same position](https://bugs.launchpad.net/calibre/+bug/1847507) 2019-11-05 09:55:15 +05:30
Kovid Goyal
5f9b7597d9
... 2019-11-05 08:24:35 +05:30
Kovid Goyal
e4f2cdf947
Book details panel: Fix removal of identifiers via right click not working 2019-11-04 20:02:53 +05:30
Kovid Goyal
91e2b16deb
Content server: Fix conversion of comics not working. Fixes #1847017 [WebUI conversion failed for all comic cbz/cbr format, GUI works fine](https://bugs.launchpad.net/calibre/+bug/1847017)
Could not launch non simple workers from within a simple worker. Now
fixed.
2019-11-04 17:46:45 +05:30
Kovid Goyal
8723d0ee27
Fix #1849958 [[Enhancement] Go back to book library by clicking Esc on server](https://bugs.launchpad.net/calibre/+bug/1849958) 2019-11-04 15:55:37 +05:30
Kovid Goyal
92b60c87c4
Fix #1850922 [[Enhancement] Make the buttons the same size](https://bugs.launchpad.net/calibre/+bug/1850922) 2019-11-04 15:15:45 +05:30
Kovid Goyal
2f76e4a540
Fix loading overlay messages not wrapping 2019-11-04 15:01:55 +05:30
Kovid Goyal
c6c7400105
Viewer: Add a keyboard shortcut ; to go to a book location or position 2019-11-03 18:23:41 +05:30
Kovid Goyal
95adbb3093
Hide toolbar in fullscreen mode
Mimics behavior of old viewer
2019-11-03 15:22:09 +05:30
Kovid Goyal
f362901931
PDF Output: Workaround for weird added anchor markup rendering with Qt 5.13.2 2019-11-03 15:10:36 +05:30
Kovid Goyal
b21132b428
cleanup 2019-11-03 14:59:11 +05:30
Kovid Goyal
580d0e2ba7
PDF Output: Fix links that go to destinations in the same file not working. Fixes #1849529 [Footnotes Broken When Converting From EPUB to PDF](https://bugs.launchpad.net/calibre/+bug/1849529) 2019-11-03 14:44:34 +05:30
Kovid Goyal
018bf4697b
... 2019-11-03 14:35:22 +05:30
Kovid Goyal
21de8718d7
Viewer: Fix changes to keyboard shortcuts not being applied until viewer is restarted. Fixes #1851045 [Change the shortcut for word lookup does not work](https://bugs.launchpad.net/calibre/+bug/1851045) 2019-11-03 14:08:19 +05:30
Kovid Goyal
575a6ea121
DOCX Input: Fix AlternateContent blocks rendering both choice and fallback sections. Fixes #1847365 [Private bug](https://bugs.launchpad.net/calibre/+bug/1847365) 2019-11-03 12:52:23 +05:30
Kovid Goyal
07b48787c9
DRYer 2019-11-03 12:16:01 +05:30
Kovid Goyal
dedea474c8
Ignore comments when getting text from serialized html 2019-11-03 09:58:35 +05:30
Kovid Goyal
47d3d16978
Forgot to port getting text from serialized tree to new serialization format 2019-11-03 09:43:52 +05:30
Kovid Goyal
cb8b181daa
Add a note to not change the viewer user agent 2019-11-03 07:19:46 +05:30
Kovid Goyal
c17411a39f
Only use Qt bug workaround in the viewer 2019-11-03 07:16:17 +05:30
Kovid Goyal
a179632356
Also reset headers/footers when resetting interface
And work Qt 5.13.2 bug in more places
2019-11-03 07:12:51 +05:30
Kovid Goyal
4e98478013
Viewer: Add a control to easily reset the interface to defaults 2019-11-02 15:08:46 +05:30
Kovid Goyal
47fc7c20b9
Add a setting to control toolbar visibility 2019-11-02 14:04:48 +05:30
Kovid Goyal
8bfe1b2598
Have only a single toolbar 2019-11-02 13:25:35 +05:30
Kovid Goyal
8f3991f877
macOS: Fix unable to re-arrange entries in the CSV catalog list. Fixes #1850918 [Generate catalog - field re-arrange deletes fields](https://bugs.launchpad.net/calibre/+bug/1850918) 2019-11-02 12:03:20 +05:30
Kovid Goyal
465cf583a5
... 2019-11-02 09:49:16 +05:30
Kovid Goyal
1b93d540b7
Update the ISO 639-3 language database 2019-11-02 09:21:28 +05:30
Kovid Goyal
6cccd18be8
Workaround for AJAX breakage on Qt 5.13.2
Fixes #1850975 [qt5-webengine 5.13.2 breaks ebook-viewer](https://bugs.launchpad.net/calibre/+bug/1850975)
2019-11-02 07:24:10 +05:30
Kovid Goyal
8b7b9427bd
Better error message on AJAX call failure 2019-11-02 07:18:35 +05:30
Kovid Goyal
98c9a747d6
Viewer: Fix mouse wheel not working when mouse is over page margins. Fixes #1850845 [Viewer problems in full-screen mode](https://bugs.launchpad.net/calibre/+bug/1850845) 2019-11-01 11:18:04 +05:30
Charles Haley
e7cef6208c Possible fix for #1850764.
Assuming I guessed right on the column icon rule, the problem is that Polish doesn't clear the icon caches (or any other cache). I fixed this by adding a call to refresh_ids
after line 532. My problem is that I don't know what to do with the resulting lines 534-536. Do they need to stay? They are updating the book details pane. As far as I can tell, refresh_ids does not do that update, so the lines should stay. Do you agree?
2019-10-31 18:18:03 +00:00
Kovid Goyal
1c82942ed8
Forgot to also catch attributeerror for people running from source 2019-10-31 22:44:16 +05:30
Kovid Goyal
78d048c809
Implement a vertical toolbar 2019-10-31 15:29:59 +05:30
Kovid Goyal
a82a2724ce
Clear history only after first page of book is loaded 2019-10-31 10:50:59 +05:30
Kovid Goyal
6e2122df17
Clear history when loading a new book 2019-10-31 08:58:18 +05:30
Kovid Goyal
f1db7eab2f
Validate pathtoebook 2019-10-31 08:57:39 +05:30
Kovid Goyal
74d97ca869
Merge branch 'bash-completion' of https://github.com/eli-schwartz/calibre 2019-10-30 21:42:24 +05:30
Kovid Goyal
cba0a645a3
Fix typo 2019-10-30 20:48:52 +05:30
Eli Schwartz
53f30d9b7f
linux install: make file blobs start as unicode and get encoded while writing
Kovid wants to be cautious about future refactoring maybe trying to
modify them, and would prefer Things™ be unicode for flexibility when
using them, and only be bytes when actually write()'ing them.

See https://github.com/kovidgoyal/calibre/pull/1065#issuecomment-547893895
2019-10-30 10:34:50 -04:00
Kovid Goyal
8999853fc6
Allow HTML files to control how they rendered as covers
Fixes #1064 (Add render page tweak settings.)
2019-10-30 10:13:17 +05:30
Kovid Goyal
6dc53379ee
Make code to parse PDF page sizes re-useable 2019-10-30 09:42:07 +05:30
Kovid Goyal
21afbdc1d6
py3: Fix #1850571 [[Python3] kobo driver fails to load](https://bugs.launchpad.net/calibre/+bug/1850571) 2019-10-30 08:28:14 +05:30
Eli Schwartz
19c4636677
linux: install bash completion as individual components
In order to prevent bloating the shell with thousands of bash completion
specs, bash completions are lazy-loaded as soon as the command is first
tab-completed. This only works when the completionsdir contains a
filename with the same name as the command being completed; as a result,
calibre commands were able to be tab-completed only after 'calibre' was
first completed.

(This is unlike the zsh completions, which work when installed as a
single unified file because zsh builds a cache of all known compdefs,
and can load a completion on demand by reading from the file which
contains it.)

One common solution for programs which install several completions that
share common helper functions is to install the completions in one file,
and symlink all other command names to ensure the file is loaded by any
name. I've opted for the other solution, which is to install each
completion separately, since there is no common helper function to load
once and use everywhere. As a result, there are some small speedups to
be gained from only loading the completions being used.

The main change is reindenting a lot of code to no longer be in a global
context manager, but instead get written inside o_and_e/o_and_w.

It's also necessary to write each individual completion file to the
uninstaller, so do that.
2019-10-29 20:19:22 -04:00
Eli Schwartz
05d42e0fe8
linux install: make bash completion fully python3 compliant
This gets us closer to a state where polyglot hacks can be dropped, and
is necessary to make per-command completion files not require even more
hacks to proxy through polyglot_write.
2019-10-29 20:19:22 -04:00
Eli Schwartz
54d1d4deb1
bash-completion: also complete epub files for calibre-debug
This is actually probably somewhat more common than azw3. ;)
2019-10-29 20:19:07 -04:00