37236 Commits

Author SHA1 Message Date
Kovid Goyal
0f0ac817c7
Fix #2058125 [Moving actions to the top causes one to disappear and the other to loop INSTEAD of stopping](https://bugs.launchpad.net/calibre/+bug/2058125) 2024-03-31 12:55:14 +05:30
Kovid Goyal
f64181b09d
... 2024-03-31 08:30:38 +05:30
Kovid Goyal
845bce1c40
Merge branch 'master' of https://github.com/cbhaley/calibre 2024-03-31 08:21:32 +05:30
413Michele
15c3915cc1 Filter highlights typo 2024-03-30 17:51:57 +01:00
Charles Haley
bb00ddbe46 Add a "Mark all selected books" to the Mark action. 2024-03-30 12:41:02 +00:00
Kovid Goyal
e85af248a6
E-book viewer: Highlight panel: Allow filtering the shown highlights by type of highlight. Fixes #2057929 [ebook viewer ER: for highlight panel, add ability to filter by highlight type (color)](https://bugs.launchpad.net/calibre/+bug/2057929) 2024-03-30 15:20:49 +05:30
Kovid Goyal
3fbb55d184
Hide the useless go back button in the highlights panel 2024-03-30 13:18:31 +05:30
Kovid Goyal
53b74283a4
sort imports in all python files 2024-03-30 13:02:22 +05:30
Kovid Goyal
6fb49c9a22
DOCX Input: Add role="doc-noteref" for links to footnotes/endnotes 2024-03-30 12:34:08 +05:30
Kovid Goyal
3f0a747730
Cleanup message box implementation
Fixes continuous resize loop when clicking show details under sway.
Bloody wayland waste of time
2024-03-29 11:35:28 +05:30
Kovid Goyal
bc0b5fdcaf
Get rid of another .ui file and fix that the confirm location dialog had no parent 2024-03-29 09:53:27 +05:30
Kovid Goyal
822646d494
Preview release 2024-03-29 08:23:34 +05:30
Kovid Goyal
992b006303
Get books: Update Kobo store plugin for website changes 2024-03-28 19:19:19 +05:30
Charles Haley
8b56b58a15 Enhancement #2059169: 'Hide Empty Categories' in tag browser (configuration) menu 2024-03-27 12:12:55 +00:00
Nikita Leshenko
3458394a6c Use bytes replacement pattern for bytes-based re.sub
In this case data and regex are bytes, so repl argument should be bytes as
well. Before this fix, we would sometimes get this error:

```
calibre, version 7.3.0 (linux, embedded-python: False)
Conversion error: Failed: Convert book 1 of 1 (xxxxxxxxxx)
--- snip ---
2024-03-24 23:43:49 [INFO] Upgrading to EPUB 3...
Traceback (most recent call last):
  File "/usr/bin/calibre-parallel", line 21, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib64/calibre/calibre/utils/ipc/worker.py", line 214, in main
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/calibre/calibre/gui2/convert/gui_conversion.py", line 38, in gui_convert_override
    gui_convert(input, output, recommendations, notification=notification,
  File "/usr/lib64/calibre/calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert
    plumber.run()
  File "/usr/lib64/calibre/calibre/ebooks/conversion/plumber.py", line 1281, in run
    self.output_plugin.convert(self.oeb, self.output, self.input_plugin,
  File "calibre_plugins.kepubout.conversion.kepub_output", line 146, in convert
  File "/usr/lib64/calibre/calibre/ebooks/conversion/plugins/epub_output.py", line 275, in convert
    encryption = self.upgrade_to_epub3(tdir, opf, encryption)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/calibre/calibre/ebooks/conversion/plugins/epub_output.py", line 319, in upgrade_to_epub3
    container.commit()
  File "/usr/lib64/calibre/calibre/ebooks/oeb/polish/container.py", line 1360, in commit
    super().commit(keep_parsed=keep_parsed)
  File "/usr/lib64/calibre/calibre/ebooks/oeb/polish/container.py", line 1073, in commit
    self.commit_item(name, keep_parsed=keep_parsed)
  File "/usr/lib64/calibre/calibre/ebooks/oeb/polish/container.py", line 1017, in commit_item
    data = self.serialize_item(name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/calibre/calibre/ebooks/oeb/polish/container.py", line 1008, in serialize_item
    data = re.sub(br'(<[/]{0,1})opf:', r'\1', data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/re/__init__.py", line 186, in sub
    return _compile(pattern, flags).sub(repl, string, count)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: sequence item 1: expected str instance, bytes found
```

In my case, the error would show up when converting EPUBs to KEBPUBs.
2024-03-24 23:56:00 +02:00
Kovid Goyal
a9d42f8183
Yet another Supernote USB product ID 2024-03-24 08:51:08 +05:30
Kovid Goyal
96291b841b
Preview release 2024-03-22 07:55:09 +05:30
Charles Haley
988f4dff47 Enhancement #2058472: Sort by tool. Change to menu to add "reapply current sort".
Also changed it to show the shortcuts for reapply and reverse sort.
2024-03-20 21:04:04 +00:00
Kovid Goyal
b79f7f2f37
Translate text for a couple more guide entries 2024-03-20 16:25:32 +05:30
Kovid Goyal
13c6a4c018
EPUB Input: Use a translated name for the cover page 2024-03-20 12:33:49 +05:30
goodmost
77c1844256 chore: remove repetitive words
Signed-off-by: goodmost <zhaohaiyang@outlook.com>
2024-03-19 20:28:18 +08:00
Charles Haley
d674a8e456 Don't display an empty custom column group box when all custom columns are deselected in Look & feel / Edit metadata 2024-03-17 11:10:08 +00:00
Charles Haley
cfc14e774f Small change to commit d84b1e2 to be a little safer. 2024-03-17 10:20:19 +00:00
Kovid Goyal
d84b1e2009
Grid view cover cache: Fix covers not loading when cache entries are stale 2024-03-17 10:05:54 +05:30
Charles Haley
bfe4131bba Template searches should never be cached. Each call can produce a different answer without any underlying data changes. 2024-03-16 12:40:05 +00:00
Kovid Goyal
80cf6f447a
Add a title bar to the profiles page 2024-03-15 10:46:02 +05:30
Kovid Goyal
9a38ad9121
DRYer 2024-03-15 05:33:03 +05:30
Kovid Goyal
9330217e9b
Fix trim button not being activated by initial region specification 2024-03-15 05:31:21 +05:30
Kovid Goyal
8072ea11a3
version 7.7.0 2024-03-14 08:49:04 +05:30
Kovid Goyal
a185e4b400
... 2024-03-14 08:24:20 +05:30
Kovid Goyal
c8b2cb4c90
Merge branch 'fix_desc' of https://github.com/IceflowRE/calibre 2024-03-14 08:23:19 +05:30
Iceflower
563c6f7763
Fix comic description 2024-03-13 19:21:02 +01:00
Kovid Goyal
4bd400c7d6
... 2024-03-13 21:37:17 +05:30
Kovid Goyal
5b53a49ba1
Trim image: Allow specifying the size of the trim rectangle using numbers. Fixes #2056116 [Trim Cover: Trim to specified size/ratio](https://bugs.launchpad.net/calibre/+bug/2056116) 2024-03-13 21:33:49 +05:30
Kovid Goyal
361eb92708
Canvas: When dragging with Alt key pressed preserve aspect ratio 2024-03-13 20:37:19 +05:30
Charles Haley
08c33d01cb Pass the set of book_ids already matched by previous search terms to the template search.
Reason: the template can use the candidate set to limit work to books already matched.
2024-03-13 12:24:42 +00:00
Kovid Goyal
8fc35d8999
Some more long path support in the add code path 2024-03-13 09:07:28 +05:30
Kovid Goyal
2fc2b59331
Handle long paths when auto adding better
Havent really tested it since long paths arent officially supported but
this *should* mostly work
2024-03-13 09:01:23 +05:30
Kovid Goyal
cd13fbfe27
... 2024-03-12 19:08:40 +05:30
Kovid Goyal
91120754a3
CHM Input: Handle CHM files with no HHC ToC. Fixes #2056470 [Ablity to render CHM when there is no TOC/.hhc file present:](https://bugs.launchpad.net/calibre/+bug/2056470) 2024-03-12 19:05:02 +05:30
Kovid Goyal
4b88d010ef
Fix #2056793 [ebook-edit: Keyboard navigation error in file browser](https://bugs.launchpad.net/calibre/+bug/2056793) 2024-03-12 07:01:47 +05:30
Charles Haley
2a2b1a4af8 Add a tweak to set the first day of the week in the Calendar widget in the DateTimeEdit class. 2024-03-11 13:41:18 +00:00
Kovid Goyal
cbc2bcfe9a
Fix #2056727 [[Bug] Removing Size from a book doesn't do anything](https://bugs.launchpad.net/calibre/+bug/2056727) 2024-03-11 15:55:44 +05:30
Kovid Goyal
4555f8f591
... 2024-03-11 09:17:56 +05:30
Kovid Goyal
9b481c42d8
Remove leftover debugging print 2024-03-11 08:53:43 +05:30
Kovid Goyal
11e4edf56d
E-book viewer: Fix a few settings such as pages per screen and header/footers not being saved in profiles 2024-03-11 08:52:30 +05:30
Kovid Goyal
88d926143e
Full text search: Allow pressing Ctrl+S to select the current book in the calibre book list. Fixes #2056664 [[Enhancement] Shortcut in the Full search window to jump/select book in calibre library](https://bugs.launchpad.net/calibre/+bug/2056664) 2024-03-10 19:29:24 +05:30
Kovid Goyal
f6e7d13bee
Fix #2056623 [[Enhancement] Move the Show options closer to the search field in the Manage items window](https://bugs.launchpad.net/calibre/+bug/2056623) 2024-03-10 10:05:59 +05:30
Kovid Goyal
e9fa788d8f
Merge branch 'master' of https://github.com/cbhaley/calibre 2024-03-10 08:53:19 +05:30
Kovid Goyal
99467a5c8c
string changes 2024-03-10 08:50:17 +05:30