Kovid Goyal
9a44ef24ff
Avoid re-parsing the OPF file in worker processes
2019-10-26 15:39:20 +05:30
Kovid Goyal
36d5dee047
Only pre-launch workers for books likely to benefit from parallelization
2019-10-26 15:39:20 +05:30
Kovid Goyal
29e20d8b59
Do not modify anything other than the titlepage when processing covers in EPUB files.
...
This speeds up book preparation by not requiring book wide link
replacement.
2019-10-26 15:39:19 +05:30
Kovid Goyal
75dd89722a
Viewer: Run the first read book preparation in parallel
2019-10-26 15:39:19 +05:30
Kovid Goyal
243144f3b9
Viewer: Add command line option to force reloading of all books
2019-10-26 15:38:06 +05:30
Kovid Goyal
f62e3a1bfc
Fix a crash in popup completion lists if the mouse is over the list and list is scrolled with the keyboard
...
Seems to be a regression in newer Qt versions, work around it.
2019-10-26 10:21:28 +05:30
Kovid Goyal
99ce8f9876
Viewer: Fix rare exception when navigating to a CFI. Fixes #1849775 [Exception in ebook viewer]( https://bugs.launchpad.net/calibre/+bug/1849775 )
2019-10-25 20:37:01 +05:30
Kovid Goyal
89eef411c4
Make custom font size panel more keyboard friendly
2019-10-24 14:15:57 +05:30
Kovid Goyal
4eeede8d25
...
2019-10-24 14:00:04 +05:30
Kovid Goyal
ead1b832f8
Viewer: Ignore failures printing console message when the viewer is launched with broken stderr. Fixes #1849612 [Bad file descriptor error in downloaded epub when opened from web browser]( https://bugs.launchpad.net/calibre/+bug/1849612 )
2019-10-24 13:56:44 +05:30
Eli Schwartz
cbf7bd49df
py3: use correct sort key for forcing an element to sort first
...
0 isn't a valid comparison for ICU sort_key() output and returns
tracebacks instead, but sort_key(0) is.
2019-10-24 01:42:48 -04:00
Kovid Goyal
a3dbdf7875
More dark mode fixes
2019-10-23 20:40:07 +05:30
Kovid Goyal
a3dfc924e2
Amazon metadata: Fix failure to get published date from audible book pages. Fixes #1849400 [traceback when searching amazon.com]( https://bugs.launchpad.net/calibre/+bug/1849400 )
2019-10-23 08:01:29 +05:30
Kovid Goyal
4509900b32
Another place that should react to palette changes
2019-10-22 23:34:06 +05:30
Kovid Goyal
a5493fd287
Another dark mode hover color fix
2019-10-22 09:34:16 +05:30
Kovid Goyal
23dcafa265
Viewer: Fix shortcuts preferences not being translated
2019-10-22 09:02:27 +05:30
Kovid Goyal
d744eb1a6d
Tag browser: Fix incorrect text color when using dark theme for hovered item
2019-10-21 14:57:37 +05:30
Kovid Goyal
3bf65b261e
Make icon theme cover file writing atomic
2019-10-21 08:43:37 +05:30
Kovid Goyal
efb6405ff1
Fix crash if canceling the icon theme download while covers are downloading
2019-10-21 08:16:32 +05:30
Kovid Goyal
39e28b3fdb
py3: Fix typo that broke changing icon_theme
...
Fixes #1848954 [TypeError when trying to change icon theme](https://bugs.launchpad.net/calibre/+bug/1848954 )
2019-10-21 07:45:49 +05:30
Kovid Goyal
f2750c00cb
Use monotonic instead of time.time()
2019-10-20 19:01:09 +05:30
Kovid Goyal
0822f1b6fa
Allow the simple worker process to be launched first and run later
2019-10-20 18:38:48 +05:30
Kovid Goyal
c0fa79d58b
Viewer: Fix non-ASCII content in stylesheets not being interpreted correctly. Fixes #1848858 [Issue with viewer: '::before']( https://bugs.launchpad.net/calibre/+bug/1848858 )
2019-10-20 16:52:00 +05:30
Kovid Goyal
06a6ef5612
PDF Output: When a link with a fragment points to a non-existent anchor link to the top of the file instead of not linking at all
2019-10-20 13:19:06 +05:30
Kovid Goyal
882d09b7e0
...
2019-10-20 11:21:30 +05:30
Kovid Goyal
70a2ec517e
oops
2019-10-20 11:00:36 +05:30
Kovid Goyal
459e30d82f
PDF Output: Fix standard svg fullscreen image markup not working
2019-10-20 10:58:24 +05:30
Kovid Goyal
ac2d44e4dc
Clean up fs_images
2019-10-20 10:46:44 +05:30
Kovid Goyal
579049affd
PDF Output: Fix some books with full screen images failing to convert.
...
Fixes #1848701 [Private bug](https://bugs.launchpad.net/calibre/+bug/1848701 )
2019-10-20 10:13:26 +05:30
Kovid Goyal
205754891e
Cleaner viewer launch
2019-10-19 13:42:29 +05:30
Kovid Goyal
5e611db7db
Compile HTML preproc regexps on demand rather than at import time
2019-10-19 10:51:27 +05:30
Kovid Goyal
e5dc6b4002
Make the regexps used for pre-processing pdftohtml output more efficient
2019-10-19 10:03:21 +05:30
Kovid Goyal
2014e6520e
...
2019-10-18 20:29:28 +05:30
Kovid Goyal
1b0efe04d9
Viewer: use absolute file paths for books passed in on the command line.
...
This allows them to be re-opened via the Open Books screen even if the
viewer was launched from a different starting directory.
2019-10-18 18:52:34 +05:30
Kovid Goyal
65c4f2afa2
version 0.4.2
2019-10-18 08:49:15 +05:30
Kovid Goyal
a3f4736b4b
Metadata jacket: Fix <br> tags in the comments not being rendered correctly when inserting the comments into the jacket page. Fixes #1848327 [Imported metadata is truncated in conversion]( https://bugs.launchpad.net/calibre/+bug/1848327 )
2019-10-18 08:39:52 +05:30
Kovid Goyal
99ebcf838a
Make color scheme changing more robust
2019-10-18 08:08:59 +05:30
Kovid Goyal
ca1b3967b0
Fix #1848515 [Faile to compile translation file on 4.1.0]( https://bugs.launchpad.net/calibre/+bug/1848515 )
2019-10-17 19:51:32 +05:30
Kovid Goyal
c0a9270f0f
...
2019-10-17 16:44:01 +05:30
Kovid Goyal
997333f0b0
DRYer
2019-10-17 16:37:20 +05:30
Kovid Goyal
51fddd3415
Move book extraction out of Container constructor
2019-10-17 16:34:48 +05:30
Kovid Goyal
15d9fc23f2
FB2 Output: Speed up conversion of images and handle external links
...
Merge branch 'fb2-fixes' of https://github.com/PalmtopTiger/calibre
2019-10-17 16:17:57 +05:30
Kovid Goyal
bf3236db9b
...
2019-10-17 15:30:16 +05:30
Kovid Goyal
f8e4485bc3
Add a class to the footnote container
2019-10-17 15:26:29 +05:30
Kovid Goyal
609c8a2215
Edit book: Apply the same workaround for use of 100% instead of 100vh in full screen SVG images as is used in the viewer. This should give the same rendering as in the viewer, leading to less confusion.
...
I of course dont like implementing this kind of hackery, but...
2019-10-17 13:12:08 +05:30
Kovid Goyal
27d3a28a1d
Viewer: Don't map epub:type to ARIA role
...
Apparently the EPUB committee has decided not to phase out epub:type
after all, so keep it around. This way it can be used in namespaced
CSS stylesheets.
2019-10-17 12:23:59 +05:30
Kovid Goyal
7369171e33
Move spinner implementation into native code
...
Should make it more performant and allow drawing without
holding the GIL. Note that have not currently replaced the
actual python implementation as that would break running from source.
Will do that after the next release.
2019-10-17 11:39:41 +05:30
Kovid Goyal
6abbf2221e
Viewer: Fix an error when processing a CFI with an invalid text offset. Fixes #1848320 [E-book viewer - Error: Unhandled error]( https://bugs.launchpad.net/calibre/+bug/1848320 )
2019-10-16 18:26:08 +05:30
Kovid Goyal
95da08c893
Clean up error handling
2019-10-16 14:29:45 +05:30
Kovid Goyal
c5a48c8ae5
Viewer: Fix scrolling backwards to previous chapter not always scrolling to the end of the chapter, if the chapter loads external resources. Fixes #1847818 [Private bug]( https://bugs.launchpad.net/calibre/+bug/1847818 )
2019-10-16 09:38:20 +05:30