Kovid Goyal
e1e3f41065
py3: Another fix
2019-08-10 13:30:51 +05:30
Kovid Goyal
92e5dcb078
py3: more future imports
2019-08-10 13:25:22 +05:30
Kovid Goyal
b71bd6478b
Workaround for weird PyQt return with error set in the conversion dialog
...
Probably a regression in the latest version of PyQt, but rather than
track it down, easier to just get rid of the .ui file anyway.
2019-08-10 13:05:36 +05:30
Kovid Goyal
38b5c97eeb
Cleanup
2019-08-10 11:47:10 +05:30
Kovid Goyal
6099c69d6f
PML Input: Modernize the generated HTML a bit. Fixes #1839689 [Some PML conversions cause FlightCrew errors]( https://bugs.launchpad.net/calibre/+bug/1839689 )
2019-08-10 07:15:35 +05:30
Christopher Szucko
9c846f3b51
Support Dublin Core id tags when importing HTML
...
All of the below formats are supported and would be interpreted as "foo:bar"
<meta name="DC.identifier" scheme="foo" content="bar" />
<meta name="dc:identifier.foo" content="bar/>
<meta name="DCTERMS:identifier" scheme="foo" content="bar" />
<meta name="dcterms.identifier.foo" content="bar" />
2019-08-09 09:38:49 -05:00
Kovid Goyal
c1663d3cc8
HTMLZ Output: Fix svg content from HTML files that contain only SVG being removed. Fixes #1839522 [all images wrapped in <svg> element are lost in htmlz output]( https://bugs.launchpad.net/calibre/+bug/1839522 )
2019-08-09 15:57:18 +05:30
Kovid Goyal
ab708af9da
Fix #1839494 [Application crashes on changing icons]( https://bugs.launchpad.net/calibre/+bug/1839494 )
2019-08-08 22:29:03 +05:30
Kovid Goyal
6042ed1dc5
A better fix for python3.7 smtplib breakage
2019-08-08 19:54:59 +05:30
Kovid Goyal
b1623bc558
py3: More fixes
2019-08-08 19:29:23 +05:30
Kovid Goyal
69ea54fa15
py3: more fixes
2019-08-07 22:35:58 +05:30
Kovid Goyal
5e7c625685
Use mbcs encoding when passing filenames to windows
2019-08-07 20:16:23 +05:30
Kovid Goyal
470e6b56fe
See if not using a temp file fixes the weird test failure on travis
2019-08-07 20:07:33 +05:30
Kovid Goyal
b4a8771232
Content server: Fix OPDS feed for category based browsing listing restricted books, even though these books cannot be actually downloaded. Fixes #1839173 [opds feed shows other books with same tags when those books are not allowed.]( https://bugs.launchpad.net/calibre/+bug/1839173 )
2019-08-07 19:44:21 +05:30
Kovid Goyal
bf8059aeb0
py3 compat
2019-08-07 19:27:42 +05:30
Kovid Goyal
520cf5f39f
macOS: Fix a regression that could cause a crash on exit if any books were deleted while calibre was running. Fixes #1839044 [calibre crash when deleting ebook]( https://bugs.launchpad.net/calibre/+bug/1839044 )
2019-08-06 11:46:15 +05:30
Kovid Goyal
ec0515d409
Utility function to detect if a PDF is encrypted
2019-08-05 12:11:48 +05:30
Kovid Goyal
6d449818c2
Cleanup conversion of python strings to podofo strings
2019-07-31 18:22:02 +05:30
Kovid Goyal
3255ecbcf1
Simplify podofo str->unicode conversion
2019-07-31 16:28:04 +05:30
Kovid Goyal
91b812b718
Improve PoDoFo test a bit
2019-07-31 16:14:18 +05:30
Kovid Goyal
3c0d352c89
Remove metadata from conversion_options API docs since using it to set metadata is really not a good idea
2019-07-31 15:49:22 +05:30
Kovid Goyal
67298f3c5a
Preserve tag order when reading metadata from MOBI files
2019-07-31 15:44:40 +05:30
Kovid Goyal
4da23549bf
Misc CHM Input fixes
...
Mostly to deal with chm files with broken filename encoding
2019-07-30 19:31:06 +05:30
Kovid Goyal
05ae6894a5
...
2019-07-29 10:48:54 +05:30
Kovid Goyal
7d4695f37e
Merge branch 'comicbookinfo_language' of https://github.com/PhiBabin/calibre
2019-07-28 05:21:06 +05:30
Philippe Babin
24874293c1
Add missing 'language' field to ComicBookInfo metadata for .CBR files.
2019-07-27 17:45:33 -04:00
Kovid Goyal
d98b2e0b9c
Merge branch 'py3' of https://github.com/eli-schwartz/calibre
2019-07-25 14:16:25 +05:30
Eli Schwartz
d01e441905
py3: read in raw data files as binary
...
Not specifying the mode means it will be open in text mode which can
munge linebreaks on some platforms and yields the wrong type of string
on py3.
2019-07-25 01:30:54 -04:00
Eli Schwartz
d50a6ddc1b
use context managers to open files
2019-07-25 01:30:54 -04:00
Kovid Goyal
219bcc3864
py3 compat for gaierror retry
2019-07-25 10:46:06 +05:30
Kovid Goyal
4cd004d4d9
More ancient linux compiler support
2019-07-25 09:39:37 +05:30
Kovid Goyal
6eeb85ebe6
Dont use auto in master since it is still built with ancient compilers on linux
2019-07-25 09:10:15 +05:30
Kovid Goyal
b8b5c4e14e
Various fixes for the last py3 merge
2019-07-25 08:52:35 +05:30
Kovid Goyal
c84d019ef7
Get more information from podofo exceptions
2019-07-24 19:51:33 +05:30
Eli Schwartz
3959c4fdca
simplify check for non-zero content in set()
...
There's no point in casting to list just to compare to [], since
set/list/tuple will evaluate to false when empty. So we can do less work
in fewer characters.
2019-07-23 17:30:45 -04:00
Eli Schwartz
8b75e8c3e3
use floor division instead of math.floor
2019-07-23 17:30:45 -04:00
Eli Schwartz
4b280adcc9
py3: more work towards universal __future__s
2019-07-23 17:30:38 -04:00
Eli Schwartz
2212dfc649
fix imports from the wrong module
...
when module_a.submodule_a imports module_b, then module_c should not use
"from module_a.submodule_a import module_b"
2019-07-23 17:29:48 -04:00
Eli Schwartz
b9fb80d9b0
use raw strings where possible to avoid escaping issues
2019-07-23 17:29:48 -04:00
Kovid Goyal
80c6de0eb9
LIT Output: Fix regression in 3.41 caused by py3 porting that broke conversion of some files to LIT. Fixes #1837561 [Lit conversion error (Conversion options changed from default)]( https://bugs.launchpad.net/calibre/+bug/1837561 )
2019-07-23 20:08:12 +05:30
Eli Schwartz
4694efcfc9
Open With: don't raise KeyError if cache exists and there are new dirs
...
If the cache failed to load, it is initialized as a defaultdict and all
mtimes compare as 0. If the cache did load, however, then an ordinary
dict was used, and if new icon directories appeared on the system since
the cache creation, they would raise a KeyError and Open With would not
load data.
Fix by using a defaultdict in all cases, but initializing with the
contents of the cache if possible.
Discovered when crazy applications added crazy subdirectories in
/usr/share/pixmaps (???) and suddenly calibre failed to do the right
thing, but the same should apply if the system adds a new icon theme.
2019-07-23 01:11:19 -04:00
Kovid Goyal
acc6beaad8
Preferences->Ignored devices: Add a button to reset the list of devices that calibre is allowed to manage
2019-07-20 14:59:54 +05:30
Zbigniew Jędrzejewski-Szmek
9480360bc8
py3: another warning about invalid escape
2019-07-19 16:26:02 +02:00
Zbigniew Jędrzejewski-Szmek
0156785a14
py3: fix invalid escapes
...
python3.8 warns about strings which try to escape characters which do
not need that. To avoid the warning, the backslash should be escaped.
(Behaviour is functionally the same, so e.g. '\$' is still the same as
r'\$', except for the warning.)
2019-07-19 16:22:21 +02:00
Kovid Goyal
90714baef8
version 3.46.0
2019-07-19 08:49:21 +05:30
Kovid Goyal
54094a9fa7
Fix #1837102 ["Toolbox and Menu" configuration window jumps around on descriptions]( https://bugs.launchpad.net/calibre/+bug/1837102 )
2019-07-19 08:36:03 +05:30
Kovid Goyal
f7aace3ff8
py3: Another __future__ import
2019-07-18 09:01:37 +05:30
Kovid Goyal
ed06633253
Manage tags dialog: When searching for a tag also search the "Was" column to see if the original tag name matches. Fixes #1836813 [[Enhancement]Tag Manager edits lost with Find]( https://bugs.launchpad.net/calibre/+bug/1836813 )
2019-07-18 08:57:03 +05:30
Kovid Goyal
449240222b
Fix a regression that broke msgfmt for non-ascii strings in 3.45 on python2
2019-07-17 18:22:36 +05:30
Kovid Goyal
78f1896c69
Windows: Fix calibre-server --manage-users not working correctly
...
Apparently when running in the windows command prompy raw_input()
returns a trailing carriage return
2019-07-17 14:53:29 +05:30