31298 Commits

Author SHA1 Message Date
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
Kovid Goyal
d87abcce3b
Viewer: Fix hang on books with namespaced attributes on <html> that do not belong to a known ebook namespace. Fixes #1846886 [New ebook viewer hangs on some large EPUB](https://bugs.launchpad.net/calibre/+bug/1846886) 2019-10-16 08:04:58 +05:30
Kovid Goyal
667d4586fd
Fix keyboard shortcuts not working after closing footnote popup 2019-10-16 07:14:31 +05:30
Kovid Goyal
04d3066594
Properly log FAKE_PROTOCOL failed requests 2019-10-16 07:12:37 +05:30
Kovid Goyal
df2756faa3
Sandboxed network requests must start with book/ 2019-10-16 07:03:33 +05:30
Kovid Goyal
a8bd8f806d
Viewer: Fix search history not persisting between viewer restarts. Fixes #1847976 [feature request: viewer 4 search history as in viewer 3](https://bugs.launchpad.net/calibre/+bug/1847976) 2019-10-16 06:57:32 +05:30
Kovid Goyal
9e9a863e19
Output time to prepare book in debug mode 2019-10-16 06:30:09 +05:30
Kovid Goyal
3bf9fe32ac
Micro-optimization 2019-10-16 06:26:27 +05:30
Kovid Goyal
bf18b7273f
Filter out <base> when rendering books 2019-10-16 06:19:28 +05:30
Kovid Goyal
7ca139a210
Fix loading of non-virtualized resources when html files are not in the book root 2019-10-16 06:16:33 +05:30
Kovid Goyal
47e69cb545
Only run the link regex over virtualized resources client side 2019-10-16 04:44:29 +05:30
Kovid Goyal
8c3c634650
... 2019-10-16 04:36:32 +05:30
Kovid Goyal
adad3b4d1f
Viewer: Fix rendering of books with mathematics failing 2019-10-16 04:34:57 +05:30
Kovid Goyal
504501de7f
Revert workaround for Qt Bug that caused calibre to not start full screen in windows 10 tablet mode
The bug has been fixed as of Qt 5.8 https://bugreports.qt.io/browse/QTBUG-56831
And maybe calling restoreGeometry() fter show will help with offscreen
positioning in multi-monitor setups.
2019-10-16 04:14:56 +05:30
Kovid Goyal
9868c1cc5e
Force reload of all books on next update
There have been a lot of changes to the viewer code
2019-10-15 21:30:09 +05:30
Kovid Goyal
a046eb67ea
Viewer: Dont virtualise resources
We dont need to virtualize since we can override network access. This
should improve individual HTML file loading performance a bit. Since we
dont need to replace virtualised links and load content as blobs
2019-10-15 21:27:17 +05:30
Kovid Goyal
6fb1eab8d7
... 2019-10-15 19:12:12 +05:30
Kovid Goyal
a1171d71fb
Better solution to avoid flash of unstyled text
Simply hide the iframe while loading
2019-10-15 18:40:11 +05:30
Kovid Goyal
d9284fe6ab
Separate miscellaneous transforms from virtualization 2019-10-15 18:03:56 +05:30
Kovid Goyal
07bd906363
Make inline style transformation its own re-useable function 2019-10-15 18:01:50 +05:30
Kovid Goyal
be58929e95
Clean up progress_frac reporting in flow mode 2019-10-15 11:58:58 +05:30
Kovid Goyal
d66ed41ef9
Viewer: Fix scrolling by screenfuls not working correctly in flow mode 2019-10-15 11:10:59 +05:30
Kovid Goyal
a1d51ea302
Various improvements to dark mode support
Now colors can be dynamically changed and more widgets
react appropriately. Also use err/ok indicator colors
that work in both light and dark mode
2019-10-15 10:36:07 +05:30