38630 Commits

Author SHA1 Message Date
Kovid Goyal
25c7a4c871
E-book viewer: Speed up preparation of book on initial load on Unix platforms by using fork() to bypass the Python GIL
Have seen a 300% speedup for 400K word books.
2025-04-06 14:14:03 +05:30
Kovid Goyal
5d4f56d4fa
Handle empty iterables 2025-04-06 14:05:32 +05:30
Kovid Goyal
7c5756c9d3
Fix derivation of batches in forked_map 2025-04-06 14:01:40 +05:30
Kovid Goyal
e34681b159
Support for older python 2025-04-06 13:38:01 +05:30
Kovid Goyal
19c272633d
A map implementation that uses os.fork() 2025-04-06 13:29:02 +05:30
Kovid Goyal
9ad7d1f63d
string changes 2025-04-05 20:55:25 +05:30
Kovid Goyal
2be0d6a650
... 2025-04-05 13:52:34 +05:30
Kovid Goyal
7373d2362a
Fork to handle quicklook clients 2025-04-05 13:15:05 +05:30
Kovid Goyal
2ebf2af44f
More robust atexit worker close 2025-04-05 12:57:01 +05:30
Kovid Goyal
2ccec1c8e2
DRYer 2025-04-05 12:48:13 +05:30
Kovid Goyal
d90d54528c
Add a simple server for use in QuickLook like plugins 2025-04-05 12:42:23 +05:30
Kovid Goyal
0282410b15
Use a recursive lock for safe_atexit 2025-04-05 12:36:17 +05:30
Kovid Goyal
d2154e66dc
DRYer 2025-04-05 11:42:57 +05:30
Kovid Goyal
206307993c
Actually fix the failing test 2025-04-05 11:40:31 +05:30
Kovid Goyal
69b689c9d0
Improve rapydscript test runner output 2025-04-05 11:33:42 +05:30
Kovid Goyal
df69f96a92
Another try at fixing the failing test 2025-04-05 10:55:03 +05:30
Kovid Goyal
23187893ba
Fix failing test 2025-04-05 10:38:04 +05:30
Kovid Goyal
3b95ee47ba
... 2025-04-05 10:35:22 +05:30
Kovid Goyal
4508e482a7
Document support for aP and Ap 2025-04-05 10:33:05 +05:30
Kovid Goyal
a7c02a1fdf
Add support for aP and Ap to python format_date as well 2025-04-05 10:29:19 +05:30
Kovid Goyal
75b513834a
E-book viewer: Fix a regression in 8.0 that caused the clock to display an extra p after the time. Fixes #2106280 [extraneous letter 'p' in the clock](https://bugs.launchpad.net/calibre/+bug/2106280)
Apparently Qt has now started using Ap and aP as AM/PM formatters. Sigh.
2025-04-05 10:13:54 +05:30
Kovid Goyal
30b66dc452
Linux: Fix building with Qt 6.9 2025-04-05 02:59:58 +05:30
Kovid Goyal
1973cdb7d6
Kobo driver: Fix viewing of KEPUB files from the device view in calibre not working 2025-04-05 02:16:42 +05:30
Kovid Goyal
b5a4c301da
Bump version for book details click bug
I have been having a bad month.
2025-04-04 11:11:08 +05:30
Kovid Goyal
538d4f81af
Fix #2106205 [Calibre 8,2 show an Unhandled Exception when you try to open book filesd Nu](https://bugs.launchpad.net/calibre/+bug/2106205) 2025-04-04 11:08:38 +05:30
Kovid Goyal
e002e5d511
Fix a couple of warnings from gettext 2025-04-04 08:25:50 +05:30
Kovid Goyal
77490c37e4
version 8.2.0 2025-04-04 08:17:34 +05:30
Martin Brodbeck
bc4f0c09fd Bump supported dbversion in kobo/tolino driver
New tolino Shine 5 firmware 5.7.212781 uses db version 193. No significant db changes noticed.
2025-04-03 13:39:09 +02:00
Kovid Goyal
16255d011d
Debounce book details popup refresh on metadata change
Also explicitly disconnected changed signal rather than relying on Qt
2025-04-03 08:19:48 +05:30
Kovid Goyal
6dac69aa1b
Add a listener event for links changing 2025-04-03 08:10:34 +05:30
Kovid Goyal
ccbcd938f2
Allow notifying a set of changed notes in a single event 2025-04-03 08:02:52 +05:30
Kovid Goyal
6359c0593f
Add a listener event for notes changing 2025-04-03 08:00:23 +05:30
Kovid Goyal
b868167d50
Dont reload book details locked popups on irrelevant event types 2025-04-03 07:51:25 +05:30
Charles Haley
ee6400e434 Make locked book details windows refresh the dialog when the db layer says metadata has changed. 2025-04-02 17:28:55 +01:00
Kovid Goyal
53faf44a03
macOS: Fix opening book folder or PDF files for books with square brackets in the title not working. Fixes #2105884 [(MacOS) Can't open PDFs or "open book folder" if Title contains "[" or "]"](https://bugs.launchpad.net/calibre/+bug/2105884)
I have patched the Qt bundled with calibre with the upstream fix for
https://bugreports.qt.io/browse/QTBUG-134073
2025-04-02 11:14:19 +05:30
Charles Haley
48cb4b5f05 In book_details: in order to make the context menu available, change NO_AUTHOR_LINK into a link that is clickable but does nothing when clicked.
The content server behavior is unchanged. No link is shown.
2025-04-01 18:13:26 +01:00
Charles Haley
bcefa6b18e Fix misuse of isSectionIndex() in visible_columns. isSectionIndex() takes a logical index but a visual index was being given. The misuse led to the problem reported in
https://www.mobileread.com/forums/showthread.php?t=367195
2025-04-01 17:10:18 +01:00
Kovid Goyal
d1227c0817
Kobo driver: Possible fix for kobo renderer ignoring hyphenation
I am guessing the Kobo renderer basically ignores a <style> tag with
id=kobostylehacks as this was likely a legacy hack implemented and later
ignored by Kobo.

So put the hyphenation and other extra css into its own <style> tag.
Hopefully this will get the Kobo rendered to not ignore it.
2025-04-01 13:28:30 +05:30
Kovid Goyal
c82f8b2838
Kindle driver: Allow using a value of * in Preferences->Output options->MOBI Output to have the driver mark all books sent to the device as personal documents 2025-04-01 12:52:33 +05:30
Kovid Goyal
90abfc5a37
Kobo driver: Forget device specific GUI name on close
Fixes #2105703 [Kobo device vs Kobo forma](https://bugs.launchpad.net/calibre/+bug/2105703)
2025-04-01 09:19:43 +05:30
Kovid Goyal
2d85dc02d7
... 2025-03-31 10:53:57 +05:30
Kovid Goyal
735830ef1a
E-book viewer: Show an error message when an invalid nearby search expression is used. See #2104850 (Private bug) 2025-03-31 10:32:34 +05:30
Kovid Goyal
dbdc0ecabd
Ignore SIGINT in safe_atexit worker 2025-03-31 10:17:09 +05:30
Kovid Goyal
2c91a63c7a
Fix #2105409 [[Enhancement] Keyboard shortcut to move column up/down in dialog](https://bugs.launchpad.net/calibre/+bug/2105409) 2025-03-31 09:53:00 +05:30
Kovid Goyal
ae9af6282e
KEPUB Output: Fix incorrect encoding detection for some HTML files without an encoding declaration. Fixes #2105424 [Private bug](https://bugs.launchpad.net/calibre/+bug/2105424) 2025-03-30 19:27:37 +05:30
Kovid Goyal
3a4f4dc5b6
Add unit test for listener IPC 2025-03-30 15:25:31 +05:30
Kovid Goyal
05f17d0212
Dont use the horrible QLocalSocket for GUI IPC
Fixes #2105415 [ERROR: Failed to update annotations after upgrading from 8.0.1 to 8.1.1 macOS](https://bugs.launchpad.net/calibre/+bug/2105415)
2025-03-30 14:51:24 +05:30
Kovid Goyal
cea5d7f980
Add some constants 2025-03-30 14:48:37 +05:30
Kovid Goyal
00ba3b8066
Use Math.round() for font size incrememnt
Slightly improves #2105390
2025-03-30 10:20:40 +05:30
Kovid Goyal
410ee5fd29
Enforce min zoom step size 2025-03-30 09:58:37 +05:30