101 Commits

Author SHA1 Message Date
Kovid Goyal
9b481c42d8
Remove leftover debugging print 2024-03-11 08:53:43 +05:30
Kovid Goyal
11e4edf56d
E-book viewer: Fix a few settings such as pages per screen and header/footers not being saved in profiles 2024-03-11 08:52:30 +05:30
Kovid Goyal
4fb575d8fe
use cloned values from defaults as current value 2024-02-22 09:44:05 +05:30
Kovid Goyal
7a1a26f2e3
Make applying a profile in the standalone viewer more efficient 2024-02-21 21:12:22 +05:30
Kovid Goyal
3808bf47ca
Remove unused current_profile 2024-02-21 20:39:15 +05:30
Kovid Goyal
d016186860
Profiles basically work in standalone viewer 2024-02-21 20:36:46 +05:30
Kovid Goyal
db3401b02b
More work on profiles 2024-02-20 21:05:52 +05:30
Kovid Goyal
6be3293166
More work on reader profiles 2024-02-19 10:33:10 +05:30
Kovid Goyal
14caed3a6f
fix check for local with non-existent setting name 2024-02-09 14:42:48 +05:30
Kovid Goyal
b288b964c8
Code for exporting a subset of preferences 2024-02-08 13:41:26 +05:30
Kovid Goyal
4cea6a59b5
Allow specifying richer metadata per setting 2024-02-08 09:37:43 +05:30
Kovid Goyal
8271fcff30
E-book viewer: Add a new option under scrolling behavior to control horizontal mouse wheel events jumping to next section 2023-09-01 15:03:55 +05:30
Kovid Goyal
80702e5a72
Map gestures to configurable actions 2023-06-11 14:40:38 +05:30
Kovid Goyal
dd666a8778
Make showing recently read for user a bit more robust 2022-12-16 07:58:14 +05:30
Kovid Goyal
3537db5a8c
Content server: When using user accounts on the homepage show recently read books from any device not just the current device. Fixes #1998557 [[feature request] Content-server viewer suggesting of book being read on other devices](https://bugs.launchpad.net/calibre/+bug/1998557) 2022-12-15 17:02:26 +05:30
Kovid Goyal
4b873f1941
Get the initial fts search page built 2022-12-08 08:57:07 +05:30
Kovid Goyal
ae437852be
E-book viewer: Add a button to directly open the viewer help section in the calibre user manual to the viewer controls 2021-10-24 21:21:08 +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
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
4e9b98c4b8
Start work on new search UI 2021-05-19 11:21:41 +05:30
Kovid Goyal
9102e671e7
E-book viewer: Show the current progress percentage in the bottom bar of the viewer controls. This can be customized in the viewer preferences under Headers and footers. Fixes #1921610 [[Enhancement - Viewer] Progress bar](https://bugs.launchpad.net/calibre/+bug/1921610) 2021-04-08 11:35:09 +05:30
Kovid Goyal
fa85e012dd
Content server viewer: Allow exporting all highlights
Fixes #1909529 [Browser viewer: Highlight management](https://bugs.launchpad.net/calibre/+bug/1909529)
2021-01-06 14:38:14 +05:30
Kovid Goyal
762f1b659a
E-book viewer: Dont enter fullscreen mode automatically when reading on desktop like devices (this can be controlled via a setting in in the viewer preferences under Page layout) 2020-12-16 10:03:50 +05:30
Kovid Goyal
e0ea8ebc5b
Start work on tts config for browser viewer 2020-12-09 20:27:15 +05:30
Kovid Goyal
380f49b8fc
Start work on configuring TTS backends 2020-12-06 11:38:35 +05:30
Kovid Goyal
bea311405a
Viewer: Allow skipping the confirmation when using the remove highlight button in the popup bar. Fixes #1897415 [[Feature Request] Delete text highlight without confirmation box](https://bugs.launchpad.net/calibre/+bug/1897415) 2020-10-01 15:02:53 +05:30
Kovid Goyal
8343e8165a
Selection bar: Allow customizing to add quick highlight buttons with specific styles 2020-08-22 18:48:36 +05:30
Kovid Goyal
8fa67e7bfd
Track annot over entire selection
Also work on notes/color editor panel
2020-08-22 18:48:25 +05:30
Kovid Goyal
393e47dcdb
Add a remove highlight action to the popup bar
Only visible if a highlight is selected
2020-08-22 18:48:23 +05:30
Kovid Goyal
6746d0bc11
Make selection bar configurable 2020-08-22 18:48:23 +05:30
Kovid Goyal
cbdaad0003
Allow configuring the search URL 2020-08-22 18:48:23 +05:30
Kovid Goyal
20b76a0ae7
Add a preference to turn off the selection popup bar 2020-08-22 18:48:22 +05:30
Mark W. Gabby-Li
d9a343dad6
Support for Books in RTL Languages, Such as Hebrew
Three parts: RTL layout support, made inputs behave naturally in RTL modes, and updated tutorial for RTL books.

To add RTL layout support:
 ‣ Don't force LTR layout on DOM when loading.
 ‣ Disable "overflow: hidden" in RTL mode to compensate for an issue in Chrome, and disable scrollbars on all browsers to compensate for the side effect of this turning on scrollbars.
 ‣ Have viewport hide the RTL mode by negating scrolls and viewport position requests in RTL mode.
 ‣ Initialize viewport in paged mode layout so that it properly saves RTL mode.
 ‣ Remove all raw calls to pageXOffset and pageYOffset
 ‣ Put viewport_to_document in ScrollViewport so that it can abstract away RTL mode in this case, too.
   ‣ Get rid of calls to reset_transforms and make it private, since it is only called to prepare for viewport_to_document. Put the call there, instead.
 ‣ Use bounding box right instead of left for position of various elements when the viewport is in RTL mode, since the right side is the beginning of the element in this case.

To made input behave naturally in RTL:
 ‣ Get page progression direction from ePub.
 ‣ Add rtl_page_progression() function to return whether we're in this mode.
 ‣ Added support to tell page advance functions whether they should flip their direction if RTL is on.
 ‣ Changed touch behavior to support different position for going back and forward in RTL books.

Tutorial changes:
 ‣ Flipped tutorial so that next and previous page are reversed in position and size in RTL mode.
 ‣ Added a new counter so that RTL tutorial is shown even if user has already seen LTR tutorial.
2020-08-22 18:48:22 +05:30
Kovid Goyal
d053dc26ea
Allow custom colors for highlights 2020-08-22 18:48:20 +05:30
Kovid Goyal
fcbdfc570d
Work on using a single panel to edit both notes and colors at once 2020-08-22 18:48:18 +05:30
Kovid Goyal
4ad884f96c
Viewer: Add a setting to control how many pixels a scroll wheel should generate before triggering a page turn 2020-07-19 13:49:35 +05:30
Kovid Goyal
0872338ae7
Viewer: Add an option to have taps turn by screenfulls instead of pages, under Scrolling behavior 2020-04-22 20:37:45 +05:30
Kovid Goyal
26d405a957
Work on controls for highlighting UI 2020-03-22 19:50:51 +05:30
Kovid Goyal
3b45583ddb
UI for showing data in side margins 2019-12-30 11:24:15 +05:30
Kovid Goyal
fc5f471682
Viewer: Implement auto-scroll in flow mode. Can be toggled by pressing Ctrl+Spacebar. Its speed can be controlled in Viewer preferences under scrolling behavior.
Viewer: Allow configuring the speed with which the viewer scolls wheh
pressing the down key in flow mode (Viewer preferences->Scrolling behavior)

Merge branch 'scrolling' of https://github.com/mgziminsky/calibre
2019-12-28 14:13:47 +05:30
Michael Ziminsky (Z)
0a9e52d212 Additional scroll options...
Option for whether or not to load next file after reaching the start/end when using key based scrolling
Configurable delay before loading the next file after reaching the end with auto-scroll
2019-12-26 12:28:42 -07:00
Michael Ziminsky (Z)
e028bbb3f6 Add auto-scroll with keyboard shortcut 2019-12-24 10:20:39 -07:00
Michael Ziminsky (Z)
0229c684f3 Make smooth scroll speed configurable
Includes keyboard shortcuts, will add menu options next
2019-12-24 10:20:39 -07:00
Michael Ziminsky (Z)
208734f47b Sort default settings and larger handler definitions
Use session defaults in reader settings to reduce code duplication
2019-12-24 10:19:00 -07:00
Kovid Goyal
307680a019
Viewer: Add a setting under Preferences->Colors to control when the viewer will override all book colors or not. 2019-12-15 17:48:00 +05:30
Kovid Goyal
0dc03ed11e
Viewer: Change the default color scheme to "System" which matches the colors used by the rest of calibre/the operating system
Also means that if you switch color schemes while the viewer is running,
the viewer will follow along automatically.
2019-11-05 15:07:52 +05:30
Kovid Goyal
63fda1fed3
Implement the scrollbar inside the web view
This allows it to be hidden naturally when displaying the overlay.
Also gives nice control when clicking in the gutter to scroll by page
2019-10-07 13:18:24 +05:30
Kovid Goyal
0ccedfdcc7
Viewer: Add an option to display a scrollbar 2019-10-06 22:36:57 +05:30
Kovid Goyal
87be626af7
Viewer: Add options to control scrolling using the mouse in paged mode.
Fixes #1846800 [Feature request: Add an option for mouse scroll to scroll by screen fulls rather than a single page](https://bugs.launchpad.net/calibre/+bug/1846800)
2019-10-06 12:32:22 +05:30
Kovid Goyal
317a2b9a14
Viewer: Allow fading the background image by blending it with the background color 2019-09-25 11:25:40 +05:30