32802 Commits

Author SHA1 Message Date
Kovid Goyal
5a2c70e91e Make parsing of OPF major version more robust 2016-06-16 12:59:39 +05:30
Kovid Goyal
72115a92b1 Move parse_opf_version() into utils 2016-06-16 12:57:13 +05:30
Kovid Goyal
5cf7fb6b2c Edit Book: Check Book: Do not warn if a cover image is not referenced in the text 2016-06-16 12:42:15 +05:30
Kovid Goyal
0bed0edd6d Edit Book: Detect cover images in EPUB 3 files 2016-06-16 12:41:43 +05:30
Kovid Goyal
8ca77820b6 ... 2016-06-16 12:32:02 +05:30
Kovid Goyal
dd6bf9a21c ... 2016-06-16 12:23:31 +05:30
Kovid Goyal
78be5af05a EPUB metadata: When setting a cover image for an EPUB file that has no cover image defined, add the new cover image instead of aborting.
Note that this is not a full EPUB cover, for that you still have to
convert/use book polishing. However, this limited support should at
least allow the cover image to work with those applications that support
the EPUB raster cover metadata standard.
2016-06-16 12:18:19 +05:30
Kovid Goyal
46f9c7c780 Forgot to add support for missing bytestring replacements 2016-06-16 11:13:44 +05:30
Kovid Goyal
c9a8bd9884 ... 2016-06-16 10:27:16 +05:30
Kovid Goyal
3e93f8f51e Change references to the calibre website to use https 2016-06-16 10:13:27 +05:30
Kovid Goyal
ec2671b809 Refactor setting of EPUB metadata
Move it into the new opf module and also avoid several unnecessary mem
copies
2016-06-16 10:07:23 +05:30
Kovid Goyal
e214e3c86c Allow passing bytestrings as replacements to the localunzip module as well 2016-06-16 09:39:31 +05:30
Kovid Goyal
bab29014b1 More EPUB metadata speedups 2016-06-16 08:28:56 +05:30
Kovid Goyal
fca3f5d24b Forgot to commit these in my last commit 2016-06-16 08:27:09 +05:30
Kovid Goyal
cde906b936 Allow passing in bytestrings as replacements, not just file like objects 2016-06-16 08:17:47 +05:30
Kovid Goyal
ca2d3986cd Speedup reading metadata from OPF files by not reading the NCX
Also do not render the first page of the EPUB if it is encrypted. The
old logic for detecting this was broken in the case where the OPF file
is not in the root of the EPUB. Also make the OPF metadata reading code
no longer depend directly on the opf2.OPF class.
2016-06-16 08:06:03 +05:30
Kovid Goyal
921a579d35 EPUB Input: Implement reading of Table of Contents from EPUB 3 files that do not specify a fallback NCX ToC 2016-06-15 23:50:58 +05:30
Kovid Goyal
f315b1cacb ... 2016-06-15 23:03:43 +05:30
Kovid Goyal
8544b1c53b Add the ToC emblem for the EPUB 3 nav file 2016-06-15 22:06:47 +05:30
Kovid Goyal
fadba2dfa1 Nicer formatting for generated nav toc
Also handle the case of the nav toc having a link to itself
2016-06-15 20:13:35 +05:30
Kovid Goyal
60c1948130 Refactor method to make it more widely useable 2016-06-15 19:58:01 +05:30
Kovid Goyal
16870db206 Edit Book: Add support for EPUB 3 to the Table of Contents tool. Now when editing EPUB 3 files using the tool will automatically generate both the EPUB 3 navigation document and the NCX table of contents for backwards compatibility 2016-06-15 19:44:20 +05:30
Kovid Goyal
e622cee5ed ... 2016-06-15 09:17:02 +05:30
Kovid Goyal
23fd53cf1b Fix typo that broke grayscaling of images in the previous release 2016-06-15 08:06:05 +05:30
Kovid Goyal
2929ba8686 Fix crash on exit if any plugins have loaded code that raises exceptions during shutdown. Fixes #1592414 [Crash on quit (v2.57.1, OS X El Capitan)](https://bugs.launchpad.net/calibre/+bug/1592414) 2016-06-14 19:56:15 +05:30
Kovid Goyal
92937a12da Workaround for Firefox bug that broke <style> tags 2016-06-14 15:35:39 +05:30
Kovid Goyal
b0c9198a04 Allow the add_file() method to modify the file name if not unique 2016-06-14 12:59:29 +05:30
Kovid Goyal
ec625be3b4 Use a single stylesheet instead of per widget instance style sheets
Better for DOM mutation performance
2016-06-14 10:28:47 +05:30
Kovid Goyal
bdaa808886 Start work on completion popups 2016-06-14 09:08:54 +05:30
Kovid Goyal
f3b17074e9 ... 2016-06-13 09:13:23 +05:30
Kovid Goyal
ed1d51bf6b Re-render the book on the server when reloading 2016-06-13 09:05:10 +05:30
Kovid Goyal
cc6101a62f ... 2016-06-12 22:33:01 +05:30
Kovid Goyal
b0cf1e8c05 Prevent un-lloadable resources in link tags (non-CSS stylesheets) from causing the resource loading check to timeout 2016-06-12 17:28:40 +05:30
Kovid Goyal
45fbdbea30 Fix a regression in 2.57 that caused auto-removal of borders from covers to become much less proficient at detecting borders 2016-06-12 13:22:49 +05:30
Kovid Goyal
3e686018d3 Fix passing data into remove_image_borders() not working 2016-06-12 12:38:21 +05:30
Kovid Goyal
2c41c0f472 ... 2016-06-12 12:27:18 +05:30
Kovid Goyal
231ee3bcfb Add missing random icon 2016-06-11 11:24:17 +05:30
Kovid Goyal
fb43704dcd Fix random book view not working 2016-06-11 11:17:28 +05:30
Kovid Goyal
b3007159cc Fix top bar button hiding broken 2016-06-11 11:10:06 +05:30
Kovid Goyal
b45a6366cb Use a link tag instead of a button tag for buttons
There are various rendering artifacts when trying to override the
rendering of buttons on different browsers
2016-06-11 10:59:51 +05:30
Kovid Goyal
72a9cafdb5 E-book viewer: Remove workaround for bug in old versions of WebKit that could cause incorrect rendering of chapter titles in some rare circumstances. 2016-06-11 09:59:48 +05:30
Kovid Goyal
7d4676232b Remove unused attributes 2016-06-11 08:33:16 +05:30
Kovid Goyal
48ba6080ea Implement searching the TOC view 2016-06-11 08:06:03 +05:30
Kovid Goyal
53649d9cf3 ... 2016-06-11 08:00:03 +05:30
Kovid Goyal
de1aeb1e7f ... 2016-06-11 07:35:22 +05:30
Kovid Goyal
bc2f455b51 ... 2016-06-11 06:48:54 +05:30
Kovid Goyal
534e378abb ... 2016-06-10 16:22:46 +05:30
Kovid Goyal
7760f53a70 Header for TOC view 2016-06-10 11:34:56 +05:30
Kovid Goyal
18754ac18f Start work on ToC view 2016-06-10 09:41:22 +05:30
Kovid Goyal
c295219a28 A simple TreeView widget 2016-06-10 09:41:17 +05:30