31920 Commits

Author SHA1 Message Date
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
9a5a84069b
another useless __future__ 2020-08-22 18:48:07 +05:30
Kovid Goyal
8cbda9e18a
Build fixes 2020-08-22 18:48:07 +05:30
Kovid Goyal
fb1b0162fa
Bump beta version 2020-08-22 18:48:06 +05:30
Kovid Goyal
9a22962e54
py3ize new file header 2020-08-22 18:48:06 +05:30
Kovid Goyal
34b9c1f178
Remove ispy3 conditional 2020-08-22 18:48:06 +05:30
Kovid Goyal
520adcafc0
... 2020-08-22 18:48:06 +05:30
Kovid Goyal
761466ed10
Remove unused py2 code 2020-08-22 18:48:06 +05:30
Kovid Goyal
484fb7e3d7
Remove backported ipaddress module 2020-08-22 18:48:06 +05:30
Kovid Goyal
97a2b6ebd7
Missed one instance of ispy3 2020-08-22 18:48:06 +05:30
Kovid Goyal
9cab833728
Remove py2 code paths 2020-08-22 18:48:06 +05:30
Kovid Goyal
f250c39406
Remove another ispy3 2020-08-22 18:48:05 +05:30
Kovid Goyal
97fdef3cff
Remove __future__ imports from newly created py files 2020-08-22 18:48:05 +05:30
Kovid Goyal
152e301111
Bump beta version 2020-08-22 18:48:05 +05:30
Kovid Goyal
d3c84fdecc
py3ize new file header 2020-08-22 18:48:05 +05:30
Kovid Goyal
9bb6d2ad7e
Bump beta version 2020-08-22 18:48:05 +05:30
Kovid Goyal
1c9342d32a
Cant pass byte strings to WinDLL() 2020-08-22 18:48:05 +05:30
Kovid Goyal
151fa406f6
Another couple of ispy3 2020-08-22 18:48:05 +05:30
Kovid Goyal
e22a1719fe
Bump beta version 2020-08-22 18:48:05 +05:30
Kovid Goyal
fb9d5a16ce
Remove remaining uses of WindowsError 2020-08-22 18:48:04 +05:30
Kovid Goyal
bbdebbc3ef
Fix device detection on windows broken on python3 2020-08-22 18:48:04 +05:30
Kovid Goyal
dbf9a81940
oops 2020-08-22 18:48:04 +05:30
Kovid Goyal
d9f56839e6
Avoid creation of un-needed tuple 2020-08-22 18:48:04 +05:30
Kovid Goyal
19145e4bd3
Use text mode streams for metadata logging 2020-08-22 18:48:04 +05:30
Kovid Goyal
1d33b3dc0c
Fix prints() 2020-08-22 18:48:04 +05:30
Kovid Goyal
4d40be05f3
Bump beta version 2020-08-22 18:48:04 +05:30
Kovid Goyal
2966a3233d
Fix pycryptodome not working on windows 2020-08-22 18:48:04 +05:30
Kovid Goyal
c10abd4e76
Fix SpooledTemporaryFile on python3 2020-08-22 18:48:04 +05:30
Kovid Goyal
06487ad491
Dont use \r\n in logfiles on windows 2020-08-22 18:48:04 +05:30
Kovid Goyal
e1fdbd3982
Restore prints and use it instead of polyglot write 2020-08-22 18:48:03 +05:30
Kovid Goyal
4cce5c7006
More py3 unicode fixes
the csv module needs to write out to a stream with newline='' on
python3. And use PolyglotStringIO instead of PolyglotBytesIO so we remain unicode as long as possible.
2020-08-22 18:48:03 +05:30
Kovid Goyal
7414cb28ba
More py3 zipfile fixes 2020-08-22 18:48:03 +05:30
Kovid Goyal
e72e7e1773
Fix reading of names in custom zipfile module on py3 2020-08-22 18:48:03 +05:30
Kovid Goyal
453d467caf
Fix code broken during py3 migration 2020-08-22 18:48:03 +05:30