31298 Commits

Author SHA1 Message Date
Kovid Goyal
55033c352d
Book details: Fix clicking on tags etc not generating exact match searches 2019-10-29 21:37:24 +05:30
Kovid Goyal
e00a8a945c
Forgot to handle comments when unserializing the new JSON format 2019-10-29 20:42:40 +05:30
Kovid Goyal
9f02e70317
Ensure root tag is in correct namespace 2019-10-29 18:24:39 +05:30
Kovid Goyal
ddb96c0eed
Fix html_as_json compilation under python2 2019-10-29 18:16:46 +05:30
Kovid Goyal
007f9fb087
Implement unserialization for the new serialization format 2019-10-29 18:06:33 +05:30
Kovid Goyal
b44c42a78c
... 2019-10-29 16:49:39 +05:30
Kovid Goyal
cb9b08b369
Dont serialize the default namespace on ever tag 2019-10-29 15:58:24 +05:30
Kovid Goyal
7687c3dab6
Move the iterate over elems loop in native code as well 2019-10-29 15:56:57 +05:30
Kovid Goyal
e33c18459a
Finish fast serialization of html to json 2019-10-29 12:50:26 +05:30
Kovid Goyal
4f03b0163f
Fix #1850196 [test_ssl fails with EE_KEY_TOO_SMALL](https://bugs.launchpad.net/calibre/+bug/1850196) 2019-10-29 01:05:59 +05:30
Kovid Goyal
fc7aee08df
Start work on fast html to json 2019-10-28 13:30:18 +05:30
Kovid Goyal
42f553e367
Content server: Fix download button not working with non-ebook formats. Fixes #1850078 [Calibre content server download issues](https://bugs.launchpad.net/calibre/+bug/1850078) 2019-10-28 08:58:47 +05:30
Kovid Goyal
3abe43d90c
Serialization: Dont mangle the name of epub namespaced tags
Also dont normalize boolean attributes
2019-10-27 13:07:19 +05:30
Kovid Goyal
78a97a0e37
Handle comments while getting char count 2019-10-27 12:52:12 +05:30
Kovid Goyal
a687204ec3
Speedup char counting when preparing book 2019-10-27 12:38:01 +05:30
Kovid Goyal
8582154527
Avoid calls to nlinks() in worker processes 2019-10-26 19:00:07 +05:30
Kovid Goyal
751c6942f9
Implement profiling of book preparation
Cache href_to_name() which was marked as a hot function by the profiler.
2019-10-26 18:19:32 +05:30
Kovid Goyal
60a1f637c5
Dont use multiple workers when rendering books for the server
Can lead to resource exhaustion and also is currently hanging for
reasons unknown
2019-10-26 17:28:55 +05:30
Kovid Goyal
b9cb195804
Viewer: Allow also using --open-at with book positions 2019-10-26 17:18:21 +05:30
Kovid Goyal
221d8f73a4
Fix failing test 2019-10-26 17:02:10 +05:30
Kovid Goyal
73c69949df
Rename goto_bookpos -> goto_cfi 2019-10-26 16:56:30 +05:30
Kovid Goyal
eeab136034
oops 2019-10-26 16:23:52 +05:30
Kovid Goyal
b582bbd520
Dont pre-launch workers, instead launch all workers once container is ready
Makes a significant difference in the time to open small books on
windows
2019-10-26 15:57:26 +05:30
Kovid Goyal
efb2d424a7
Improve error reporting 2019-10-26 15:39:21 +05:30
Kovid Goyal
facc4045d4
Use pipe worker for the main render process 2019-10-26 15:39:20 +05:30
Kovid Goyal
8972d63efd
... 2019-10-26 15:39:20 +05:30
Kovid Goyal
e3adac0c51
Forgot another use of container.bookmark_data 2019-10-26 15:39:20 +05:30
Kovid Goyal
2d2ee3f85c
Use one less worker process 2019-10-26 15:39:20 +05:30
Kovid Goyal
9a44ef24ff
Avoid re-parsing the OPF file in worker processes 2019-10-26 15:39:20 +05:30
Kovid Goyal
36d5dee047
Only pre-launch workers for books likely to benefit from parallelization 2019-10-26 15:39:20 +05:30
Kovid Goyal
29e20d8b59
Do not modify anything other than the titlepage when processing covers in EPUB files.
This speeds up book preparation by not requiring book wide link
replacement.
2019-10-26 15:39:19 +05:30
Kovid Goyal
75dd89722a
Viewer: Run the first read book preparation in parallel 2019-10-26 15:39:19 +05:30
Kovid Goyal
243144f3b9
Viewer: Add command line option to force reloading of all books 2019-10-26 15:38:06 +05:30
Kovid Goyal
f62e3a1bfc
Fix a crash in popup completion lists if the mouse is over the list and list is scrolled with the keyboard
Seems to be a regression in newer Qt versions, work around it.
2019-10-26 10:21:28 +05:30
Kovid Goyal
99ce8f9876
Viewer: Fix rare exception when navigating to a CFI. Fixes #1849775 [Exception in ebook viewer](https://bugs.launchpad.net/calibre/+bug/1849775) 2019-10-25 20:37:01 +05:30
Kovid Goyal
89eef411c4
Make custom font size panel more keyboard friendly 2019-10-24 14:15:57 +05:30
Kovid Goyal
4eeede8d25
... 2019-10-24 14:00:04 +05:30
Kovid Goyal
ead1b832f8
Viewer: Ignore failures printing console message when the viewer is launched with broken stderr. Fixes #1849612 [Bad file descriptor error in downloaded epub when opened from web browser](https://bugs.launchpad.net/calibre/+bug/1849612) 2019-10-24 13:56:44 +05:30
Eli Schwartz
cbf7bd49df
py3: use correct sort key for forcing an element to sort first
0 isn't a valid comparison for ICU sort_key() output and returns
tracebacks instead, but sort_key(0) is.
2019-10-24 01:42:48 -04:00
Kovid Goyal
a3dbdf7875
More dark mode fixes 2019-10-23 20:40:07 +05:30
Kovid Goyal
a3dfc924e2
Amazon metadata: Fix failure to get published date from audible book pages. Fixes #1849400 [traceback when searching amazon.com](https://bugs.launchpad.net/calibre/+bug/1849400) 2019-10-23 08:01:29 +05:30
Kovid Goyal
4509900b32
Another place that should react to palette changes 2019-10-22 23:34:06 +05:30
Kovid Goyal
a5493fd287
Another dark mode hover color fix 2019-10-22 09:34:16 +05:30
Kovid Goyal
23dcafa265
Viewer: Fix shortcuts preferences not being translated 2019-10-22 09:02:27 +05:30
Kovid Goyal
d744eb1a6d
Tag browser: Fix incorrect text color when using dark theme for hovered item 2019-10-21 14:57:37 +05:30
Kovid Goyal
3bf65b261e
Make icon theme cover file writing atomic 2019-10-21 08:43:37 +05:30
Kovid Goyal
efb6405ff1
Fix crash if canceling the icon theme download while covers are downloading 2019-10-21 08:16:32 +05:30
Kovid Goyal
39e28b3fdb
py3: Fix typo that broke changing icon_theme
Fixes #1848954 [TypeError when trying to change icon theme](https://bugs.launchpad.net/calibre/+bug/1848954)
2019-10-21 07:45:49 +05:30
Kovid Goyal
f2750c00cb
Use monotonic instead of time.time() 2019-10-20 19:01:09 +05:30
Kovid Goyal
0822f1b6fa
Allow the simple worker process to be launched first and run later 2019-10-20 18:38:48 +05:30