46151 Commits

Author SHA1 Message Date
Kovid Goyal
fc8c0979d1
AZW3 Input: Generate mimetypes for fonts that match what the editor expects. Fixes #1993496 [problem converting EPUB to AZW3](https://bugs.launchpad.net/calibre/+bug/1993496) 2022-10-31 06:15:35 +05:30
Kovid Goyal
9aea6019e1
Book details: Improve plain text formatting when copying to clipboard. Fixes #1993753 [Copy Book Details puts column names and values on separate lines](https://bugs.launchpad.net/calibre/+bug/1993753) 2022-10-31 05:41:51 +05:30
Kovid Goyal
608b328f25
E-book viewer: Fix rendering of comments in metadata display when using a dark color scheme. Fixes #1995214 [Metadata comments in E-book viewer have white background in any dark color scheme](https://bugs.launchpad.net/calibre/+bug/1995214) 2022-10-31 05:11:21 +05:30
Kovid Goyal
f0ba30d7d3
Conversion pipeline: Fix CSS styles applied to SVG elements being discarded 2022-10-30 19:49:29 +05:30
Kovid Goyal
d4bc5a73fd
AZW3 Input: Fix svg images that use a prefix for the SVG namespace not being recognized. Fixes #1994988 [Pictures are missing when converting from Epub to Azw3](https://bugs.launchpad.net/calibre/+bug/1994988) 2022-10-30 19:27:12 +05:30
Kovid Goyal
2ee4970e12
Fifty Two by unkn0wn 2022-10-30 17:46:40 +05:30
Kovid Goyal
4c08d56111
Update Bloomberg Business Week 2022-10-30 17:41:55 +05:30
Kovid Goyal
73637baaa9
Edit book: Fix double clicking in the see what changed dialog not opening the file in the editor since calibre 6.0
PyQt6's enums strike again
2022-10-30 08:55:31 +05:30
Kovid Goyal
57a3641e54
Edit book: Fix modified indicator on images not working correctly when replacing the image 2022-10-30 08:50:11 +05:30
Kovid Goyal
75bda0cd3a
Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-29 19:40:18 +05:30
Charles Haley
7679ec5b1f Improved Metadata deepcopy recursion fix.
It was possible for the recursion to occur if mi.deepcopy() was called after (un)safe_format(). Change the state save/restore mechanism to ensure all instance variables are restored to base settings.
2022-10-29 15:07:00 +01:00
Kovid Goyal
4918c061b6
Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-29 19:05:08 +05:30
Kovid Goyal
ebb284467d
Dont shutdown the ARM build machine as it is flaky 2022-10-29 19:01:58 +05:30
Charles Haley
b8b63c6cdf Fix for infinite recursion in Metadata.deepcopy() that crashed the wireless driver, and would probably crash other things as well.
See https://www.mobileread.com/forums/showthread.php?p=4269072#post4269072
2022-10-29 14:10:31 +01:00
Kovid Goyal
f2a3abed40
Bloomberg by unkn0wn 2022-10-28 05:29:47 +05:30
Kovid Goyal
ed1ad7a38d
Add some tooltips 2022-10-27 17:37:05 +05:30
Kovid Goyal
3d1f332e9f
Move code for CalibreStyle into its own file 2022-10-27 09:59:08 +05:30
Kovid Goyal
c8fa0ca9b3
... 2022-10-26 22:06:57 +05:30
Kovid Goyal
1564fe7bf7
Allow using a "plugin_tweak" to suppress geometry debug output 2022-10-26 21:55:17 +05:30
Kovid Goyal
98e59d96b7
For some reason the splitters are wider in the editor/viewer than in the main GUI so use the actual splitterhandle pixel metric to draw the dots otherwise they look too large 2022-10-26 21:46:18 +05:30
Kovid Goyal
45f82b9676
DRYer 2022-10-26 21:24:09 +05:30
Kovid Goyal
cac7d37d50
Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-26 20:58:16 +05:30
Kovid Goyal
957953a212
Get rid of BasicSplitter
Move custom drawing of splitter handle into the style where it belongs.
This means all splitters now use the custom handle without needing to
sprinkle a special class everywhere.

Note that this only works when using the calibre style not the system
one. This is by design, since we do not want to override drawing of
"system" components.
2022-10-26 20:53:45 +05:30
Charles Haley
8a693530b1 As I discussed in the previous PR, this commit makes the cover adapt to the new area when the book details pane changes size. I used the same technique you used in .widgets. 2022-10-26 16:14:40 +01:00
Kovid Goyal
98811a1999
Cleanup previous PR
- Improve rendering of splitter handle using fewer, closer spaced,
  circular dots

- Fix book details splitter not being rendered correctly on first start
  when there is no saved state to restore

- Remove geometry save/restore of splitter as this is handled by
  restore_state

- Remove call to setChildrenCollapsible before any children were added,
  causing Qt to print an error to stderr

Fixes #1994065 [Enhancement Request: Details pane: Splitter between cover and details](https://bugs.launchpad.net/calibre/+bug/1994065)
2022-10-26 20:16:53 +05:30
Kovid Goyal
2fb78716f9
Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-26 19:48:12 +05:30
Charles Haley
e6ca2217a2 Related to Enhancement Request #1994065: Details pane: Splitter between cover and details
This is a rather invoved PR. I first looked at putting a splitter in book details, and decided to in the process fix something that has bothered me for years. On Windows in light mode I can't see the splitter handles. In dark mode I can, but I run in light mode and don't want to change. This PR adds a custom QSplitterHandle class that draws the handle depending on the palatte.

The PR includes changes for the splitters in classes I know how to test: the main UI, Pinned columns, QuickView, Edit metadata, tweak books, single download metadata, Check library, Book info, and (of course) Book details.
2022-10-25 21:19:53 +01:00
Kovid Goyal
b2eb525a42
When sending by email to kindle dont include the author in the filename as amazon is currently reading the author from the file metadata but not the title. Fixes #1994136 [Send to Kindle gets wrong title](https://bugs.launchpad.net/calibre/+bug/1994136)
Roll eyes.
2022-10-25 17:24:08 +05:30
Kovid Goyal
c143ece70c
py3: Type of exception raised has changed leading to corrupt trailing data becoming unrecoverable. Fixes #1994103 [[Bug] mobi convert TypeError: ord() expected a character, but string of length 0 found](https://bugs.launchpad.net/calibre/+bug/1994103) 2022-10-25 10:52:35 +05:30
Kovid Goyal
5be5d2fe09
Update Army and Navy Times 2022-10-25 09:25:39 +05:30
Kovid Goyal
7f274951fa
Fix #1993913 [Private bug](https://bugs.launchpad.net/calibre/+bug/1993913) 2022-10-25 08:31:18 +05:30
Kovid Goyal
3c5b4bf212
Remove linux specific centering of preferences dialog 2022-10-24 22:48:15 +05:30
Kovid Goyal
7addd2b2d4
pep8 2022-10-24 21:31:01 +05:30
Kovid Goyal
0871ba81aa
Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-24 21:30:34 +05:30
Charles Haley
6374517dd4 Template debugger: Add breakpoints for python templates. On a breakpoint open a dialog displaying variables in the current frame.
Also indicate when the debugger is waiting for the 'Go' button. This fixes problems when people don't notice they have checked the Enable breakpoints box.
2022-10-24 13:48:57 +01:00
Kovid Goyal
77dc74137f
... 2022-10-23 09:13:07 +05:30
Kovid Goyal
8537ba6de2
... 2022-10-23 09:11:47 +05:30
Kovid Goyal
92b0f3e78d
... 2022-10-22 20:09:16 +05:30
Kovid Goyal
78c399c174
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #1993756 [Calibre 6.7.1* (source): Check library fails](https://bugs.launchpad.net/calibre/+bug/1993756)
2022-10-21 13:40:53 +05:30
Charles Haley
ff90485134 Bug 1993756: Check library fails 2022-10-21 09:02:16 +01:00
Kovid Goyal
cafc1b44cd
Also special case @kindle.cn as apparently that is used in China
See https://bugs.launchpad.net/calibre/+bug/1993728
2022-10-21 13:02:40 +05:30
Kovid Goyal
7fda097623
Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-20 21:17:52 +05:30
Charles Haley
0f822adf73 I messed up widgetForAction(). list.index() raises an exception, not returning -1. 2022-10-20 16:41:39 +01:00
Kovid Goyal
140e9cd164
yes we need right click, its much easier to use than clicking the drop-down arrow 2022-10-20 21:07:29 +05:30
Kovid Goyal
47df5f10f2
Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-20 21:06:14 +05:30
Charles Haley
f2a5c18a4f Bug 1993622: Toolbar button oddities on search bar
The major change is using a new class SearchToolBar to mimic a ToolBar. This lets the BarsManager treat the SearchToolBar as a "normal" toolbar. This fixed the two problems reported in this bug report.

In addition I fixed:
- "Mark Books" to install its event listener on SearchToolBar buttons.
- SavedSearchs to find SearchToolBar buttons when using keyboard shortcuts.
- Prevent the location manager and the donate action from being added to the SearchToolBar.
2022-10-20 16:13:06 +01:00
Kovid Goyal
fd8270d72c
Update eenadu_ap 2022-10-20 15:12:00 +05:30
Kovid Goyal
35cb784452
See if using python instead of curl bypasses the windows CI failure 2022-10-20 11:15:51 +05:30
Kovid Goyal
d924db2fcd
Fix #1993591 [Get eBooks: No option to clear search history](https://bugs.launchpad.net/calibre/+bug/1993591) 2022-10-20 08:13:01 +05:30
Kovid Goyal
851df00a06
unique_name should not be translated
Fixes #1993574 [Calibre 6.7.1* (source): Virtual library madness](https://bugs.launchpad.net/calibre/+bug/1993574)
2022-10-20 07:46:02 +05:30