Kovid Goyal
ff1ee01b3b
py310: Fix #1954951 [manual trimming of cover throws exception w/ python 3.10]( https://bugs.launchpad.net/calibre/+bug/1954951 )
2021-12-16 08:16:46 +05:30
Kovid Goyal
0a9778caa3
py3 compat: Fix PDB ereader output broken in calibre 5
...
Fixes #1954889 [Error when converting to pdb ereader](https://bugs.launchpad.net/calibre/+bug/1954889 )
2021-12-15 13:36:24 +05:30
Kovid Goyal
2c6a73534a
Fix #1953469 [Private bug]( https://bugs.launchpad.net/calibre/+bug/1953469 )
2021-12-15 13:33:41 +05:30
Kovid Goyal
c1dc45a79f
Edit book: Reports: Include descendant selectors that use classes when counting class usage. Fixes #1954839 [Style classes wrongly reported as 0 (unused)]( https://bugs.launchpad.net/calibre/+bug/1954839 )
2021-12-15 10:46:17 +05:30
Kovid Goyal
8c2aa4182c
DRYer
2021-12-15 08:15:26 +05:30
Kovid Goyal
4669ca7d8b
EPUB/MOBI Catalogs: Increase the maximum thumbnail size to 3 inches from 2 inches
2021-12-14 20:43:40 +05:30
Kovid Goyal
5101ca89de
Fix #1954645 [Private bug]( https://bugs.launchpad.net/calibre/+bug/1954645 )
2021-12-14 20:14:55 +05:30
Kovid Goyal
9ed24d754b
Allow creating a shortcut in preferences->Shortcuts->Edit metadata to paste metadata ignoring the value of the exclude_fields tweak. Fixes #1953739 [[Enhancement] Paste metadata - Override 'exclude_fields_on_paste' setting]( https://bugs.launchpad.net/calibre/+bug/1953739 )
2021-12-14 18:28:06 +05:30
Kovid Goyal
988b7d97f2
Edit book: Allow adding a comment to an individual HTML/OPF/NCX file to exclude it from being checked when running the spell check tool
2021-12-14 15:46:20 +05:30
Kovid Goyal
4142b93443
string changes
2021-12-14 14:44:45 +05:30
Kovid Goyal
1dfe4bd1c0
Use a UA based on random english words
...
Cloudflare appears to block http requests with common browser user
agents, probably it checks for some other header field with the user
agent
2021-12-14 12:52:34 +05:30
Kovid Goyal
07f72d2d94
E-book viewer: Fix an error when opening some books with highlights that span inline text formatting
...
Fixes #1954726 [epub file no longer opens](https://bugs.launchpad.net/calibre/+bug/1954726 ) [epub file no longer opens](https://bugs.launchpad.net/calibre/+bug/1954726 )
normalize() modifies the text nodes, and can potentially result in a
previously selected node no longer having a parent causing wrap() to
throw an exception. In any case normalizing once after all nodes have
been wrapped is faster.
2021-12-14 12:30:54 +05:30
Kovid Goyal
27b2f3a92a
E-book viewer: Displays links marked up as glossary and bibliography links as popups. Fixes #1954715 [Support ARIA doc-biblioref and doc-glossref]( https://bugs.launchpad.net/calibre/+bug/1954715 )
2021-12-14 11:54:03 +05:30
Kovid Goyal
842e99428e
py310 compat: QWebEngineSettings::setFontSize
...
Fixes #1954688 [--pdf-default-font-size is read as float](https://bugs.launchpad.net/calibre/+bug/1954688 )
2021-12-14 11:44:33 +05:30
Kovid Goyal
643de95a64
Merge branch 'master' of https://github.com/davidfor/calibre
2021-12-14 11:37:30 +05:30
Kovid Goyal
9085cc2846
Merge branch 'master' of https://github.com/michaeldleslie/calibre
...
Fixes #1954708 [Unhandled exception when downloading covers and metadata](https://bugs.launchpad.net/calibre/+bug/1954708 )
2021-12-14 11:36:26 +05:30
David
616d9bfbbb
Don't exclude slashes when parsing URLs for identifier rules
...
Not sure why I had excluded the slash as a valid character in the identifier. There are a few sites that do this.
2021-12-14 15:03:45 +11:00
Michael Leslie
b23064a54d
py310 support: explicit cast to int
2021-12-13 18:52:59 -08:00
Kovid Goyal
aed39272af
Ignore deprecation warning from apsw
2021-12-13 22:19:04 +05:30
Kovid Goyal
f01268b2ec
Remove deprecated distutils
2021-12-13 21:55:53 +05:30
Kovid Goyal
b6da6d9680
Another 3.10 deprecation
2021-12-13 20:35:03 +05:30
Kovid Goyal
7632beb8e0
Replace use of distutils to get installation location for init_env.py
2021-12-13 20:29:35 +05:30
Kovid Goyal
821f71cc4c
Fix test failing on python 3.10
2021-12-13 20:11:30 +05:30
Kovid Goyal
a445a73e66
A simpler solution for word wrapping in the tweaks list view
2021-12-13 20:02:53 +05:30
Kovid Goyal
c171839304
more pyqt6 nonsense
2021-12-13 19:47:15 +05:30
Kovid Goyal
cd42a1c644
Avoid parsing the undefined number sort key tweak for every undefined number
2021-12-13 19:43:34 +05:30
Charles Haley
bd7dbfec43
Take 2 on the numeric sort and the tweaks scroll bar changes
2021-12-13 19:43:18 +05:30
Charles Haley
5d9c5ebd58
Enhancement: add a tweak to provide the sort value for undefined numbers.
2021-12-13 19:42:49 +05:30
Kovid Goyal
519f06b4af
Merge branch 'master' of https://github.com/cbhaley/calibre
...
Fixes #1954572 [Enhancement request: Template tester: Save word wrap setting](https://bugs.launchpad.net/calibre/+bug/1954572 )
2021-12-12 18:08:49 +05:30
Charles Haley
986f778593
Enhancement #1954572 : Template tester: Save word wrap setting
2021-12-12 11:00:45 +00:00
Kovid Goyal
4ccbc01125
Merge branch 'fix-pocket-recipe' of https://github.com/grdryn/calibre
2021-12-12 08:04:10 +05:30
Gerard Ryan
6590bcd76e
Fix Pocket/readitlater recipe
...
This recipe wasn't working (at least for me), where it would
consistently fail with the following error when trying to download an
article:
```
Traceback (most recent call last):
File "calibre/utils/threadpool.py", line 100, in run
File "calibre/web/feeds/news.py", line 1186, in fetch_obfuscated_article
File "<string>", line 157, in get_obfuscated_article
File "<string>", line 142, in get_textview
File "re.py", line 201, in search
TypeError: expected string or bytes-like object
```
I believe this is because Pocket don't allow access to their
"Article View" API by default:
https://getpocket.com/developer/docs/v3/article-view
This change uses the original URL of the article, rather than the
pocket url for it (those `getpocket.com/a/read/<id>` URLs in the
browser seem to just redirect me to `getpocket.com/my-list`). I've a
feeling that the old way might have produced cleaner articles (Pocket
cleanup & then Calibre cleanup), but I've never seen it work
successfully.
We could alternatively try to convince Pocket to enable that API for
the "app" we use here (I think this usage would qualify, as it's a
"Pocket specific feature" (for Calibre)). That might require adopting
their full OAuth flow, rather than using username/password. From
reading their API docs with Calibre in mind, I think that would mean
we'd have to have a web page somewhere that the user would have to
access in their normal web browser, click a button to redirect them to
the Pocket page to authorize the Calibre app to access their Pocket
account, which would then redirect them back to our web page where
we'd instruct them to enter the access token into the "password" field
for the recipe in Calibre.
2021-12-11 22:52:20 +00:00
Kovid Goyal
2a45519e5d
Merge branch 'master' of https://github.com/cbhaley/calibre
...
Fixes #1954562 [Strange search results after updating stored template](https://bugs.launchpad.net/calibre/+bug/1954562 )
2021-12-11 19:23:14 +05:30
Charles Haley
dd02f58568
Bug #1954562 : Strange search results after updating stored template
2021-12-11 12:55:58 +00:00
Kovid Goyal
1e8e109b40
Merge branch 'master' of https://github.com/dirkgomez/calibre
2021-12-11 17:37:10 +05:30
Dirk Gómez
d473641f81
Make El Pais recipe work with redesigned site
2021-12-11 12:51:23 +01:00
Kovid Goyal
e15227eb0c
Supernote needs Documents not NOOK
2021-12-11 12:08:43 +05:30
Kovid Goyal
6db6e338e3
Add local virtual-machines.conf to gitignore
2021-12-11 08:33:15 +05:30
Kovid Goyal
6a921b2396
MTP driver: Dont send the calibre device db files to the root folder on the supernote a5 x as it fails. Fixes #1954460 [Supernote ax5]( https://bugs.launchpad.net/calibre/+bug/1954460 )
2021-12-11 08:31:48 +05:30
Kovid Goyal
fe7c125d6d
Use NOOK_COLOR for the Glowlight 4
2021-12-10 20:49:43 +05:30
Kovid Goyal
95b852684e
Need the qt5 branch of bypy for calibre 5
2021-12-10 20:21:23 +05:30
Kovid Goyal
ef87339298
Use a private copy of the bypy scripts so it doesnt conflict with the developments for the qt6 branch
2021-12-10 14:26:17 +05:30
Kovid Goyal
8169268ee3
Driver for Nook Glowlight 4
2021-12-10 08:03:30 +05:30
Kovid Goyal
425152cda2
Fix langauge not being detected on amazon.de
2021-12-08 20:53:14 +05:30
Kovid Goyal
0f56a27b97
ToC Editor: Workaround an occasional error when closing on Windows if the file being edited is in a DropBox/antivirus prone area
2021-12-08 20:28:54 +05:30
Kovid Goyal
631bb7652f
Fix a regression in the previous release that broke creating new keyboard shortcuts
2021-12-06 20:13:39 +05:30
Kovid Goyal
59a732d181
Merge branch 'master' of github.com:kovidgoyal/calibre
2021-12-06 20:09:36 +05:30
Kovid Goyal
48a09b77f9
Update American Prospect
2021-12-06 20:09:14 +05:30
Kovid Goyal
cb07ca7b70
pyqt6: Use QStylePainter for separators
...
In pyqt6 QApplication::style() returns QCommonStyle instead of the proxy
calibre style I install using C++. QStylePainter gets around that.
2021-12-06 20:09:07 +05:30
Kovid Goyal
56dd01a591
FlowToolbar: Move entire groups rather than individual buttons
2021-12-06 20:09:02 +05:30