Commit Graph

50454 Commits

Author SHA1 Message Date
Kovid Goyal e3dc567edd Merge branch 'master' of https://github.com/cbhaley/calibre 2025-01-17 07:45:24 +05:30
Charles Haley 9e1faa1475 Fix regression setting the default category icon 2025-01-16 21:26:41 +00:00
Charles Haley c7b54fccf2 Escape ampersands in tag browser icon value strings. 2025-01-16 20:42:32 +00:00
Kovid Goyal 645b2161a0 Merge branch 'master' of https://github.com/cbhaley/calibre 2025-01-16 21:18:30 +05:30
Charles Haley 2b5f4eeda0 TB Icons: Fix showing the "Use default" menu line when there is no item value. 2025-01-16 15:44:46 +00:00
Kovid Goyal 06186cd93d string changes 2025-01-16 20:53:46 +05:30
Kovid Goyal 85f70dc95c Merge branch 'master' of https://github.com/cbhaley/calibre 2025-01-16 20:50:19 +05:30
Charles Haley f65b874d1a Stuff for value icons:
- Documentation
- bug fixes in icon template evaluation
- Better enabling/disabling of menu lines in the tag browser context menu
2025-01-16 15:09:17 +00:00
Kovid Goyal 3331d35a49 Cleanup Manage value icons sub-menu
Use the value name when available. It's true that the sub-menu contains
entries to manage overall icons as well, but the common use case is
changing the icon for the particular value, so use the value name in the
menu entry.
2025-01-16 19:20:03 +05:30
Kovid Goyal 39e17d55e3 Get tag browser value icons working in content server 2025-01-16 19:10:11 +05:30
Kovid Goyal a0a7ef06c0 Merge branch 'master' of https://github.com/cbhaley/calibre 2025-01-16 18:56:25 +05:30
Charles Haley 508cfc563d Pass the tag browser icon names to the content server client.
The name is in the dict entry 'value_icon', which might not exist, be a file name, or be None. This is a path rooted at the 'tb_icons' directory. Icons that come from templates are in the 'template_icons' subdirectory, in which case a slash is used as the path separator.
2025-01-16 12:54:56 +00:00
Kovid Goyal 44a3066a10 Fix #2093803 [Private bug](https://bugs.launchpad.net/calibre/+bug/2093803) 2025-01-16 17:05:48 +05:30
Kovid Goyal cf20d487f8 Fix #2093867 [Jobs shortcut/tooltip mismatch](https://bugs.launchpad.net/calibre/+bug/2093867) 2025-01-16 14:36:52 +05:30
Kovid Goyal 4fa56c9e9e ... 2025-01-16 14:27:25 +05:30
Kovid Goyal 5692af16a9 Content server: Fix icons for individual formats not being shown in the Tag browser 2025-01-16 14:02:52 +05:30
Kovid Goyal d00a2fd645 pep8 2025-01-16 13:42:10 +05:30
Kovid Goyal 97efb777c8 Merge branch 'master' of https://github.com/cbhaley/calibre 2025-01-16 13:41:47 +05:30
Kovid Goyal 04a55c66df MTP driver: Fix Internal storage and SD card being swapped on some devices that have buggy firmware that assigns the SD card a lower id than the internal storage 2025-01-16 12:34:13 +05:30
Kovid Goyal 543eb5fa10 Forgot to translate open_at to bookpos when translating calibre://view-book URLs 2025-01-16 11:43:20 +05:30
Charles Haley 2595645240 Add ability to tag browser specify icons for individual values, as is already done automatically for 'formats'.
This scheme could be used to replace the existing tag browser category icon selection. I didn't do that because the risk seemed high. The category icon dict is used in several places and in plugins. It also has meaning for search and user categories, where the new value icon stuff doesn't.

If the new facilities are not used then performance risk is near zero. Performance shouldn't be an issue if used because the icon dictionaries scale well. The exception might be templates. We have no control over the complexity or performance of user-written templates.

This PR fixes a few bugs I found while implementing the new feature.
2025-01-15 13:17:39 +00:00
Kovid Goyal 851c826bd8 Merge branch 'master' of https://github.com/unkn0w7n/calibre 2025-01-14 10:33:23 +05:30
unkn0w7n 22ade2ce40 Update foreignaffairs.recipe
fix cover
2025-01-14 10:30:49 +05:30
Kovid Goyal 55469a6ab6 ... 2025-01-14 10:03:00 +05:30
Kovid Goyal 50068c9d06 Merge branch 'check-option-strict-pep8' of https://github.com/un-pogaz/calibre 2025-01-14 08:54:15 +05:30
un-pogaz db0f74812b cherry pick: ruff-strict-pep8.toml 2025-01-13 19:41:23 +01:00
un-pogaz 74c535f624 setup check: common files walker 2025-01-13 19:39:25 +01:00
un-pogaz c1f7c9dd95 add option --strict to 'setup.py check'
Perform the checking more strictely. See the file "ruff-strict-pep8.toml"
2025-01-13 19:38:41 +01:00
Kovid Goyal fe7536dd2a And now Ubuntu needs freetype-dev explicitly installed for some reason 2025-01-13 21:48:00 +05:30
Kovid Goyal c7f2de3902 Ubuntu changed a package name. Sigh. 2025-01-13 21:32:30 +05:30
Kovid Goyal 0ca74e7dae Content server: Also translate calibre://search URLs 2025-01-13 21:21:14 +05:30
Kovid Goyal 4cf2cd30a9 Merge branch 'master' of https://github.com/unkn0w7n/calibre 2025-01-13 20:39:31 +05:30
unkn0w7n a6d6387e71 Update foreignaffairs.recipe 2025-01-13 20:32:23 +05:30
Kovid Goyal 7a7f93c61a Merge branch 'master' of https://github.com/unkn0w7n/calibre 2025-01-13 14:29:44 +05:30
unkn0w7n 4b50470d02 ... 2025-01-13 13:21:08 +05:30
unkn0w7n 6d9f73cc45 Update foreignaffairs.recipe 2025-01-13 13:17:41 +05:30
Kovid Goyal cf77e78911 ... 2025-01-12 21:00:14 +05:30
Kovid Goyal fd20bf9baa Faz.net by Anonymous 2025-01-12 20:58:14 +05:30
Kovid Goyal 5e8faec6eb Moview Web and Football League World by SpicyPoison 2025-01-12 14:25:35 +05:30
Kovid Goyal a0d9d0d869 Merge branch 'master' of https://github.com/unkn0w7n/calibre 2025-01-11 13:26:49 +05:30
unkn0w7n a9fb79fa88 Update demorgen_be.recipe 2025-01-11 13:06:17 +05:30
unkn0w7n 04f09be252 Update economist_news.recipe 2025-01-11 12:22:37 +05:30
Kovid Goyal 7919f5e9f9 Add various other naturally RTL languages for automatic page progression setting 2025-01-11 10:00:14 +05:30
Kovid Goyal 4a2869e2b1 string changes 2025-01-10 22:14:26 +05:30
Kovid Goyal 330ca48f69 Merge branch 'master' of https://github.com/cbhaley/calibre 2025-01-10 22:13:40 +05:30
Charles Haley cd0d2eb53b Clean up tag browser context and config menus a bit.
- When right-clicking in tag browser white space, remove any context menu that depends on having an index.
- Remove general subcategorization menu options from the context menu. These are global, not part of context for the current index.
- Add a menu option to the config menu to open Prefs / L&F / Tag browser. This permits easily getting to the global subcat and display options, avoiding adding more menu lines to the config menu.
2025-01-10 15:56:50 +00:00
Kovid Goyal d592a8d338 Merge branch 'master' of https://github.com/cbhaley/calibre 2025-01-10 19:54:52 +05:30
Charles Haley 7f9cbb5302 Use a scale factor for link & note icons instead of an absolute size. 2025-01-10 12:51:42 +00:00
Charles Haley 136f188981 Add an option to adjust the size of the link and note icons in book details.
In the tag browser and booklist the icons resize automatically with the font. That doesn't happen in book details because there isn't any notion of a "row". With this option the user can make the size as desired. For more background see the first few posts of https://www.mobileread.com/forums/showthread.php?t=365537
2025-01-10 10:26:15 +00:00
Kovid Goyal 30ed01e688 ... 2025-01-10 14:22:38 +05:30