Commit Graph

38530 Commits

Author SHA1 Message Date
Kovid Goyal 7b75c67e15 More work on the new viewer 2019-09-13 09:12:12 +05:30
Kovid Goyal 559adc51a2 Basic web view implementation for the new viewer 2019-09-13 09:12:11 +05:30
Kovid Goyal f6edb4de07 Make cache expiring code a little more robust 2019-09-13 09:12:11 +05:30
Kovid Goyal 521181280b Try twice to delete cache entries on windows
Thanks to the idiotic mandatory file locking, we can never be sure that
some stupid windows service like an antivirus/filesync program has not locked
the cache files.
2019-09-13 09:12:11 +05:30
Kovid Goyal 59b9357c0c Add tests for the new viewer cache 2019-09-13 09:12:11 +05:30
Kovid Goyal 67cce4e563 Caching system for conversion of books into useable form in the new viewer 2019-09-13 09:12:11 +05:30
Kovid Goyal 2c669bf853 More work on the new viewer 2019-09-13 09:12:11 +05:30
Kovid Goyal 200d38d2f5 Start work on new viewer implementation 2019-09-13 09:12:11 +05:30
Kovid Goyal 1216ed3200 Change fake protocol scheme to clbr 2019-09-13 09:12:11 +05:30
Kovid Goyal 0f0470a9ee Live CSS: Fix properties from more distant ancestors overriding properties from nearer ancestors with the same specificity 2019-09-13 09:12:11 +05:30
Kovid Goyal 44fa281f86 ... 2019-09-13 09:12:11 +05:30
Kovid Goyal eebafd9454 More work on live css, basically works 2019-09-13 09:12:11 +05:30
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 v3.48.0 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
Kovid Goyal 81f9a0d50d Merge branch 'py3' of https://github.com/eli-schwartz/calibre 2019-09-12 20:37:42 +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 e4ea6f9e15 ... 2019-09-12 18:54:39 +05:30
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