38136 Commits

Author SHA1 Message Date
Kovid Goyal
9f0505333f
Merge branch 'improve-reset-icon-tag-browser' of https://github.com/un-pogaz/calibre 2025-01-19 07:43:20 +05:30
un-pogaz
cb09c9058f move 'reset all value icons' into the values section 2025-01-18 20:00:54 +01:00
un-pogaz
9ec00f0ca5 add confirm dialog for all deleting icon action 2025-01-18 15:53:03 +01:00
un-pogaz
b4cef06f61 reset only value icons and not template 2025-01-18 14:57:28 +01:00
un-pogaz
a1aba91928 add action to reset all value icons 2025-01-18 14:21:58 +01:00
un-pogaz
6ecf4e8858 ... 2025-01-18 14:14:43 +01:00
Zbigniew Jędrzejewski-Szmek
c04bd03a68 Fix build with -std=gnu23
Gcc 15 defaults to gnu23, which makes bool a native type, so
it cannot be redefined like this.
2025-01-18 13:49:36 +01:00
un-pogaz
e9dd0c5c4f improve reset to default icons 2025-01-17 20:14:33 +01:00
un-pogaz
a503f07bfd DRY 2025-01-17 20:09:33 +01:00
un-pogaz
ee21e84110 ... 2025-01-17 19:12:22 +01:00
un-pogaz
ab4438b6a5 fix also for content-server 2025-01-17 15:05:36 +01:00
un-pogaz
da52211180 fix: icon not loading when using a PTM 2025-01-17 14:54:14 +01:00
Kovid Goyal
c1b3340d37
Bump version for beta release
string changes
2025-01-17 08:19:36 +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
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
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
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
0ca74e7dae
Content server: Also translate calibre://search URLs 2025-01-13 21:21:14 +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
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
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
49b8fadbc2
... 2025-01-10 13:34:25 +05:30
Kovid Goyal
9a88afb370
... 2025-01-10 13:32:08 +05:30
Kovid Goyal
4fd6fa2441
Content server: Fix _ to represent current library in calibre:// URLs not working 2025-01-10 13:24:21 +05:30
Kovid Goyal
52664a357a
string changes 2025-01-10 13:11:24 +05:30
Kovid Goyal
dd6b924f5c
version 7.24.0 2025-01-10 08:25:31 +05:30
Kovid Goyal
7845999751
Add some tooltips and use "All actions" instead of "All GUI actions"
Most users don't and shouldn't know what GUI means.
2025-01-10 08:18:08 +05:30
Charles Haley
94854384ae Improved partitioning of actions in the menu. 2025-01-09 18:01:11 +00:00
Charles Haley
96725ce841 Changed shortcut as suggested. 2025-01-09 16:32:08 +00:00
Charles Haley
5533c9b5d5 All GUI options stuff:
1. Add the option to show the "GUI actions" button in the status bar. The code to add the Preferences button is commented out.
2. Add a shortcut to All GUI Actions: Ctrl+Alt+Shift+G
3. Fix some existing problems in the All GUI Actions implementation.
4. Add the infrastructure for status line buttons (all in init.py)
5. Make using the shortcut for All GUI Actions place the menu over the button in the status bar, if it exists and is the only button/menu item. (actions.__init__.py)
2025-01-09 16:29:06 +00:00
Kovid Goyal
2d61b16b62
Make is_rtl_lang more robust 2025-01-09 19:11:29 +05:30
Kovid Goyal
6d3e245ea8
Content server: Book details view: Make calibre://show-book and calibre://view-book URLs in the comments work 2025-01-09 14:56:09 +05:30
Kovid Goyal
5cca273ddd
string changes 2025-01-07 17:25:20 +05:30
Kovid Goyal
925bd06a1b
Allow creating rules to transform series names in the Bulk metadata editor and Preferences->Metadata download. Fixes #2091268 [[Enhancement] Series Mapper](https://bugs.launchpad.net/calibre/+bug/2091268) 2025-01-07 13:32:11 +05:30
Kovid Goyal
94395c3e3c
Edit book: Spell check: Add a button to export the currently displayed list of words as a CSV file. Fixes #2092496 [[Enhacement] Spell Checker - Save word list](https://bugs.launchpad.net/calibre/+bug/2092496) 2025-01-07 13:01:26 +05:30
Kovid Goyal
dd1c998cb6
Read aloud: Fix no audio produced when text contains <3 and using the Windows legacy speech engine. Fixes #2092948 [TTS Fail &lt;3](https://bugs.launchpad.net/calibre/+bug/2092948) 2025-01-07 12:36:43 +05:30