1799 Commits

Author SHA1 Message Date
Kovid Goyal
35180e7251
E-book viewer: Allow pressing the 0-9 keys to apply a quick highlight style. Fixes #1944614 [[Enhancement] Add hotkeys for applying specific highlighting colors](https://bugs.launchpad.net/calibre/+bug/1944614) 2021-09-23 08:50:47 +05:30
Kovid Goyal
f2dcb7a967
Fix #1944615 [[Enhancement] "Remove this highlight" would benefit from another hotkey](https://bugs.launchpad.net/calibre/+bug/1944615) 2021-09-23 07:47:23 +05:30
Kovid Goyal
3f65b62e96
Fix #1944487 [TOC not aligned properly when screen width not enough](https://bugs.launchpad.net/calibre/+bug/1944487) 2021-09-22 10:43:58 +05:30
Kovid Goyal
8c18cba3a7
E-book viewer: Fix popup footnote blank when the footnote link points to a <body> tag. Fixes #1943270 [Private bug](https://bugs.launchpad.net/calibre/+bug/1943270) 2021-09-22 08:59:18 +05:30
Kovid Goyal
752aaab533
Add a bug reference 2021-09-21 22:44:36 +05:30
Kovid Goyal
747b08689e
E-book viewer: Fix jumping to highlights in text that occurs after a line break and newline character not working in paged mode. Fixes #1944433 [Viewer: Highlight jumps to wrong page](https://bugs.launchpad.net/calibre/+bug/1944433)
Works around a bug in Chromium where the bounding rect for a range
containing just the newline is zero size at top-left corner.
2021-09-21 22:30:44 +05:30
Kovid Goyal
dc2866315b
Refactor code into separate functions 2021-09-21 22:06:24 +05:30
Kovid Goyal
7697daf2ce
Fix #1941693 [Remove style button text is not in the middle](https://bugs.launchpad.net/calibre/+bug/1941693) 2021-08-26 13:14:44 +05:30
Kovid Goyal
b814eae1fd
Content server book viewer: Show a message when a search finds no matches 2021-08-20 20:18:09 +05:30
Kovid Goyal
9ac68112b1
Use padding rather than margins for highlights/bookmarks panels
At least in the case of highlights without this change, the bottom
padding was not visible when the panel is smaller than a full screen
2021-08-20 06:47:50 +05:30
Kovid Goyal
94920612a6
E-book viewer: Fix creating multiple highlights in a single paragraph that also contains some extra text formatting at the start causing the second and subsequent highlights to malfunction. Fixes #1940005 [Arbitrarliy lost/moved/expanded highlights on refresh.](https://bugs.launchpad.net/calibre/+bug/1940005) 2021-08-17 20:49:01 +05:30
Kovid Goyal
72bfb00300
DRYer 2021-08-13 10:35:30 +05:30
Kovid Goyal
e2c9a16829
Viewer: Add some CSS variables and classes that allow writing calibre specific CSS in ebooks 2021-08-12 08:36:42 +05:30
Kovid Goyal
c91be6ed11
E-book viewer: When displaying popup footnotes use the same writing direction as the main text for the footnote popups size and header. Fixes #1938448 [epub footnote popup not good for vertical writing mode](https://bugs.launchpad.net/calibre/+bug/1938448) 2021-08-09 21:22:13 +05:30
Kovid Goyal
eb75caca48
Fix read aloud not working on mobile browsers
Chrome now has a ridiculously small limit on utterance sizes. Capping it
at 2K seems to work, though of course the whole thing is pointless since
speech gets interrupted when the phone screen turns off due to
inactivity.
2021-08-05 11:07:02 +05:30
Kovid Goyal
911e2b22e9
Dont use ssml as firefox reads the markup aloud 2021-08-05 10:33:53 +05:30
Kovid Goyal
211c182462
DRYer 2021-08-04 22:53:20 +05:30
Kovid Goyal
d12f41a4a9
Make length limitation a bit more robust when creating utterances for browser speech engines 2021-08-04 22:49:11 +05:30
Kovid Goyal
fb5cc7b649
... 2021-07-08 12:39:55 +05:30
Kovid Goyal
8702b759b1
Fix #1934685 [[Enhancement - Content server] Add shortcuts to actions in the Book details page and display them in the tooltips](https://bugs.launchpad.net/calibre/+bug/1934685) 2021-07-08 08:44:11 +05:30
Kovid Goyal
d5b6005a34
String changes 2021-07-01 17:22:44 +05:30
Kovid Goyal
ac0969b9e9
Workaround for some element nodes not having dataset 2021-06-30 07:41:45 +05:30
Kovid Goyal
c99e6d00d1
Fix #1933559 [Content Server: Series edit error](https://bugs.launchpad.net/calibre/+bug/1933559) 2021-06-25 07:56:42 +05:30
Kovid Goyal
e7397bda52
E-book viewer: Fix searching for short strings in text with lots of similar entries displaying incorrect matches. Fixes #1931566 [some bad search results using regex](https://bugs.launchpad.net/calibre/+bug/1931566)
Up the amount of context used for matches from 10 to 30 chars to
reduce probability of false matching.
2021-06-23 17:18:35 +05:30
Kovid Goyal
78dea8e439
E-book viewer: Allow clicking links in popup footnotes. Fixes #1931646 [Footnotes/Endnotes don't return to text](https://bugs.launchpad.net/calibre/+bug/1931646) 2021-06-23 10:17:02 +05:30
Kovid Goyal
83ede77029
E-book viewer: Fix back button not working after jumping to a bookmark. Fixes #1931599 [[Enhancement] E-book viewer: clicking on bookmarks should create jump positions](https://bugs.launchpad.net/calibre/+bug/1931599) 2021-06-22 08:53:08 +05:30
Kovid Goyal
f77a5f5c1a
Fix #1933032 [[Viewer] Using comma in reference doesn't work](https://bugs.launchpad.net/calibre/+bug/1933032) 2021-06-22 08:17:38 +05:30
Kovid Goyal
3dccfae35a
String changes 2021-06-21 12:37:46 +05:30
Morgan Seltzer
501d6d0cf2 Fixed Pageup Occasionally Failing
Before, pageup failed when the page margins were greater than half the
screen width, because previous_screen_location() went backward by
screen_inline, which did not account for the margins but worked most of
the time due to later rounding. Now this has been fixed.

Signed-off-by: Morgan Seltzer <MorganSeltzer000@gmail.com>
2021-06-17 12:42:18 -05:00
Kovid Goyal
17e19bdff3
Fix #1930964 [[Enhancement - Server] Show a warning when not having applied changes after editing metadata](https://bugs.launchpad.net/calibre/+bug/1930964) 2021-06-09 20:26:13 +05:30
Kovid Goyal
767b9796e0
Content server: When editing metadata for fields that take multiple values, make it easier to remove individual values by simply tapping a button. Fixes #1930958 [[Enhancement - Server] Show tags as buttons instead of having them separated by commas](https://bugs.launchpad.net/calibre/+bug/1930958) 2021-06-09 11:43:58 +05:30
Kovid Goyal
5470e85c92
After a completion, hide candidates 2021-06-09 08:59:00 +05:30
Kovid Goyal
dfe16969fc
Make it clearer what the completions are for 2021-06-09 08:56:48 +05:30
Kovid Goyal
6556f9a7e9
Dont show completion items that are already input 2021-06-09 08:50:45 +05:30
Kovid Goyal
d2d30ff8df
Turn native auto complete off line edit with completion 2021-06-09 08:42:23 +05:30
Kovid Goyal
9d4e5c500f
Fix #1930965 [[Enhancement - Server] Clicking Esc to go back to the book details page doesn't work after clicking on some metadata field in the Edit metadata page and going back to the Edit metadata page](https://bugs.launchpad.net/calibre/+bug/1930965) 2021-06-09 08:06:05 +05:30
Kovid Goyal
f270e944d2
Browser viewer: Make current color scheme setting propagate to all devices automatically when using user accounts.
See #1930900 ([Enhancemet - Viewer] Export/import color schemes)
2021-06-04 21:30:08 +05:30
Kovid Goyal
652943c31d
Fix a few more untranslated errors in the iframe 2021-06-04 05:25:44 +05:30
Kovid Goyal
db1b00a158
Fix #1930737 [[Enhancement] Warning is not translated](https://bugs.launchpad.net/calibre/+bug/1930737) 2021-06-04 05:17:19 +05:30
Kovid Goyal
95d13dfc3e
E-book viewer: Allow using the back button to return from jumping to a search result 2021-06-03 14:23:17 +05:30
Kovid Goyal
488ffb2877
Use a dedicated callback for ensuring search result visible
It clears the saved timer id
2021-06-03 09:40:06 +05:30
Kovid Goyal
76f595274b
E-book viewer: Highlights: Make URLs in the notes for highlights clickable 2021-06-02 20:40:10 +05:30
Kovid Goyal
89c9a48c2b
Fix #1929896 [[Enhancement - Viewer] Make contrast in dark team a little better in viewer controls](https://bugs.launchpad.net/calibre/+bug/1929896) 2021-05-28 08:35:10 +05:30
Kovid Goyal
8e0ba51fd3
E-book viewer: Add a preference under Scrolling behavior to reverse the tap zones used to turn pages. So tapping on the left goes forward and the right backward. 2021-05-24 07:40:39 +05:30
Kovid Goyal
b097ecce99
Allow using keys on delete confirmation popup 2021-05-23 10:54:03 +05:30
Kovid Goyal
226678e514
Fix #1929177 [[Enhancement - Viewer] Move search bar to the top of the ToC page](https://bugs.launchpad.net/calibre/+bug/1929177) 2021-05-21 18:34:01 +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
676feaa5c2
Disallow user select on search results pane 2021-05-20 16:42:43 +05:30
Kovid Goyal
34294a9c9e
Restore the global find next/prev shortcuts as well 2021-05-20 15:56:19 +05:30
Kovid Goyal
0a44c0bccf
Fix chrome showing native popups for search bars 2021-05-20 15:39:26 +05:30