31298 Commits

Author SHA1 Message Date
Jim Miller
dfaecefed0 Add view/edit context-menu to formats in editmetadata. 2018-09-26 13:06:21 -05:00
Kovid Goyal
a8f4b413ca
When view books on th edevice, disable keyboard shortcuts for actions that operate on library books
Merge branch 'jimm-v3.31.0' of https://github.com/JimmXinu/calibre
2018-09-26 11:52:15 +05:30
Jim Miller
5d80280edf Fixes for Library Keyboard Shortcuts aren't disabled when location is device
https://bugs.launchpad.net/bugs/1793800
2018-09-25 13:12:37 -05:00
Kovid Goyal
3c6e69e79a
Display dates of the form 101-01-02 as undefined as well
In some hard to determine circumstances browsers create these dates for
undefined dates.
2018-09-24 06:10:17 +05:30
Kovid Goyal
40ed2e9f0e
Content server: Date edit: Add buttons to clear the date or set it to today's date 2018-09-23 12:37:02 +05:30
Kovid Goyal
499307d2a9
Content server: Custom List: Fix a zero series_index being displayed as one 2018-09-23 09:02:46 +05:30
Kovid Goyal
bf99d53c80
Content server: Fix covers not being updated in downloaded copies of some books. Fixes #1699932 [some covers don't show up in reading apps since 3.0 update](https://bugs.launchpad.net/calibre/+bug/1699932) 2018-09-21 13:54:10 +05:30
Kovid Goyal
0c923d9a4f
Fix some escaping issues in the template sections of the manual 2018-09-16 18:10:15 +05:30
Kovid Goyal
23ac6054e8
PDF Output: Fix an error that could occur in rare circumstances when using the option to read page margins from the input document
Fixes #1792616 [conversion from ePub to PDF fails](https://bugs.launchpad.net/calibre/+bug/1792616)
2018-09-15 06:57:37 +05:30
Kovid Goyal
1f980f7097
Merge branch 'py3-unicode_names' of https://github.com/flaviut/calibre 2018-09-15 06:17:58 +05:30
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