Eli Schwartz
8311b26205
wip: tcr compression
...
regex flags do not need "u" when the search string does not make use of the feature
In python3, re.U is the default for unicode strings. For byte strings,
which is what we use, it is a fatal error.
2019-09-12 19:47:19 -04:00
David
f964c130ab
Add support for Kobo Libra H2O
2019-09-13 07:32:56 +10:00
Kovid Goyal
51d4b5a5e9
fixes for last py3 merge
2019-09-12 21:13:52 +05:30
Kovid Goyal
81f9a0d50d
Merge branch 'py3' of https://github.com/eli-schwartz/calibre
2019-09-12 20:37:42 +05:30
Eli Schwartz
73caf890e6
finish up using universal __future__s
...
This finally transitions the entire codebase to passing:
python3 setup.py unicode_check
2019-09-12 10:57:06 -04:00
Eli Schwartz
7358e09e88
use context managers to open files for reading
2019-09-12 10:57:06 -04:00
Kovid Goyal
e4ea6f9e15
...
2019-09-12 18:54:39 +05:30
Kovid Goyal
2ded6daf02
Merge branch 'master' of https://github.com/davidfor/calibre
2019-09-12 18:37:58 +05:30
David
8266ccd8c5
Fix some annotation fetching issues for Kobo devices
...
There have been some long-term problems with missed annotations for
kepubs. Plus a bug in the latest firmware causes problems with epub that
don't have a ToC entry for every file.
2019-09-12 22:51:35 +10:00
Kovid Goyal
2a7b9e30ac
Update Boston Globe
2019-09-11 21:11:27 +05:30
Kovid Goyal
05d0f0895f
Update Scientific American
2019-09-11 19:45:58 +05:30
Kovid Goyal
2b8ac505e2
py3 porting
2019-09-11 16:22:01 +05:30
Kovid Goyal
eb37632940
py3 porting
2019-09-11 15:55:30 +05:30
Kovid Goyal
2742bd7e29
Dont use BS to generate NCX files for ebook catalogs
...
It is very slow and buggy
2019-09-11 10:46:59 +05:30
Kovid Goyal
1b4f77d0ac
Dont use BS to generate OPF files for ebook catalogs
...
It is extremely buggy
2019-09-11 07:52:44 +05:30
Kovid Goyal
cdc26fa38e
Fix for last py3 merge
2019-09-10 20:51:42 +05:30
Kovid Goyal
b841f804d0
Better language
2019-09-10 20:31:22 +05:30
Kovid Goyal
976ee75b7b
Merge branch 'py3' of https://github.com/eli-schwartz/calibre
2019-09-10 18:47:30 +05:30
Kovid Goyal
24868ee39c
Fix #1843361 [Welcome screen strings does not change language]( https://bugs.launchpad.net/calibre/+bug/1843361 )
2019-09-10 18:11:33 +05:30
Kovid Goyal
de505a1a34
Fix from last py3 merge
2019-09-10 17:34:27 +05:30
Eli Schwartz
cdc2e21a77
use raw strings where possible to avoid escaping
2019-09-10 01:13:21 -04:00
Eli Schwartz
975b9ac168
py3: more work toward universal _future__s
2019-09-10 01:13:21 -04:00
Eli Schwartz
8078bf0931
py3: etree.tostring emits bytes, and must be written using binary mode
2019-09-10 00:55:12 -04:00
Eli Schwartz
d78e4807c3
py3: write unicode bom without using bytes() type
...
Since the file is opened in utf-8 mode, it needs to be written to using
unicode text, not a b'' string. In python3, '\xef\xbb\xbf' becomes ''
which is definitely not a BOM. Writing the unicode escaped codepoint
allows the codecs.open() encoding to correctly choose the right bytes
for the BOM and insert it as needed.
2019-09-10 00:55:09 -04:00
Eli Schwartz
670c5ebe6a
misc cleanup
2019-09-10 00:55:07 -04:00
Eli Schwartz
1c5ea10a34
list comprehension is faster than the function call overhead of list()
2019-09-10 00:55:03 -04:00
Eli Schwartz
9320e2fe22
where possible, open files using context managers
2019-09-10 00:54:46 -04:00
Eli Schwartz
cb29d11996
sorted always returns a list
2019-09-10 00:54:40 -04:00
Kovid Goyal
b3e57ddfae
...
2019-09-08 20:11:31 +05:30
Kovid Goyal
16b7f100ed
Another fix for last py3 merge
2019-09-08 15:25:39 +05:30
Kovid Goyal
609400ceba
Fix for last py3 merge
2019-09-08 15:17:39 +05:30
Kovid Goyal
ec3238d1cd
Fix remaining set([])
2019-09-08 14:07:59 +05:30
Eli Schwartz
f04ea0f22e
use raw strings where possible to avoid escaping
2019-09-08 13:46:50 +05:30
Eli Schwartz
3a3ae2590e
more work toward universal __future__s
2019-09-08 13:46:50 +05:30
Eli Schwartz
db9ebeb2d5
do not cast unicode_literals string to str()
...
It throws off unicode_check and is wasteful anyway...
2019-09-08 13:46:50 +05:30
Eli Schwartz
c05fdfa1c6
use unicode_type instead of introspecting type('')
2019-09-08 13:46:50 +05:30
Eli Schwartz
519cf86786
sorted() is always a list and takes any iterable
2019-09-08 13:46:50 +05:30
Eli Schwartz
00559bef8f
misc cleanup
2019-09-08 13:46:50 +05:30
Kovid Goyal
ac81ccedb3
Set up CI with Azure Pipelines
2019-09-08 13:46:50 +05:30
Kovid Goyal
91066f2010
version 3.47.1
2019-09-08 13:46:50 +05:30
Kovid Goyal
0b03e331c2
Fix #1842183 [calibre.exe uses CPU during idle with Download cover popup window open]( https://bugs.launchpad.net/calibre/+bug/1842183 )
2019-09-08 13:46:49 +05:30
Charles Haley
8281ab4318
Bug #1842158 : fix regression in commit <b8b5c4e> 25 July 2019 08:52:35.
2019-08-31 11:54:12 +01:00
Kovid Goyal
6fbc6e6e04
Handle BS API change in Le Monde recipe
2019-08-31 15:19:56 +05:30
Kovid Goyal
5dad6c60ee
Fix a regression that broke restarting calibre on macOS
2019-08-31 14:04:17 +05:30
Kovid Goyal
20486dd0a3
Remove unused code
2019-08-31 08:21:42 +05:30
Kovid Goyal
1156e8209a
Book details: Fix a regression in the previous release that broke the right click search the internet function
...
Fixes #1842090 ["Search the internet for..." right-click options fail](https://bugs.launchpad.net/calibre/+bug/1842090 )
2019-08-30 20:57:05 +05:30
Kovid Goyal
05834f0b42
PDF Input: Fix < and > in the text not being correctly handled
2019-08-30 08:03:08 +05:30
Kovid Goyal
b0fe64571e
Fix regex for py3
2019-08-30 07:56:18 +05:30
Kovid Goyal
260c330da3
pep8
v3.47.0
2019-08-30 06:41:15 +05:30
Kovid Goyal
9796c9f80c
version 3.47.0
2019-08-30 06:35:07 +05:30