Commit Graph

1943 Commits

Author SHA1 Message Date
Kovid Goyal e7f8ee5cd6 E-book viewer: Fix selection popup not showing for some books on some platforms when the selection is in the top line. Fixes #2024375 [Private bug](https://bugs.launchpad.net/calibre/+bug/2024375) 2023-06-23 09:28:24 +05:30
Kovid Goyal cb41907196 Let the browser engine tell us if the selection is hidden or not 2023-06-19 10:33:50 +05:30
Kovid Goyal e0dee4fdef E-book viewer: Fix searching for text next to hidden text not scrolling to the match 2023-06-18 09:18:11 +05:30
Kovid Goyal 748ffc7fb3 E-book viewer: Allow configuring the actions triggered by touch gestures. Fixes #2023367 [Feature Request: Customizable Touchscreen Behaviors in Content Server's Web Viewer](https://bugs.launchpad.net/calibre/+bug/2023367) 2023-06-12 08:00:19 +05:30
Kovid Goyal 73ecd2a53d Add descriptions for gesture actions 2023-06-11 15:14:13 +05:30
Kovid Goyal 80702e5a72 Map gestures to configurable actions 2023-06-11 14:40:38 +05:30
Kovid Goyal dcfc477c28 Clean up gesture handling
All the gnarly direction detection for swipes is moved into touch.pyj
and the handlers just need to check the event type (except for flow mode
where we really want to match finger movement).
2023-06-11 09:30:27 +05:30
Kovid Goyal 0acd1a8182 better name for two finger tap gesture 2023-06-09 15:28:02 +05:30
Kovid Goyal 924ba7adfe Content server: Allow disabling full text search via the web interface. Fixes #2020237 [[content server] Disable fulltext search activation via web interface](https://bugs.launchpad.net/calibre/+bug/2020237) 2023-05-23 17:55:51 +05:30
Kovid Goyal 04fa47ddaf E-book viewer: Handle horizontal wheel events as section jumps in paged mode
Also handle horizontal wheel events in cover flow. Fixes #2019426 [vertical mousewheel function not implemented](https://bugs.launchpad.net/calibre/+bug/2019426)
2023-05-19 07:17:05 +05:30
Kovid Goyal b92d673ad4 DRYer 2023-04-20 18:09:57 +05:30
Kovid Goyal 7af8910281 E-book viewer: Fix a regression that caused notes from a different highlights to be shown in some situations. Fixes #2017130 [Private bug](https://bugs.launchpad.net/calibre/+bug/2017130) 2023-04-20 17:58:29 +05:30
Kovid Goyal bc7a01934a Content server viewer: Fix end of chapter content being occasionally skipped when scrolling by screen full with multiple pages. Fixes #2015617 [[Content Server] Last page not shown by Firefox if short](https://bugs.launchpad.net/calibre/+bug/2015617) 2023-04-20 13:33:00 +05:30
Kovid Goyal 6d6173f1ff Remove unused code
dis was not being defined so we were setting max width/height to
"undefinedpx"
2023-04-20 10:13:20 +05:30
Kovid Goyal 1ef173bca5 DRYer 2023-04-20 07:18:48 +05:30
Kovid Goyal d153d026e9 When creating and using id assertions in CFI check that the ID is unique 2023-04-19 23:02:17 +05:30
Kovid Goyal b63ca39143 Nicer error when failing to decode CFI 2023-04-19 22:54:34 +05:30
Kovid Goyal c33df89ce2 EPUB Output: Do not shrink images to fit the screen size by default.
This matches behavior of converting to other formats. A new option has
been added to the EPUB Output section to control the maximum size of
images.
2023-04-04 17:38:25 +05:30
Kovid Goyal c7636ad90d E-book viewer: Fix a regression that caused incorrect highlight collision detection in some books. Fixes #2009586 [overlaping highlight problem](https://bugs.launchpad.net/calibre/+bug/2009586) 2023-04-04 11:57:22 +05:30
Kovid Goyal 87ab6fa448 E-book viewer: Fix images embedded inside svg tags not available for viewing in a popup 2023-04-04 10:35:30 +05:30
Kovid Goyal 8e1982c700 Content server: Fix re-opening book from home page after making progress not opening to correct last read position when a user is logged in. Fixes 2011755 2023-04-02 14:29:50 +05:30
Kovid Goyal 5f515131a5 Content server: Add support for link_maps
Only URLs of type http(s) are allowed
2023-03-31 14:38:38 +05:30
Kovid Goyal 491ee6ad98 Fix #2008538 [Content Server: Better message for non-readable formats](https://bugs.launchpad.net/calibre/+bug/2008538) 2023-03-09 16:02:09 +05:30
Kovid Goyal b529a975e9 Content server viewer: Fix searching only showing results from the current chapter onwards. Fixes #2009268 [search in book on content server only returns results beyond current location](https://bugs.launchpad.net/calibre/+bug/2009268) 2023-03-09 15:44:54 +05:30
Kovid Goyal 7c81951153 Fix #2008537 [Content Server: is_tag_browser editable](https://bugs.launchpad.net/calibre/+bug/2008537) 2023-03-09 09:23:20 +05:30
Kovid Goyal 4292dcbdda Also handle composite_show_in_comments in the content server 2023-03-06 19:43:36 +05:30
Kovid Goyal c9b0c23aeb Respond to wheel event in the image popup 2023-02-16 13:46:40 +05:30
Kovid Goyal c4f3fe5745 E-book viewer: Fix some adjacent highlights with nothing in between them not being displayed. 2023-02-16 12:59:48 +05:30
Kovid Goyal 44f157bc94 ... 2023-02-16 11:04:11 +05:30
Kovid Goyal c3b7029667 Content server: Workaround for Safari regression causing bookmarks to disappear on reload. Fixes #2006726 [calibre web view - missing bookmarks](https://bugs.launchpad.net/calibre/+bug/2006726) 2023-02-16 11:01:24 +05:30
Kovid Goyal 515fbd3c4b read aloud: Fix a regression in the previous release that caused the read aloud controls to not reappear is read aloud is canceled and restarted. Fixes #2007039 ["Read aloud" feature glitches on closing and reopening it](https://bugs.launchpad.net/calibre/+bug/2007039) 2023-02-14 13:01:01 +05:30
Kovid Goyal 3eecc86589 Implement touch gestures for panning image in popup 2023-02-05 16:10:15 +05:30
Kovid Goyal 7b7d2d44b1 Keyboard controls for image popup 2023-02-05 14:55:35 +05:30
Kovid Goyal 20bcb4f416 Button to toggle fit to window 2023-02-05 14:24:54 +05:30
Kovid Goyal 0eb533e17b Content server viewer: When long tapping images open them in an in-window popup instead of a separate window since many browser default to blocking new windows for stupid reasons. 2023-02-05 13:55:27 +05:30
Kovid Goyal 08ccf8ad4b Change the default shortcuts for reload book as they conflict with browser reload shortcuts 2023-02-03 07:29:48 +05:30
Kovid Goyal c8cbe7a496 ... 2023-02-02 22:37:34 +05:30
Kovid Goyal ae5dbbe786 I hate browsers 2023-02-02 21:33:35 +05:30
Kovid Goyal bd24c88f8c ... 2023-02-02 21:31:07 +05:30
Kovid Goyal 3b924ecb04 Dont try to cancel non cancelable event 2023-02-02 21:29:32 +05:30
Kovid Goyal 3eed23619e dont clear search caches on a redisplay 2023-02-02 20:57:11 +05:30
Kovid Goyal 517d229e08 Content server viewer: Fix reload book not actually reloading until the browser is also refreshed. Fixes #2004197 [content server - viewer does not show updated book/format](https://bugs.launchpad.net/calibre/+bug/2004197) 2023-02-02 20:50:55 +05:30
Kovid Goyal 1fb7f72fd0 E-book viewer: Fix occasional false warning about highlight being overwritten. Fixes #2003916 [Overlapping highlights not detected properly (inconsistent)](https://bugs.launchpad.net/calibre/+bug/2003916)
all_annots_in_selection should return a list of unique uuids.
2023-02-02 18:07:34 +05:30
Kovid Goyal 40ca12ff39 Fix detection of selected highlights when all text is selected. See #2003908 (Clear selection when several selections are selected only deletes one) 2023-02-02 15:33:54 +05:30
Kovid Goyal be4e875706 Improve the highlight deletion confirmation message to show some text from the highlight and mention if the highlight has associated notes 2023-02-02 15:23:20 +05:30
Kovid Goyal f64b9e3e2c Dont block UI while waiting for speech to start 2023-02-01 22:39:53 +05:30
Kovid Goyal 5e758211f1 Viewer: use an inch as the limit for the back tap zone rather than 100px 2023-01-31 19:59:35 +05:30
Kovid Goyal 31b0c321fc DRYer 2023-01-31 19:26:42 +05:30
Kovid Goyal 603dcc777e Special case zero font size when calculating columns per screen in paged mode 2023-01-24 11:55:36 +05:30
Kovid Goyal ce49025770 Also sort the actions in the quick highlights preferences 2023-01-24 07:34:53 +05:30