33131 Commits

Author SHA1 Message Date
Kovid Goyal
c116933db8
Edit book: Remove unused CSS: Fix selectors that dont match from CSS rules containing multiple selectors not being removed. Fixes #1904350 [merged CSS, editor does not remove unsed names](https://bugs.launchpad.net/calibre/+bug/1904350) 2021-01-21 16:58:08 +05:30
Kovid Goyal
4b3ac510bf
E-book viewer: Highlight all currently visible ToC nodes, not just the first. See #1912003 (E-book viewer: at some circumstances incorrect ToC entries get highlighted) 2021-01-21 11:05:10 +05:30
Kovid Goyal
309cecad1c
E-book viewer: Fix scrolling with two fingers on touchpad on macOS not smooth. Fixes #1911218 [Scrolling with built-in trackpad of MacBook Pro on macOS very unsmooth](https://bugs.launchpad.net/calibre/+bug/1911218)
On macOS swiping fast tends to scroll along both axes simultaneously
2021-01-21 08:21:55 +05:30
Kovid Goyal
f92439fe6b
Move tests into separate module
Avoids parsing the test code on every import of a very central module
2021-01-21 05:54:51 +05:30
Kovid Goyal
6dc39a511a
Add a new tweak under "Author sort name algorithm" to optionally recognize common surname prefixes such as von, van, de etc.
Merge branch 'author-sort' of https://github.com/madphysicist/calibre
2021-01-21 05:49:58 +05:30
Joseph R. Fox-Rabinovitz
4391ef0b0e Added "invert" method to tests 2021-01-20 12:45:15 -05:00
Joseph R. Fox-Rabinovitz
f699b436a0 Added config key author_use_surname_prefixes and tests 2021-01-20 12:31:35 -05:00
Kovid Goyal
b0555e1cfe
pep8 2021-01-20 21:18:49 +05:30
Kovid Goyal
e19e08ecc4
Insert metadata: Allow showing identifiers such as ISBN in the jacket page template 2021-01-20 20:05:28 +05:30
Kovid Goyal
3f8403ca84
Conversion: Insert metadata: Allow hiding entries in the jacket template when they are not present in the metadata. 2021-01-20 19:35:07 +05:30
Kovid Goyal
eeb609f983
... 2021-01-20 14:19:25 +05:30
Kovid Goyal
588b5683f0
string changes 2021-01-20 13:53:35 +05:30
Kovid Goyal
65766fdff2
Fix #1909251 [Enhancement Request: Tag Manager - Copy nonexistent filters to Add field](https://bugs.launchpad.net/calibre/+bug/1909251) 2021-01-20 13:28:44 +05:30
Kovid Goyal
58b4fd3fe3
Fix add columns screen going back to main prefs when launched from column header context menu. Fixes #1910929 [Enhancement Request: Preferences: Inconsistent behaviour of Discard button](https://bugs.launchpad.net/calibre/+bug/1910929) 2021-01-20 13:21:41 +05:30
Kovid Goyal
c86bcede66
Fix #1910883 [can't automatically scroll down the list of icon rules](https://bugs.launchpad.net/calibre/+bug/1910883) 2021-01-20 13:12:05 +05:30
Kovid Goyal
1c12b0efe6
Bulk metadata edit: Add a new control to compress the cover image files for all selected books. Fixes #1911888 [Editing an ePub's internal cover should update its metadata cover](https://bugs.launchpad.net/calibre/+bug/1911888) 2021-01-20 12:32:19 +05:30
Kovid Goyal
48e36065a4
PDF Output: When converting fixed layout input documents fix anchors inserted for navigation sometimes being rendered as blue boxes. Fixes #1911466 [Private bug](https://bugs.launchpad.net/calibre/+bug/1911466) 2021-01-19 21:25:02 +05:30
Kovid Goyal
0727fb7793
calibre-server --manage-users: Add a scriptable interface calibre-server --manage-users -- help. Fixes #1912337 [[Enhancement] Add parameters for executing actions programatically from calibre-server --manage-users](https://bugs.launchpad.net/calibre/+bug/1912337) 2021-01-19 20:39:53 +05:30
Kovid Goyal
991e61af32
E-book viewer: Move read aloud popup bar to the bottom of the screen in flow mode. Fixes #1911470 [Read Aloud toolbar covers text](https://bugs.launchpad.net/calibre/+bug/1911470) 2021-01-19 19:33:36 +05:30
Kovid Goyal
3be5856df5
Bulk metadata download: Fix series number not being changes if the series is the same as the existing series 2021-01-19 18:20:49 +05:30
Kovid Goyal
54d57c6748
Add support for the CB7 comic file file format
Fixes #1912212 [Add support for CB7 and CBA file format](https://bugs.launchpad.net/calibre/+bug/1912212)
2021-01-19 13:33:45 +05:30
Kovid Goyal
eae5ff6d88
E-book viewer: Fix a regression that caused non-HTML descriptions to not be displayed in the metadata page 2021-01-19 09:24:34 +05:30
Charles Haley
e195687859 Also make saved search recursion checking case insensitive. Raise the 'recursion limit' to 10. 2021-01-18 10:12:26 +00:00
Kovid Goyal
15e8980cb2
E-book viewer: Allow adding a button to the selection bar that copies the currently selected text along with a calibre:// URL to show the text in the book. See #1912070 ([Enhancement] Additional access to copying Go To URL location link) 2021-01-18 13:14:22 +05:30
Kovid Goyal
9032d92954
E-book viewer: Add keyboard shortcuts to copy the current location to the clipboard. Fixes #1912070 [[Enhancement] Additional access to copying Go To URL location link](https://bugs.launchpad.net/calibre/+bug/1912070) 2021-01-18 11:21:45 +05:30
Kovid Goyal
447f366839
DRYer 2021-01-18 10:49:50 +05:30
Kovid Goyal
0bdaf44cfb
py3 compat for mtp on unix error reporting 2021-01-18 08:04:44 +05:30
Kovid Goyal
05776164d0
Merge branch 'master' of https://github.com/cbhaley/calibre 2021-01-17 19:35:18 +05:30
Charles Haley
cfbff3d98f New template function: field_exists() 2021-01-17 13:56:55 +00:00
Charles Haley
b7c4fcd711 Enhancement: allow template functions add() and multiply() to take a variable number of arguments. 2021-01-17 13:56:28 +00:00
Kovid Goyal
c577025037
pep8 2021-01-17 19:19:05 +05:30
Kovid Goyal
e3cde00f98
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #1912074 [Enhancement Request: Increase size of Edit Saved Search](https://bugs.launchpad.net/calibre/+bug/1912074)
Fixes #1912081 [Saved searches are case-sensitive](https://bugs.launchpad.net/calibre/+bug/1912081)
2021-01-17 19:16:57 +05:30
Charles Haley
aec0185f0c Show template function type in the template editor's function list. 2021-01-17 11:27:42 +00:00
Charles Haley
9df7d7ead9 Enhancement #1912081: make saved search lookup case insensitive. 2021-01-17 11:09:31 +00:00
Charles Haley
9c0fabff25 Enhancement #1912074: make the saved search editor multiline. 2021-01-17 10:59:15 +00:00
Kovid Goyal
9546557ec9
String changes 2021-01-17 05:46:35 +05:30
Joseph R. Fox-Rabinovitz
efe490b1b7 Added unit tests for author sort function 2021-01-15 12:47:44 -05:00
Joseph R. Fox-Rabinovitz
b1ecfe1fdf ENH: Added surname prefixes to author sort
If an author last name is preceded by von, van, di, la, le, da, de, etc. include that in the last name
2021-01-15 08:21:40 -05:00
Charles Haley
e6922b9983 Inline the formatter function contains() for better performance. 2021-01-15 11:56:23 +00:00
Kovid Goyal
93aed4db7a
Also add a test for AP based date formatting 2021-01-14 20:15:55 +05:30
Kovid Goyal
6daa33600d
E-book viewer: Fix clock being displayed in 24 hr format on some systems even though system locale is set to use 12 hr format. 2021-01-14 20:13:14 +05:30
Kovid Goyal
b657953478
Dont rely on the arguments of the activated signal as they are unknown in PyQt6 2021-01-14 03:15:39 +05:30
Kovid Goyal
e4cce88002
Dont use deprecated QApplication.fontMetrics() 2021-01-13 18:35:35 +05:30
Kovid Goyal
1d89aa737a
Fix detection of missing speech-dispatcher on linux 2021-01-12 07:15:49 +05:30
Kovid Goyal
e91ebda5e8
When detecting plugin zip safety dont use a hardcoded list of native code extensions 2021-01-11 07:19:25 +05:30
Kovid Goyal
31a1ce8d4a
Fix #1910904 [[Enhancement] Use a Cancel button instead of a Discard button](https://bugs.launchpad.net/calibre/+bug/1910904) 2021-01-10 16:42:34 +05:30
Guido Falsi
fc9a480cd4 Use python 3.7 compatible syntax.
The := operator was introduced in python 3.8. I don't think making calibre incompatible with previous python versions is worth the use of the new operator here.

FreeBSD at least uses python 3.7 by default and this would cause problems in providing calibre to users, and require them to custom compile software to get it.
2021-01-09 11:44:07 +01:00
Kovid Goyal
986408809c
Bulk metadata edit: Fix regression that inverted the meaning of the case sensitivity setting in the Search & replace tab 2021-01-09 06:25:30 +05:30
Kovid Goyal
78a001b335
calibredb list: Fix incorrect output when redirecting to file
py3 compat, caused by mix of text and binary output streams.
2021-01-09 06:08:51 +05:30
Charles Haley
84b0c4a318 Bug #1910662: Composite column shows as one string 2021-01-08 10:27:31 +00:00