31298 Commits

Author SHA1 Message Date
Kovid Goyal
8c1a3e0467
Move the live css related client side code into its own module 2019-09-13 09:12:10 +05:30
Kovid Goyal
4eb75032db
Start work on porting live css 2019-09-13 09:12:10 +05:30
Kovid Goyal
8aa52dbcba
Do not restart render process on normal termination 2019-09-13 09:12:10 +05:30
Kovid Goyal
2bd6939fbd
Only show dead renderer error once 2019-09-13 09:12:10 +05:30
Kovid Goyal
7c09812742
Only load the inspector on demand 2019-09-13 09:12:10 +05:30
Kovid Goyal
c6d6716965
Try restarting the render process on crash
Also only load the link reports web view on demand
2019-09-13 09:12:10 +05:30
Kovid Goyal
c9b2578b33
Fix preview not scrolling to anchor when clicking an internal link to another html file in the book 2019-09-13 09:12:10 +05:30
Kovid Goyal
92fe190f63
Drop use of Qt Web Channel
One less possible cause of lifetime related crashes/leaks.  Plus my
custom solution has a nicer interface. It's slower but since
communication between python and js is not a bottleneck...
2019-09-13 09:12:10 +05:30
Kovid Goyal
883717039e
Go to anchor explicitly in the preview 2019-09-13 09:12:10 +05:30
Kovid Goyal
50ed25a6d9
Dont assume head exists 2019-09-13 09:12:10 +05:30
Kovid Goyal
cae36d2cc1
Avoind double serialization of sourceline address 2019-09-13 09:12:10 +05:30
Kovid Goyal
37c277d684
Fix split button 2019-09-13 09:12:09 +05:30
Kovid Goyal
67f3422438
Port addition of css for split marker 2019-09-13 09:12:09 +05:30
Kovid Goyal
38836de4e1
Make a webengine utils module 2019-09-13 09:12:09 +05:30
Kovid Goyal
561edbe1ea
Two-way syncing work again 2019-09-13 09:12:09 +05:30
Kovid Goyal
5e55554454
Restore inspector functionality for the preview pane 2019-09-13 09:12:09 +05:30
Kovid Goyal
00a9d0f275
Migrate editor coffee script to rapydscript 2019-09-13 09:12:09 +05:30
Kovid Goyal
943f07b1fd
... 2019-09-13 09:12:09 +05:30
Kovid Goyal
c5366521eb
Context menu works 2019-09-13 09:12:09 +05:30
Kovid Goyal
fe25b8d8f6
Search functionality works 2019-09-13 09:12:09 +05:30
Kovid Goyal
84a884e49e
Loading documents in preview panel works 2019-09-13 09:12:09 +05:30
Kovid Goyal
8877445c78
work on porting editor preview to web engine 2019-09-13 09:12:09 +05:30
Kovid Goyal
40cc61397b
Replace webkit with webengine in the reports tool 2019-09-13 09:12:09 +05:30
Kovid Goyal
290c74fd73
pep8 2019-09-13 08:16:46 +05:30
Kovid Goyal
10bfd1406b
version 3.48.0 2019-09-13 08:16:01 +05:30
Kovid Goyal
31a7a043d3
... 2019-09-13 07:26:45 +05:30
Kovid Goyal
1bb9f07886
Merge branch 'py3' of https://github.com/eli-schwartz/calibre 2019-09-13 07:16:13 +05:30
Kovid Goyal
2866bffecf
Merge branch 'master' of https://github.com/davidfor/calibre 2019-09-13 07:13:43 +05:30
Eli Schwartz
2876724325
py3: make tcr input/output work
Fix tcr compression by unifying bytearrays on python2/python3 and acting
appropriately.
2019-09-12 19:51:20 -04:00
Eli Schwartz
8311b26205
wip: tcr compression
regex flags do not need "u" when the search string does not make use of the feature

In python3, re.U is the default for unicode strings. For byte strings,
which is what we use, it is a fatal error.
2019-09-12 19:47:19 -04:00
David
f964c130ab Add support for Kobo Libra H2O 2019-09-13 07:32:56 +10:00
Kovid Goyal
51d4b5a5e9
fixes for last py3 merge 2019-09-12 21:13:52 +05:30
Eli Schwartz
73caf890e6
finish up using universal __future__s
This finally transitions the entire codebase to passing:

python3 setup.py unicode_check
2019-09-12 10:57:06 -04:00
Eli Schwartz
7358e09e88
use context managers to open files for reading 2019-09-12 10:57:06 -04:00
Kovid Goyal
2ded6daf02
Merge branch 'master' of https://github.com/davidfor/calibre 2019-09-12 18:37:58 +05:30
David
8266ccd8c5 Fix some annotation fetching issues for Kobo devices
There have been some long-term problems with missed annotations for
kepubs. Plus a bug in the latest firmware causes problems with epub that
don't have a ToC entry for every file.
2019-09-12 22:51:35 +10:00
Kovid Goyal
2b8ac505e2
py3 porting 2019-09-11 16:22:01 +05:30
Kovid Goyal
eb37632940
py3 porting 2019-09-11 15:55:30 +05:30
Kovid Goyal
2742bd7e29
Dont use BS to generate NCX files for ebook catalogs
It is very slow and buggy
2019-09-11 10:46:59 +05:30
Kovid Goyal
1b4f77d0ac
Dont use BS to generate OPF files for ebook catalogs
It is extremely buggy
2019-09-11 07:52:44 +05:30
Kovid Goyal
cdc26fa38e
Fix for last py3 merge 2019-09-10 20:51:42 +05:30
Kovid Goyal
976ee75b7b
Merge branch 'py3' of https://github.com/eli-schwartz/calibre 2019-09-10 18:47:30 +05:30
Kovid Goyal
24868ee39c
Fix #1843361 [Welcome screen strings does not change language](https://bugs.launchpad.net/calibre/+bug/1843361) 2019-09-10 18:11:33 +05:30
Kovid Goyal
de505a1a34
Fix from last py3 merge 2019-09-10 17:34:27 +05:30
Eli Schwartz
cdc2e21a77
use raw strings where possible to avoid escaping 2019-09-10 01:13:21 -04:00
Eli Schwartz
975b9ac168
py3: more work toward universal _future__s 2019-09-10 01:13:21 -04:00
Eli Schwartz
8078bf0931
py3: etree.tostring emits bytes, and must be written using binary mode 2019-09-10 00:55:12 -04:00
Eli Schwartz
d78e4807c3
py3: write unicode bom without using bytes() type
Since the file is opened in utf-8 mode, it needs to be written to using
unicode text, not a b'' string. In python3, '\xef\xbb\xbf' becomes ''
which is definitely not a BOM. Writing the unicode escaped codepoint
allows the codecs.open() encoding to correctly choose the right bytes
for the BOM and insert it as needed.
2019-09-10 00:55:09 -04:00
Eli Schwartz
670c5ebe6a
misc cleanup 2019-09-10 00:55:07 -04:00
Eli Schwartz
1c5ea10a34
list comprehension is faster than the function call overhead of list() 2019-09-10 00:55:03 -04:00