Commit graph

31278 commits

Author SHA1 Message Date
Kovid Goyal
ebbefb5de3
DRYer 2020-01-20 10:56:22 +05:30
Kovid Goyal
8c454346a2
More work on the search panel 2020-01-20 10:04:00 +05:30
Kovid Goyal
8db373d3b5
Start work on search panel 2020-01-18 19:17:21 +05:30
Kovid Goyal
90eb2c43f0
Track the current content file 2020-01-18 10:40:45 +05:30
Aimylios
5c795352c9 Allow excluding individual tests from test run 2020-01-17 21:54:25 +01:00
Kovid Goyal
8eb679af27
Fix #1089 (py3 fixes for bibtex file writer) 2020-01-17 07:06:32 +05:30
Kovid Goyal
9f7f74c952
Comments editor: Use <p>&nbsp;</p> for empty paragraphs instead 2020-01-16 16:07:48 +05:30
Kovid Goyal
3236f5da9e
Viewer toolbar: Add a button to easily change color schemes
Fixes #1859547 [[Enhancement] Toggle between color schemes](https://bugs.launchpad.net/calibre/+bug/1859547)
2020-01-16 15:53:15 +05:30
Kovid Goyal
785c4ae4df
Nicer tab close icon 2020-01-16 11:19:25 +05:30
Kovid Goyal
d70363d408
Comments editor: Fix inserted blank paragraph being rendered as two lines.
Qt uses an awful hack of inserting style="-qt-paragraph-type:empty" for
blank paragraphs. Preserve this, so that blank paragraphs survive
round tripping as HTML, at the cost of uglier markup.
2020-01-16 09:56:35 +05:30
Kovid Goyal
9df4be4015
Also use paper sizes widget in PDF output settings 2020-01-16 09:31:30 +05:30
Kovid Goyal
aef66816a3
Make paper size combo box re-useable 2020-01-16 09:26:39 +05:30
Kovid Goyal
13a8f4f895
Fix #1859550 [[Enhancement] Show paper size width and height reference](https://bugs.launchpad.net/calibre/+bug/1859550) 2020-01-16 08:58:27 +05:30
Kovid Goyal
015d0b9c38
Fix #1859552 [[Enhancement] Remove unnecessary space at the bottom of Print to PDF screen](https://bugs.launchpad.net/calibre/+bug/1859552) 2020-01-16 08:34:28 +05:30
Kovid Goyal
626c949c30
String changes 2020-01-14 11:23:25 +05:30
Eli Schwartz
c891963f68
remove unused header code
In commit ecd57f3639 the function it goes
to was removed, now it just shows "unused variable" warnings.
2020-01-13 20:45:49 -05:00
Kovid Goyal
b6c95290cb
Show shortcuts in top level context menu 2020-01-13 07:22:54 +05:30
Kovid Goyal
3247c8b6ae
Make text in current tab italic throughout 2020-01-12 08:04:26 +05:30
Kovid Goyal
6b5b742cda
Fix #1859209 [[Enhancement] Remove separator and add shortcut to menu](https://bugs.launchpad.net/calibre/+bug/1859209) 2020-01-11 08:29:03 +05:30
Kovid Goyal
29a4596270
... 2020-01-09 22:06:32 +05:30
Kovid Goyal
9a43af3f78
PDF Output: Fix conversion of files containing <canvas> elements failing. Fixes #1859040 [Private bug](https://bugs.launchpad.net/calibre/+bug/1859040) 2020-01-09 21:56:38 +05:30
Kovid Goyal
09eaa46360
Dark mode: Fix colors in remove all formats except dialog 2020-01-09 10:49:52 +05:30
Kovid Goyal
52dff55b41
Fix #1858962 [Preferred output format's tooltip should mention device plugins](https://bugs.launchpad.net/calibre/+bug/1858962) 2020-01-09 07:27:08 +05:30
Kovid Goyal
dffc39cf0c
Viewer: Fix failure to open some books that contain unparseable URLs. Fixes #1858836 [Viewer Crashes on "Invalid IPv6 URL"](https://bugs.launchpad.net/calibre/+bug/1858836) 2020-01-09 07:17:33 +05:30
Kovid Goyal
39a9c123a2
formatting 2020-01-08 22:33:00 +05:30
Kovid Goyal
6a5cc61adc
Possible fix for weird failure on CI 2020-01-08 22:32:26 +05:30
Kovid Goyal
5784d989f5
Use proper separators on windows 2020-01-08 22:11:06 +05:30
Kovid Goyal
f0e6ead4c7
Better workaround for XXE in lxml
Instead of disabling resolution of all entities, only disable resolution
of entities from files
2020-01-08 22:03:38 +05:30
Kovid Goyal
c842e34589
Move borwsers check to ruleset creation 2020-01-08 20:06:49 +05:30
Kovid Goyal
86d75fcc83
Make URLs in check book help text clickable 2020-01-08 19:04:10 +05:30
Kovid Goyal
850b2b8a9d
Edit book: Check book: Improved checking of CSS, with support for CSS 3 2020-01-08 18:53:57 +05:30
Kovid Goyal
7a16568127
Fix #1858779 [Fails to load KIPEO plugin](https://bugs.launchpad.net/calibre/+bug/1858779) 2020-01-08 16:23:17 +05:30
Kovid Goyal
7474547bd2
py3: Fix decoding of CFF font tables 2020-01-08 08:23:36 +05:30
Kovid Goyal
09aae8b299
String changes 2020-01-08 08:01:33 +05:30
Kovid Goyal
38d463220c
Merge branch 'py3' of https://github.com/eli-schwartz/calibre 2020-01-07 21:29:54 +05:30
Eli Schwartz
cc2eefbb17
py3: fix creation of empty record with .txt format
Metadata objects are unicode strings, but we tried to write the content
directly to a .txt file opened in binary mode.
2020-01-07 10:53:44 -05:00
Kovid Goyal
788278b97e
Fix #1858606 [Smooth scrolling settings doesn't fit on small screens](https://bugs.launchpad.net/calibre/+bug/1858606) 2020-01-07 15:02:26 +05:30
Kovid Goyal
464fafd047
String changes 2020-01-06 18:37:01 +05:30
Kovid Goyal
aa9bfb5c59
Viewer: Forgot to add shift+space as default shortcut for pageup 2020-01-06 18:13:07 +05:30
Kovid Goyal
1eba328f26
DRYer 2020-01-06 17:52:29 +05:30
Kovid Goyal
15a0112b47
Use an id selector 2020-01-06 17:23:39 +05:30
Kovid Goyal
f5abd0e252
... 2020-01-06 15:53:07 +05:30
Kovid Goyal
6f1e8c863f
Avoid unnecessary python object creation/destruction in count_words() 2020-01-06 15:47:39 +05:30
Kovid Goyal
3cc55b16fe
Change O(n^2) algorithm to O(n) when splitting using the ICU break iterator 2020-01-06 15:24:33 +05:30
Kovid Goyal
f3a877f404
Viewer: Fix data displayed in side margins getting moved out of position when mouse hovers over side margin. Fixes #1858263 [Top, middle and bottom margin data shown in the middle margin when mouse hovers](https://bugs.launchpad.net/calibre/+bug/1858263) 2020-01-06 14:36:13 +05:30
Kovid Goyal
b2c4abd9b0
Fix #1858284 [Automatic adding dialog has an unnecessary scrollbar](https://bugs.launchpad.net/calibre/+bug/1858284) 2020-01-06 14:16:45 +05:30
Kovid Goyal
9a452f67b8
Book details panel: When right clicking to save the cover, replace invalid characters in the suggested filename 2020-01-06 11:52:11 +05:30
Kovid Goyal
994fae5f94
Fix #1858198 [Error adding SSL certificate and private key files for the Content server](https://bugs.launchpad.net/calibre/+bug/1858198) 2020-01-04 09:40:04 +05:30
Kovid Goyal
513f9a3a30
Avoid stack overflow due to unbounded recursion in safe_walk 2020-01-04 09:03:50 +05:30
Kovid Goyal
e6657d999a
Viewer: Fix Ctrl+Shift shortcuts not being displayed properly on windows 2020-01-04 08:58:44 +05:30
Kovid Goyal
d327cedc82
Fix #1858180 [Error when enabling auto scroll on server in paged mode](https://bugs.launchpad.net/calibre/+bug/1858180) 2020-01-03 14:12:42 +05:30
Kovid Goyal
75bf8b69c3
version 4.8.0 2020-01-03 06:59:53 +05:30
Kovid Goyal
fc8659e07a
Viewer: Fix error when trying to change more than a single keyboard shortcut at once. Fixes #1858117 [ERROR: Unhandled error: Uncaught TypeError when setting custom keyboard shortcut in viewer](https://bugs.launchpad.net/calibre/+bug/1858117) 2020-01-02 22:13:36 +05:30
Kovid Goyal
dcc5757a24
Make font italic for current tab in editor 2020-01-02 00:12:54 +05:30
Kovid Goyal
ad4d1f882a
No need to subclass 2020-01-01 14:10:57 +05:30
Kovid Goyal
fbfebda03f
Dont use a recovering XML parser in a few places where we are expected to fail on invalid XML 2020-01-01 14:00:36 +05:30
Kovid Goyal
3eb28b395e
Ignore double removes 2020-01-01 13:25:03 +05:30
Kovid Goyal
6b348a0940
PDF Output: Fix extracting text from generated PDFs not working if more than 100 characters per font are used in the text. Fixes #1857886 [Convert epub to pdf, pdf appearance looks correct, but some of the copied text is incorrect](https://bugs.launchpad.net/calibre/+bug/1857886) 2020-01-01 12:45:20 +05:30
Kovid Goyal
3bcf55d571
macOS: Fix viewer controls not using system UI font 2020-01-01 10:45:37 +05:30
Kovid Goyal
b966cdcef7
Viewer: Allow right clicking in the lookup panel to zoom in/out. Fixes #1857989 [Increase font size of "Lookup" pop-up [enhancement]](https://bugs.launchpad.net/calibre/+bug/1857989) 2020-01-01 10:08:50 +05:30
Kovid Goyal
3630ae9d8f
... 2019-12-31 13:17:25 +05:30
Kovid Goyal
330d5d1b42
... 2019-12-31 08:43:25 +05:30
Kovid Goyal
d50b849e1d
Viewer: Allow showing data in left and right margins in addition to headers/footers. Fixes #1855121 [Feature Request: Add Entries to Side Margins](https://bugs.launchpad.net/calibre/+bug/1855121) 2019-12-31 08:38:37 +05:30
Kovid Goyal
bf83df219c
Fix #1857923 [[Enhancement] Remeber last paths in automatic adding](https://bugs.launchpad.net/calibre/+bug/1857923) 2019-12-31 08:08:02 +05:30
Kovid Goyal
f24fbd5312
Add ctrl+, and meta+, and meta+esc to show preferences 2019-12-30 15:33:13 +05:30
Kovid Goyal
85486ea260
Cleanup 2019-12-30 14:58:35 +05:30
Kovid Goyal
018b685000
DRYer 2019-12-30 13:05:55 +05:30
Kovid Goyal
3b45583ddb
UI for showing data in side margins 2019-12-30 11:24:15 +05:30
Kovid Goyal
d768e69e2a
Viewer: Override border colors as well when overriding book colors 2019-12-30 11:02:03 +05:30
Kovid Goyal
971df45055
Viewer: Allow setting colors for the margins when creating new color schemes in Preferences->Colors 2019-12-30 10:50:25 +05:30
Kovid Goyal
007823983b
More appropriate function name 2019-12-30 10:47:04 +05:30
Kovid Goyal
3305fe4a14
Fix set_radio_group_value and make it re-useable 2019-12-30 10:43:23 +05:30
Kovid Goyal
9b982d3f18
Make blockquote detection a bit more fine-grained
See #1857852 (Comment editor converting p's to blockquotes)
2019-12-30 08:41:44 +05:30
Kovid Goyal
e4b00a3573
Viewer: Ctrl+esc to show preferences 2019-12-30 08:27:45 +05:30
Kovid Goyal
746381d179
A few more etree.fromstring 2019-12-29 22:02:16 +05:30
Kovid Goyal
3932fb8b5a
Viewer: Fix images not being rendered at certain sizes when they are the only content on the page in paged mode with single page per screen. Fixes #1857803 [Viewer doesn't show some images](https://bugs.launchpad.net/calibre/+bug/1857803) 2019-12-29 21:37:16 +05:30
Kovid Goyal
034d561be7
Forgot to add int version of setDisplaySize 2019-12-29 20:42:09 +05:30
Kovid Goyal
fd8ee8bff0
String changes 2019-12-29 20:13:12 +05:30
Kovid Goyal
127fc7cffa
Viewer: Fix svg links not working. Fixes #1857812 [Private bug](https://bugs.launchpad.net/calibre/+bug/1857812) 2019-12-29 20:07:07 +05:30
Kovid Goyal
e5d6a6ef9f
Use a per-thread XML parser instance 2019-12-29 18:24:56 +05:30
Kovid Goyal
d102aca175
Dont resolve entities in the RECOVER_PARSER 2019-12-29 18:17:20 +05:30
Kovid Goyal
631f266270
... 2019-12-29 18:12:58 +05:30
Kovid Goyal
68febe94ca
Do not resolve entities when parsing XML
Resolving entities is dangerous since lxml will actually
read file:// URLs in entity definitions. Fixes #1857800 [Private bug](https://bugs.launchpad.net/calibre/+bug/1857800)
2019-12-29 18:01:43 +05:30
Kovid Goyal
589079c6aa
UI to set margin colors in viewer preferences 2019-12-29 18:01:31 +05:30
Kovid Goyal
4e776ca18b
macOS: Fix regression in previous release that caused link color to be light blue even when not using dark color themes 2019-12-29 10:09:52 +05:30
Kovid Goyal
834f08747a
Fix #1857770 [Clicking Show more books opens last book](https://bugs.launchpad.net/calibre/+bug/1857770) 2019-12-29 09:43:48 +05:30
Kovid Goyal
4c1032ba5c
A toolbar button for auto-scrolling 2019-12-28 21:14:38 +05:30
Kovid Goyal
38736d9412
Add an auto-scroll button to the viewer controls 2019-12-28 20:49:37 +05:30
Kovid Goyal
d94c2f21e7
Case independent 2019-12-28 18:02:18 +05:30
Kovid Goyal
7c143c7207
Fix auto-scroll across file boundaries 2019-12-28 14:31:43 +05:30
Kovid Goyal
9be75841ba
Show an error message when trying to use auto scrolling in paged mode 2019-12-28 14:22:13 +05:30
Kovid Goyal
fc5f471682
Viewer: Implement auto-scroll in flow mode. Can be toggled by pressing Ctrl+Spacebar. Its speed can be controlled in Viewer preferences under scrolling behavior.
Viewer: Allow configuring the speed with which the viewer scolls wheh
pressing the down key in flow mode (Viewer preferences->Scrolling behavior)

Merge branch 'scrolling' of https://github.com/mgziminsky/calibre
2019-12-28 14:13:47 +05:30
Kovid Goyal
4c2d255d86
RTF Output: Fix a regression that slowed down conversion. Fixes #1857732 [RTF Conversion Failure](https://bugs.launchpad.net/calibre/+bug/1857732) 2019-12-28 12:36:59 +05:30
Kovid Goyal
c4afe06792
Release the GIL while drawing the snake spinner 2019-12-28 11:02:18 +05:30
Kovid Goyal
60b9cd1d8d
Use native code to draw wait spinner 2019-12-28 10:58:39 +05:30
Kovid Goyal
e228e601d5
String changes 2019-12-27 21:48:38 +05:30
Kovid Goyal
1e5657172f
... 2019-12-27 21:42:17 +05:30
Kovid Goyal
8c53305a4c
Server viewer: Make exit fullscreen action available in viewer controls. Fixes #1857677 [Add Exit full screen option in Content server controls](https://bugs.launchpad.net/calibre/+bug/1857677) 2019-12-27 15:21:32 +05:30
Kovid Goyal
1044fb014c
Fix typo causing a harmless error message when downloading covers and only a single cover is found 2019-12-27 14:26:28 +05:30
Kovid Goyal
a158386e56
String changes 2019-12-27 14:07:54 +05:30
Kovid Goyal
e271b4564a
version 4.7.0 2019-12-27 09:31:11 +05:30
Kovid Goyal
02343fd965
Possible fix for offscreen dialogs on windows
See https://bugreports.qt.io/browse/QTBUG-77385
2019-12-27 09:21:25 +05:30
Michael Ziminsky (Z)
0a9e52d212 Additional scroll options...
Option for whether or not to load next file after reaching the start/end when using key based scrolling
Configurable delay before loading the next file after reaching the end with auto-scroll
2019-12-26 12:28:42 -07:00
Michael Ziminsky (Z)
568d32ec16 Fix goto start/end of file in flow mode 2019-12-26 11:40:22 -07:00
Kovid Goyal
ef3f0a8929
pep8 2019-12-26 21:56:11 +05:30
Kovid Goyal
eb10773b6f
py3: Fix calls to supportedImageFormats() 2019-12-26 18:08:16 +05:30
Kovid Goyal
e721f8aa3e
String changes 2019-12-26 08:52:53 +05:30
Michael Ziminsky (Z)
b70ec30869 More robust line_height computation and settings init 2019-12-25 11:04:59 -07:00
Kovid Goyal
aca252eacf
String changes 2019-12-25 08:20:37 +05:30
Michael Ziminsky (Z)
1ecf881cb4 Add settings elements to change scroll speeds 2019-12-24 10:50:41 -07:00
Michael Ziminsky (Z)
e028bbb3f6 Add auto-scroll with keyboard shortcut 2019-12-24 10:20:39 -07:00
Michael Ziminsky (Z)
0229c684f3 Make smooth scroll speed configurable
Includes keyboard shortcuts, will add menu options next
2019-12-24 10:20:39 -07:00
Michael Ziminsky (Z)
208734f47b Sort default settings and larger handler definitions
Use session defaults in reader settings to reduce code duplication
2019-12-24 10:19:00 -07:00
Michael Ziminsky (Z)
94ac5ef102 Rework flow mode scrolling to be smoother and deterministic
This is the first step towards built-in autoscroll and configurable scroll speed. The old impl is jumpy and inconsistent, ie: scrolling up N times then down N times may not result in the same start and end positions.
2019-12-24 10:17:54 -07:00
Michael Ziminsky (Z)
281592bdaa Fix what I assume is a copy/paste oversight 2019-12-24 10:17:54 -07:00
Kovid Goyal
b13f5d6a0c
Viewer: Allow modifying the current selection using Ctrl+Shift+arrow. Fixes #1855942 [[Enhancements] Comments and select text with keyboard](https://bugs.launchpad.net/calibre/+bug/1855942) 2019-12-24 21:21:15 +05:30
Kovid Goyal
431d55dbca
Book details: Add an option in Preferences->Look & feel->Book details to show a heading for the comments in the book details panel
See #1855942 ([Enhancements] Comments and select text with keyboard)
2019-12-24 20:24:23 +05:30
Kovid Goyal
fb7154b67c
Fix #1857415 [Move clear button inside text field](https://bugs.launchpad.net/calibre/+bug/1857415) 2019-12-24 14:02:44 +05:30
Kovid Goyal
89ee458377
PDF Output: Ignore upto 8 byte glyph data size mismatches when merging identical glyphs. Fixes #1857268 [Private bug](https://bugs.launchpad.net/calibre/+bug/1857268) 2019-12-24 09:34:21 +05:30
Kovid Goyal
7366d9f7d4
Add gui_name to some PocketBook drivers 2019-12-24 09:02:41 +05:30
Kovid Goyal
cab4797fbf
Merge branch 'master' of https://github.com/cbhaley/calibre
Fix #1857312 [[Enhancement] Changes to the User categories editor and Category editor](https://bugs.launchpad.net/calibre/+bug/1857312)
2019-12-23 21:43:16 +05:30
Charles Haley
8e3d3512e7 Enhancement #1857312: Please make the boxes in User categories editor the same size. Move the buttons cancel and OK to the right 2019-12-23 14:59:35 +00:00
Kovid Goyal
9cc7033fc1
Fix #1857261 [Make it possible to clear search in the Category editor](https://bugs.launchpad.net/calibre/+bug/1857261) 2019-12-23 09:43:45 +05:30
Kovid Goyal
5dfc58daff
Viewer toolbar: Add actions for next and previous section. They are not added to the toolbar by default, customize it to add them. 2019-12-23 09:29:11 +05:30
Kovid Goyal
6b0668960b
String changes 2019-12-23 09:23:06 +05:30
Kovid Goyal
d61038d0d1
Fix #1857263 [[Enhancement] Choose last used SSL keys and certicate files](https://bugs.launchpad.net/calibre/+bug/1857263) 2019-12-23 09:18:51 +05:30
Tomasz Długosz
62c1d14c63 virtualo store: update 2019-12-23 00:54:29 +01:00
Tomasz Długosz
c7f2a7a155 legimi store: update plugin 2019-12-22 22:35:31 +01:00
Kovid Goyal
140bd0166f
Viewer: Right clicking in controls should not close preferences 2019-12-22 15:24:20 +05:30
Tomasz Długosz
b1a0b4e815 empik store: update 2019-12-22 00:36:37 +01:00
Tomasz Długosz
28eedbe8a6 swiatebookow store: update 2019-12-22 00:36:32 +01:00
Kovid Goyal
4ff60cba2f
py3 compat: Ensure exception is last line in pipe worker tracebacks on windows 2019-12-21 11:55:12 +05:30
Kovid Goyal
540edf6b05
DOCX Input: Fix numbering styles that inherit their id from parent styles notbeing correctly applied 2019-12-20 14:39:42 +05:30
Kovid Goyal
53ec8c5b8e
Micro-optimization 2019-12-20 11:18:05 +05:30
Kovid Goyal
13df7004df
String changes 2019-12-20 07:53:42 +05:30
Kovid Goyal
1bc5389576
Edit Book: Spell Check: Fix words surrounded by narrow non-breaking spaces being incorrectly detected as mis-spelled 2019-12-19 23:10:52 +05:30
Kovid Goyal
511d3c6ba4
Better fix for ignoring soft-hyphens when checking spelling live 2019-12-19 23:01:05 +05:30
Kovid Goyal
ae962ae3b1
Remove unused code 2019-12-19 22:50:55 +05:30
Kovid Goyal
a0420c9820
... 2019-12-19 18:31:44 +05:30
Kovid Goyal
8ce99d51c7
Another py3 compat fix 2019-12-19 15:14:31 +05:30
Kovid Goyal
47b3638371
macOS: Fix drag and drop to re-arrange items in the viewer toolbar not working 2019-12-19 11:19:21 +05:30
Kovid Goyal
89b0adfb43
Fix deprecation warning 2019-12-18 16:55:09 +05:30
Kovid Goyal
78cb1b9c47
Fix #1856232 [[Enhancement] Remove lines and add border to the Review downloaded metadata window](https://bugs.launchpad.net/calibre/+bug/1856232) 2019-12-18 16:50:33 +05:30
Kovid Goyal
783e1875d3
Viewer: Add an option to keep the toolbar visible in full screen mode 2019-12-18 16:43:48 +05:30
Kovid Goyal
27e2b265e4
ToC Editor: Fix generate from links not working correctly when links have no fragments. Fixes #1856395 [Private bug](https://bugs.launchpad.net/calibre/+bug/1856395) 2019-12-18 16:14:28 +05:30
Kovid Goyal
3484c9bddf
Fix #1856741 [[Enhancement] Group builtin recipes by language and make it searchable](https://bugs.launchpad.net/calibre/+bug/1856741) 2019-12-18 14:16:43 +05:30
Kovid Goyal
4706561f57
PDF Output: Dont dedup images that cannot be uncompressed
Fixes #1856564 [pdf conversion error](https://bugs.launchpad.net/calibre/+bug/1856564)
2019-12-18 10:49:05 +05:30
Kovid Goyal
5ad63e6d9a
Edit book: Spell check: Ignore soft hyphens in words 2019-12-18 10:26:38 +05:30
Kovid Goyal
ab81c2f309
Better error message when trying to unzip file with reserved filenames on windows 2019-12-18 08:49:23 +05:30
Eli Schwartz
0d7ae5b1b9
Don't pass the "format" argument of struct.pack as a bytestring.
It's the format argument, not actual data, and it's perfectly happy to
be a plain str. But using a b'' string in python3 means we cannot
interpolate an int inside, so we get the error message:

>>> serialize_binary('foo', True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/eschwartz/git/calibre/src/calibre/gui2/win_file_dialogs.py", line 61, in serialize_binary
    return struct.pack(b'=B%ssB' % len(key), len(key), key, int(val))
TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'int'
2019-12-17 20:09:46 -05:00
Kovid Goyal
362597ac87
py3 compat: forgot to port oneinstance of ungettext 2019-12-17 18:13:12 +05:30
Kovid Goyal
d775ae3582
string changes 2019-12-17 08:50:20 +05:30
Kovid Goyal
034c22de8c
Viewer: In multiple pages per screen mode, When paging back to a chapter we have just paged forward from return to the exact position we left from in terms of number of blank trailing pages displayed. Fixes #1856472 [Scrolling backwards at section boundaries causes incorrect page display](https://bugs.launchpad.net/calibre/+bug/1856472) 2019-12-16 22:56:58 +05:30
Kovid Goyal
018d673023
Merge branch 'master' of https://github.com/roman-mkh/calibre 2019-12-16 19:44:31 +05:30
Roman Mukhin
bf6f617800 Added currency symbol for RUB 2019-12-16 15:07:16 +01:00
Roman Mukhin
8dddfb9c05 corrected handling with http response headers 2019-12-16 15:01:21 +01:00
Kovid Goyal
8c382e7e4f
... 2019-12-15 18:19:32 +05:30
Kovid Goyal
c7f8350eca
Fix error highlighting in search and replace tab of bulk metadata edit in dark mode 2019-12-15 18:09:25 +05:30
Kovid Goyal
e9780b2a35
Make colors used by python highlighter work with dark theme as well 2019-12-15 18:01:53 +05:30
Kovid Goyal
307680a019
Viewer: Add a setting under Preferences->Colors to control when the viewer will override all book colors or not. 2019-12-15 17:48:00 +05:30
Kovid Goyal
e9b09b0066
Viewer: Add a class to <body> indicating if we are using light or dark color scheme. Can be used in the user stylesheet 2019-12-15 16:42:01 +05:30
Kovid Goyal
4ea2bd2a90
Avoid un-needed conversion to hsv to check if a color is dark
The V is HSV is anyway defined as max(r, g, b)
2019-12-15 16:28:05 +05:30
Kovid Goyal
6ca7282fd9
Viewer toolbar: Add an action to toggle the inspector 2019-12-15 14:42:13 +05:30
Kovid Goyal
4b077904c0
Viewer: have the toolbar actions for the docks indicate visibility 2019-12-15 14:38:33 +05:30
Kovid Goyal
ba95c2b363
Conversion dialogs: Dont allow a single large pane to change the size of all other panes. Fixes #1856382 [Changing the Output format to PDF in the conversation settings changes the cover size in the window](https://bugs.launchpad.net/calibre/+bug/1856382) 2019-12-15 13:30:22 +05:30
Kovid Goyal
36dfc37887
Fix #1856384 [[Enhancement] Show metadata from the beginning](https://bugs.launchpad.net/calibre/+bug/1856384) 2019-12-15 12:29:09 +05:30
Kovid Goyal
b861197248
Unify reference mode icon 2019-12-15 11:03:28 +05:30
Kovid Goyal
7b22d7f51a
Viewer: Fix occasional skipping over a chapter when flick scrolling in flow mode 2019-12-15 10:53:41 +05:30
Kovid Goyal
5bf261244d
Viewer: Fix flick scrolling in flow mode jumping to next chapter. Fixes #1856398 [Unable to scroll on touchscreen in e-book viewer](https://bugs.launchpad.net/calibre/+bug/1856398) 2019-12-15 10:12:05 +05:30
Kovid Goyal
ae3208c606
Advanced search dialog: Fix an error when closing dialog if on the second tab and no field is focused 2019-12-15 09:18:14 +05:30
Kovid Goyal
3185b543de
Use share_open for server log files in preferences 2019-12-15 09:07:22 +05:30
Kovid Goyal
a3a2e8bd48
... 2019-12-14 11:31:02 +05:30
Kovid Goyal
537a27d098
macOS; Use transient scrollbars unless they are disabled in system preferences 2019-12-14 11:15:33 +05:30
Kovid Goyal
c139aac5ab
Code to get cocoa transient scroller setting 2019-12-14 10:29:09 +05:30
Kovid Goyal
ebba389a6a
Fix search highlight color in dark mode 2019-12-14 09:40:53 +05:30
Kovid Goyal
e5ee211dd1
String changes 2019-12-13 08:40:55 +05:30
Kovid Goyal
e1570706e1
version 4.6.0 2019-12-13 01:41:30 +05:30
Kovid Goyal
b509cfefbc
Fix #1856234 [Text under icons not shown in the Preferences for Edit book](https://bugs.launchpad.net/calibre/+bug/1856234) 2019-12-13 01:14:10 +05:30
Kovid Goyal
e89f8efb9c
Make file browser and toc view use window background in editor 2019-12-12 11:17:14 +05:30
Kovid Goyal
76de4ffe1c
Viewer: Fix max text width/height settings not being applied correctly on window resize. Fixes #1854211 [The text becomes very narrow when making the window smaller if a max weight is set](https://bugs.launchpad.net/calibre/+bug/1854211) 2019-12-12 10:38:51 +05:30
Kovid Goyal
9aa4a426e7
Fix #1855820 [Configure metadata download field sizes](https://bugs.launchpad.net/calibre/+bug/1855820) 2019-12-12 08:47:55 +05:30
Kovid Goyal
e9576e8559
Fix rendering of checkbox outlines in dark mode 2019-12-12 08:37:11 +05:30
Kovid Goyal
aa0da824a5
Dont draw ugly border line under editor tab bar in dark mode 2019-12-11 21:04:47 +05:30
Kovid Goyal
3d42f724f3
Fix #1855957 [[Enhancement] Increase Max. OPDS items per query](https://bugs.launchpad.net/calibre/+bug/1855957) 2019-12-11 11:49:47 +05:30
Kovid Goyal
ddbf868592
Fix toolbar extender button not visible in dark theme 2019-12-10 13:56:04 +05:30
Kovid Goyal
406944a17e
Fix icons in text edit widget toolbar for dark themes 2019-12-10 11:27:53 +05:30
Kovid Goyal
ade858c1de
Make various text formatting icons work better with dark themes 2019-12-10 11:17:32 +05:30
Kovid Goyal
04c2ccf6b2
py3 compat 2019-12-09 22:30:10 +05:30
Kovid Goyal
0c838d4a40
Turn on allowZip64 by default this matches python3 but not python2 2019-12-09 22:22:05 +05:30
Kovid Goyal
0fbc3cece6
Implement going to references in Go to... 2019-12-09 17:16:17 +05:30
Kovid Goyal
e6044fae91
Implement support for references with --open-at 2019-12-09 17:02:30 +05:30
Kovid Goyal
6a540b8b98
Cleanup passing of --open-at data to show_book 2019-12-09 10:31:12 +05:30
Kovid Goyal
f495ffc16c
Add a reference mode control to the viewer chrome 2019-12-09 09:49:58 +05:30
Kovid Goyal
7dea54d135
Add a button to toggel reference mode to the toolbar 2019-12-09 09:29:27 +05:30
Kovid Goyal
e1d9a25f81
Restore reference mode from the 3.x viewer 2019-12-09 09:05:28 +05:30
Kovid Goyal
d6262bbb90
Remove unused code 2019-12-09 00:14:43 +05:30
Kovid Goyal
68667f5f56
Fix no_activate_on_click style not delegating to the current style 2019-12-09 00:11:03 +05:30
Kovid Goyal
6fb8c25e89
Make toolbar separators stand out a bit more in dark themes 2019-12-08 23:10:32 +05:30
Kovid Goyal
7f991ad084
... 2019-12-08 21:59:16 +05:30
Kovid Goyal
3b50d8f280
Fix menu separators not visible in dark mode 2019-12-08 21:57:50 +05:30
Kovid Goyal
1713740406
set a property that can be accessed from C++ for dark mode 2019-12-08 21:35:40 +05:30
Kovid Goyal
c0655e782b
Make the text color consistent 2019-12-08 21:33:57 +05:30
Kovid Goyal
862463bc2b
Always use a lighter shade for current item hightlight 2019-12-08 21:04:56 +05:30
Kovid Goyal
d974b2f39c
Allow CALIBRE_USE_DARK_PALETTE override registry setting on windows 2019-12-08 20:40:44 +05:30
Kovid Goyal
0a1d4cfcbf
Color tweaks 2019-12-08 11:13:24 +05:30
Kovid Goyal
ad56467166
Define the dark theme link color in only one place 2019-12-08 09:11:56 +05:30
Kovid Goyal
0fdc70eac9
Fix tooltip bg in dark palette 2019-12-08 09:02:54 +05:30
Kovid Goyal
9c7f24805b
Only modify dark palette on macOS where we dont explicitly set the colors 2019-12-08 09:01:35 +05:30
Kovid Goyal
537fcd9021
Allow using an env var on linux for dark mode 2019-12-08 08:50:42 +05:30
Kovid Goyal
9d50e774b9
Only enable dark mode palette when using calibre style since it does not work with the system style
Also dont disable alternating row colors with dark palettes on windows,
since we can control the color.
2019-12-08 08:04:26 +05:30
Kovid Goyal
9d8ad144ff
DOCX Input: Fix incorrect font sizes for footnote references in paragraphs that have text with multiple font sizes. Fixes #1855403 [Private bug](https://bugs.launchpad.net/calibre/+bug/1855403) 2019-12-08 07:45:31 +05:30
Kovid Goyal
08ca34e735
DOCX Input: Avoid nested <sup> tags for footnote references
Also avoid empty <sup> or <sub> tags.
2019-12-08 07:44:03 +05:30
Kovid Goyal
935e7573ab
Add support for windows 10 dark mode
If dark mode is enabled in windows 10 under Settings -> Personalization
-> Colors then calibre will use dark colors for its interface. Note
that changing the setting will only take effect when calibre is
restarted.
2019-12-07 04:23:30 +05:30
Kovid Goyal
5774a6ef9a
Use the same ToC icon for viewer as for rest of calibre 2019-12-06 17:12:01 +05:30
Kovid Goyal
55ba61babc
Viewer: Improve metadata rendering. Fixes #1855163 [Show metadata in the same font size](https://bugs.launchpad.net/calibre/+bug/1855163) 2019-12-06 15:37:00 +05:30
Kovid Goyal
2d25f8d779
Log the user agent and keep it stable 2019-12-06 14:01:08 +05:30
Kovid Goyal
2e693b4156
Merge branch 'master' of https://github.com/davidfor/calibre 2019-12-06 07:24:29 +05:30
David
fac8c55cc6 Update supported Kobo firmware version 2019-12-06 07:38:40 +11:00
Kovid Goyal
14293ba36d
Content server: Remove un-needed narrow nbsp before titles in mobile view 2019-12-05 18:23:51 +05:30
Kovid Goyal
64adf22ac0
Fix azw3 conversion of entities failing on narrow python builds such as windows 2019-12-04 23:17:44 +05:30
Kovid Goyal
281ddb8678
Make the name of the html syntax highlighter module more explicit
Avoids name collisions with the stdlib html module in python3
2019-12-03 10:45:42 +05:30
Kovid Goyal
14819b4ec7
PDF Output: Fix the option to break long words at the end of lines not working since calibre 4. Fixes #1854349 [pdf-hyphenate no longer hyphenating pdfs](https://bugs.launchpad.net/calibre/+bug/1854349) [pdf-hyphenate no longer hyphenating pdfs](https://bugs.launchpad.net/calibre/+bug/1854349) 2019-12-02 20:32:26 +05:30
Kovid Goyal
e757597971
Polish books: Add a tool to add or remove soft hyphens from the book text 2019-12-02 20:26:36 +05:30
Kovid Goyal
6625560e81
Make algorithm non recursive to avoid failure on deeply nested tags 2019-12-02 18:42:37 +05:30
Kovid Goyal
7f85f0b531
Implement hyphenation of HTML 2019-12-02 17:15:06 +05:30
Kovid Goyal
9d9cd957f2
Fix failing test 2019-12-02 15:15:31 +05:30
Kovid Goyal
a8cb5c96ba
Clear caches per test rather than per class 2019-12-02 14:56:35 +05:30
Kovid Goyal
1e5de81544
Function to hyphenate individual words, sans surrounding punctuation 2019-12-02 14:44:54 +05:30
Kovid Goyal
aa1f52460e
Function to remove surrounding punctuation 2019-12-01 20:03:18 +05:30
Kovid Goyal
c344ef0775
Fix #1854616 [[Enhancement] Add separator in Fonts preferences](https://bugs.launchpad.net/calibre/+bug/1854616) 2019-12-01 18:14:00 +05:30
Kovid Goyal
d6ee7238bb
Viewer: Auto-expand entries in the Table of Contents when viewing the corresponding location in the book. 2019-12-01 14:23:57 +05:30
Kovid Goyal
ccce39da50
Viewer: When creating a new bookmark ifthere is selected text use it as the default bookmark title. Fixes #1854611 [Feature request: Highlighter and Bookmark](https://bugs.launchpad.net/calibre/+bug/1854611) 2019-12-01 14:09:41 +05:30
Kovid Goyal
0abd0d88ee
Test cache usage 2019-12-01 13:40:29 +05:30
Kovid Goyal
cd4f231d74
Code to get path to dictionaries 2019-12-01 13:29:19 +05:30
Kovid Goyal
b16b5535bf
Implement mapping of locales to dictionary names 2019-12-01 10:50:32 +05:30
Kovid Goyal
ae3417cc5b
Forgot to actually rename the lzma package 2019-11-30 18:01:52 +05:30
Kovid Goyal
5c1b69f5b9
Add hyphen dependency 2019-11-30 17:58:57 +05:30
Kovid Goyal
b62a5af46c
Rename lzma module to calibre_lzma 2019-11-30 16:52:34 +05:30
Kovid Goyal
4a45f32357
Start work on libhyphen wrapper 2019-11-30 16:48:27 +05:30
Kovid Goyal
41791d1e4d
... 2019-11-30 13:25:05 +05:30
Kovid Goyal
9bd07a9b8f
Show image at natural size when unchecking fit image 2019-11-30 13:24:33 +05:30
Kovid Goyal
d867756bbb
Fix resizing behavior of user categories editor 2019-11-29 09:54:31 +05:30
Kovid Goyal
e38ed4bda3
String changes 2019-11-29 09:46:24 +05:30
Kovid Goyal
30ed603583
Fix #1854422 [[Enhancement] Center the imaga in View image window](https://bugs.launchpad.net/calibre/+bug/1854422) 2019-11-29 09:44:53 +05:30
Kovid Goyal
789a78ce39
Remove border from cover in conversion dialog as well 2019-11-29 09:25:09 +05:30
Kovid Goyal
e4ef69b78f
More vertical font merging typos 2019-11-29 09:17:42 +05:30
Kovid Goyal
51d434ecea
version 4.5.0 2019-11-29 02:54:00 +05:30
Kovid Goyal
08efb46599
PDF Output: Fix incorrect rendering if the input document has too many anchors. Fixes #1854345 [too many ids in input causes zoomed out converted pdf](https://bugs.launchpad.net/calibre/+bug/1854345) 2019-11-28 17:38:13 +05:30
Kovid Goyal
163b2dfd2d
Driver for the new PocketBook Inkpad X
Fixes #1854335 [Driver for PocketBook Inkpad X](https://bugs.launchpad.net/calibre/+bug/1854335)
2019-11-28 16:44:56 +05:30
Kovid Goyal
08674935c1
Handle missing title a bit better 2019-11-28 16:38:44 +05:30