38402 Commits

Author SHA1 Message Date
Kovid Goyal
4faf5fb9e5
More work on kepubify 2025-02-20 10:17:27 +05:30
Kovid Goyal
1dc92ac423
pep8 2025-02-20 09:26:46 +05:30
Charles Haley
4939aa7948 Refactor L&F / Tag browser / icon rules editor. Allow adding new rules. To avoid lots of problems don't allow changing lookup names and values for existing rules. The user can use delete & add to fix "dead" rules. 2025-02-19 22:02:56 +00:00
Kovid Goyal
0941278e93
Increase size of cover rendered from HTML 2025-02-19 19:30:56 +05:30
Kovid Goyal
03cc258c25
pep8 2025-02-17 22:54:55 +05:30
Kovid Goyal
41b0ca1461
More work on kepubify 2025-02-17 20:56:32 +05:30
Kovid Goyal
f5ff33a926
Add a test for single value tag mapping 2025-02-17 20:49:00 +05:30
Kovid Goyal
f9f593cc3b
Metadata download: Publisher/series transform rules: Fix values with commas in them not working. Fixes #2098620 [series mapping rules cut off replacement at ","](https://bugs.launchpad.net/calibre/+bug/2098620) 2025-02-17 20:43:44 +05:30
Kovid Goyal
8492dcc53a
Speedup barename and namespace 2025-02-17 11:57:42 +05:30
Kovid Goyal
b033d78e8e
Start work on kepubify 2025-02-17 11:34:18 +05:30
Kovid Goyal
ec5584d7b5
Cache XPath() invocations and make insert preserving indent re-useable 2025-02-17 11:28:44 +05:30
Kovid Goyal
cc19aa0ae6
NO_SEARCH_LINK should generate no link in the content server as well 2025-02-16 09:10:49 +05:30
Kovid Goyal
6b4035b84f
Merge branch 'master_2' of https://github.com/cbhaley/calibre 2025-02-16 09:03:25 +05:30
Charles Haley
f763fe7e25 Add option in book details to suppress author search links.
Question: should the constant be in calibre.constants instead of calibre.db.constants?
2025-02-15 13:37:35 +00:00
Charles Haley
a83fd3b1fa Try to work around RST problem with bold after a question mark. 2025-02-15 12:19:24 +00:00
Kovid Goyal
f3a93ae19d
string changes 2025-02-15 17:11:21 +05:30
Charles Haley
66373d63bf Two changes:
* Make selection of icon priority be what the documenation says. Falling back to the category icon was not implemented.
* Clear the icon cache when the tag browser is reset.
2025-02-14 22:13:29 +00:00
Kovid Goyal
2aa745548b
remove leftover debuggin print 2025-02-14 21:56:46 +05:30
Charles Haley
7160de141f Several tag browser rule editor fixes, including:
* Handle non-existent lookup keys and field values.
* Allow choosing a new lookup key if the one in the pref doesn't exist.
* Disable changing the "Only in library" checkbox to avoid throwing away edits.
2025-02-14 16:21:07 +00:00
Charles Haley
9bf7ba7a59 Much better fix for the invalid column problem in the tb icon rules editor. Also fixed a problem with the "Only in current library" box. 2025-02-14 13:55:53 +00:00
Kovid Goyal
c3f9086ced
... 2025-02-14 19:12:08 +05:30
Kovid Goyal
59289e67cd
Fix tabbing over hidden columns 2025-02-14 19:08:07 +05:30
Charles Haley
0fe39c3dea Fix tabbing in the book list and pin view going to wrong columns. 2025-02-14 11:58:15 +00:00
Charles Haley
fb9f56ffc0 Fix problem in L&F / Tag browser icon rules editor triggered by changing a column from a text-type to a composite, presumably by deleting and recreating the column. 2025-02-14 09:43:44 +00:00
Kovid Goyal
6553380eb1
Fix various docs ref bugs 2025-02-14 11:41:26 +05:30
Kovid Goyal
417c05ea41
version 7.26.0 2025-02-14 08:46:31 +05:30
Kovid Goyal
78e0db6f8a
Fix accidental removal of completion from series and publisher delegates 2025-02-13 16:53:17 +05:30
Kovid Goyal
662d5ba809
string changes 2025-02-13 07:47:23 +05:30
Charles Haley
f92971b513 Bug #2098133: Setting custom icon for category doesn't work 2025-02-12 21:47:57 +00:00
Charles Haley
2787b65310 Add a note to the L&F / Book Details custom author url tooltip that the author is already URL-encoded. 2025-02-12 20:40:40 +00:00
Charles Haley
1b70314705 Improvements to the documentation, and allow the "authority" in make_url_extended() to be empty. 2025-02-12 13:55:54 +00:00
Charles Haley
749b421066 Add to the item context menu in book details the ability to copy custom URL links 2025-02-12 13:54:50 +00:00
un-pogaz
56ae7183a3 move "Grid rule editor" to its own widget 2025-02-12 08:45:36 +01:00
Kovid Goyal
de0b3b99b5
Fix #2097947 [series mapping rules dont save](https://bugs.launchpad.net/calibre/+bug/2097947) 2025-02-12 09:38:35 +05:30
Kovid Goyal
cfad6bcf39
pep8 2025-02-12 08:02:31 +05:30
Charles Haley
33af676b11 The template functions for the new custom column search template feature. There are 4 new functions:
* make_url(path, [query_name, query_value]+). This is the easiest to use.
* make_url_extended(...). This gives the user more control over constructing the URL, including user-built query strings.
* query_string([query_name, query_value, how_to_encode]+). Constructs a query string, giving more control over how the values are encoded.
* encode_for_url(value, use_plus). URL-encodes a single value.

As you said earlier, most people will use make_url(). However, I have seen cases where query values must be inserted into the path, and make_url_extended() helps with that. I have also seen cases where query args must not be encoded. And so on. These 4 functions plus other text functions like re() let the user do whatever is necessary.

Note that 'item_value' is no longer encoded. There are two more values available: 'item_value_quoted' and 'item_value_no_plus'. I'm not convinced these are particularly useful but it doesn't hurt anything to have them.
2025-02-11 19:21:19 +00:00
Kovid Goyal
3be9172c51
Add shortcuts for edit metadata and show book details to the standalone cover browser window 2025-02-11 17:33:30 +05:30
Kovid Goyal
d407cdb045
Fix main interface tab not expanding to use available width 2025-02-11 16:03:19 +05:30
Kovid Goyal
f68bc23853
Fix infinite loop when tabbing past last cell 2025-02-10 10:20:25 +05:30
Kovid Goyal
249052d6e7
Move delegate dependent code to base class 2025-02-10 10:00:56 +05:30
Kovid Goyal
8f44ab81df
... 2025-02-10 09:47:41 +05:30
Kovid Goyal
c02b3182ee
Simplify db retrieval when creating editor 2025-02-10 09:41:19 +05:30
Kovid Goyal
5da6c49d8f
Multiple inheritance makes me nervous 2025-02-10 09:34:57 +05:30
Kovid Goyal
773a5206b3
Fix the root cause of all the book list edit cell problems
The root cause was that Qt doesnt support sharing a delegate between
multiple views. So give the main view and pin view their own delegate
instances. Hopefully I didnt break anything else.
2025-02-10 09:27:26 +05:30
Kovid Goyal
3a64034055
Tabbing should move to next/previous row automatically when editing 2025-02-10 08:10:22 +05:30
Kovid Goyal
f6167d7f0e
Better fix for the Qt book list phantom edits issue
The phantom edits are happening because of the mirroring with the pin
view. Apparently in some update Qt has started triggering edits on
currentChanged events. Sigh.

For the moment we disable editing of cells in the mirrored view when it
is hidden this worksaround the problem for most people, need a better
fix for when the view is being used.
2025-02-10 07:52:16 +05:30
Kovid Goyal
b56849623f
... 2025-02-09 19:37:52 +05:30
Kovid Goyal
dfb0308e5a
Book list: Fix a regression that caused editing cells in a split book list not working in the second split. Fixes #2097677 [Calibre v7.25 List View no longer allow direct edit of fields in Split Window](https://bugs.launchpad.net/calibre/+bug/2097677)
Note that tabbing in the split list also isnt working, will look at that
next.
2025-02-09 18:37:03 +05:30
Kovid Goyal
4b6d6560f2
Fix DeprecationWarning 2025-02-09 10:04:49 +05:30
un-pogaz
5ff898af7b DRY
also fix regresion of displaying search terms
2025-02-08 10:41:22 +01:00