Commit graph

32889 commits

Author SHA1 Message Date
Kovid Goyal
1966b790d2
Read aloud: Keep going when reaching end of internal file 2020-12-04 06:01:24 +05:30
Kovid Goyal
129a18d2c3
String changes 2020-12-04 05:42:41 +05:30
Kovid Goyal
508f957b05
DRYer 2020-12-04 05:24:36 +05:30
Kovid Goyal
ce0a57b69e
Get basic TTS playback working in browser viewer
Sadly, there is no support for marking words, so highlighting the
currently spoken word will require gymnastics.
2020-12-03 19:56:08 +05:30
Kovid Goyal
5c9e597fb3
Use the new PyQt scoped enums 2020-12-03 09:17:37 +05:30
Kovid Goyal
c420493507
Basic marking of words during TTS playback works 2020-12-02 22:46:56 +05:30
Kovid Goyal
0e4606ff2b
Fix #1906538 [Private bug](https://bugs.launchpad.net/calibre/+bug/1906538) 2020-12-02 21:54:42 +05:30
Kovid Goyal
1e1aedbe41
Micro-optimization 2020-12-02 12:10:59 +05:30
Kovid Goyal
707579fa4c
Book list: Improve rendering of column headers when they dont fit, by eliding them instead of just cutting off rendering. Fixes #1906464 [Enhancement Request: Ability to hide specific column headers in book list](https://bugs.launchpad.net/calibre/+bug/1906464) 2020-12-02 07:32:03 +05:30
Kovid Goyal
e38ae0e58e
Fix configure metadata source widget not useable on small screens 2020-12-02 06:59:48 +05:30
Kovid Goyal
a67fb90335
AZW3 Input: Fix a regression in calibre 5 that broke processing of files with inline flow replacements. Fixes #1906459 [Private bug](https://bugs.launchpad.net/calibre/+bug/1906459) 2020-12-02 06:09:43 +05:30
Kovid Goyal
7c5abc873e
Be a bit more robust against external software messing with files in the library folder 2020-12-01 08:12:32 +05:30
Kovid Goyal
bfedab34b8
Dont fail to start up if there are errors in the translation file 2020-12-01 07:36:39 +05:30
Kovid Goyal
18c97430bb
Remove unused code 2020-11-30 16:45:00 +05:30
Kovid Goyal
3d7fb47592
Port simple and completion workers to use Pipe 2020-11-30 14:45:49 +05:30
Kovid Goyal
064c66804b
Get piping working on windows as well 2020-11-30 13:39:51 +05:30
Kovid Goyal
35cbca3dad
Port ipc.pool to use Pipe 2020-11-30 13:21:44 +05:30
Kovid Goyal
6ad91a2ee4
Start work on making IPC more efficient
Use multiprocessing.Pipe instead of using named pipes and establishing
authenticated communication. Also avoids workers depending on a named
object of any kind. Particularly relevant on macOS where the OS tends to
delete things from under us.
2020-11-30 11:40:53 +05:30
Kovid Goyal
9c1f6974f4
DRYer 2020-11-30 11:12:28 +05:30
Kovid Goyal
9eb13264aa
Remove unnecessary use of lock 2020-11-30 11:07:58 +05:30
Kovid Goyal
d0f617307f
Use monotonic for worker launch time tracking 2020-11-30 11:04:22 +05:30
Kovid Goyal
b54aff0383
Ensure result file is always written 2020-11-30 11:02:28 +05:30
Kovid Goyal
bbb6ad3c32
macOS: Move creation of sockets to cache dir as Apple likes to delete things from /tmp 2020-11-30 10:21:57 +05:30
Kovid Goyal
4d9ea316e1
Keyboard shortcuts for read aloud mode 2020-11-29 14:12:17 +05:30
Kovid Goyal
1fdef796ba
Move TTS UI logic into its own module 2020-11-29 13:51:59 +05:30
Kovid Goyal
eaccc523af
More work on Read Aloud 2020-11-29 13:42:29 +05:30
Kovid Goyal
4fd521a88b
Start work on Read aloud mode 2020-11-29 08:44:13 +05:30
Charles Haley
ab261d43fa Bug #1906063: regression: template function first_non_empty fails if no argument evaluates non-empty 2020-11-28 10:00:05 +00:00
Kovid Goyal
da172232bb
Fix #1906093 [Error: No books selected when I trying to open the Edit metadata window](https://bugs.launchpad.net/calibre/+bug/1906093) 2020-11-28 13:41:49 +05:30
Kovid Goyal
5e12d32755
PDF Output: Manually subset fonts to workaound https://bugreports.qt.io/browse/QTBUG-88976 2020-11-28 11:26:45 +05:30
Kovid Goyal
4fb58f192e
PDF Output: Fix a regression in the previous release that broke text rendering for some fonts due to a change in how Chromium embeds fonts in PDF files. Fixes #1905967 [Printing to PDF is unreadable](https://bugs.launchpad.net/calibre/+bug/1905967) [Printing to PDF is unreadable](https://bugs.launchpad.net/calibre/+bug/1905967)
Underlying bug causing this:
https://bugreports.qt.io/browse/QTBUG-88976
2020-11-27 22:45:03 +05:30
Kovid Goyal
c74b3fc4b7
... 2020-11-27 21:17:03 +05:30
Kovid Goyal
155a97549a
Some icons for menu entries 2020-11-27 16:47:03 +05:30
Kovid Goyal
c849f1fc68
version 5.6.0 2020-11-27 08:23:41 +05:30
Kovid Goyal
52bcb3f580
SHow shortcut for open edit metadata window 2020-11-27 08:19:25 +05:30
Kovid Goyal
257665e473
Edit book: Fix syntax highlighting not recognizing ends-with selectors. Fixes #1905806 [[Editor] CSS selector "ends with" not recognized](https://bugs.launchpad.net/calibre/+bug/1905806) 2020-11-27 08:15:25 +05:30
Kovid Goyal
cc5bc58856
Ensure popup never gets focus 2020-11-26 21:45:00 +05:30
Kovid Goyal
f99b535714
String changes 2020-11-26 19:40:32 +05:30
Kovid Goyal
033ba41906
Fix #1905713 [Focus the book list shortcut changes how arrow keys selects books in Cover grid](https://bugs.launchpad.net/calibre/+bug/1905713) 2020-11-26 16:52:25 +05:30
Kovid Goyal
7b7bcd6468
Fix #1903270 [[Enhancement] Add ability to undo Generate cover in the Edit metadata screen](https://bugs.launchpad.net/calibre/+bug/1903270) 2020-11-26 16:43:12 +05:30
Kovid Goyal
15edcbfdb8
Device books view: Add an action to the context menu to easily jump to the matching book in the calibre library view. Fixes #1903418 [Enhancement Request: Device view - book details window shows info from matching book in library](https://bugs.launchpad.net/calibre/+bug/1903418) 2020-11-26 14:58:23 +05:30
Kovid Goyal
0d4e4abf5d
Fix #1905429 [Prompt before deleting metadata in the Book details panel/window](https://bugs.launchpad.net/calibre/+bug/1905429) 2020-11-26 09:09:37 +05:30
Kovid Goyal
b8fa93cbf7
Remove View history from plugin updater context menu 2020-11-26 08:35:47 +05:30
Kovid Goyal
8c5869dfc7
Edit book: Show up unobtrusive popup for a few seconds to allow undoing file delete operations 2020-11-26 08:02:10 +05:30
Kovid Goyal
1b81fdf35e
Add an edit notes action to the context menu in the viewer highlights panel. See #1905646 (Can not use input method to write the note) 2020-11-26 07:40:47 +05:30
Kovid Goyal
18a8ecd534
Move beep to UI componenent rather than boos, since that's where it belongs 2020-11-25 22:09:33 +05:30
Kovid Goyal
99032d9102
Edit book: Beep when deleting files 2020-11-25 21:32:27 +05:30
Kovid Goyal
2959f98698
Fix pyrcytodome not useable on macOS and Linux 2020-11-25 20:57:14 +05:30
Kovid Goyal
3d89c98110
Fix #1904363 [[Enhancement - Content server] Show size as MB in the Book details page](https://bugs.launchpad.net/calibre/+bug/1904363) 2020-11-25 17:18:00 +05:30
Kovid Goyal
4bafec703d
Content server viewer: Allow viewing images in a new window by right clicking them, matches the calibre builtin viewer behavior. Fixes #1903333 [[Enhancement - Content server viewer] Ability to view image](https://bugs.launchpad.net/calibre/+bug/1903333) 2020-11-25 17:11:57 +05:30
Kovid Goyal
b6b1af097b
DOCX Input: When converting images placed using the obsolete VML markup default them to being inline rather than block images. Fixes #1905319 [Centered images aren't centered after conversion](https://bugs.launchpad.net/calibre/+bug/1905319)
Also seems to match Word behavior.
2020-11-25 16:24:17 +05:30
Kovid Goyal
635337068e
Metadata edit dialog: Fix keyboard shortcuts for bold/italic/underline not workining when more than one comments editor widget is present on a single tab. Fixes #1905479 [Edit Metadata: Non-default layout and custom longtext column breaks formatting shortcuts](https://bugs.launchpad.net/calibre/+bug/1905479) 2020-11-25 09:14:47 +05:30
Kovid Goyal
56e0fc69fb
Fix #1904392 [[Enhancement] Add ability to remove author by right clicking in the Book details panel](https://bugs.launchpad.net/calibre/+bug/1904392) 2020-11-24 21:29:55 +05:30
Kovid Goyal
efc6be9f93
Match signature 2020-11-24 21:23:28 +05:30
Kovid Goyal
ccab2adde6
Fix #1904264 [[Enhancement - Viewer] Show tooltip of the full bookmark name when hovering](https://bugs.launchpad.net/calibre/+bug/1904264) 2020-11-24 21:12:45 +05:30
Kovid Goyal
d883f97ee6
Fix #1902978 [[Enhancement] Show current name when renaming an application in the Open with dialog](https://bugs.launchpad.net/calibre/+bug/1902978) 2020-11-24 21:10:22 +05:30
Kovid Goyal
53798ac95f
Fix #1905032 [Different distances from the metadata fields in the conversion window](https://bugs.launchpad.net/calibre/+bug/1905032) 2020-11-24 18:01:53 +05:30
Kovid Goyal
a3efcce704
Book details window: Allow opening the edit metadata window using either the keyboard shortcut or the context menu. Fixes #1903403 [[Enhancement] Allow to open Edit metadata screen from the Book details window](https://bugs.launchpad.net/calibre/+bug/1903403) 2020-11-24 14:28:16 +05:30
Kovid Goyal
923d1cd7e4
Fix #1904236 [[Enhancement] Show number of news sources in Schedule news download window title](https://bugs.launchpad.net/calibre/+bug/1904236) 2020-11-24 10:04:14 +05:30
Kovid Goyal
fd798acc03
Edit book: Allow adding tags to the list of tags for the insert tag button 2020-11-24 09:19:54 +05:30
Kovid Goyal
c59f1cd242
string changes 2020-11-24 08:43:53 +05:30
Kovid Goyal
1b15c93d64
Also add a menu entry to copy link to search calibre for authors/tags/etc. 2020-11-23 18:19:02 +05:30
Kovid Goyal
65dab30656
Allow copying the current search as a calibre:// URL by right clicking the search box 2020-11-23 18:02:19 +05:30
Kovid Goyal
dc4f752ffb
Fix #1905257 [ebook-viewer: "Not a unicode string" when searching table of contents](https://bugs.launchpad.net/calibre/+bug/1905257) 2020-11-23 15:41:58 +05:30
Kovid Goyal
54dbba6f06
calibredb add: New option --automerge to automatically merge duplicates
Have the option accept different merge algorithms. Also implement it for
recursive adding.
2020-11-23 14:07:55 +05:30
Kovid Goyal
fd97af9b1d
Merge branch 'automerge' of https://github.com/juampe/calibre 2020-11-23 09:33:03 +05:30
Kovid Goyal
e2a49d95f8
Book details panel: Add entries to copy calibre:// links for the current book to the context menu 2020-11-23 08:34:49 +05:30
Kovid Goyal
0b93e2ff40
String changes 2020-11-23 07:49:17 +05:30
Kovid Goyal
c253825a42
ensure replaced msg is detected as html
Doesnt get so detected with some search expressions
2020-11-22 21:16:44 +05:30
Kovid Goyal
20f08f9791
Implement pause/resume/stop for winsapi 2020-11-22 19:06:50 +05:30
Charles Haley
d6158358ba Fix template search numeric comparison failing when comparing to a floating point number 2020-11-22 12:11:52 +00:00
Kovid Goyal
f6bd75ecd4
Implement pause/resume on macos 2020-11-22 16:43:47 +05:30
Kovid Goyal
79f27b42c9
Implement pause/resume for Linux TTS
Sadly, speechd doesnt support it, so we had to implement it ourselves.
2020-11-22 16:16:23 +05:30
Kovid Goyal
f1f29761c9
Show events in develop widget 2020-11-22 16:16:09 +05:30
Kovid Goyal
7038c187d0
Wrap pause/resume/stop cocoa apis 2020-11-22 16:01:06 +05:30
Kovid Goyal
92ebb83ed8
Ignore errors in tts callbacks 2020-11-22 13:54:26 +05:30
Kovid Goyal
a8cf85ca9b
Refactor TTS clients to dispatch events on main thread
Gets rid of pending events and allows for state tracking even without
callbacks
2020-11-22 13:49:44 +05:30
Kovid Goyal
7ebfb0f248
Allow controlling the Virtual library with calibre://search URLs 2020-11-22 11:48:43 +05:30
Kovid Goyal
31c7ef4167
When using calibre://show-book URLs and the book is not found, clear any Virtual library or search restriction and then show the book. Fixes #1905113 [Clear current VL when using calibre:// to show book (or add switch VL modifier)](https://bugs.launchpad.net/calibre/+bug/1905113) 2020-11-22 10:03:29 +05:30
Kovid Goyal
80aaffa6ef
String changes 2020-11-22 09:22:44 +05:30
Kovid Goyal
4265c87463
macOS: Fix calibre:// URLs not working from other documents 2020-11-21 12:10:29 +05:30
Kovid Goyal
33dbbb2bee
Fix search URL action not changing library if needed 2020-11-21 07:58:16 +05:30
Kovid Goyal
606bf90c13
... 2020-11-20 22:45:13 +05:30
Kovid Goyal
05fe8d8ef5
More work on speech backends 2020-11-20 22:39:11 +05:30
Kovid Goyal
10971de4b7
Allow adding empty markdown files when creating empty book records 2020-11-20 06:07:19 +05:30
Kovid Goyal
e7fe6142ba
ooops 2020-11-19 21:02:36 +05:30
Kovid Goyal
fbb259b86b
... 2020-11-19 20:44:57 +05:30
Kovid Goyal
ab377cfda5
Refactor tts client design so all interaction with underlying API happens only on the main thread 2020-11-19 20:29:41 +05:30
Kovid Goyal
3309f3728f
Start work on event handling with windows SAPI 2020-11-19 16:49:18 +05:30
Kovid Goyal
21bd53d398
Code to develop TTS sync 2020-11-19 12:50:36 +05:30
Juan Pedro Paredes Caballero
239ae0600f Add automerge option to add command CLI 2020-11-19 08:13:30 +01:00
Kovid Goyal
a83ea13162
Speak aloud implementation for macOS 2020-11-18 22:03:33 +05:30
Kovid Goyal
084de4c88d
Fix voice enumeration 2020-11-18 21:55:45 +05:30
Kovid Goyal
6adf45f81f
Start work on wrapping macOS TTS API 2020-11-18 21:15:12 +05:30
Kovid Goyal
3125ae8339
Get simple speak working on windows as well 2020-11-18 11:19:29 +05:30
Kovid Goyal
d9592d090b
Implement simple speech for the browser viewer 2020-11-18 10:37:44 +05:30
Kovid Goyal
85bf7f823e
Workaround for SSIPClient using non-daemonic thread and therefore hanging interpreter shutdown 2020-11-17 18:06:36 +05:30
Kovid Goyal
1cacc7484a
... 2020-11-17 17:51:25 +05:30
Kovid Goyal
f8ecef10db
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #1904507 [Manage Author absent from context menu](https://bugs.launchpad.net/calibre/+bug/1904507)
2020-11-17 17:41:26 +05:30
Kovid Goyal
24b2e5f07f
Start work on simple read aloud button for selection popup bar 2020-11-17 17:36:14 +05:30
Charles Haley
b595940b07 Bug #1904507: Manage Author absent from context menu 2020-11-17 11:50:00 +00:00
Kovid Goyal
6f34100ca7
String changes 2020-11-17 14:24:56 +05:30
Kovid Goyal
fbbb8ffdf5
Fix #1904095 [E-book viewer: more issues with removed bookmarks](https://bugs.launchpad.net/calibre/+bug/1904095) 2020-11-17 11:02:29 +05:30
Kovid Goyal
989577736f
... 2020-11-16 11:54:15 +05:30
Kovid Goyal
de179fc1b9
Switch to speech-dispatcher from espeak 2020-11-15 21:55:05 +05:30
Kovid Goyal
8e44992888
Edit book: Upgrade book: Ask whether to keep the NCX based Table of Contents. Fixes #1287 (Add an option to remove NCX TOC file when upgrading book internals) 2020-11-15 20:11:27 +05:30
Kovid Goyal
687dc10cfa
Merge branch 'master' of https://github.com/ntninja/calibre 2020-11-15 18:49:33 +05:30
Charles Haley
86bd4623d4 Bug 1904305: annotation_count() displaying value for deleted annotations 2020-11-15 11:10:05 +00:00
Alexander Schlarb
9fbf2f27fb Prefer Linux network status detection using the xdg-desktop-portal interface that works without special privileges in sandbox contexts 2020-11-15 11:52:58 +01:00
Kovid Goyal
77259de1b0
String changes 2020-11-15 14:16:25 +05:30
Kovid Goyal
3dd31eae0b
Start work on python wrapper for espeak-ng 2020-11-14 11:41:54 +05:30
Kovid Goyal
18f3a8893a
Function to create wav files with espeak 2020-11-13 21:19:37 +05:30
Kovid Goyal
26e74c9017
Fix #1904133 [[Enhancement] Too large header in the Annotations browser](https://bugs.launchpad.net/calibre/+bug/1904133) 2020-11-13 14:35:25 +05:30
Kovid Goyal
ef68c3f469
Getting and setting of parameters 2020-11-13 14:04:25 +05:30
Kovid Goyal
d851f1bb00
forgot the sync function 2020-11-13 12:53:54 +05:30
Kovid Goyal
e30843221c
Wrap more espeak APIs 2020-11-13 12:43:09 +05:30
Kovid Goyal
2d9dd81f46
Code to list espeak voices 2020-11-13 11:29:42 +05:30
Kovid Goyal
c0f9091f68
version 5.5.0 2020-11-13 07:28:49 +05:30
Kovid Goyal
fe9ed4c8ef
Add support for searching via the calibre:// URL scheme 2020-11-12 11:26:37 +05:30
Kovid Goyal
1074d026db
Add documentation for the calibre:// URL scheme 2020-11-12 10:35:11 +05:30
Kovid Goyal
d1aecb210a
Add a confirmation for context menu remove cover 2020-11-11 20:49:52 +05:30
Kovid Goyal
3eb6365c96
Fix incorrect variable names in tooltip
Fixes #1903837 [Inserting hyperlink in editor: template variables do not work](https://bugs.launchpad.net/calibre/+bug/1903837)
2020-11-11 17:33:13 +05:30
Kovid Goyal
3b5016c010
Welcome wizard: Fix changing the language causing a empty folder to be created. Fixes #1903825 [Calibre installer makes an extra library folder](https://bugs.launchpad.net/calibre/+bug/1903825) 2020-11-11 17:27:01 +05:30
Kovid Goyal
587b113c84
Viewer: Fix previous/next buttons iterating over removed bookmarks 2020-11-11 15:04:12 +05:30
Kovid Goyal
eb9d921f10
Fix multiple identical accelerator keys in bookmarks panel 2020-11-11 14:57:51 +05:30
Kovid Goyal
d41cc01560
Add support for file URLs as command line arguents 2020-11-11 11:16:08 +05:30
Kovid Goyal
03b5ad536b
Linux: Register calibre as URL handler for calibre:// URLs 2020-11-11 11:04:30 +05:30
Kovid Goyal
df3fc1eba1
String changes 2020-11-11 10:29:57 +05:30
Kovid Goyal
ed7897c395
macOS: Fix viewer not responding to cmd+c to copy text by default 2020-11-10 21:33:47 +05:30
Kovid Goyal
04cad862ee
... 2020-11-10 18:36:37 +05:30
Kovid Goyal
1e679aab90
Viewer: Fix regression causing custom shortcuts with shift key pressed not working. Fixes #1903699 [E-book viewer: some key combinations don't work](https://bugs.launchpad.net/calibre/+bug/1903699) 2020-11-10 18:32:25 +05:30
Kovid Goyal
b87cd867b1
Viewer: Show URL for current book in the Goto location panel 2020-11-10 16:47:54 +05:30
Kovid Goyal
cb1476c8ff
Uses encoded library ids for safe transit 2020-11-10 16:12:44 +05:30
Kovid Goyal
bcb324ffb9
Fix #1903659 [[Enhancement - Content server] Don't show arrows on cover when viewing random book](https://bugs.launchpad.net/calibre/+bug/1903659) 2020-11-10 15:33:08 +05:30
Kovid Goyal
4cc7c45559
Implement handling of calibre:// URLs as command line arguments 2020-11-10 12:20:49 +05:30
Kovid Goyal
19a0aa139d
Fix #1903535 [[PATCH] Allow keyword arguments in debug_print](https://bugs.launchpad.net/calibre/+bug/1903535) 2020-11-09 19:47:41 +05:30
Kovid Goyal
7bfe9e3e1a
Avoid extra roundtrip to filesystem 2020-11-09 10:06:41 +05:30
Kovid Goyal
5799e93703
pep8 2020-11-08 17:12:07 +05:30
Charles Haley
1a494d5356 Enhancement #1903349: Add a clear button inside the text field when editing custom columns
Enhancement #1903348: Add a clear button to clear permitted values when editing a custom columns

Also added clear buttons to several other editing widgets.
2020-11-08 11:37:15 +00:00
Kovid Goyal
8d16daab6e
Viewer: In dark mode when showing images with transparency in the popup use a light background color as most images are designed with a light background color in mind. Fixes #1903423 [ebook-viewer: Transparent PNG renders strangely in dark mode viewer](https://bugs.launchpad.net/calibre/+bug/1903423) 2020-11-08 11:59:53 +05:30
Kovid Goyal
a3f829a6fa
String changes 2020-11-08 11:57:24 +05:30
Kovid Goyal
885553d827
Add tooltips for buttons on bool data editor 2020-11-08 10:14:43 +05:30
Kovid Goyal
f64382a1a1
Fix a regression in the previous release that broke conversion of DJVU files
Fixes #1903428 [Convert from djvu to pdf format failed](https://bugs.launchpad.net/calibre/+bug/1903428)
2020-11-08 08:58:42 +05:30
Charles Haley
7a6ef0f3e8 Add a "Clear X" tooltip to clear buttons on custom column metadata editors 2020-11-07 15:34:43 +00:00
Charles Haley
abd1a924bb Bug 1903363: Bulk Metadata Edit: "Set to Undefined" missing on integer columns.
Also added the buttons to single metadata edit
2020-11-07 11:00:47 +00:00
Kovid Goyal
92a692af2d
Fix opening the MTP config dialog without a device connected broken in calibre 5 2020-11-06 23:16:12 +05:30
Kovid Goyal
bdb403fc1c
py3 compat for prpdb
Note this is not tested as I dont use it myself. Fixes #1903330 [TypeError when running calibre.rpdb cli](https://bugs.launchpad.net/calibre/+bug/1903330)
2020-11-06 23:12:53 +05:30
Kovid Goyal
079a47cf81
Fix unhandled exceptions with '<' not being correctly displayed 2020-11-06 23:03:15 +05:30
Charles Haley
1ff3b1c090 Formatter improvement: inline function first_non_empty to avoid evaluating unneeded arguments. 2020-11-06 15:18:54 +00:00
Kovid Goyal
238ff455f7
Edit book: Fix regression in calibre 5 that caused an error when managing user dictionaries. Fixes #1903294 [Preferences / Editor settings / Manage spelling dictionaries throws exception](https://bugs.launchpad.net/calibre/+bug/1903294) 2020-11-06 18:16:48 +05:30