Commit Graph

36158 Commits

Author SHA1 Message Date
Kovid Goyal d1d4f06ca2 Special case display of path field name in book details preferences to match dual use as "folders/path" 2023-04-25 22:30:38 +05:30
Kovid Goyal eede10c998 set_current_row() should preserve the current column and the horizontal scroll position 2023-04-25 22:21:32 +05:30
Kovid Goyal eff5ec46d0 Proper fix for initial scroll to right when Id column at right bug 2023-04-25 22:18:34 +05:30
Kovid Goyal 6c9bd54cb6 Scan sub-folders recursively when showing the data files link 2023-04-25 20:38:38 +05:30
Kovid Goyal 82392bdd61 ... 2023-04-25 11:03:33 +05:30
Kovid Goyal 1457f8ecc9 Use a NamedTuple for the list of extra files 2023-04-25 11:00:39 +05:30
Kovid Goyal 0437378bfa The template functions shouldn't assume the name of the data folder 2023-04-25 10:49:56 +05:30
Kovid Goyal 6cfbfb0f51 Implement workaround for incorrect initial horz scroll position of book list 2023-04-25 10:39:09 +05:30
Kovid Goyal cfe2ff3c4b Add a comment explaining why we regex the markdown output 2023-04-24 22:42:00 +05:30
Kovid Goyal 8d6b2750b8 Merge branch 'fix-comments-markdown' of https://github.com/un-pogaz/calibre 2023-04-24 22:41:55 +05:30
Kovid Goyal 300c68b1e4 Scan opened book/data folders for changes to extra files for a few minutes after they are opened, updating caches and the GUI as changes are detected 2023-04-24 22:37:54 +05:30
Kovid Goyal 79cd85af35 Only show the Data files link if there is an actual file in the data folder, ignore sub-folders 2023-04-24 22:28:47 +05:30
Kovid Goyal 6a0b6f46de Ignore files for which stat() fails when listing extra files 2023-04-24 22:25:47 +05:30
Kovid Goyal 0b9064bcc6 Dont list directories in list_extra_files() 2023-04-24 22:24:38 +05:30
un-pogaz 93c161e96f fix comments markdown
in v4, the switch to QtWebEngine introduced a bug where, in "HTML comments", paragraphs with a single <br> produced an visual extra gap in the render, problem will have been solved by using non-breaking space <p>&nbsp;</p>
(topic https://www.mobileread.com/forums/showthread.php?t=325991)

However, the "calibre.library.comments > markdown" still produces HTML with <p><br></p> causing the rendering of "Markdown comments" in Book Details (and Book Info) to still have this extra gap.
This commit is to fix this and do a more consistent rendering between "HTML comments" and "Markdown comments"
2023-04-24 17:55:49 +02:00
Kovid Goyal 27bb04c2bd DRYer 2023-04-24 20:13:26 +05:30
Charles Haley 663ccc2166 Prevent calling edit metadata from locked book details windows. EM edits the currently selected book, which is almost certainly not the book in the locked window. 2023-04-24 13:19:30 +01:00
Charles Haley cdc4a0a4d3 The formatter functions to support extra book files. 2023-04-24 11:31:40 +01:00
Kovid Goyal 259a8555db ... 2023-04-24 11:50:22 +05:30
Kovid Goyal 14e7acc6f4 Import fonttools only on demand
Fixes #2017476 [Error when using 'Edit metadata' hotkey from locked details window](https://bugs.launchpad.net/calibre/+bug/2017476)
2023-04-24 11:48:15 +05:30
Kovid Goyal 8a0088f50d ... 2023-04-24 11:01:45 +05:30
Kovid Goyal f4878d0509 Cleanup previous PR
I dont think we need to enforce unique column titles. If a user wants to
have columns with the same titles, that's up to them. Also avoids the
performance penalty.
2023-04-24 10:52:22 +05:30
Charles Haley 7b5024b97a Two semi-dependent changes:
1) Add a tweak to change the heading for standard columns
2) Add "id", "formats", and "path" as standard columns. They are by default hidden, like "languages"
2023-04-23 20:47:43 +01:00
Kovid Goyal bd483ab92c Forgot to change the structure of extra_files_cache to allow easy eviction by book_id 2023-04-23 22:05:33 +05:30
Kovid Goyal 9e5bb7a5ea Also clear extra files cache when viewing folder by id 2023-04-23 22:02:26 +05:30
Kovid Goyal a8daf6c065 Remove the action to clear extra files cache
the extra files cache is an internal implementation detail. I dont want
to expose that so prominently to end users. If in practice it turns out
that the cache becoming stale is a big issue, we can revisit.
2023-04-23 21:59:06 +05:30
Kovid Goyal 9d98287fd6 Merge branch 'master' of https://github.com/cbhaley/calibre 2023-04-23 21:57:53 +05:30
Kovid Goyal 970ca5293e Fix a regression in the previous release that could result in empty author folders remaining in the library when the author of a book is changed 2023-04-23 20:59:31 +05:30
Kovid Goyal f00c826f88 Build test to check fonttools is present and importable 2023-04-23 20:43:47 +05:30
Kovid Goyal 81c9c9c112 Font subsetting: Add support for WOFF format fonts and CID keyed fonts. Also further reduce font file sizes when subsetting.
Courtesy of switching to fonttools as the subsetting engine. They now
support adding glyphs from GSUB/GPOS tables so should be much more
robust than the last time I looked into fonttools and decided to write
my own subsetting code instead.
2023-04-23 20:39:44 +05:30
Kovid Goyal ee553442b7 Return log messages when running subsetting via fonttools 2023-04-23 20:34:23 +05:30
Kovid Goyal 525851464a Wrapper code to use fonttools for subsetting 2023-04-23 20:03:52 +05:30
Charles Haley b94fcefeba Requested changes to extra_files API 2023-04-23 15:22:28 +01:00
Charles Haley 310ccfd832 API for extra files cache: resolve conflicts with edbf95a plus a few changes after more testing 2023-04-23 11:06:41 +01:00
Charles Haley 5468a465ee Commit 1 of API for the extra files cache. Commit 2 will resolve conflicts with commit edbf95a 2023-04-23 11:05:49 +01:00
Kovid Goyal edbf95a902 Fix data files not being merged when merging books
Fixes #2017373 [Possible bug? Extra data files disappear upon merging](https://bugs.launchpad.net/calibre/+bug/2017373)
2023-04-23 13:04:04 +05:30
Kovid Goyal feac41c8f7 DRYer 2023-04-23 12:46:36 +05:30
Kovid Goyal b81d8f46bc Nicer presentation of folder links in book details 2023-04-23 12:44:52 +05:30
Kovid Goyal fd8717ae41 ... 2023-04-23 09:39:28 +05:30
Kovid Goyal 22fc372bbe ... 2023-04-23 09:09:02 +05:30
Kovid Goyal 29c9f22fee Fix #2017375 [Data files context menu glitch](https://bugs.launchpad.net/calibre/+bug/2017375) 2023-04-23 09:05:16 +05:30
Charles Haley 82ecffb07b Enhancement #2017318: Open book details window from Quickview.
Opens a locked window.
2023-04-22 15:12:51 +01:00
Kovid Goyal f48c2ca8f2 ... 2023-04-22 18:35:17 +05:30
Kovid Goyal 124854254e ... 2023-04-22 18:13:14 +05:30
Charles Haley 58f67dd781 Bug #2017316: Error when renaming tag in Tags Manager.
Note: I rolled back commits d5dbb3c63a and 89391da7b7.
2023-04-22 13:23:56 +01:00
Charles Haley 914ea7d54c Revert "Fix #2017316 [Error when renaming tag in Tags Manager](https://bugs.launchpad.net/calibre/+bug/2017316)"
This reverts commit d5dbb3c63a.
2023-04-22 13:22:20 +01:00
Charles Haley 2aef0e6232 Revert "Fix another error in the manage category editor when setting was"
This reverts commit 89391da7b7.
2023-04-22 13:22:20 +01:00
Kovid Goyal d3dda1af39 Edit book: Compress images: Support compression of images in the WEBP format as well. Fixes #2017195 [[feature] support webp in epub](https://bugs.launchpad.net/calibre/+bug/2017195) 2023-04-22 14:09:19 +05:30
Kovid Goyal c6c8fbeb64 webp default for lossy encoding is q=75 2023-04-22 13:32:19 +05:30
Kovid Goyal 36203a7497 Functions to optimize and encode webp images 2023-04-22 13:22:48 +05:30