28988 Commits

Author SHA1 Message Date
Kovid Goyal
8aa1570608
Merge branch 'py3-monotonic' of https://github.com/flaviut/calibre 2018-09-15 06:13:54 +05:30
Flaviu Tamas
ecd57f3639 unicode_names: delete dead code & improve docs 2018-09-14 16:42:14 -04:00
Flaviu Tamas
f264fbdd0d Build unicode_names in py3 2018-09-14 16:42:14 -04:00
Flaviu Tamas
82377cb1c4 Use builtin monotonic in py3 2018-09-14 13:20:01 -04:00
Matthias Rahlf
f0a925c38d Escape part of a template string
In ebook-edit, if a filename contains a '%' clicking 'Run check'
results in an error:

Traceback (most recent call last):
  File "/usr/lib/calibre/calibre/gui2/tweak_book/boss.py", line 72, in ans
    return func(*args, **kwargs)
  File "/usr/lib/calibre/calibre/gui2/tweak_book/boss.py", line 1249, in check_requested
    c.run_checks(current_container())
  File "/usr/lib/calibre/calibre/gui2/tweak_book/check.py", line 221, in run_checks
    self.current_item_changed()
  File "/usr/lib/calibre/calibre/gui2/tweak_book/check.py", line 206, in current_item_changed
    template % (err.HELP, ifix, fix_tt, fix_msg, run_tt, run_msg))
ValueError: unsupported format character '_' (0x5f) at index 167
2018-09-13 16:46:34 +02:00
Kovid Goyal
8785619938
Merge branch 'py3-hunspell' of https://github.com/flaviut/calibre 2018-09-13 08:27:03 +05:30
Flaviu Tamas
46b521dfbf Build hunspell in py3
The verbose old-style intialization is used because GCC 4.8 & MSVC don't
support the nicer `.foo = bar` style of initialization.
2018-09-12 22:41:57 -04:00
Kovid Goyal
84cc6cab53
PDF Output: Fix CSS opacity property causing text to not be rendered. Now opacity is ignored, as it is unsupported by Qt WebKit. Fixes #1792048 [Text with opacity disappear after converting to PDF](https://bugs.launchpad.net/calibre/+bug/1792048) 2018-09-12 08:47:44 +05:30
Kovid Goyal
4f025790e5
Ensure only the contents and not scrollbars/pan icon are rendered in the PDF backend 2018-09-12 08:21:13 +05:30
Kovid Goyal
492b10b86a
Fail for recipes that need newer calibre versions early 2018-09-11 14:21:05 +05:30
Kovid Goyal
08a8f41471
When downloading latest version of recipe fallback to builtin one if recipe cannot be compiled 2018-09-11 12:27:41 +05:30
Kovid Goyal
57f3db82e0
When downloading recipes from the GUI download the actual recipe in the worker process rather than doing it in the GUI
Makes for better logging in case of errors
2018-09-11 12:16:09 +05:30
Kovid Goyal
f91b9c8e51
pep8 2018-09-11 10:54:01 +05:30
Kovid Goyal
70a131f04c
Remove log entry about using worldcat.org since it no longer exists 2018-09-11 07:16:22 +05:30
Kovid Goyal
90ee3a5987
Dont allow a failure to exec() downloaded metadata source plugins to prevent metadata download from working 2018-09-11 07:09:01 +05:30
Kovid Goyal
3766f43360
Remove polyglot.builtins import from metadata sources since it is not available in older calibre codebases 2018-09-11 07:02:14 +05:30
Kovid Goyal
f39f3951f4
dict fixes in the setup package 2018-09-10 20:54:35 +05:30
Kovid Goyal
5bdb5b7c6c
Import fixes for the setup package 2018-09-10 20:44:16 +05:30
Kovid Goyal
cc9a11fba0
Port os.getcwdu to python 3 2018-09-10 20:20:26 +05:30
Kovid Goyal
5234e43f0e
Port future_builtins to polyglot 2018-09-10 20:12:01 +05:30
Kovid Goyal
a9e07efecd
The setup package now imports under python 3 2018-09-10 19:47:53 +05:30
Kovid Goyal
b789e4d81b
Use the modern form for set literals 2018-09-10 19:35:20 +05:30
Kovid Goyal
b9767b2b92
Move more databases to msgpack instead of pickle 2018-09-10 18:35:19 +05:30
Kovid Goyal
8b3ea8fb83
Replace more use of pickle for databases 2018-09-10 18:26:46 +05:30
Kovid Goyal
0911053a8a
Make the serialize module cheap to import 2018-09-10 17:49:14 +05:30
Kovid Goyal
d8e24e4a19
Use msgpack instead of pickle for a couple more databases 2018-09-10 17:36:57 +05:30
Kovid Goyal
1d54c2f874
Use msgpack instead of pickle for ISO 639 and 3166 databases 2018-09-10 17:14:03 +05:30
Kovid Goyal
cedf06b55d
Forward compat for future msgpack changes 2018-09-10 17:06:59 +05:30
Kovid Goyal
b1435f9b44
Replace the six module with the polyglot module 2018-09-10 15:46:56 +05:30
Kovid Goyal
73a0b1ca2a
Various corrections to the py3 syntax changes 2018-09-10 14:52:00 +05:30
Flaviu Tamas
1d15fe84c0
Use six for reraise 2018-09-10 12:11:30 +05:30
Flaviu Tamas
01fbf09c0b
Undo redundant imports & new-style raises
New-style rasies need to be redone in a py2-friendly way, and the
redudant imports are redudnant and can safely be removed
2018-09-10 12:11:29 +05:30
Flaviu Tamas
8285481221
Rename xxx_todo_changeme tuples 2018-09-10 12:11:29 +05:30
Flaviu Tamas
999175cf55
Fix syntax errors manually 2018-09-10 12:11:29 +05:30
Flaviu Tamas
655ab21b0b
Fix from __future__ import order 2018-09-10 12:11:29 +05:30
Flaviu Tamas
0889ee85ec
Fix syntax errors
Command used:

futurize --no-diffs -f libfuturize.fixes.fix_print_with_import -f lib2to3.fixes.fix_throw -f lib2to3.fixes.fix_numliterals -f lib2to3.fixes.fix_except -f lib2to3.fixes.fix_exec -f lib2to3.fixes.fix_raise -f lib2to3.fixes.fix_tuple_params -f lib2to3.fixes.fix_ne -j20 -w -n setup recipes src manual setup.py recipes/*.recipe

And manual adjustments of print((...)) -> print(...)
2018-09-10 12:11:28 +05:30
Kovid Goyal
bc11157f5b
Create custom column dialog: Ensure that the format numbers field is always visible 2018-09-09 15:45:43 +05:30
Kovid Goyal
6b14a1204a
Test podofo read from file 2018-09-08 22:05:20 +05:30
Kovid Goyal
8b03d1d61a
Proper fix for podofo 0.9.6 2018-09-08 21:32:25 +05:30
Kovid Goyal
dc130d90cd
Fix #1791430 [Podofo ABI breakage in 0.9.6](https://bugs.launchpad.net/calibre/+bug/1791430) 2018-09-08 20:51:58 +05:30
Kovid Goyal
d00b9e704a
version 3.31.0 2018-09-07 07:27:32 +05:30
Kovid Goyal
77bd4f4544
Amazon metadata download: Add support for Amazon Australia (can be
configured via Preferences->Metadata download->customize the amazon
metadata source)
2018-09-06 08:20:33 +05:30
Kovid Goyal
d07f070a66
Table of Contents Edit tool: When generating from XPath's add a checkbox to control if duplicate entries at the same level are added or not. Fixes #1790761 [Generate ToC from XPath](https://bugs.launchpad.net/calibre/+bug/1790761) 2018-09-05 10:10:45 +05:30
Kovid Goyal
2fcf979b3c
Book list: Allow changing the font used for any column to bold and/or italic by right clicking on the column header and choosing "Change font style". Note that this setting is per-library so it has to be done once for the book list in every calibre library. Fixes #1758434 [[enhancement] individual column font choice](https://bugs.launchpad.net/calibre/+bug/1758434) 2018-09-05 09:46:02 +05:30
Kovid Goyal
4777eeacef
pep8 2018-09-03 07:42:20 +05:30
Kovid Goyal
db6d0dd2cb
Add a warning about missing Application Cache support to the server home page 2018-09-02 15:15:31 +05:30
Kovid Goyal
d703d0ec56
Disable offline access if application cache is not available, rather than failing. Apparently the next version of Firefox will disable app cache on HTTP sites. See https://bugs.launchpad.net/calibre/+bug/1737642 2018-09-02 08:53:51 +05:30
Kovid Goyal
1f2db06610
... 2018-08-31 10:24:25 +05:30
Kovid Goyal
2447be653b
DOCX Output: Workaround for broken CSS that uses -o-pre-wrap for the white-space property
See #1786410 (book lost its content format when converting)
2018-08-30 09:25:36 +05:30
Kovid Goyal
30b1f442a6
DOCX Input: Fix figures in newer Word documents being duplicated. Fixes #1789238 [textboxes duplcated after import from docx](https://bugs.launchpad.net/calibre/+bug/1789238)
Newer Word versions use a proprietary image markup with a fallback to
the standard form. Ignore the proprietary form and use only the
fallback, standard version when converting.
2018-08-30 08:53:27 +05:30