Commit graph

31278 commits

Author SHA1 Message Date
Kovid Goyal
73c69949df
Rename goto_bookpos -> goto_cfi 2019-10-26 16:56:30 +05:30
Kovid Goyal
eeab136034
oops 2019-10-26 16:23:52 +05:30
Kovid Goyal
b582bbd520
Dont pre-launch workers, instead launch all workers once container is ready
Makes a significant difference in the time to open small books on
windows
2019-10-26 15:57:26 +05:30
Kovid Goyal
efb2d424a7
Improve error reporting 2019-10-26 15:39:21 +05:30
Kovid Goyal
facc4045d4
Use pipe worker for the main render process 2019-10-26 15:39:20 +05:30
Kovid Goyal
8972d63efd
... 2019-10-26 15:39:20 +05:30
Kovid Goyal
e3adac0c51
Forgot another use of container.bookmark_data 2019-10-26 15:39:20 +05:30
Kovid Goyal
2d2ee3f85c
Use one less worker process 2019-10-26 15:39:20 +05:30
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
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
Kovid Goyal
5469beeeb6
Disable alternating row colors when using dark color themes as the alternate color Qt picks is pretty bad 2019-10-15 06:42:34 +05:30
Kovid Goyal
5b431a8c6a
Forgot to remove content load delay for testing 2019-10-15 06:25:13 +05:30
Kovid Goyal
f38a7d15ba
EPUB 2 metadata: Fix obfuscated fonts being broken when updating metadata if the file uses Adobe font obfuscation and the identifier with the key has an uppercase UUID scheme name. Fixes #1847890 [dc:identifier line being removed from content.opf](https://bugs.launchpad.net/calibre/+bug/1847890) 2019-10-15 06:21:28 +05:30
Kovid Goyal
0bf8898ca4
Viewer: prevent flash of unstyled text while loading individual HTML files 2019-10-15 05:25:54 +05:30
Kovid Goyal
dfdf3e113a
Viewer: Fix right clicking on margins not showing controls 2019-10-15 05:00:07 +05:30
Kovid Goyal
c0c6872249
Add a note about tapping to show controls 2019-10-15 04:25:13 +05:30
Charles Haley
91d571ffc7 Display lookup key and description in tooltips for custom column widgets in edit metadata. 2019-10-14 22:50:30 +01:00
Kovid Goyal
7733877cc9
Better fix for dark mode button text being black 2019-10-14 21:36:12 +05:30
Kovid Goyal
9c4bd9de0e
macOS: Fix for text in drop down boxes being black in dark mode 2019-10-14 21:18:37 +05:30
Kovid Goyal
30731ad4e3
When using a dark color scheme fix the link color everywhere not just in the book details 2019-10-14 21:01:46 +05:30
Kovid Goyal
420b2f65b4
Edit book: Fix a crash when editing CSS files caused by a behavior change in Qt 5.13. Fixes #1846760 [ebook editor crashes out when scrolling](https://bugs.launchpad.net/calibre/+bug/1846760)
Apparently, if a QTextFormat.FormatRange object is garbage collected by
python it is no longer safe to use a previously stored reference to it
QTextFormat object
2019-10-14 17:26:51 +05:30
Kovid Goyal
12485fef82
Viewer: Fix error while viewing books with a comment after a <meta> tag. Fixes #1847977 [strange problem with epub in viewer 4](https://bugs.launchpad.net/calibre/+bug/1847977) 2019-10-14 15:46:46 +05:30
Kovid Goyal
989e4de74c
Viewer: Dont generate covers for books that dont have a cover 2019-10-14 10:32:38 +05:30
Kovid Goyal
b20f1d3fd7
Viewer: Treat the first image in comics as the cover 2019-10-14 09:34:58 +05:30
Kovid Goyal
7a9e791506
Code to render books without an auto-generated cover 2019-10-14 09:05:55 +05:30
Kovid Goyal
cc8918d470
Content server: When adding books and a duplicate is suspected provide more information about what books match the duplicate 2019-10-14 07:49:51 +05:30
Kovid Goyal
dec7a51650
py3 compat 2019-10-13 09:40:49 +05:30
Kovid Goyal
5679a596d0
Viewer: Preselect text in search box when showing it. Fixes #1847677 [New Viewer Search](https://bugs.launchpad.net/calibre/+bug/1847677) 2019-10-11 07:12:19 +05:30
Kovid Goyal
b17b3f358d
Content server: Fix detection of iOS on iPAD with iOS 13 which defaults to desktop mode 2019-10-09 20:31:39 +05:30
Kovid Goyal
4a3df07974
Viewer: If the book has no ToC try to generate one from headings, if any. Fixes #1847277 [Book viewer don't display content of fb2](https://bugs.launchpad.net/calibre/+bug/1847277) 2019-10-09 20:20:18 +05:30
Kovid Goyal
02a9da1681
py3 compat 2019-10-09 18:19:28 +05:30
Kovid Goyal
74303fe6d8
Viewer: Restore print to PDF functionality 2019-10-09 17:30:41 +05:30
Kovid Goyal
5ea542b13c
Viewer: Improve rendering of comics. No blank pages after large images or after every image in multi-page mode. 2019-10-09 16:41:05 +05:30
Kovid Goyal
871b0386de
Hide loading overlay on book load failure 2019-10-09 16:36:58 +05:30
Kovid Goyal
7b1e665186
Viewer: Show nicer error message for DRMed books
Fixes #1847468 [Error when reading DRM protected file from amazon](https://bugs.launchpad.net/calibre/+bug/1847468)
2019-10-09 16:26:38 +05:30
Kovid Goyal
be146674de
Apparently layoutStyle() is deprecated 2019-10-09 15:01:32 +05:30
Kovid Goyal
83dd9c375d
Viewer: Fix a regression that broke creating new color schemes
Fixes #1847407 [Unhandled error when adding new color scheme](https://bugs.launchpad.net/calibre/+bug/1847407)
2019-10-09 14:32:27 +05:30
Kovid Goyal
21df277dc4
Viewer: Make it easier to use the bookmarks panel with only keyboard. Fixes #1847423 [[Feature] Make ebook viewer keyboard-friendly](https://bugs.launchpad.net/calibre/+bug/1847423) 2019-10-09 14:11:23 +05:30
Kovid Goyal
e2ded28390
Viewer: Set the classes calibre-viewer-paginated and calibre-viewer-scrolling on the <body> tag in Paged and Flow modes. This allows the User styles to target these modes, if needed. Fixes #1847427 [Request New Feature](https://bugs.launchpad.net/calibre/+bug/1847427) 2019-10-09 13:06:14 +05:30
Kovid Goyal
6f09624280
When calculating CFI in paged mode go column-by-column from left to right and in each column start form midpoint and expand outwards 2019-10-09 12:55:45 +05:30
Kovid Goyal
1ca6398471
Viewer: Also show book position in Goto list 2019-10-09 11:39:49 +05:30
Kovid Goyal
4a074eb2bf
Viewer: Fix preferences under Scrolling behavior not being saved correctly 2019-10-09 11:34:34 +05:30
Kovid Goyal
3faa52ee58
Viewer: Allow jumping to a book position, in addition to a CFI location via Go to->Location 2019-10-09 11:23:22 +05:30
Andrey Efremov
3e680ac307 FB2 Output: Merge ifs 2019-10-09 12:18:31 +07:00
Andrey Efremov
c42d2db421 FB2 Output: Handle external links 2019-10-09 12:13:25 +07:00
Kovid Goyal
1cdface5ad
Viewer: Fix remembered position sometimes off by one page in paged mode. Fixes #1847322 [Viewer opens to wrong page](https://bugs.launchpad.net/calibre/+bug/1847322) 2019-10-09 09:13:09 +05:30
Kovid Goyal
5d272e86e8
... 2019-10-09 09:10:51 +05:30
Kovid Goyal
a79c83cb9e
Viewer: Fix scrollbar showing up on initial book open even if disabled in preferences. Fixes #1847323 [Scrollbar shows even when disabled on book open](https://bugs.launchpad.net/calibre/+bug/1847323) 2019-10-09 07:43:18 +05:30
Kovid Goyal
0605ec0054
Viewer: restrict max size of margin page turn indicators to 25px rather than 75px 2019-10-08 22:43:20 +05:30
Kovid Goyal
acad92b5a3
Viewer: Fix SVG images that use xlink:href to refer to paths not being displayed. Note you will have to reload the book to see the fix. Fixes #1847181 [Private bug](https://bugs.launchpad.net/calibre/+bug/1847181) 2019-10-08 21:45:14 +05:30
Kovid Goyal
32382b7b37
Simplify loading overlay implementation 2019-10-08 21:31:27 +05:30
Kovid Goyal
29899bec68
Remove unused code 2019-10-08 19:32:40 +05:30
Kovid Goyal
c264cf7a21
Viewer: Dont flash the home page before loading a book if a book has been specified 2019-10-08 19:23:08 +05:30
Kovid Goyal
96ebc4bda3
Prevent loading overlay from slowing actual loading
The python GIL means quick pre-emption is too costly
2019-10-08 18:34:20 +05:30
Kovid Goyal
5385df337e
Viewer: Fix ctrl+m shortcut not working on windows 2019-10-08 18:08:51 +05:30
Kovid Goyal
88ed3546be
Viewer: Use Qt for errors and the loading spinner
Makes the UI more consistent with the rest of calibre.

Also, change the initial loading text depending on
whether the prepared book is already cached or not.
2019-10-08 15:42:14 +05:30
Andrey Efremov
e7175e802b FB2 Output: Remove section regexp what do nothing and rearrange regexps 2019-10-08 16:10:33 +07:00
Andrey Efremov
d7a4e10c60 FB2 Output: Revert some changes in regular expressions due to different behavior 2019-10-08 15:57:13 +07:00
Kovid Goyal
53ffa30767
... 2019-10-08 12:55:19 +05:30
Kovid Goyal
9fa545f5d9
Book details: Automatically adjust the link color when using a dark theme 2019-10-08 11:16:45 +05:30
Andrey Efremov
162d86429d FB2 Output: Ignore case flag is not required because the writer outputs only lowercase tag names 2019-10-08 12:19:02 +07:00
Andrey Efremov
cb45766216 FB2 Output: Put line breaks between paragraphs on a separate line 2019-10-08 12:16:35 +07:00
Andrey Efremov
3b8d769128 FB2 Output: Simplify regular expressions 2019-10-08 12:16:06 +07:00
Andrey Efremov
abe408bc39 FB2 Output: Dedent the header to position it on the same level as the body 2019-10-08 11:16:51 +07:00
Kovid Goyal
551c868899
Add macOS specific shortcuts for changing font size 2019-10-08 08:25:44 +05:30
Kovid Goyal
fd2eb6b6d8
Content server; Fix regression that caused series name in book details view not not be blue to indicate it is clickable 2019-10-08 08:24:12 +05:30
Kovid Goyal
77f240a4d3
version 4.1.0 2019-10-08 07:03:45 +05:30
Kovid Goyal
3c1c90ba7d
Refactor the viewer preferences
DRYer and add restore default/OK/Cancel buttons to all preferences
sections
2019-10-07 22:23:40 +05:30
Kovid Goyal
a2708e8ea2
Viewer: Also apply changes to preferences when pressing esc as there are a number of people who do this and then complain that the preferences dont stick, and I have only so much patience 2019-10-07 20:16:08 +05:30
Andrey Efremov
8b11947309 FB2 Output: Keep contents of empty tags if they placed between words 2019-10-07 17:48:17 +07:00
Kovid Goyal
b1ef8dc2fb
Right clicking in overlays should act like Esc 2019-10-07 16:16:23 +05:30
Kovid Goyal
b7af7c7df6
Fix dragging scrollbar slider not working when mouse leaves window 2019-10-07 16:09:12 +05:30
Kovid Goyal
696a93deea
Edit book: Font manager: Fix removing embedded font failing if @font-face rule has no src. Fixes #1847052 [Unable to remove font from font manager](https://bugs.launchpad.net/calibre/+bug/1847052) 2019-10-07 16:01:22 +05:30
Kovid Goyal
9ee5bc98c5
Automatically adjust scrollbar colors to match current color scheme 2019-10-07 13:38:13 +05:30
Kovid Goyal
63fda1fed3
Implement the scrollbar inside the web view
This allows it to be hidden naturally when displaying the overlay.
Also gives nice control when clicking in the gutter to scroll by page
2019-10-07 13:18:24 +05:30
Andrey Efremov
0c1ca17192 FB2 Output: Annotation should be wrapped in p 2019-10-07 12:28:49 +07:00
Andrey Efremov
d02966423c FB2 Output: Remove empty tags 2019-10-07 12:28:18 +07:00
Andrey Efremov
58352097ad FB2 Output: Proper join of XML parts 2019-10-07 12:27:00 +07:00
Andrey Efremov
62757eadff FB2 Output: Remove empty lines from header 2019-10-07 12:22:07 +07:00
Kovid Goyal
bb5b7b0253
Fix clicking on scrollbar arrows/gutter not scrolling text 2019-10-07 07:22:03 +05:30
Kovid Goyal
6b224f2a35
Use an all files filter when adding links unless treat as image is checked 2019-10-07 07:09:52 +05:30
Kovid Goyal
e6b44cf5fa
PDF Output: Ignore 4 byte differences in glyph sizes when merging. Fixes #1846982 [Conversion from ePub to PDF fails](https://bugs.launchpad.net/calibre/+bug/1846982) 2019-10-07 06:57:17 +05:30
Kovid Goyal
2207a86ea7
Better error message when there is a glyph mismatch 2019-10-07 06:41:14 +05:30
Kovid Goyal
c668fec87b
Edit metadata: Use a border rather than background color to indicate correct title and author sort values. Works better with dark themes. Fixes #1846967 [Private bug](https://bugs.launchpad.net/calibre/+bug/1846967) 2019-10-07 06:19:20 +05:30
Kovid Goyal
d84626293c
PDF Output: Fix a bug that prevented the first style property in the header or footer template from being applied 2019-10-06 23:07:56 +05:30
Kovid Goyal
77dc63cab9
Fix typo in dropbox fw version in kobo driver 2019-10-06 22:53:43 +05:30
Kovid Goyal
7e49092f17
Move scrollbar suppression into the load pipeline and only suppress until load is completed 2019-10-06 22:51:54 +05:30
Kovid Goyal
0ccedfdcc7
Viewer: Add an option to display a scrollbar 2019-10-06 22:36:57 +05:30
Kovid Goyal
42ae6dea61
... 2019-10-06 21:09:56 +05:30
Kovid Goyal
d3c0452d6f
Viewer: Hide the browser provided scrollbar that flashes momentarily on page load. Fixes #1846922 [Scroll bar in new viewer](https://bugs.launchpad.net/calibre/+bug/1846922) 2019-10-06 20:20:57 +05:30
Kovid Goyal
0e8d5d3793
Merge branch 'master' of https://github.com/davidfor/calibre 2019-10-06 19:19:32 +05:30
David
48d1bf424c Bump supported Kobo firmware version
Plus add a tag for Dropbox support. Will be adding something for that
later, but, won't harm anything at the moment.
2019-10-07 00:43:09 +11:00
Andrey Efremov
906b8773c5 FB2 Output: Remove extra space in short tags 2019-10-06 18:27:17 +07:00
Andrey Efremov
0f5b72b437 FB2 Output: Use short xlink namespace 2019-10-06 18:27:17 +07:00
Andrey Efremov
88159288a8 FB2 Output: Remove extra line breaks and prettify XML markup 2019-10-06 18:27:17 +07:00
Andrey Efremov
6071352d67 FB2 Output: Fix id for PNG images 2019-10-06 18:27:17 +07:00
Andrey Efremov
2ce345e5dd FB2 Output: Speed up image data splitting 2019-10-06 15:20:38 +07:00
Kovid Goyal
73077b2207
Same fix for bottom margin as well 2019-10-06 12:36:01 +05:30
Kovid Goyal
cd2049befd
Viewer: Fix clicking on margins causing keyboard shortcuts to not work until the main text is clicked on again 2019-10-06 12:34:11 +05:30
Kovid Goyal
87be626af7
Viewer: Add options to control scrolling using the mouse in paged mode.
Fixes #1846800 [Feature request: Add an option for mouse scroll to scroll by screen fulls rather than a single page](https://bugs.launchpad.net/calibre/+bug/1846800)
2019-10-06 12:32:22 +05:30
Kovid Goyal
db583073de
Viewer: Add a keyboard shortcut (Ctrl+m) to toggle between paged mode and flow mode 2019-10-06 08:58:19 +05:30
Kovid Goyal
91438dd8f1
Viewer: Fix a couple of bugs in flow mode. Scrolling to anchors was not working and remembering last read position was not working 2019-10-06 08:46:53 +05:30
Kovid Goyal
995e9ecd79
Viewer: Allow copying images by right clicking on them. Fixes #1846903 [Right Click Copy Image v 4](https://bugs.launchpad.net/calibre/+bug/1846903) 2019-10-06 08:08:10 +05:30
Kovid Goyal
5e25ebd6f1
Viewer: Fix text after comments not being rendered. Fixes #1846875 [text after HTML comment in epub is not displayed](https://bugs.launchpad.net/calibre/+bug/1846875) 2019-10-06 07:21:40 +05:30
Kovid Goyal
e93a01aa3d
Content server: Make the book size useable in custom book list templates. Fixes #1846839 [Custom book list template doesn't work with {size}](https://bugs.launchpad.net/calibre/+bug/1846839) 2019-10-05 12:50:05 +05:30
Kovid Goyal
a87c59e8c8
Viewer: Add a preference under Miscellaneous to allow only a single instance of the viewer 2019-10-05 12:35:23 +05:30
Kovid Goyal
fc9bbd7ca2
String changes 2019-10-05 12:09:53 +05:30
Kovid Goyal
34d3011726
Get rid of busy loop retries for connecting to inspector dock 2019-10-05 11:10:38 +05:30
Kovid Goyal
d2d188215c
Editor: Fix inspector not working when running from source. Fixes #1846819 [Editor Inspector doesn't work when running from source](https://bugs.launchpad.net/calibre/+bug/1846819) 2019-10-05 11:03:19 +05:30
Kovid Goyal
e0630cadd3
Viewer: Fix failing to open books if path to cache contains symbolic links. Fixes #1846834 [symlinked .cache cause calibre 4 reader fail](https://bugs.launchpad.net/calibre/+bug/1846834) 2019-10-05 10:27:48 +05:30
Kovid Goyal
e9250df828
Prevent esc key from closing the loading msg and the initial open book screen 2019-10-05 10:23:12 +05:30
Kovid Goyal
b72922e94c
Fix a regression that broke reading metadata from ODT files that do not have keywords. Fixes #1846828 [e-book reader does not read .odt files](https://bugs.launchpad.net/calibre/+bug/1846828) 2019-10-05 10:11:19 +05:30
Kovid Goyal
644071ff0c
Viewer: When restoring from fullscreen go back to maximized state if window was maximized when entering full screen. Fixes #1846753 [Window Size not retained when exiting from full screen in ebook-viewer](https://bugs.launchpad.net/calibre/+bug/1846753) 2019-10-05 10:07:46 +05:30
Kovid Goyal
46dbd9b24b
Use macOS specific modifier names in UI 2019-10-05 07:26:15 +05:30
Kovid Goyal
f542ac933d
Viewer: Add a configurable Quit shortcut 2019-10-05 06:59:58 +05:30
Kovid Goyal
13e2bf077f
Fix weirdness when closing customize individual shortcut panel 2019-10-04 22:44:01 +05:30
Kovid Goyal
95c71e3cd0
Viewer: Fix shortcut changes not being applied after pressing OK if shortcut list is closed by pressing Esc. Fixes #1846765 [ebook viewer preferences not saved](https://bugs.launchpad.net/calibre/+bug/1846765) 2019-10-04 22:39:09 +05:30
Kovid Goyal
67aca61d0c
Avoid zero-div 2019-10-04 20:00:59 +05:30
Kovid Goyal
8ef6938e03
Viewer: Allow showing the "position in book" as was displayed in the top left of the viewer in calibre 3 in the header and footer. Fixes #1846700 [Absolute position for book viewer](https://bugs.launchpad.net/calibre/+bug/1846700) 2019-10-04 19:55:17 +05:30
Kovid Goyal
cc54251368
Increase rename retries since we could have file sync programs in the mix as well 2019-10-04 18:51:56 +05:30
Kovid Goyal
f0b3091a18
Viewer: Fix loading progress screen sometimes getting stuck if changing pages rapidly with mouse wheel. Fixes #1846751 [New Viewer App gets stuck at "Loading next section from … please wait…" when scrolling](https://bugs.launchpad.net/calibre/+bug/1846751) 2019-10-04 18:50:45 +05:30
Kovid Goyal
7ca2f68e53
Comments editor: Workaround for Qt converting ids into anchors 2019-10-04 15:42:25 +05:30
Kovid Goyal
b55ef85fd7
Possible workaround for some windows machines where the viewer is getting access denied errors while renaming a directory 2019-10-04 15:20:58 +05:30
Kovid Goyal
2b536dd02f
Remove unused code 2019-10-04 13:29:08 +05:30
Kovid Goyal
b02eb9df01
Viewer: When there is empty text for an header footer section render it as blank instead of moving the remaining sections to the left 2019-10-04 13:12:52 +05:30
Kovid Goyal
749460cbfc
Better fixes for publish pipeline issues 2019-10-04 07:35:09 +05:30
Kovid Goyal
173c250162
version 4.0.0 2019-10-04 05:56:13 +05:30
Kovid Goyal
b6de056d57
Another epub:type mapping 2019-10-04 05:49:00 +05:30
Kovid Goyal
769cf0da51
Automatically migrate some epub|type selectors 2019-10-04 05:43:25 +05:30
Kovid Goyal
abe30ca2fb
Editor Live CSS: Dont fail totally if the stylesheet uses namespaced selectors
Fixes #1846538 [Private bug](https://bugs.launchpad.net/calibre/+bug/1846538)
2019-10-04 05:14:26 +05:30
Kovid Goyal
839919dbbc
pep8 2019-10-03 21:19:42 +05:30
Kovid Goyal
beb9727757
Add a function to get the outline from a PDF file 2019-10-03 18:12:45 +05:30
Kovid Goyal
1c22993e00
Move outline creation into its own file 2019-10-03 16:51:33 +05:30
Kovid Goyal
350494d016
After inserting a hyperlink restore text format
allows typing after inserting the link in the previous text style
2019-10-02 12:36:05 +05:30
Kovid Goyal
113be27352
Coments editor should not explicitly underline inserted links 2019-10-02 12:23:50 +05:30
Kovid Goyal
18398aafea
Insert hyperlink should preserve formatting of selected text 2019-10-02 12:21:16 +05:30
Kovid Goyal
c28cb6a1d2
Bump beta version 2019-10-01 10:23:24 +05:30
Kovid Goyal
3274ecfa83
Fix autoreload failure when appcache is not available 2019-10-01 10:07:21 +05:30
Kovid Goyal
b23b1adcf1
Browser viewer: Fix page turn not working on chrome for android at file boundaries
Apparently chrome has started returning fractional numbers for scroll
position
2019-10-01 10:03:48 +05:30
Tomasz Długosz
1433e3225c woblink store: fix link 2019-09-30 22:59:17 +00:00
Kovid Goyal
6bed097e07
Use a generated image cover for coverless EPUB files as well 2019-09-30 19:25:57 +05:30
Kovid Goyal
d9d20f0310
Fix penultimate cfi being saved on exit 2019-09-30 15:34:19 +05:30
Kovid Goyal
0ce7e45327
Better fix for ctrl+letter 2019-09-30 09:38:43 +05:30
Kovid Goyal
c034aeca4a
Workaround for ctrl+f/t not working on windows 2019-09-30 09:22:46 +05:30
Kovid Goyal
06a9c77ace
Keyboard shortcuts for next/previous section 2019-09-30 08:44:39 +05:30
Kovid Goyal
e1e9b023af
... 2019-09-30 08:32:03 +05:30
Kovid Goyal
5a66e094e3
Allow using Esc key to close modal dialogs 2019-09-30 08:30:08 +05:30
Kovid Goyal
47ddd8165c
Pass focus back to iframe after closing modal dialogs 2019-09-30 08:23:25 +05:30
Kovid Goyal
9ee721093e
Focus iframe when closing search box 2019-09-30 08:09:12 +05:30
Kovid Goyal
c67dacd033
Oops forgot output sentinel when getting result from forked compiler 2019-09-29 20:38:33 +05:30
Kovid Goyal
7647c265e1
... 2019-09-29 20:19:06 +05:30
Kovid Goyal
98fbdadd5c
Fix compilation of rapydscript in a process that cannot use webengine, such as the main calibre GUI 2019-09-29 20:14:20 +05:30
Kovid Goyal
234b25da4d
More viewer settings migrations fixes 2019-09-29 19:23:12 +05:30
Kovid Goyal
162d836d90
Remove double dots from hostnames when sending SMTP EHLO 2019-09-28 18:37:10 +05:30
Kovid Goyal
8d520400c5
... 2019-09-28 11:39:16 +05:30
Kovid Goyal
d126f52d4c
Allow using arrow keys n book details page to move between next/previous books
Fixes #1845672 [Use arrow keys to browse on calibre-server](https://bugs.launchpad.net/calibre/+bug/1845672)
2019-09-28 09:13:57 +05:30
Kovid Goyal
0638361025
String changes 2019-09-28 08:29:22 +05:30
Kovid Goyal
2a553f1b68
String change 2019-09-27 19:49:14 +05:30
Kovid Goyal
990dce338d
PDF Output: Fix footer sometimes appearing as header when no header is specified 2019-09-27 10:42:53 +05:30
Kovid Goyal
77a0a77723
Fix needing to restart viewer for changes in the background image 2019-09-27 09:11:06 +05:30
Eli Schwartz
26871566ce
Nexto store: remove use of type('') with better xpath
There's no need to run regular expressions on a str(list()) of lxml
element results, to see if anything contains a string -- simply use the
XPath grammar contains() and check if any results were returned.
2019-09-26 20:15:25 -04:00
Kovid Goyal
448b412c9d
Bump beta version 2019-09-26 15:25:38 +05:30
Kovid Goyal
6db937bca6
Dont use simple-link for next buttons 2019-09-26 13:26:29 +05:30
Kovid Goyal
0641384bc7
Server: Use overlay buttons as next/prev on boo details page
See #1845417 ([Enhancement] Book details on calibre-server)
2019-09-26 11:55:30 +05:30
Kovid Goyal
ff162a2b8f
Fix #1845416 [Repetition in error message](https://bugs.launchpad.net/calibre/+bug/1845416) 2019-09-26 09:30:32 +05:30
Kovid Goyal
d83698bdd2
Viewer: Allow using ctrl+wheel to change font size 2019-09-26 06:36:51 +05:30
Kovid Goyal
ddd5b0315e
Use calibre code rather than Qt to get font names. More robust. Appears
that on windows QRawFont chokes on OTF fonts with CFF outlines
2019-09-25 14:21:28 +05:30
Kovid Goyal
317a2b9a14
Viewer: Allow fading the background image by blending it with the background color 2019-09-25 11:25:40 +05:30
Kovid Goyal
7d6d5b71c6
Use a URL for the web viewer background image setting 2019-09-25 10:34:40 +05:30
Kovid Goyal
3b1753f134
Code to control background attachment 2019-09-25 10:09:38 +05:30
Kovid Goyal
ac6271d4c0
Merge branch 'patch-2' of https://github.com/zazaho/calibre-1 2019-09-25 06:08:01 +05:30
Kovid Goyal
0fb8b26f6e
Merge branch 'patch-1' of https://github.com/zazaho/calibre-1 2019-09-25 06:05:19 +05:30
Sacha
c68bb58ffa
Avoid error on python3 about str and bytes
When I launch the calibre application build for python3 I get two errors about expecting bytes not str and the other way around.
in src/calibre/devices/mtp/driver.py and src/calibre/devices/mtp/unix/driver.py
I found that theses edits remove the error.
2019-09-24 22:43:43 +02:00
Sacha
01a549eae6
Avoid error on python3 about str and bytes
When I launch the calibre application build for python3 I get two errors about expecting bytes not str and the other way around.
in src/calibre/devices/mtp/driver.py and src/calibre/devices/mtp/unix/driver.py
I found that theses edits remove the error.
2019-09-24 22:40:48 +02:00
Kovid Goyal
92ffeebb4a
Work on viewer setting for background image 2019-09-24 20:21:25 +05:30
Kovid Goyal
62d38e6706
Use a single class for blue links 2019-09-24 18:16:18 +05:30
Kovid Goyal
15cb1aaccc
Fix examples link not working in user stylesheets prefs 2019-09-24 17:52:32 +05:30
Kovid Goyal
d35e5c78ed
Set background color on ifrae rather than iframe contents 2019-09-24 17:05:27 +05:30
Kovid Goyal
0ed3a5e636
FB2 Output: Dont convert PNG images to JPEG as FB2 supports PNG
Fixes #1844911 [ebook-convert hangs when converting to FB2](https://bugs.launchpad.net/calibre/+bug/1844911)
2019-09-22 20:15:16 +05:30
Kovid Goyal
d9ee5cc326
Qt change makes ampersand visible in wizard welcome message 2019-09-22 18:29:16 +05:30
Kovid Goyal
119e6bfb7b
PDF Output: Fix typo that broke option to output toc in PDF is the last file in the input document is shorter than the generated toc 2019-09-22 18:15:54 +05:30
Kovid Goyal
db486c684f
Viewer: Show full path to book in the metadata display
Fixes #1843312 [ENHANCEMENT: ePub Reader metadata should show filepath for current open ePub book](https://bugs.launchpad.net/calibre/+bug/1843312)
2019-09-20 11:19:05 +05:30
Kovid Goyal
519c87d989
... 2019-09-20 08:30:35 +05:30
Kovid Goyal
7661bb00d1
Viewer: Add option under Page layout to control if the aspect ratio of the cover is preserved or not 2019-09-19 21:51:54 +05:30
Kovid Goyal
ae7a86e73b
... 2019-09-19 20:25:02 +05:30
Kovid Goyal
b4fe349df8
Use a generated image cover instead of a plain text one 2019-09-19 20:24:38 +05:30
Kovid Goyal
7bef47a452
Bump beta version
Stupid EPUB cover handling bug.
2019-09-19 18:31:01 +05:30
Kovid Goyal
4e6353468b
Fix small cover images not being vertically centered 2019-09-19 18:29:24 +05:30
Kovid Goyal
1e57c4180e
Proper fix for EPUB files without title pages 2019-09-19 18:16:09 +05:30
Kovid Goyal
4aa0ee3ccd
... 2019-09-19 15:35:48 +05:30
Kovid Goyal
ba89de0def
Add a fonts sub-menu to the comments editor context menu
Matches the v3 context menu
2019-09-19 15:28:32 +05:30
Kovid Goyal
268f36b8cc
Bump beta version 2019-09-19 13:26:51 +05:30
Kovid Goyal
c2e1e00f09
Set UI font size for viewer in pixels
Seems to match the actual font size in the main UI better on Linux with
both hidpi on and off.
2019-09-19 11:22:19 +05:30
Kovid Goyal
c60dbbda8f
EPUB3 metadata: Recognize a creator as an author even if his first role is not aut 2019-09-19 10:52:31 +05:30
Kovid Goyal
d459097e3f
Fix duplicate file read 2019-09-19 08:10:43 +05:30
Kovid Goyal
a31474804f
When inserting a link, preserve the currently selected text, if any 2019-09-19 08:06:26 +05:30
Kovid Goyal
3c2653eb33
typo 2019-09-18 14:11:59 +05:30
Kovid Goyal
997595dfd4
Viewer: Add option to hide mouse-over tooltips 2019-09-17 19:47:00 +05:30
Kovid Goyal
4d7045d92d
Also have right clicking hide the controls help 2019-09-17 19:22:23 +05:30
Kovid Goyal
0c5c492333
On macOS have to control-click since there is no right mouse button 2019-09-17 19:20:31 +05:30
Kovid Goyal
d1badedfc7
... 2019-09-17 18:22:05 +05:30
Kovid Goyal
2d9c0c709d
Viewer: Dont show a blank title page for books with not titlepage 2019-09-17 18:18:07 +05:30
Kovid Goyal
eb7ee8b9ef
Merge branch 'master' of https://github.com/davidfor/calibre 2019-09-17 17:52:46 +05:30
David
0cc6f3628c Bump dbversion in KoboTouch driver
A last minute change from Kobo bumped the database version in the release for the Libra H2O.
2019-09-17 22:19:23 +10:00
Kovid Goyal
721c3e3725
Edit Book: Show the font name in a tooltip when hovering over the font file in the File Browser 2019-09-17 17:40:25 +05:30
Kovid Goyal
9cc6842006
Allow setting remaining standard calibre metadata in ODT files 2019-09-17 15:29:28 +05:30
Kovid Goyal
d2eca068fc
Use lxml to set ODT metadata as well 2019-09-17 13:57:48 +05:30
Kovid Goyal
329f4d262e
Use lxml to read ODT metadata 2019-09-17 10:26:19 +05:30
Kovid Goyal
9790713949
Merge branch '1841506_Embed_MetaData_odt' of https://github.com/pieplu/calibre
Fixes #1841506 [Embed MetaData do not works with .odt files](https://bugs.launchpad.net/calibre/+bug/1841506)
2019-09-17 09:30:51 +05:30
Kovid Goyal
2336168f00
Fallback to keywords if there is no keyword 2019-09-17 09:10:51 +05:30
Alexis Piéplu
5dfbe32c13 Use encode('utf-8') insted str on odt ste_metadata
1841506
2019-09-16 22:55:50 -04:00
Alexis Piéplu
b4bdf7445b Fix typo keywords -> keyword
On get_metadata for odt file
1844210
2019-09-16 22:17:31 -04:00
Alexis Piéplu
10cd485766 Implement setMetadata for odt files
1841506
2019-09-16 22:02:20 -04:00
Kovid Goyal
d1248f8260
Fix the re_group() and eval() formatter functions not working 2019-09-17 07:03:47 +05:30
Kovid Goyal
370ed05c57
Fix series index always 1 in header/footer in the viewer 2019-09-16 21:05:33 +05:30
Kovid Goyal
6d2d0d8201
Skip the webengine build test on macOS build VM as it is flaky 2019-09-16 13:56:41 +05:30
Kovid Goyal
e0f5a5aab4
typo 2019-09-16 13:35:41 +05:30
Kovid Goyal
f680f10ead
typo 2019-09-16 13:31:09 +05:30
Kovid Goyal
523850de45
Fix translation warnings
Apparently msgfmt does not like unicode
2019-09-16 11:23:06 +05:30
Kovid Goyal
7f0469e044
Bump beta version 2019-09-16 11:15:39 +05:30
Kovid Goyal
9448bf3537
Since we can set the user agent font size in the standalone viewer, use that instead of overriding the font size of <html> 2019-09-16 11:13:45 +05:30
Kovid Goyal
15a512f3c8
Typo 2019-09-16 11:09:17 +05:30
Kovid Goyal
2ca39a8066
Fix images longer than a page being rendered on multiple pages instead of being rescaled
Apparently in newer blink engines bounding rect height is set to viewport
height for images even if they stretch over multiple columns.
2019-09-16 11:07:01 +05:30
Kovid Goyal
599d3dbddc
Only add element for user stylesheet if needed and add it to html rather
than body
2019-09-16 10:05:42 +05:30
Kovid Goyal
62810e5111
p3 compat: Dont compare None to float 2019-09-16 08:53:32 +05:30
Kovid Goyal
ad384c7fd8
Only set the users font size on <html> not <body>
There are apparently books out their that rely on being able to control
the font size of <body>.
2019-09-16 08:43:54 +05:30
Kovid Goyal
ecaa920e06
bypass cache on reload 2019-09-15 05:01:34 +05:30
Kovid Goyal
d8281cad6b
Setting the URL is not really a clear operation 2019-09-15 05:00:38 +05:30
Kovid Goyal
97087b89ab
Fix Inspector not working in the viewer 2019-09-15 04:56:44 +05:30
Kovid Goyal
277d1f8bad
Report blocked navigation requests 2019-09-15 04:52:00 +05:30
Kovid Goyal
b900419810
Micro optimization 2019-09-15 04:34:23 +05:30
Kovid Goyal
f3f244c41b
Indicate if the viewer code is being compiled or not 2019-09-14 08:58:36 +05:30
Kovid Goyal
c946f3239e
Bump beta version 2019-09-13 21:00:08 +05:30
Kovid Goyal
e95ab50cba
A demo plugin that shows how to run webengine from a user interface plugin 2019-09-13 20:55:06 +05:30
Kovid Goyal
737bfa44cb
Remove ViewerPlugin since the new viewer currently has no plugin architecture 2019-09-13 20:14:18 +05:30
Kovid Goyal
e8f5b51b6c
Also apply book details stylesheet to comments editor widget 2019-09-13 14:14:19 +05:30
Kovid Goyal
4d937e2d5d
Make refresh of book details panel after preferences work when there is no current index as well 2019-09-13 14:04:46 +05:30
Kovid Goyal
77141acd8b
Forgot to also use central css for details popup 2019-09-13 13:54:26 +05:30
Kovid Goyal
901f1b1b74
Centralize all CSS used by book details 2019-09-13 13:52:46 +05:30
Kovid Goyal
a37805bdc9
Add some UI to edit the book details CSS 2019-09-13 13:21:15 +05:30
Kovid Goyal
286f69bf9d
Fix get_debug_executable() 2019-09-13 11:33:44 +05:30
Kovid Goyal
61005add0d
Add support for run-local to calibre restart and run_calibre_debug 2019-09-13 10:28:26 +05:30
Kovid Goyal
5f090e1175
Make the page turn left/right margins less obstrusive 2019-09-13 09:13:38 +05:30
Kovid Goyal
25639069db
Show viewer controls help twice not once on first run 2019-09-13 09:13:38 +05:30
Kovid Goyal
1a442ec1d1
Only show th eloading spinner is loading takes more than 200ms 2019-09-13 09:13:38 +05:30
Kovid Goyal
8871de91f3
... 2019-09-13 09:13:37 +05:30
Kovid Goyal
1668365156
Micro optimization 2019-09-13 09:13:37 +05:30
Kovid Goyal
043f9a5b88
Workaround for error in scroll_to() on some japanese books with vertical text 2019-09-13 09:13:37 +05:30
Kovid Goyal
e93404f98a
Bump beta version 2019-09-13 09:13:37 +05:30
Kovid Goyal
bc54f9dbbb
Viewer: Fix rendering of fullscreen images using SVG markup 2019-09-13 09:13:37 +05:30
Kovid Goyal
400450f193
Fix down key in flow mode acting as up key 2019-09-13 09:13:37 +05:30
Kovid Goyal
d04234555d
Fix incorrect invocation of scrollBy 2019-09-13 09:13:37 +05:30
Kovid Goyal
cb5107472a
Allow titles to wrap in vertical layout of book details 2019-09-13 09:13:36 +05:30
Kovid Goyal
4b1a4861b8
Bump beta version 2019-09-13 09:13:36 +05:30
Kovid Goyal
86a1499ca7
Editor: Fix changes in CSS files not being picked up by the preview panel 2019-09-13 09:13:36 +05:30
Kovid Goyal
1d64be1032
Avoid error print on shutdown 2019-09-13 09:13:36 +05:30
Kovid Goyal
26b44e936c
Remove unused import 2019-09-13 09:13:36 +05:30
Kovid Goyal
9c0346bbb1
QTextBrowser should not require explicit link color override 2019-09-13 09:13:36 +05:30
Kovid Goyal
f069848639
Use the calibre user interface font family and size for viewer chrome 2019-09-13 09:13:36 +05:30
Kovid Goyal
25bc0dc6c5
Also make the Context Menu key a shortcut for showing viewer chrome 2019-09-13 09:13:36 +05:30
Kovid Goyal
d5bb19f8ec
Only import Pillow from PIL 2019-09-13 09:13:36 +05:30
Kovid Goyal
3a6ad1e03a
Add a build test for PIL JPEG support 2019-09-13 09:13:36 +05:30
Kovid Goyal
9607e1dc45
Bump beta version 2019-09-13 09:13:35 +05:30
Kovid Goyal
f83e99c9b5
Preserve scroll position in list of keyboard shortcuts when customizing a shortcut 2019-09-13 09:13:35 +05:30
Kovid Goyal
fe0cfc3bea
Use the book text colors for the loading screen
Makes it less obtrusive
2019-09-13 09:13:35 +05:30
Kovid Goyal
7198248ce9
Fix error when installing a new editor plugin because of web engine initialization 2019-09-13 09:13:35 +05:30
Kovid Goyal
1551df845c
Default to js version 6 when compiling RS 2019-09-13 09:13:35 +05:30
Kovid Goyal
bc6d38c8e3
Restore external RS compiler
While webengine is faster that duktape, the external compiler
still beats it.
2019-09-13 09:13:35 +05:30
Kovid Goyal
e8b21b2f29
Avoid a rare error when calculating CFI 2019-09-13 09:13:35 +05:30
Kovid Goyal
b6c3253fb9
Fix font settings for Editor preview not working 2019-09-13 09:13:35 +05:30
Kovid Goyal
a6097fab4a
Fix default font family type not being respected in the viewer settings 2019-09-13 09:13:35 +05:30
Kovid Goyal
2e50e22aa7
Also refuse to open .app urls 2019-09-13 09:13:35 +05:30
Kovid Goyal
85394a43a8
Fix comments not being displayed to the side in the horizontal book display panel
Thanks to limitations of Qt's HTML support we cant any longer have
comments text wrap around the rest of the metadata. Now the rest of the
metadata and the comments are display in 2:3 fixed columns
2019-09-13 09:13:35 +05:30
Kovid Goyal
1e96510e00
Fix manual not building 2019-09-13 09:13:34 +05:30
Kovid Goyal
b2b5395139
Windows: Fix library usage stats incorrect after import of data 2019-09-13 09:13:34 +05:30
Kovid Goyal
465195026b
Better test failure messages 2019-09-13 09:13:34 +05:30
Kovid Goyal
da4fc37684
Bump version number to beta level 2019-09-13 09:13:34 +05:30
Kovid Goyal
f10e278d74
PDF Output: Fix incorrect rendering when the same font is used at multiple sizes in the document
Chromium produces width arrays in the font descriptors that contain
different values for the same glyph in different font subsets, so rather
than merging the arrays, use the actual width values from the font.

As per the PDF spec the values in these arrays must match the underlying
font anyway.
2019-09-13 09:12:39 +05:30
Kovid Goyal
7366d8f57a
Check glyph definition sizes are identical when merging ttf fonts 2019-09-13 09:12:39 +05:30
Kovid Goyal
c77156d47b
Fix failing test on py3 2019-09-13 09:12:39 +05:30
Kovid Goyal
a3ac1900f6
Work on windows CI 2019-09-13 09:12:39 +05:30
Kovid Goyal
2f2b3cf638
Fix crashes when using webengine on windows with no native GUI
Tell Qt to use the software OpenGL renderer in headless mode on windows.
2019-09-13 09:12:39 +05:30
Kovid Goyal
e06094c458
Dont use the external rapydscript tool, since web engine is fast enough 2019-09-13 09:12:37 +05:30
Kovid Goyal
f233cbd7f8
Nicer failure check 2019-09-13 09:12:37 +05:30
Kovid Goyal
46f5413b34
Port the RS gettext funcs to use webengine 2019-09-13 09:12:37 +05:30
Kovid Goyal
1fbfffd772
Use range iteration for some more loops 2019-09-13 09:12:37 +05:30
Kovid Goyal
bc68e6e735
Fix crash when altering links in PDF
Cannot create new dest arrays while iterating over all objects, since
doing so alters the set of all objects
2019-09-13 09:12:37 +05:30
Kovid Goyal
d1ee01b421
Fix header/fotter + added toc not working 2019-09-13 09:12:37 +05:30
Kovid Goyal
9bea79b1bb
... 2019-09-13 09:12:37 +05:30
Kovid Goyal
0319ad478a
Use atomic_rename 2019-09-13 09:12:36 +05:30
Kovid Goyal
7f1519989f
Catch all exceptions when altering links 2019-09-13 09:12:36 +05:30
Kovid Goyal
8d0f0cef93
Fix compiler warnings 2019-09-13 09:12:36 +05:30
Kovid Goyal
a12da69ba9
Decrease min height for compress losslessly dialog 2019-09-13 09:12:36 +05:30
Kovid Goyal
9a1e55153b
... 2019-09-13 09:12:36 +05:30
Kovid Goyal
03ea489695
Use a fixed size hint for the inspector dock since it starts out empty 2019-09-13 09:12:36 +05:30
Kovid Goyal
9eba7a5f60
Ensure inspector dock connect works 2019-09-13 09:12:36 +05:30
Kovid Goyal
c238a249af
Remove last references to QT_PLUGIN_PATH 2019-09-13 09:12:36 +05:30
Kovid Goyal
89f5a0b183
Do not run the webengine build test on windows as it causes a crash on exit under cygwin+ssh 2019-09-13 09:12:36 +05:30
Kovid Goyal
cb091ea844
Suppress compiler warning for unused parameter 2019-09-13 09:12:35 +05:30
Kovid Goyal
994befe846
Properly port in_paged_mode 2019-09-13 09:12:35 +05:30
Kovid Goyal
22a1481bcd
De-vendor hunspell 2019-09-13 09:12:35 +05:30
Kovid Goyal
58f5577a13
Get rid of QT_PLUGIN_PATH on macOS 2019-09-13 09:12:35 +05:30
Kovid Goyal
e00835e5c6
Get the GUI apps working on macOS with proper doc integration 2019-09-13 09:12:35 +05:30
Kovid Goyal
dcca1a9ec6
Only redraw actual spinner items 2019-09-13 09:12:34 +05:30
Kovid Goyal
a7453e877a
Simplify launching of console utilities on macOS 2019-09-13 09:12:34 +05:30
Kovid Goyal
b8968a82f8
Fix PDF conversion failling when temp dir has symlinks 2019-09-13 09:12:34 +05:30
Kovid Goyal
133ed8968f
Add a plist to the utils bundle
Also move it to where it is easy to sign
2019-09-13 09:12:34 +05:30
Kovid Goyal
b5a16dc10c
Ensure webengine test does not hang 2019-09-13 09:12:34 +05:30
Kovid Goyal
22e3558a05
Move the utilities into their own bundle 2019-09-13 09:12:34 +05:30
Kovid Goyal
16ea6403a0
typo 2019-09-13 09:12:34 +05:30
Kovid Goyal
c7a2178d24
Handle links with a target in the standalone viewer 2019-09-13 09:12:34 +05:30
Kovid Goyal
566bfe6df2
Fix scroll by page always scrolling forward in flow mode 2019-09-13 09:12:34 +05:30
Kovid Goyal
fa93b0d605
... 2019-09-13 09:12:34 +05:30
Kovid Goyal
f4f29c84c0
... 2019-09-13 09:12:33 +05:30
Kovid Goyal
5e6623bcda
Show home page if opening book fails 2019-09-13 09:12:33 +05:30
Kovid Goyal
20f6152a95
... 2019-09-13 09:12:33 +05:30
Kovid Goyal
0f0df3b5e2
Get webengine loading in the binary build 2019-09-13 09:12:33 +05:30
Kovid Goyal
afd483f11a
Actions to copy text/URL and view image 2019-09-13 09:12:33 +05:30
Kovid Goyal
f70eed9da3
Add build test for Qt WebEngine 2019-09-13 09:12:32 +05:30
Kovid Goyal
921110eb46
Code to migrate old viewer preferences 2019-09-13 09:12:32 +05:30
Kovid Goyal
c1ac799c0b
Get Esc working in any panel 2019-09-13 09:12:32 +05:30
Kovid Goyal
36af3928b0
Dont respond to keypresses while the overlay is visible 2019-09-13 09:12:32 +05:30
Kovid Goyal
21f5fbdf1d
Make the controls help page nicer 2019-09-13 09:12:32 +05:30
Kovid Goyal
351bae75b0
Specialize controls help for standalone viewer 2019-09-13 09:12:32 +05:30
Kovid Goyal
8b62a6bcbb
Coupe of misc shortcuts 2019-09-13 09:12:32 +05:30
Kovid Goyal
e58a50e7ed
Shortcut for toggling fullscreen 2019-09-13 09:12:32 +05:30
Kovid Goyal
ece5180a80
Add shortcuts to change font size 2019-09-13 09:12:32 +05:30
Kovid Goyal
3d4dae9d08
Fix find not working backwards across loads 2019-09-13 09:12:32 +05:30
Kovid Goyal
5e05b450a3
Implement search shortcuts 2019-09-13 09:12:32 +05:30
Kovid Goyal
566855ed55
Shortcuts for UI panels 2019-09-13 09:12:32 +05:30
Kovid Goyal
1102216d9f
Get back and forward working in the standalone viewer 2019-09-13 09:12:31 +05:30
Kovid Goyal
a4f1b54421
Back/forward keyboard shortcuts 2019-09-13 09:12:31 +05:30
Kovid Goyal
e1ce4976e6
Update keyboard shortcuts when changed 2019-09-13 09:12:31 +05:30
Kovid Goyal
c106d48163
UI for changing keyboard shortcuts is done 2019-09-13 09:12:31 +05:30
Kovid Goyal
e91e414687
Work on preferences UI for keyboard shortcuts 2019-09-13 09:12:31 +05:30
Kovid Goyal
2523d6605e
Get rid of legacy keycodes mapping 2019-09-13 09:12:31 +05:30
Kovid Goyal
82fcdf6272
Refactor keyboard handling in the viewer
No longer uses deprecated APIs
2019-09-13 09:12:31 +05:30
Kovid Goyal
2548babf59
UI to manage lookup sources 2019-09-13 09:12:31 +05:30
Kovid Goyal
31118409ae
... 2019-09-13 09:12:31 +05:30
Kovid Goyal
37bde2c949
... 2019-09-13 09:12:31 +05:30
Kovid Goyal
755cf383a3
Only remove elements when doing a google dictionary search 2019-09-13 09:12:31 +05:30
Kovid Goyal
1f9ac958e2
Clean up dock creation 2019-09-13 09:12:31 +05:30
Kovid Goyal
ded9e3ef70
Word lookup now works 2019-09-13 09:12:30 +05:30
Kovid Goyal
3772cfbfba
Work on word lookup 2019-09-13 09:12:30 +05:30
Kovid Goyal
5503ad9d12
Make currently selected text available to the overlay 2019-09-13 09:12:30 +05:30
Kovid Goyal
b480086d00
Ensure iframe is focused after controls help is shown 2019-09-13 09:12:30 +05:30
Kovid Goyal
102be318d8
Ensure iframe has focus after overlay is closed
Also use the regular overlay mechanism for metadata and
location overlays
2019-09-13 09:12:30 +05:30
Kovid Goyal
782c088bb9
Properly remove all attributes when unserializing HTML from the existin
HTML, HEAD and BODY tags
2019-09-13 09:12:30 +05:30
Kovid Goyal
dc887b9780
Fix delete book invocation 2019-09-13 09:12:30 +05:30
Kovid Goyal
59b6c17ac2
Implement --open-at 2019-09-13 09:12:30 +05:30
Kovid Goyal
031b14fc78
Implement Go to location (with CFI) 2019-09-13 09:12:30 +05:30
Kovid Goyal
cd71b471e1
Implement --continue 2019-09-13 09:12:30 +05:30
Kovid Goyal
4476d63b27
Add an action to show the chrome dev tools in the viewer 2019-09-13 09:12:30 +05:30
Kovid Goyal
5ba3eb19db
Fix display of basic metadata in standalone viewer 2019-09-13 09:12:30 +05:30
Kovid Goyal
95aa3a50c2
Implement opening of local ebook files 2019-09-13 09:12:29 +05:30
Kovid Goyal
48a2990600
Set viewer window title 2019-09-13 09:12:29 +05:30
Kovid Goyal
7cfe60f705
Implement remaining two misc prefs 2019-09-13 09:12:29 +05:30
Kovid Goyal
d9c1eb14d7
Implement preference to restore window geometry 2019-09-13 09:12:29 +05:30
Kovid Goyal
95dc6a06ad
UI for misc settings 2019-09-13 09:12:29 +05:30
Kovid Goyal
c14adff36e
Add a restore defaults button to font preferences 2019-09-13 09:12:29 +05:30
Kovid Goyal
7914ad4244
UI for viewer font settings 2019-09-13 09:12:29 +05:30
Kovid Goyal
6100a4eeee
Cleanup insertion of translations data 2019-09-13 09:12:29 +05:30
Kovid Goyal
eeca114876
Wire up the bookmarks panel fully 2019-09-13 09:12:29 +05:30
Kovid Goyal
13be0d6712
... 2019-09-13 09:12:29 +05:30
Kovid Goyal
332f1e7e63
Fix popup footnotes not working in viewer 2019-09-13 09:12:29 +05:30
Kovid Goyal
45fa8525ba
Implement toggling of bookmarks panel 2019-09-13 09:12:29 +05:30
Kovid Goyal
d97db810c0
Start work on bookmarks panel 2019-09-13 09:12:28 +05:30
Kovid Goyal
34f48e00d2
... 2019-09-13 09:12:28 +05:30
Kovid Goyal
63cac76d80
Code to sort CFIs in JS 2019-09-13 09:12:28 +05:30
Kovid Goyal
f6371bce85
DRYer 2019-09-13 09:12:28 +05:30
Kovid Goyal
4f486558de
Add translations for the viewer interface 2019-09-13 09:12:28 +05:30
Kovid Goyal
0c7bcb0f8c
Implement full screen 2019-09-13 09:12:28 +05:30
Kovid Goyal
146b5dc6e3
Show the current ToC node in bold 2019-09-13 09:12:28 +05:30
Kovid Goyal
39d08d70fa
Disable cocoa's window tabbing and special menu items 2019-09-13 09:12:28 +05:30
Kovid Goyal
08081eaebb
Implement searching and clicking in the ToC 2019-09-13 09:12:28 +05:30
Kovid Goyal
02d8563efc
Work on adding an external dockable ToC panel 2019-09-13 09:12:28 +05:30
Kovid Goyal
98ecf220e6
Get changing font size and colors working 2019-09-13 09:12:28 +05:30
Kovid Goyal
9edb593773
Move forward_gesture() to ui_operations 2019-09-13 09:12:28 +05:30
Kovid Goyal
377b90ea0d
Implement reloading of book 2019-09-13 09:12:27 +05:30
Kovid Goyal
b2be6727f6
Load book data 2019-09-13 09:12:27 +05:30
Kovid Goyal
8b8bec6e6a
Get calibre-debug -w working again 2019-09-13 09:12:27 +05:30
Kovid Goyal
bb03370e5a
... 2019-09-13 09:12:27 +05:30
Kovid Goyal
cbd40617f3
Use short lines when serializing bookmarks 2019-09-13 09:12:27 +05:30
Kovid Goyal
563b926e4b
Store annotations in EPUB files 2019-09-13 09:12:27 +05:30
Kovid Goyal
bc8fdc4ced
Code to update cached conversions 2019-09-13 09:12:27 +05:30
Kovid Goyal
55fbc89eb6
Slow an initial load spinner while book is being rendered 2019-09-13 09:12:27 +05:30
Kovid Goyal
67fcb5345d
DRYer 2019-09-13 09:12:27 +05:30
Kovid Goyal
a38defca58
Implement loading of annotations from multiple sources 2019-09-13 09:12:27 +05:30
Kovid Goyal
742f322f89
Implement save/restore of last read position 2019-09-13 09:12:27 +05:30
Kovid Goyal
2eefa97a1d
When displaying book, ensure the iframe has focus 2019-09-13 09:12:27 +05:30
Kovid Goyal
85b8ee0130
Use the newer technique for setting app uid 2019-09-13 09:12:26 +05:30
Kovid Goyal
8cb9dc1ca1
py3: Fix compilation of viewer code 2019-09-13 09:12:26 +05:30
Kovid Goyal
cd64459718
Fix errors reported in the console for listeners that use preventDefault() 2019-09-13 09:12:26 +05:30
Kovid Goyal
84c8544e14
Cleanup python str -> podofo str 2019-09-13 09:12:26 +05:30
Kovid Goyal
bc4c988fce
typo 2019-09-13 09:12:26 +05:30
Kovid Goyal
66eebb954d
Fix building on py2 2019-09-13 09:12:26 +05:30
Kovid Goyal
e4c763d23e
Add support for maths to PDF output 2019-09-13 09:12:26 +05:30
Kovid Goyal
0f02312390
De-dup images in the PDF 2019-09-13 09:12:26 +05:30
Kovid Goyal
bdebe91156
Spped up fonts_are_identical 2019-09-13 09:12:26 +05:30
Kovid Goyal
e77df26174
Fix merging of loca tables 2019-09-13 09:12:26 +05:30
Kovid Goyal
dd5961af10
Write the loca table in optimum format
Also update the head and maxp tables when subsetting
2019-09-13 09:12:26 +05:30
Kovid Goyal
7b6dc6eed9
Dont bother merging identical TrueType fonts, simply pick one and discard the rest 2019-09-13 09:12:25 +05:30
Kovid Goyal
bf602f48ed
Detect font usage inside XObjects as well 2019-09-13 09:12:25 +05:30
Kovid Goyal
c842a82a0f
When replacing font references do it in XObjects as well 2019-09-13 09:12:25 +05:30
Kovid Goyal
227679985f
Implement imposing headers/footers onto their target pages 2019-09-13 09:12:25 +05:30
Kovid Goyal
848d91c6d8
Hide overflow from headers/footers 2019-09-13 09:12:25 +05:30
Kovid Goyal
b8dc1d791c
Dont use iframes for header/footers
This breaks backwards compat with javascript, but backwards compat is
not really preserved anyway. Much better performance without iframes
2019-09-13 09:12:25 +05:30
Kovid Goyal
e64b8b11fb
Ensure no resources are loaded from outside the container 2019-09-13 09:12:25 +05:30
Kovid Goyal
8fcd240844
Dont need settle_time for header/footer rendering 2019-09-13 09:12:25 +05:30
Kovid Goyal
93b5adacdb
Add support for _SECTION_ in templates 2019-09-13 09:12:25 +05:30
Kovid Goyal
4e3e0f8461
Work on adding headers/footers 2019-09-13 09:12:25 +05:30
Kovid Goyal
316d0c35a1
... 2019-09-13 09:12:25 +05:30
Kovid Goyal
b6c8d9da5e
Dont bother hashing object numbers, just use them directly as the hash 2019-09-13 09:12:25 +05:30
Kovid Goyal
e080435407
Just use size as hash 2019-09-13 09:12:24 +05:30
Kovid Goyal
66b7037cd2
Deduplicate Type3 glyph definitions 2019-09-13 09:12:24 +05:30
Kovid Goyal
32d483b3ce
Cleaner exception handling 2019-09-13 09:12:24 +05:30
Kovid Goyal
157c5a1cb7
py3 porting 2019-09-13 09:12:24 +05:30
Kovid Goyal
6057bcbb5a
Also delete DescendantFonts of Type0 fonts 2019-09-13 09:12:24 +05:30
Kovid Goyal
7f3bd476d3
Add support for removing unused Type3 fonts as well 2019-09-13 09:12:24 +05:30
Kovid Goyal
470193f222
Restore the --uncompressed-pdf option 2019-09-13 09:12:24 +05:30
Kovid Goyal
0d1b99a4a4
Implement merging of cmaps 2019-09-13 09:12:24 +05:30
Kovid Goyal
b573c33d1c
Merging fonts now works for truetype fonts 2019-09-13 09:12:24 +05:30
Kovid Goyal
c383a2ce25
Add a tooltip documenting the use of the custom URL field 2019-09-13 09:12:24 +05:30
Kovid Goyal
d304e08ec1
Code to merge W arrays 2019-09-13 09:12:24 +05:30
Kovid Goyal
d994cf7895
Work on merging fonts 2019-09-13 09:12:24 +05:30
Kovid Goyal
929f65ecf2
Optionally get font data when listing fonts 2019-09-13 09:12:23 +05:30
Kovid Goyal
0705abf946
Convert individual HTML files separately
Merge fonts instead.
2019-09-13 09:12:23 +05:30
Kovid Goyal
19ca8d8bd8
Couple more PDF utilities 2019-09-13 09:12:23 +05:30
Kovid Goyal
4bf5b9c755
Use a namedtuple for margins
Makes it hashable
2019-09-13 09:12:23 +05:30
Kovid Goyal
b2472ea80a
Fix link updating not working 2019-09-13 09:12:23 +05:30
Kovid Goyal
6a56d253dc
Make AnchorLocation mutable 2019-09-13 09:12:23 +05:30
Kovid Goyal
4a362c31b0
Dont load calibre fonts since webengine does not use them anyway 2019-09-13 09:12:23 +05:30
Kovid Goyal
6caf7cf77a
Remove unused fonts from generated PDF 2019-09-13 09:12:23 +05:30
Kovid Goyal
24a344546e
DRYer 2019-09-13 09:12:23 +05:30
Kovid Goyal
4132a874d9
Just use a space char for links 2019-09-13 09:12:23 +05:30
Kovid Goyal
1e9517f40f
When listing fonts check if they are used 2019-09-13 09:12:23 +05:30
Kovid Goyal
dfc09ede98
Get the tests to pass with webengine 2019-09-13 09:12:22 +05:30
Kovid Goyal
a528cef0ee
py3 fixes 2019-09-13 09:12:22 +05:30
Kovid Goyal
10e5d3c486
Code to get used fonts in a page 2019-09-13 09:12:22 +05:30
Kovid Goyal
c4e3fda682
Code to list fonts in a PDF file 2019-09-13 09:12:22 +05:30
Kovid Goyal
e575be49e3
Add support for page number mapping 2019-09-13 09:12:22 +05:30
Kovid Goyal
43d7e2119a
Implement printable ToC for PDF Output 2019-09-13 09:12:22 +05:30
Kovid Goyal
089789dd19
Report progress in PDF text output plugin 2019-09-13 09:12:22 +05:30
Kovid Goyal
9f87cd7f99
Add a note about using page margins from the input document 2019-09-13 09:12:22 +05:30
Kovid Goyal
974070ef93
Log toc entry resolution failures 2019-09-13 09:12:22 +05:30
Kovid Goyal
32e83987d6
PDF Outline generation now works 2019-09-13 09:12:22 +05:30
Kovid Goyal
39dae008c2
Use PdfDestination to create destinations 2019-09-13 09:12:22 +05:30
Kovid Goyal
27c200ea8d
Run conversion of each margin group to PDF in parallel 2019-09-13 09:12:22 +05:30
Kovid Goyal
f0584b8fdb
Get document links working when PDF is generated in parts 2019-09-13 09:12:21 +05:30
Kovid Goyal
7b03c7567c
Some TODOs 2019-09-13 09:12:21 +05:30
Kovid Goyal
0cebe16938
Get anchor locations from PDF segments 2019-09-13 09:12:21 +05:30
Kovid Goyal
600f71fda6
Fix preview going to top anchor not working 2019-09-13 09:12:21 +05:30
Kovid Goyal
5067454aa4
PDF Output: Add support for document margins 2019-09-13 09:12:21 +05:30
Kovid Goyal
19fc96cb31
Remove no longer implementable option 2019-09-13 09:12:21 +05:30
Kovid Goyal
6814d9e424
Report progress writing images 2019-09-13 09:12:21 +05:30
Kovid Goyal
56a3427b99
Use PDFStream to set metadata for image PDFs
No need to reparse via PoDoFo
2019-09-13 09:12:21 +05:30
Kovid Goyal
22ba6c3ab7
Pass JPEG images unmodified when creating PDF image pages 2019-09-13 09:12:21 +05:30
Kovid Goyal
4815c6167e
Use the calibre PDF engine for image to PDF conversion
Will allow us to pass through JPG images unmodified
2019-09-13 09:12:21 +05:30
Kovid Goyal
8029b3cc83
Code to add cover to textual PDF output 2019-09-13 09:12:21 +05:30
Kovid Goyal
6c78ae2105
Nicer page break insertion 2019-09-13 09:12:20 +05:30
Kovid Goyal
87b86d86a8
Implement setting metadata in textual PDFs 2019-09-13 09:12:20 +05:30
Kovid Goyal
b25766f6aa
Basic PDF output works 2019-09-13 09:12:20 +05:30
Kovid Goyal
4abfcc46ab
Implement PDF Output font options 2019-09-13 09:12:20 +05:30
Kovid Goyal
d52134a6cd
Move Qt initialization to earlier in the conversion pipeline 2019-09-13 09:12:20 +05:30
Kovid Goyal
9315b2bec4
Use full page mode when printing images to PDF 2019-09-13 09:12:20 +05:30
Kovid Goyal
4ee889d3d9
py3 compat 2019-09-13 09:12:20 +05:30
Kovid Goyal
f4941219b9
Code to extract anchor positions from PDF files generated by web engine 2019-09-13 09:12:20 +05:30
Kovid Goyal
c8619893e0
remove unused code 2019-09-13 09:12:20 +05:30
Kovid Goyal
7803f3de36
Rename viewer2 to viewer 2019-09-13 09:12:20 +05:30
Kovid Goyal
8634fb30f6
Set metadata when outputting comic PDF 2019-09-13 09:12:20 +05:30
Kovid Goyal
0470df53d5
Make the PoDoFo metadata setting code re-useable 2019-09-13 09:12:19 +05:30
Kovid Goyal
b5b0891421
Start work on porting the PDF output plugin to use web engine 2019-09-13 09:12:19 +05:30
Kovid Goyal
b7e57597a3
Implement context menu for comments editor 2019-09-13 09:12:19 +05:30
Kovid Goyal
8abe395507
Implement support for images and links 2019-09-13 09:12:19 +05:30
Kovid Goyal
ba28b2e5f7
Make the block style actions checkable
Also use the same values for margins as used by Qt
2019-09-13 09:12:19 +05:30
Kovid Goyal
53caa824cf
Implement foreground 2019-09-13 09:12:19 +05:30
Kovid Goyal
35e531a737
Implement the block alignment actions 2019-09-13 09:12:19 +05:30
Kovid Goyal
5ac8d64c55
Implement underline and strikethrough 2019-09-13 09:12:19 +05:30
Kovid Goyal
fcb72c0075
Make the list actions toggles 2019-09-13 09:12:19 +05:30
Kovid Goyal
9c5aaade6f
Implement bold and italic toggles 2019-09-13 09:12:19 +05:30
Kovid Goyal
93fc64184e
DRYer 2019-09-13 09:12:19 +05:30
Kovid Goyal
04d58d6877
Implement insertion of <hr> 2019-09-13 09:12:19 +05:30
Kovid Goyal
77e2524174
Use <s> for strikethrough 2019-09-13 09:12:18 +05:30
Kovid Goyal
356f65cd5b
Remove format should work even with no selection 2019-09-13 09:12:18 +05:30
Kovid Goyal
a737b0e786
Use implicit styling for character styles where possible 2019-09-13 09:12:18 +05:30
Kovid Goyal
dca67dae61
Cleanup markup produced by QTextEdit
Also use the same technique for headings as used by
Qt itself.
2019-09-13 09:12:18 +05:30
Kovid Goyal
eee6720f99
Implement block formatting 2019-09-13 09:12:18 +05:30
Kovid Goyal
5cba1261f5
Implement text-indent 2019-09-13 09:12:18 +05:30
Kovid Goyal
badb775611
Implement super/sub-script 2019-09-13 09:12:18 +05:30
Kovid Goyal
ed843864a0
Implement list support 2019-09-13 09:12:18 +05:30
Kovid Goyal
943f5c00b1
Top row of comments editor implemented 2019-09-13 09:12:18 +05:30
Kovid Goyal
69ad2e2984
Get rid of remaining mainFrame references 2019-09-13 09:12:18 +05:30
Kovid Goyal
4ae788561b
... 2019-09-13 09:12:18 +05:30
Kovid Goyal
f410ca5e78
Implement clear 2019-09-13 09:12:17 +05:30
Kovid Goyal
25eb65e156
Work on replacing webkit in the comments editor 2019-09-13 09:12:17 +05:30
Kovid Goyal
371e5f9813
... 2019-09-13 09:12:17 +05:30
Kovid Goyal
9805f3a644
DRYer 2019-09-13 09:12:17 +05:30
Kovid Goyal
070ad5351e
Remove old viewer and coffeescript and viewer resources
Since the PDF output code is also going to be replaced, none
of this is required.
2019-09-13 09:12:17 +05:30
Kovid Goyal
2224f8e7ae
Ensure hang timer is stopped 2019-09-13 09:12:17 +05:30
Kovid Goyal
ff8965d510
Make embedded compiler behave more like external one 2019-09-13 09:12:17 +05:30
Kovid Goyal
055c2a9f2f
Ensure rendering of HTML does not hang 2019-09-13 09:12:17 +05:30
Kovid Goyal
d14acdaf67
py3: Port one more execfile() 2019-09-13 09:12:16 +05:30
Kovid Goyal
82083ddbb8
Drop the dependency on dukpy
The dukpy tests are failing on windows with VS 2017. Instead use Web
Engine to compile rapydscript code, when the rapydscript binary is not
present.
2019-09-13 09:12:16 +05:30
Kovid Goyal
a6576f0eff
LRF Output: Disable the table as image option
Implementing it using WebEngine is too painful and LRF is a useless
format anyway.
2019-09-13 09:12:16 +05:30
Kovid Goyal
6f86896da8
Dont use WebKit to render HTML for EPUB covers 2019-09-13 09:12:16 +05:30
Kovid Goyal
27798beaf6
Use a separate process for the ToC Editor from the main GUI
This is needed because the main GUI does not use web engine
2019-09-13 09:12:16 +05:30
Kovid Goyal
a304b67ce3
Remove WebKit from the ToC Editor 2019-09-13 09:12:16 +05:30
Kovid Goyal
e3fd6f9bff
Do not use WebKit to display book details
We are phasing out WebKit
2019-09-13 09:12:16 +05:30
Kovid Goyal
27c5324269
viewer2: Make serialization of book metadata more robust 2019-09-13 09:12:16 +05:30
Kovid Goyal
188c59b6e8
py3: webengine misc fixes 2019-09-13 09:12:16 +05:30
Kovid Goyal
1eaef1fe3a
py3: base64 port 2019-09-13 09:12:15 +05:30
Kovid Goyal
85fcea41fb
Finish porting of web store dialog to QtWebEngine 2019-09-13 09:12:15 +05:30
Kovid Goyal
c8e78749eb
Start work on migrating get books internal browser to web engine 2019-09-13 09:12:15 +05:30
Kovid Goyal
581c5d8988
Remove unneccessary reference to QWebView in .ui file 2019-09-13 09:12:15 +05:30
Kovid Goyal
47d2364a80
Explicitly use system proxy in QNetwork 2019-09-13 09:12:15 +05:30
Kovid Goyal
9c897eb926
Some more iteritems fixes 2019-09-13 09:12:15 +05:30
Kovid Goyal
08dfee0766
Register the clbr: fake network scheme with web engine 2019-09-13 09:12:15 +05:30
Kovid Goyal
289c42b87f
Make the current CFI available in python 2019-09-13 09:12:15 +05:30
Kovid Goyal
2c15434bab
DRYer 2019-09-13 09:12:15 +05:30
Kovid Goyal
1ccc979081
Use new mathjax location in viewer2 2019-09-13 09:12:15 +05:30
Kovid Goyal
f990929bef
Add code to handle unpatched MathJax 2019-09-13 09:12:14 +05:30
Kovid Goyal
e4e313f1d6
Proper fix for random crashes 2019-09-13 09:12:14 +05:30
Kovid Goyal
46c646e49d
Ensure the QWebEngineProfile has a parent 2019-09-13 09:12:14 +05:30
Kovid Goyal
a3ac8282d4
Fix loading of mathjax files 2019-09-13 09:12:14 +05:30
Kovid Goyal
bd99a17186
Back to loading mathjax via blob urls
Fucking stupid Content Security Policy
2019-09-13 09:12:14 +05:30
Kovid Goyal
8d27d68dff
Simplify loading of MathJax files 2019-09-13 09:12:14 +05:30
Kovid Goyal
c64349dc6b
... 2019-09-13 09:12:14 +05:30
Kovid Goyal
57a4f1c91d
Implement loading of mathjax files 2019-09-13 09:12:14 +05:30
Kovid Goyal
4a721d36a5
Load UI css at startup 2019-09-13 09:12:13 +05:30
Kovid Goyal
03f1a3eb48
Store a reference to the host widget 2019-09-13 09:12:13 +05:30
Kovid Goyal
4f87ea3ccc
Also serialize cover when rendering books for viewer 2019-09-13 09:12:13 +05:30
Kovid Goyal
56baf848fc
Make the Inspector dock widget work 2019-09-13 09:12:13 +05:30
Kovid Goyal
fa23f3d43f
Add a dock for the inspector 2019-09-13 09:12:13 +05:30
Kovid Goyal
c4295355a2
... 2019-09-13 09:12:13 +05:30
Kovid Goyal
8234dc5436
Load HTML resources for viewer 2019-09-13 09:12:13 +05:30
Kovid Goyal
f721d49e32
Loading resources now works 2019-09-13 09:12:13 +05:30
Kovid Goyal
a2fd1ca90f
... 2019-09-13 09:12:13 +05:30
Kovid Goyal
387b5b2ed5
Implement get_file() 2019-09-13 09:12:13 +05:30
Kovid Goyal
da04475ff1
Also load metadata when loading manifest 2019-09-13 09:12:13 +05:30
Kovid Goyal
d62024d1b1
Fix error reporting in the new viewer 2019-09-13 09:12:12 +05:30
Kovid Goyal
783ff58129
Implement basic settings storage for new viewer 2019-09-13 09:12:12 +05:30
Kovid Goyal
b862af3844
More work on the new viewer 2019-09-13 09:12:12 +05:30
Kovid Goyal
8b0cdbad13
Connect up the Qt bridge in the viewer 2019-09-13 09:12:12 +05:30
Kovid Goyal
25ef13c6ee
... 2019-09-13 09:12:12 +05:30
Kovid Goyal
b83a299bfd
Remove call to read_data() as it no longer exists 2019-09-13 09:12:12 +05:30
Kovid Goyal
9b3d5d486b
Work on reafactoring read_book module to make it useable in standalone viewer 2019-09-13 09:12:12 +05:30
Kovid Goyal
953734320b
... 2019-09-13 09:12:12 +05:30
Kovid Goyal
6e14daac89
Infrastructure for loading viewer js 2019-09-13 09:12:12 +05:30
Kovid Goyal
7b75c67e15
More work on the new viewer 2019-09-13 09:12:12 +05:30
Kovid Goyal
559adc51a2
Basic web view implementation for the new viewer 2019-09-13 09:12:11 +05:30
Kovid Goyal
f6edb4de07
Make cache expiring code a little more robust 2019-09-13 09:12:11 +05:30
Kovid Goyal
521181280b
Try twice to delete cache entries on windows
Thanks to the idiotic mandatory file locking, we can never be sure that
some stupid windows service like an antivirus/filesync program has not locked
the cache files.
2019-09-13 09:12:11 +05:30
Kovid Goyal
59b9357c0c
Add tests for the new viewer cache 2019-09-13 09:12:11 +05:30
Kovid Goyal
67cce4e563
Caching system for conversion of books into useable form in the new viewer 2019-09-13 09:12:11 +05:30
Kovid Goyal
2c669bf853
More work on the new viewer 2019-09-13 09:12:11 +05:30
Kovid Goyal
200d38d2f5
Start work on new viewer implementation 2019-09-13 09:12:11 +05:30
Kovid Goyal
1216ed3200
Change fake protocol scheme to clbr 2019-09-13 09:12:11 +05:30
Kovid Goyal
0f0470a9ee
Live CSS: Fix properties from more distant ancestors overriding properties from nearer ancestors with the same specificity 2019-09-13 09:12:11 +05:30
Kovid Goyal
44fa281f86
... 2019-09-13 09:12:11 +05:30
Kovid Goyal
eebafd9454
More work on live css, basically works 2019-09-13 09:12:11 +05:30
Kovid Goyal
8c1a3e0467
Move the live css related client side code into its own module 2019-09-13 09:12:10 +05:30
Kovid Goyal
4eb75032db
Start work on porting live css 2019-09-13 09:12:10 +05:30
Kovid Goyal
8aa52dbcba
Do not restart render process on normal termination 2019-09-13 09:12:10 +05:30
Kovid Goyal
2bd6939fbd
Only show dead renderer error once 2019-09-13 09:12:10 +05:30
Kovid Goyal
7c09812742
Only load the inspector on demand 2019-09-13 09:12:10 +05:30
Kovid Goyal
c6d6716965
Try restarting the render process on crash
Also only load the link reports web view on demand
2019-09-13 09:12:10 +05:30
Kovid Goyal
c9b2578b33
Fix preview not scrolling to anchor when clicking an internal link to another html file in the book 2019-09-13 09:12:10 +05:30
Kovid Goyal
92fe190f63
Drop use of Qt Web Channel
One less possible cause of lifetime related crashes/leaks.  Plus my
custom solution has a nicer interface. It's slower but since
communication between python and js is not a bottleneck...
2019-09-13 09:12:10 +05:30
Kovid Goyal
883717039e
Go to anchor explicitly in the preview 2019-09-13 09:12:10 +05:30
Kovid Goyal
50ed25a6d9
Dont assume head exists 2019-09-13 09:12:10 +05:30
Kovid Goyal
cae36d2cc1
Avoind double serialization of sourceline address 2019-09-13 09:12:10 +05:30
Kovid Goyal
37c277d684
Fix split button 2019-09-13 09:12:09 +05:30
Kovid Goyal
67f3422438
Port addition of css for split marker 2019-09-13 09:12:09 +05:30
Kovid Goyal
38836de4e1
Make a webengine utils module 2019-09-13 09:12:09 +05:30
Kovid Goyal
561edbe1ea
Two-way syncing work again 2019-09-13 09:12:09 +05:30
Kovid Goyal
5e55554454
Restore inspector functionality for the preview pane 2019-09-13 09:12:09 +05:30
Kovid Goyal
00a9d0f275
Migrate editor coffee script to rapydscript 2019-09-13 09:12:09 +05:30
Kovid Goyal
943f07b1fd
... 2019-09-13 09:12:09 +05:30
Kovid Goyal
c5366521eb
Context menu works 2019-09-13 09:12:09 +05:30
Kovid Goyal
fe25b8d8f6
Search functionality works 2019-09-13 09:12:09 +05:30