81 Commits

Author SHA1 Message Date
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
Kovid Goyal
3b1753f134
Code to control background attachment 2019-09-25 10:09:38 +05:30
Kovid Goyal
92ffeebb4a
Work on viewer setting for background image 2019-09-24 20:21:25 +05:30
Kovid Goyal
7661bb00d1
Viewer: Add option under Page layout to control if the aspect ratio of the cover is preserved or not 2019-09-19 21:51:54 +05:30
Kovid Goyal
997595dfd4
Viewer: Add option to hide mouse-over tooltips 2019-09-17 19:47:00 +05:30
Kovid Goyal
e91e414687
Work on preferences UI for keyboard shortcuts 2019-09-13 09:12:31 +05:30
Kovid Goyal
95aa3a50c2
Implement opening of local ebook files 2019-09-13 09:12:29 +05:30
Kovid Goyal
95dc6a06ad
UI for misc settings 2019-09-13 09:12:29 +05:30
Kovid Goyal
7914ad4244
UI for viewer font settings 2019-09-13 09:12:29 +05:30
Kovid Goyal
783ff58129
Implement basic settings storage for new viewer 2019-09-13 09:12:12 +05:30
Kovid Goyal
1a3d09a61b
Content server: Add an option to control which book list mode is used by default for new users (Preferences->Sharing over the net->Choose book list mode) 2019-04-17 11:22:27 +05:30
Kovid Goyal
409aac87dd
Donate buttons should link to localized donate pages
Fixes #1819064 [Clicking on the heart (donate) button will not get you to the donate page in your language](https://bugs.launchpad.net/calibre/+bug/1819064)
2019-03-08 10:32:08 +05:30
Kovid Goyal
24a9ebd3af
Content server: Allow specifying custom URLs for the "Search the internet" feature via Preferences->Sharing over the net->Search the internet. Fixes #1810923 [[Enhancement]: Search the internet on Content Server](https://bugs.launchpad.net/calibre/+bug/1810923) 2019-03-06 20:36:19 +05:30
Kovid Goyal
6ff8b2a97a
Allow controlling behavior for dupes when copying to library in the server 2019-01-29 11:24:16 +05:30
Kovid Goyal
a26292751d
Content server: Fix switching from translations to no translations not working 2018-03-24 10:13:54 +05:30
Kovid Goyal
fa2bcb0f90
Allow custom word lookup actions in the browser viewer 2018-02-22 12:40:08 +05:30
Kovid Goyal
da032270d1
UI for configuring header footers int he browser viewer 2018-01-03 11:18:14 +05:30
Kovid Goyal
f9a0bfc6e0
Infrastructure for user stylesheets in the browser viewer 2017-10-23 10:53:22 +05:30
Kovid Goyal
2b92691c68
Server: Add an option to control the number of books displayed per page in the browser (Preferences->Sharing over the net->Advanced). Fixes #1715283 [[Enhancement] Control # of Books Output to Browser](https://bugs.launchpad.net/calibre/+bug/1715283) 2017-09-19 10:17:30 +05:30
Kovid Goyal
e62ade9d20
Pass in the custom list template via interface_data 2017-07-18 17:30:34 +05:30
Kovid Goyal
aadacfdbfd
Get console_print() to work 2017-05-27 16:44:04 +05:30