31298 Commits

Author SHA1 Message Date
Kovid Goyal
ea74df97ec
Get rid of the last use of win32com 2019-06-12 07:07:28 +05:30
Kovid Goyal
9844394258
Windows: Dont use a deprecated API for moving to trash 2019-06-12 05:42:03 +05:30
Kovid Goyal
f66a709dfe
Cleanup 2019-06-11 19:52:25 +05:30
Kovid Goyal
59264be1f0
Use RAII in winutil 2019-06-11 18:49:36 +05:30
Kovid Goyal
48e26a754d
Couple more places to get rid of win32com 2019-06-11 18:20:56 +05:30
Kovid Goyal
49f2082ad3
... 2019-06-11 17:11:02 +05:30
Kovid Goyal
1a1db4d1f8
Ensure no trailing NULLs in result of file_association() 2019-06-11 16:35:29 +05:30
Kovid Goyal
000bb4c89e
Better error message when failing to load translations 2019-06-11 16:32:35 +05:30
Kovid Goyal
21fbec2820
Dont use win32com for notifying the OS of file association changes 2019-06-11 16:17:34 +05:30
Kovid Goyal
529033ff78
Dont use win32com for expanduser 2019-06-11 16:04:47 +05:30
Kovid Goyal
57572d977a
Dont use win32com to get file associations 2019-06-11 15:57:12 +05:30
Kovid Goyal
152e823c41
Kobo driver: Add options to more precisely control the generation of cover images, to reduce size and enhance quality
Merge branch 'master' of https://github.com/NiLuJe/calibre
2019-06-11 15:14:26 +05:30
Kovid Goyal
0f3b2e2329
Dont use win32com for adding to recent docs 2019-06-11 14:50:05 +05:30
NiLuJe
09ffb629a1 Tweak checkbox layout to be more logical 2019-06-10 18:35:19 +02:00
Kovid Goyal
c243fa2358
Cleanup getenv 2019-06-10 19:06:36 +05:30
Kovid Goyal
057b873933
Dont depend on win32api in polyglot 2019-06-10 18:21:38 +05:30
Kovid Goyal
f1199035f6
py3: Port winreg imports 2019-06-10 15:41:30 +05:30
Kovid Goyal
549b822f9c
py3: More unicode fixes 2019-06-10 15:39:55 +05:30
Kovid Goyal
ef42213ceb
py3: More unicode porting 2019-06-09 11:22:02 +05:30
Kovid Goyal
9316d8d673
Comic Input: Fix incorrect processing of comics with pages that have the same file names in different folders when using the "No process" option. Fixes #1831487 [Private bug](https://bugs.launchpad.net/calibre/+bug/1831487) 2019-06-09 11:21:04 +05:30
Kovid Goyal
4abffead71
macOS: Fix loading of CoreText font database on newer Qt in the headless plugin 2019-06-08 10:31:18 +05:30
Kovid Goyal
d39087a356
py3: more unicode porting 2019-06-07 16:49:14 +05:30
NiLuJe
474d76e645 Fix that comment ;). 2019-06-07 04:12:34 +02:00
Kovid Goyal
35169e2743
String changes 2019-06-06 09:13:18 +05:30
Kovid Goyal
e2190da060
... 2019-06-06 08:56:43 +05:30
Kovid Goyal
109a052102
Merge branch 'master' of https://github.com/lifanxi/calibre 2019-06-05 21:30:55 +05:30
Li Fanxi
d1a6113a8a Support subtitle in Douban metadata plugin 2019-06-05 23:25:08 +08:00
Kovid Goyal
3f903cbdd1
CHM Input: Fix a regression that broke processing of some CHM files
Fixes #1831511 [Can't open chm file](https://bugs.launchpad.net/calibre/+bug/1831511)

Bug was introduced due to adding of unicode_literals.
Also fix CHM input on python3
2019-06-05 09:08:17 +05:30
Kovid Goyal
fc972b6157
Better error message when loading ICU data fails 2019-06-04 16:22:07 +05:30
Kovid Goyal
cb524b7cc1
Port the macOS headless plugin to work with Qt 5.12 2019-06-04 16:03:08 +05:30
Kovid Goyal
13eb6795e6
Edit book: When auto-closing tags on typing </ fix occasionally incorrect tag being closed in large files because syntax highlighting has not competed 2019-06-03 20:49:34 +05:30
NiLuJe
43d53f8dbe Simplify that
I was *probably* trying to mimic a C ternary operator ;p
2019-06-03 15:59:38 +02:00
NiLuJe
a79f9b9b54 Kill letterboxing in KOBO
It makes no sense without an "honor AR" option ;).
2019-06-03 15:51:31 +02:00
NiLuJe
5883667ebe Forgot the KOBO letterbox checkbox in the settings
Which made me realize that there's no "keep AR" function there,
so this doesn't make sense \o/.
2019-06-03 15:46:28 +02:00
NiLuJe
cff3c4ad68 Tweak the PNG help message a bit
Given that Nickel has handled PNGs as books as early as 2.9.0, if not
earlier, I can't see this actually being an issue anywhere in practice,
but, better be safe than sorry ;).
2019-06-03 14:29:17 +02:00
NiLuJe
62e2925e4b Address some more review comments
No need to handle old settings migration for those new settings in KOBOTOUCH
2019-06-03 14:26:19 +02:00
NiLuJe
d0cf06a5e5 Continue addressing review comments
Less destructive to the legacy KOBO driver (only honor letterboxing,
and only do it to full-screen covers like KOBOTOUCH).

Also, unbreak legacy settings by not re-ordering them.
2019-06-03 14:22:20 +02:00
NiLuJe
7c02419eed Start addressing review comments
Explicit cast to float is superfluous, thanks to __future__.division
2019-06-03 14:09:49 +02:00
Kovid Goyal
cff789f12c
Modernize the code used to interact with macOS
Recycle bin and notifications code. The old recycle bin code was
deprecated. Notifications support has been moved in-process.
2019-06-03 13:37:51 +05:30
NiLuJe
04c7a8aa4a Make the GCC 4.8 bot happy ;). 2019-06-02 20:44:00 +02:00
NiLuJe
aaa2fa936a Use a lower compression level for the first PNG pass
optipng will fix it anyway
2019-06-02 18:29:50 +02:00
NiLuJe
cc8a3b4450 Refactor that to avoid code duplication 2019-06-02 18:29:50 +02:00
NiLuJe
8e7b519b8d Inline the grayscaling pass in ordered_dither
Saving one QImage pixel-loop dance in the process...
2019-06-02 18:29:50 +02:00
NiLuJe
4326bb9d7f Unify indentation style 2019-06-02 18:29:50 +02:00
NiLuJe
c465d7f4e7 Tweak copyright header a bit, now that it's done 2019-06-02 18:29:50 +02:00
NiLuJe
227b5f97bd Stick the commented out Indexed8 code in there, for posterity's sake (in
preparation of a squash)
2019-06-02 18:29:50 +02:00
NiLuJe
d2772a2916 Eh, okay-ish optipng compromise 2019-06-02 18:29:50 +02:00
NiLuJe
bdb767c9b7 Forget about optipng
Granted, it helps, but it's prohibitively expensive.
2019-06-02 18:29:50 +02:00
NiLuJe
d6efb350bf Experiment w/ optipng... 2019-06-02 18:29:50 +02:00
NiLuJe
b5554bd0da Revert "See what happens if we switch to Indexed8..."
This reverts commit a602b8b872c5b4c4c0772b82bb43e2384d92fd63.

What happens is we end up with an alpha channel in our PNGs, which
screws with our first entry in the palette: black, which is no longer at
full opacity :/.
2019-06-02 18:29:50 +02:00