1823 Commits

Author SHA1 Message Date
Kovid Goyal
cc96900aee
E-book viewer: Fix auto hyphenation on macOS not rendering the hyphens correctly. Fixes #1954714 [Ebook viewer: Breaking long words at the ends of lines causing boxes to be rendered instead of hyphens on macOS](https://bugs.launchpad.net/calibre/+bug/1954714) 2022-01-07 11:08:59 +05:30
Kovid Goyal
6a3309175a
E-book viewer: Remove books that dont exist from the recently opened book list. Fixes #1956192 [Feature request: possibility to remove book from recently opened books in Viewer](https://bugs.launchpad.net/calibre/+bug/1956192) 2022-01-03 12:11:17 +05:30
Kovid Goyal
0759ab8589
Fix closing open book panel not quitting viewer 2021-12-17 08:36:17 +05:30
Kovid Goyal
2c6a73534a
Fix #1953469 [Private bug](https://bugs.launchpad.net/calibre/+bug/1953469) 2021-12-15 13:33:41 +05:30
Kovid Goyal
5101ca89de
Fix #1954645 [Private bug](https://bugs.launchpad.net/calibre/+bug/1954645) 2021-12-14 20:14:55 +05:30
Kovid Goyal
07f72d2d94
E-book viewer: Fix an error when opening some books with highlights that span inline text formatting
Fixes #1954726 [epub file no longer opens](https://bugs.launchpad.net/calibre/+bug/1954726) [epub file no longer opens](https://bugs.launchpad.net/calibre/+bug/1954726)

normalize() modifies the text nodes, and can potentially result in a
previously selected node no longer having a parent causing wrap() to
throw an exception. In any case normalizing once after all nodes have
been wrapped is faster.
2021-12-14 12:30:54 +05:30
Kovid Goyal
27b2f3a92a
E-book viewer: Displays links marked up as glossary and bibliography links as popups. Fixes #1954715 [Support ARIA doc-biblioref and doc-glossref](https://bugs.launchpad.net/calibre/+bug/1954715) 2021-12-14 11:54:03 +05:30
Kovid Goyal
4fa03c00ff
Add logging for iframe ready event 2021-11-30 08:37:34 +05:30
Kovid Goyal
ba9e65df0f
Micro-optimization when reloading iframes
Just use a url query instead of first changing to 'about:blank'
2021-11-30 08:03:44 +05:30
Kovid Goyal
bd111dc365
No need to call init() in display book since the iframe is inited at construction time 2021-11-30 00:12:20 +05:30
Kovid Goyal
ce49820ffc
E-book viewer: Fix an occassional hang on startup at "Loading section". Fixes #1950673 [Opening books using the book reader fails to load.](https://bugs.launchpad.net/calibre/+bug/1950673) 2021-11-30 00:10:37 +05:30
Kovid Goyal
d8671c8e9e
better error essage when iframe receives unexpected encrypted message 2021-11-29 22:49:48 +05:30
Kovid Goyal
416fa04d3b
Make doubly sure the ready message is sent only once 2021-11-29 22:46:29 +05:30
Kovid Goyal
ee717920ba
Add names for all iframe clients 2021-11-29 22:28:39 +05:30
Kovid Goyal
1dbbf5b73d
Fix #1952498 [[Enhancement - E-book viewer] Don't search for selection if it is a blanc space](https://bugs.launchpad.net/calibre/+bug/1952498) 2021-11-29 13:21:00 +05:30
Kovid Goyal
6a5126fe36
Dont escape - when generating CFI
Also recognize both escaped and unescaped hyphens when parsing CFI
2021-11-19 12:45:26 +05:30
Kovid Goyal
2fa3561aef
Avoid JS errors when previewing non html documents such as svg images 2021-11-19 08:15:44 +05:30
Kovid Goyal
0f7bcb432d
for e.g. -> e.g. 2021-11-11 07:42:50 +05:30
Kovid Goyal
6322ba9a1b
Pass bools_are_tristate to content server interface 2021-11-07 12:04:30 +05:30
Charles Haley
4a8f5a226a Add searching for bool, numeric etc values to the content server. 2021-11-06 17:18:47 +00:00
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
88cf8ff2bb
E-book viewer: Read aloud: Allow right clicking to play/pause reading. Fixes #1946439 [[Enhancement - E-book viewer] Right mouse click to pause/play Read aloud](https://bugs.launchpad.net/calibre/+bug/1946439) 2021-10-21 19:55:20 +05:30
Kovid Goyal
5cb4be9000
Fix #1947178 [[Enhancement - E-book viewer] Make string translatable](https://bugs.launchpad.net/calibre/+bug/1947178) 2021-10-14 21:37:44 +05:30
Kovid Goyal
2d074400e2
E-book viewer: Fix cover and full screen images not centered in paged mode when more than one page is displayed per screen. 2021-10-12 08:21:25 +05:30
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