42810 Commits

Author SHA1 Message Date
Kovid Goyal
86f5976ea5
Fix merging of last-read annotations 2020-08-22 18:48:13 +05:30
Kovid Goyal
b37ce63c86
... 2020-08-22 18:48:13 +05:30
Kovid Goyal
05eb665be9
Ensure annotations span styles override all others 2020-08-22 18:48:13 +05:30
Kovid Goyal
6834028e6a
Fix annotations not being saved in indexeddb after creation 2020-08-22 18:48:12 +05:30
Kovid Goyal
fe7f957ab2
... 2020-08-22 18:48:12 +05:30
Kovid Goyal
4fbc6e88d2
Forgot to bump db user_version in creation script 2020-08-22 18:48:12 +05:30
Kovid Goyal
be61b2612c
Dont fail when trying to read/write annotations to un-upgraded db 2020-08-22 18:48:12 +05:30
Kovid Goyal
6b48a7c353
Fix annotation merging 2020-08-22 18:48:12 +05:30
Kovid Goyal
928e31dbb6
Allow storing annotations for anonymous users 2020-08-22 18:48:12 +05:30
Kovid Goyal
14b87b8446
Add syncing of annotations along with last read position 2020-08-22 18:48:12 +05:30
Kovid Goyal
0c4010b3af
Work on adding annotations support to the in-browser viewer
As part of that desktop viewer's annotations handling has been made more
robust, with merging of annotations, and sorting after merge based on
CFI
2020-08-22 18:48:12 +05:30
Kovid Goyal
631a907773
Implement merging of annotations in rapydscript 2020-08-22 18:48:12 +05:30
Kovid Goyal
5075fc2d36
Keep annotations sorted in CFI order when merging 2020-08-22 18:48:11 +05:30
Kovid Goyal
b6cbf67e4c
Make cfi_cmp re-useable 2020-08-22 18:48:11 +05:30
Kovid Goyal
94ee4035e2
Toolbar actions for highlighting 2020-08-22 18:48:11 +05:30
Kovid Goyal
5422fb170b
DRYer 2020-08-22 18:48:11 +05:30
Kovid Goyal
067e82083f
Hide annots UI behind develop mode in preparation for merge into master 2020-08-22 18:48:11 +05:30
Kovid Goyal
c9fe151075
Add actions for highlighting to viewer chrome 2020-08-22 18:48:11 +05:30
Kovid Goyal
74897b4ec2
Icon for highlights 2020-08-22 18:48:11 +05:30
Kovid Goyal
655c9c950c
Skip legacy db test when python sqlite3 module does not have FTS support 2020-08-22 18:48:11 +05:30
Kovid Goyal
1f253580b5
Wire up open annotations button and add button to select book in calibre 2020-08-22 18:48:11 +05:30
Kovid Goyal
b958361a18
typo 2020-08-22 18:48:11 +05:30
Kovid Goyal
5a0da12942
Start work on annotations browser action 2020-08-22 18:48:10 +05:30
Kovid Goyal
ded52279fc
Fix existing notes not being prefilled when editing an annotation 2020-08-22 18:48:10 +05:30
Kovid Goyal
c5c3182a59
Wire up signals to open annotation in viewer 2020-08-22 18:48:10 +05:30
Kovid Goyal
88b749c875
Details display in annots browser 2020-08-22 18:48:10 +05:30
Kovid Goyal
2c530d7c78
Implement query params for annotation browser 2020-08-22 18:48:10 +05:30
Kovid Goyal
f53ecbf7ba
More work n annotations browser 2020-08-22 18:48:10 +05:30
Kovid Goyal
95dcc16073
Render annots browser list 2020-08-22 18:48:10 +05:30
Kovid Goyal
a283014fe4
Order FTS results by rank 2020-08-22 18:48:10 +05:30
Kovid Goyal
9b7f69e4bb
More work on annotations browser 2020-08-22 18:48:10 +05:30
Kovid Goyal
7ed580cad4
Fix viewer shutdown guard 2020-08-22 18:48:09 +05:30
Kovid Goyal
8e2ff38dd5
Make the highlight shortcuts always available 2020-08-22 18:48:09 +05:30
Kovid Goyal
dbc9700329
Start work on annotations browser 2020-08-22 18:48:09 +05:30
Kovid Goyal
3670ec8d27
Raise a defined error when invalid query passed to FTS engine 2020-08-22 18:48:09 +05:30
Kovid Goyal
6092abe13c
Implement highlight and snippet for FTS 2020-08-22 18:48:09 +05:30
Kovid Goyal
5916fd1f5d
Initial implementation of FTS on annotations 2020-08-22 18:48:09 +05:30
Kovid Goyal
cda8dffc3a
Dont modify database when no dirtied annotations are present 2020-08-22 18:48:09 +05:30
Kovid Goyal
3a9cc685dd
Backup annotations in the metadata.opf files as well 2020-08-22 18:48:09 +05:30
Kovid Goyal
3301487aeb
Hook annotations up with the dirtied book mechanism
Add some simple tests
2020-08-22 18:48:09 +05:30
Kovid Goyal
1002a9bcdd
Move code that deals with the dirtied table into backend 2020-08-22 18:48:09 +05:30
Kovid Goyal
6bda5e6aad
Code to read and write annotations to the calibre db 2020-08-22 18:48:08 +05:30
Kovid Goyal
628ce9aa84
Add an annotations table to the database 2020-08-22 18:48:08 +05:30
Kovid Goyal
4ab24b8ea2
Remove wrap/unwrap for bytes in plistlib not needed on py3 2020-08-22 18:48:08 +05:30
Kovid Goyal
7f7204e6eb
py3 compat 2020-08-22 18:48:08 +05:30
Kovid Goyal
ee44316ac2
Remove some __future__ imports 2020-08-22 18:48:08 +05:30
Kovid Goyal
388165f824
py3 compat 2020-08-22 18:48:08 +05:30
Kovid Goyal
5e783de560
Bump beta version 2020-08-22 18:48:08 +05:30
Kovid Goyal
d2f24d6449
Update ICU version in macOS freezer 2020-08-22 18:48:08 +05:30
Kovid Goyal
ba32a87c1f
Accidentally removed python 2 needed for building Qt 2020-08-22 18:48:08 +05:30