Commit graph

31278 commits

Author SHA1 Message Date
Kovid Goyal
8db03fd0c8
... 2019-11-28 14:07:44 +05:30
Kovid Goyal
246534e5e5
Fix #1853673 [[Enhancement] Remove frame around cover in the Edit metadata window](https://bugs.launchpad.net/calibre/+bug/1853673) 2019-11-28 14:03:32 +05:30
Kovid Goyal
d717e5d368
Viewer: And Enter as shortcut for find next match 2019-11-28 11:57:45 +05:30
Kovid Goyal
808856eabe
Edit book: Create @font-face rules when importing multiple font files into book automatically, similar to how it is done when importing a single font file. 2019-11-28 11:23:11 +05:30
Kovid Goyal
c091461b99
Dont delete toc pages if they empty PDF file 2019-11-28 10:52:42 +05:30
Kovid Goyal
fdc0c7cf7e
Fix a regression that could cause window layout settings to sometimes not be saved during shutdown 2019-11-27 09:13:15 +05:30
Kovid Goyal
c821f59818
Driver for the new Bookeen Diva HD
Fixes #1854063 [Driver for Bookeen Diva HD](https://bugs.launchpad.net/calibre/+bug/1854063)
2019-11-26 22:13:13 +05:30
Kovid Goyal
6144b06e47
Fix O_NONBLOCK for self pipe on macOS 2019-11-25 09:23:20 +05:30
Kovid Goyal
b8aef51c97
Image viewing popup dialog: Add a checkbox to fit image to window. Fixes #1853671 [Open image in the viewer with local software](https://bugs.launchpad.net/calibre/+bug/1853671) 2019-11-24 21:24:13 +05:30
Kovid Goyal
6272c2b1eb
py3 compat 2019-11-24 08:27:54 +05:30
Kovid Goyal
86f972cde1
Handle not being able to decode plugin loading failure exceptions 2019-11-23 07:52:18 +05:30
Kovid Goyal
55e8d547af
Oops 2019-11-23 07:41:59 +05:30
Kovid Goyal
8d07d6bf55
PDF Output: Add an option to shift text horizontally on odd/even pages. Fixes #1853155 [PDF Output with even/odd page margins](https://bugs.launchpad.net/calibre/+bug/1853155) 2019-11-22 09:56:23 +05:30
Kovid Goyal
6ce63fcec9
API to get/set PDF page boxes 2019-11-22 09:10:22 +05:30
Kovid Goyal
3eb3d75bf5
Add bindings for getting/setting PDF page boxes 2019-11-22 08:51:49 +05:30
Kovid Goyal
f44b5e8c6f
version 4.4.0 2019-11-22 07:09:54 +05:30
Kovid Goyal
286efc792e
Viewer: When using the system color theme only override link colors in the book if the theme is dark. Fixes #1852990 [Viewer ignores color-property for links](https://bugs.launchpad.net/calibre/+bug/1852990) 2019-11-21 20:44:59 +05:30
Kovid Goyal
ee5dd52ec1
Fix compiler warning 2019-11-21 15:50:44 +05:30
Kovid Goyal
9f38f7e6ea
typo 2019-11-21 14:43:08 +05:30
Kovid Goyal
49d2f04a7e
Bulk metadata download review dialog: When clicking cancel ask for confirmation if some books have already been reviewed 2019-11-21 10:39:59 +05:30
Kovid Goyal
ab57033fcb
Viewer: The --open-at command line argument now allows matching on ToC hrefs as well as titles 2019-11-21 10:27:36 +05:30
Kovid Goyal
c1d6b7b85c
Viewer: Fix hang when using --open-at with single instance viewer and the specified location is already open. Fixes #1656573 [[Enhancement] viewer command-line parameter to go to ePub TOC entry/bookmark](https://bugs.launchpad.net/calibre/+bug/1656573) 2019-11-21 10:09:16 +05:30
Kovid Goyal
cd66cb007e
Fix #1853241 [Viewer: lookup icon should be a library](https://bugs.launchpad.net/calibre/+bug/1853241) 2019-11-21 09:39:22 +05:30
Kovid Goyal
c9530f9a34
Changing directory in render_book not needed as plumber does that for us 2019-11-21 09:20:07 +05:30
Kovid Goyal
30b8e1de84
Viewer: Fix opening .txt files in the standalone viewer leaving behind a temporary index.html file in the directory of the txt file. Fixes #1853232 [Viewing Text Files Creates an Index File](https://bugs.launchpad.net/calibre/+bug/1853232) 2019-11-21 09:16:21 +05:30
Kovid Goyal
d57626c043
Handle non-UTF-8 filenames in cache directory when expiring 2019-11-20 08:28:54 +05:30
Kovid Goyal
428957543c
Book details window: Show path to book in cover tooltip. Fixes #1853184 [[Enhancement] Show path to cover image when hovering](https://bugs.launchpad.net/calibre/+bug/1853184) 2019-11-20 07:21:49 +05:30
Kovid Goyal
ba31bc20bc
Reduce height of tooltip box in conversion dialog 2019-11-19 08:05:00 +05:30
Kovid Goyal
d266d7e379
py3.8 compat
See https://bugs.python.org/issue38828
2019-11-17 16:10:07 +05:30
Kovid Goyal
22cfc4f5b8
Fix #1852889 [[Enhancement] Show window size in pixels when changing Page layout preferences](https://bugs.launchpad.net/calibre/+bug/1852889) 2019-11-17 15:00:32 +05:30
Kovid Goyal
47e26f89bc
Fix #1852888 [Hiding toolbar by right clicking on it](https://bugs.launchpad.net/calibre/+bug/1852888) 2019-11-17 14:51:02 +05:30
Kovid Goyal
865b911be6
Book details popup window: Add Open with actions to context menu when right clicking the cover image. Fixes #1852626 [[Enhancement] Open image by double clicking on the cover](https://bugs.launchpad.net/calibre/+bug/1852626) 2019-11-17 12:37:25 +05:30
Kovid Goyal
882f454fba
py3: compat 2019-11-17 11:55:03 +05:30
Kovid Goyal
144d17ef68
Fix #1852866 [Button placed over text](https://bugs.launchpad.net/calibre/+bug/1852866) 2019-11-17 11:32:59 +05:30
Kovid Goyal
f41348a5e1
Viewer: Allow customizing what actions appear on the toolbar (Preferences->Miscellaneous->Customize toolbar). Fixes #1852017 [Rearrange the optional toolbar icons](https://bugs.launchpad.net/calibre/+bug/1852017) 2019-11-17 09:22:39 +05:30
Kovid Goyal
0f94cb092f
UI for customizing toolbar 2019-11-16 18:50:50 +05:30
Kovid Goyal
7d21239360
Refactor toolbar actions code to make the actions eventually configurable 2019-11-16 14:44:01 +05:30
Kovid Goyal
826d51a63f
Viewer: Ignore book prepare failure during shutdown 2019-11-16 08:06:57 +05:30
Kovid Goyal
74d6513287
Default title should start with #1 2019-11-15 11:07:31 +05:30
Kovid Goyal
d4dc80c9c4
Fix #1851908 [Suggest a name for the bookmark](https://bugs.launchpad.net/calibre/+bug/1851908) 2019-11-15 11:02:51 +05:30
Kovid Goyal
f825c7c4d6
PDF Output: Improve handling of images that do not fit on a page. Fixes #1852205 [Calibre Vers. 4, new Viewer print feature.](https://bugs.launchpad.net/calibre/+bug/1852205) 2019-11-15 10:45:03 +05:30
Kovid Goyal
9e8585faf1
Viewer: In paged mode break long text without spaces at arbitrary points instead of overflowing to the next page. Fixes #1852192 [long urls in footnotes are not hyphenated in the next line but instead to the next page](https://bugs.launchpad.net/calibre/+bug/1852192) 2019-11-15 10:03:28 +05:30
Kovid Goyal
72e8b008bf
Edit book: Check book: Mark empty id attributes in the OPF as errors. See #1852318 (Private bug) 2019-11-15 09:10:06 +05:30
Kovid Goyal
028241eb0e
Allow pressing the down arrow key to show the completion popup
Also have the enter key close the completion popup, applying any
selected completion first.
2019-11-14 15:47:04 +05:30
Kovid Goyal
55ca95bb34
Better implementation of setting current item on mouse motion in completion popups
Dont rely on the entered() signal since it is emitted even when the
mouse does not move but the list scrolls.
2019-11-14 15:23:39 +05:30
Kovid Goyal
ac758eb0cd
No focus for completion popup
Might fix issue with some windows computers and the popup
grabbing focus.
2019-11-14 15:07:34 +05:30
David
126e9971e5 Fix for https://bugs.launchpad.net/calibre/+bug/1830101
Had wrong database version for addition of ISBN column. Also missed Libra H2O in the names of supported devices.
2019-11-12 21:36:16 +11:00
Kovid Goyal
a268eb52d1
PDF Output: Fix an error when using fonts with vertical metrics. Fixes #1852036 [fail to convert azw3 to pdf in calibre 4.3](https://bugs.launchpad.net/calibre/+bug/1852036) 2019-11-11 09:27:27 +05:30
Kovid Goyal
bc0c9c1fcc
Viewer: Fix viewer flickering when scrollbar is enabled and the header/footer is too wide for the screen. 2019-11-10 23:28:50 +05:30
Kovid Goyal
b1dbedaab0
Remove unused code 2019-11-10 21:32:29 +05:30
Kovid Goyal
52750191f1
Dont spam server log with errors when timing out connections that never even get ready 2019-11-10 18:27:31 +05:30
Kovid Goyal
228453fb48
Also indicate if content server is running with HTTP or HTTPS 2019-11-10 17:58:07 +05:30
Kovid Goyal
ffab572a9e
Linux: Make some cache removal code robust against un-decodeable filenames in the cache directories 2019-11-10 17:42:22 +05:30
Kovid Goyal
a1cc1d8a9d
Viewer: Fix scrolling of panels in preferences causing artifacts. Fixes #1851933 [Buttom on the page is sometimes shown in the middle of the preferences](https://bugs.launchpad.net/calibre/+bug/1851933) 2019-11-10 17:13:38 +05:30
Kovid Goyal
c39f96fbed
Simplify code a bit 2019-11-10 16:56:13 +05:30
Kovid Goyal
07d5f721d4
Clear caches on book load 2019-11-10 13:06:45 +05:30
Kovid Goyal
390c83bf3d
Viewer: improve appearance of controls on small screens. Fixes #1851921 [Showing the settings on mobile device](https://bugs.launchpad.net/calibre/+bug/1851921) 2019-11-10 08:44:09 +05:30
Kovid Goyal
3411653498
Also move close button to left for simple overlays 2019-11-10 08:27:07 +05:30
Kovid Goyal
4b11f99cd8
Move close button in viewer preferences to left to match the rest of the content server UI. Fixes #1851937 [The close button placement](https://bugs.launchpad.net/calibre/+bug/1851937) 2019-11-10 08:17:46 +05:30
Kovid Goyal
cb12614467
String changes 2019-11-10 08:11:57 +05:30
Kovid Goyal
bc5166d99a
Improve formatting of preferences button box on small screens. Fixes #1851930 [Large Reset button in the Viewer settings](https://bugs.launchpad.net/calibre/+bug/1851930) 2019-11-10 08:06:19 +05:30
Kovid Goyal
263bb0ce88
Viewer: Fix restoring user stylesheet to default not being applied until a viewer restart 2019-11-10 07:30:38 +05:30
Kovid Goyal
6ec980c99f
string changes 2019-11-09 15:30:12 +05:30
Kovid Goyal
5fbfe3fb36
Viewer: Add a shortcut (Ctrl+F11) to toggle the toolbar 2019-11-09 09:07:20 +05:30
Kovid Goyal
ce81764353
Remove unused code 2019-11-09 08:25:12 +05:30
Kovid Goyal
e94f9fd04a
Viewer: Do not wait for loading of <link> tags that are not stylesheets. Fixes #1851814 [Link tag with url results in slow loading](https://bugs.launchpad.net/calibre/+bug/1851814) 2019-11-08 16:34:42 +05:30
Kovid Goyal
2ebf0f589d
version 4.3.0 2019-11-08 06:48:06 +05:30
Kovid Goyal
c0acccde24
Viewer/Content server: Fix history for completion popups such as search bars not being stored correctly. Fixes #1847976 [feature request: viewer 4 search history as in viewer 3](https://bugs.launchpad.net/calibre/+bug/1847976) 2019-11-08 06:43:25 +05:30
Kovid Goyal
caad54863b
Improve performance when polishing large numbers of books in a large library by debouncing Tag browser refreshes 2019-11-07 19:35:18 +05:30
Kovid Goyal
481013d23f
pep8 2019-11-07 14:52:14 +05:30
Kovid Goyal
fe066ce2d6
Conversion: CSS selectors with unknown pseudo-elements should not match any tags. See #1827700 (Private bug) 2019-11-07 14:15:46 +05:30
Kovid Goyal
f6087f7929
Micro-optimization 2019-11-07 10:42:06 +05:30
Kovid Goyal
e25d26a628
Micro-optimization
Also dont use plain asserts in tests
2019-11-07 10:36:08 +05:30
Kovid Goyal
2d41f863b7
pep8 2019-11-07 09:59:27 +05:30
Kovid Goyal
054752d956
... 2019-11-07 09:53:48 +05:30
Kovid Goyal
9e1bbdf5b4
Fix #1849939 [When changing language in installer it doesn't change the default installation directory.](https://bugs.launchpad.net/calibre/+bug/1849939) 2019-11-07 09:21:26 +05:30
Jim Miller
cc64a6d76b Add right-click copy link for identifiers and author links in book details. 2019-11-06 20:32:22 -06:00
Kovid Goyal
61c67430da
... 2019-11-06 14:41:24 +05:30
Kovid Goyal
9950856380
When cleaning viewer cache remove all but the newest entry for a particular book path 2019-11-06 14:36:25 +05:30
Kovid Goyal
953a1d7573
... 2019-11-06 13:58:00 +05:30
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
Kovid Goyal
55033c352d
Book details: Fix clicking on tags etc not generating exact match searches 2019-10-29 21:37:24 +05:30
Kovid Goyal
e00a8a945c
Forgot to handle comments when unserializing the new JSON format 2019-10-29 20:42:40 +05:30
Kovid Goyal
9f02e70317
Ensure root tag is in correct namespace 2019-10-29 18:24:39 +05:30
Kovid Goyal
ddb96c0eed
Fix html_as_json compilation under python2 2019-10-29 18:16:46 +05:30
Kovid Goyal
007f9fb087
Implement unserialization for the new serialization format 2019-10-29 18:06:33 +05:30
Kovid Goyal
b44c42a78c
... 2019-10-29 16:49:39 +05:30
Kovid Goyal
cb9b08b369
Dont serialize the default namespace on ever tag 2019-10-29 15:58:24 +05:30
Kovid Goyal
7687c3dab6
Move the iterate over elems loop in native code as well 2019-10-29 15:56:57 +05:30
Kovid Goyal
e33c18459a
Finish fast serialization of html to json 2019-10-29 12:50:26 +05:30
Kovid Goyal
4f03b0163f
Fix #1850196 [test_ssl fails with EE_KEY_TOO_SMALL](https://bugs.launchpad.net/calibre/+bug/1850196) 2019-10-29 01:05:59 +05:30
Kovid Goyal
fc7aee08df
Start work on fast html to json 2019-10-28 13:30:18 +05:30
Kovid Goyal
42f553e367
Content server: Fix download button not working with non-ebook formats. Fixes #1850078 [Calibre content server download issues](https://bugs.launchpad.net/calibre/+bug/1850078) 2019-10-28 08:58:47 +05:30
Kovid Goyal
3abe43d90c
Serialization: Dont mangle the name of epub namespaced tags
Also dont normalize boolean attributes
2019-10-27 13:07:19 +05:30
Kovid Goyal
78a97a0e37
Handle comments while getting char count 2019-10-27 12:52:12 +05:30
Kovid Goyal
a687204ec3
Speedup char counting when preparing book 2019-10-27 12:38:01 +05:30
Kovid Goyal
8582154527
Avoid calls to nlinks() in worker processes 2019-10-26 19:00:07 +05:30
Kovid Goyal
751c6942f9
Implement profiling of book preparation
Cache href_to_name() which was marked as a hot function by the profiler.
2019-10-26 18:19:32 +05:30
Kovid Goyal
60a1f637c5
Dont use multiple workers when rendering books for the server
Can lead to resource exhaustion and also is currently hanging for
reasons unknown
2019-10-26 17:28:55 +05:30
Kovid Goyal
b9cb195804
Viewer: Allow also using --open-at with book positions 2019-10-26 17:18:21 +05:30
Kovid Goyal
221d8f73a4
Fix failing test 2019-10-26 17:02:10 +05:30
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