Kovid Goyal
49e06d0cda
...
2024-02-29 14:04:03 +05:30
Kovid Goyal
544d34fa42
...
2024-02-29 14:02:19 +05:30
Kovid Goyal
b10eebf7a0
Workaround chromium causing selection start to also change when end is changed in some circumstances
...
Fixes #2054934 [Extra text copied when selecting across pages](https://bugs.launchpad.net/calibre/+bug/2054934 )
2024-02-29 14:00:52 +05:30
Kovid Goyal
2e4b88059c
...
2024-02-29 13:29:50 +05:30
Kovid Goyal
4755458dcd
Refactor PR to use pre-parsed SMIL metadata
2023-11-13 19:21:39 +05:30
duydl
67fe848720
feat: Add support for EPUB with Media Overlays
2023-11-13 19:21:39 +05:30
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
de4bee60eb
E-book viewer: When using a right click/shift-click to adjust the selection, move the section boundary that is closer to the click point. Fixes #1929164 [E-book viewer: Right- and Shift-clicking inside the selection always change its lower boundary]( https://bugs.launchpad.net/calibre/+bug/1929164 )
2021-05-21 18:16:38 +05:30
Kovid Goyal
8988cbcf56
Remove top-level references to window and document
2021-05-16 05:43:02 +05:30
Kovid Goyal
1095dc4dc6
E-book viewer: Fix right or shift-clicking to extend selection not shrinking selection when the click is inside the selection. Fixes #1926793 [E-book viewer: right-clicking inside the selection does nothing]( https://bugs.launchpad.net/calibre/+bug/1926793 )
2021-05-09 12:28:45 +05:30
Kovid Goyal
cbd1c42865
E-book viewer: Allow using shift+click to extend selections. Fixes #1918251 [E-book viewer selection broken]( https://bugs.launchpad.net/calibre/+bug/1918251 )
2021-03-10 13:19:35 +05:30
Kovid Goyal
ccf69016df
Content server: Fix dragging selection handles not working in Safari. Fixes #1913854 [Cannot drag text selection handle on iOS touch screen devices]( https://bugs.launchpad.net/calibre/+bug/1913854 )
...
Apparently on safari to modify a selection its not enough to modify the
range, one has to set the range on the selection
2021-01-30 10:54:34 +05:30
Kovid Goyal
f4b6806202
TTS should start reading from the current page
2020-12-11 07:34:17 +05:30
Kovid Goyal
fbeb0230ff
Allow tap/click on word to skip to speaking from it
2020-12-04 07:14:33 +05:30
Kovid Goyal
eaccc523af
More work on Read Aloud
2020-11-29 13:42:29 +05:30
Kovid Goyal
9b79b12239
Avoid unnecessary selection change events
2020-08-31 14:50:12 +05:30
Kovid Goyal
39dede0a58
Cleanup range_extents
2020-08-31 11:46:15 +05:30
Mark W. Gabby-Li
9b79d6a5fa
Support Selection Handles on Vertical/RTL Books
...
- Pass vertical/rtl mode into selection code.
- Added new image for vertical selection handle.
selection_bar.pyj:
- Made code agnostic to text direction.
- Changed names to start and end rather than left and right to reflect new behavior.
- Track vertical/rtl state from selection message.
- Handle selection position modified to support all possible text orientations.
- Switch to vertical selection handle in vertical mode.
- Cap selection size at 60px to avoid comically large (and unusable) handles when selecting large element, such as an image.
select.pyj:
- Improved selection behavior when selected range extents are on nodes by search the node's DOM tree for something with a reasonable bounding box.
- To work around bugs with collapsed range rects and vertical text, use character bounding boxes in most cases.
- Add width to selection range extents.
2020-08-28 00:26:18 -07:00
Kovid Goyal
054a7e374f
Micro-optimization
2020-08-22 18:48:33 +05:30
Kovid Goyal
41717d5eca
Use caret position from point rahter than range from point as the former is standards compliant
2020-08-22 18:48:32 +05:30
Kovid Goyal
6d0cc73d93
Remove unused code
2020-08-22 18:48:32 +05:30
Kovid Goyal
1911ec41b4
Simply adjusting selection on handle move
...
Also re-enable drag scrollign with handles though it does not really
work yet
2020-08-22 18:48:31 +05:30
Kovid Goyal
1e24b66dad
Simplify the selection extents function
2020-08-22 18:48:31 +05:30
Kovid Goyal
1c5fed9e4c
Fix for tiny selection handle in some circumstances
2020-08-22 18:48:29 +05:30
Kovid Goyal
83490b316f
Implement scrolling keyboard shortcuts when selection bar is showing
...
Also remove unused code
2020-08-22 18:48:27 +05:30
Kovid Goyal
94c28fc92d
...
2020-08-22 18:48:20 +05:30
Kovid Goyal
8aad5bd72f
Better calculation of selection extents
2020-08-22 18:48:19 +05:30
Kovid Goyal
0407959ce4
...
2020-08-22 18:48:19 +05:30
Kovid Goyal
0c233efa27
Expicitly mark is selection extent was found or not
2020-08-22 18:48:18 +05:30
Kovid Goyal
a3bc2c9d56
Fix selection extents not being reported correctly when selection ends at an element node
2020-08-22 18:48:18 +05:30
Kovid Goyal
2f9c735d2f
Start work on displaying selection bar
2020-08-22 18:48:17 +05:30
Kovid Goyal
1148208f45
Implement drag scrolling for highlight handles
2020-08-22 18:48:13 +05:30
Kovid Goyal
b92c233ad8
Dont use an empty start selection to position handles
2020-04-13 16:40:22 +05:30
Kovid Goyal
33fed39269
Make extending the selection on scroll more robust
2020-04-08 20:16:52 +05:30
Kovid Goyal
8dc0e875c9
Handle multi-page highlight creation
2020-03-22 09:18:21 +05:30
Kovid Goyal
9323019776
Update selection as handles are dragged
2020-03-20 22:16:52 +05:30
Kovid Goyal
4defd82bed
Click to position handles implemented
2020-03-20 15:41:23 +05:30
Kovid Goyal
2e8692bfcb
Browser viewer: Allow long tapping a word to look it up in a dictionary or search the internet for it. Fixes #1738995 [[Browser Viewer] not possible to select text on Android]( https://bugs.launchpad.net/calibre/+bug/1738995 )
2018-02-21 17:16:07 +05:30