Commit Graph

36636 Commits

Author SHA1 Message Date
Kovid Goyal ac7957941f Use immutable objects for hierarchical_categories for better performance 2023-10-12 08:12:20 +05:30
Charles Haley 7f5be63f25 Forgot to update the default value after changing to using sets 2023-10-11 18:37:58 +01:00
Charles Haley a25d08e268 Fix sort order of similarly-named hierarchical categories.
See https://www.mobileread.com/forums/showthread.php?t=356598
2023-10-11 18:34:53 +01:00
Kovid Goyal ac0e00e60b E-book viewer: Image popup: Add a checkbox to remember the last used zoom level. Fixes #2038862 [[Enhancement] E-book viewer: options for a better comic book reading experience](https://bugs.launchpad.net/calibre/+bug/2038862) 2023-10-10 20:39:09 +05:30
Kovid Goyal ff7e9006b1 ... 2023-10-10 06:29:41 +05:30
Kovid Goyal c4c2575096 ... 2023-10-09 21:02:46 +05:30
Kovid Goyal 97825e0467 Fix a regression that broke reading of covers from HTMLZ and TXTZ files. Fixes #2038778 [Book cover is not shown after converting from FB2 to HTMLZ](https://bugs.launchpad.net/calibre/+bug/2038778) 2023-10-09 20:58:05 +05:30
Kovid Goyal f70c8e3d6b Fix another compiler warning about an unused variable 2023-10-08 08:49:13 +05:30
Kovid Goyal 664e620fab Fix a bunch of compiler warnings
Caused by ancient (K&R?) syntax
2023-10-08 08:42:01 +05:30
Kovid Goyal 8f074ed42f version 6.28.1 2023-10-07 16:37:30 +05:30
Kovid Goyal b0552e399b Better error reporting in certgen
Also require alt_names to already be prefixed
2023-10-06 16:30:43 +05:30
Kovid Goyal 4c50a6fa7b Get alt_names for certgen 2023-10-06 16:02:17 +05:30
Kovid Goyal e2d846deb3 Provide EVP_RSA_gen on legacy OpenSSL 2023-10-06 15:15:24 +05:30
Kovid Goyal 4605c43101 Dont use deprecated OpenSSL APIs in certgen 2023-10-06 14:58:30 +05:30
Kovid Goyal d463f34b7b Fix regression that broke merging metadata for some books 2023-10-06 11:53:01 +05:30
Kovid Goyal b2b885117b version 6.28.0 2023-10-06 07:59:25 +05:30
Kovid Goyal 05bb0d9f73 ... 2023-10-05 20:11:01 +05:30
Charles Haley fe5a546367 Add Metadata methods to ProxyMetadata when reasonable to avoid AttributeError exceptions.
Add tests for the new methods.
2023-10-05 15:35:31 +01:00
Kovid Goyal fedafa4978 Fix #2038432 [[Enhancement] Support for .cb7 files](https://bugs.launchpad.net/calibre/+bug/2038432) 2023-10-04 18:45:49 +05:30
Kovid Goyal 464c3a4c76 Only use dictionaries path workaround for HTTP 404 errors 2023-10-04 15:11:13 +05:30
Kovid Goyal 0979c1a25c Merge branch 'fix-dictionaries' of https://github.com/un-pogaz/calibre 2023-10-04 15:03:21 +05:30
un-pogaz 8374353d51 fix script variante includes in the lang_code
Some dictionaries add a script variante in their lang_code, for example:
https://github.com/LibreOffice/dictionaries/tree/master/mn_MN
2023-10-04 11:19:29 +02:00
un-pogaz a43d86a0af fix alternative string-list representation in xcu
A alternative representation for string-list use <it> tag for each item of the list, for example:
https://github.com/LibreOffice/dictionaries/tree/master/tr_TR
2023-10-04 10:46:32 +02:00
un-pogaz 9551f021ec fix incorrectly relative paths
Some dictionaries apparently put the dic and aff file in a sub-directory dictionaries and incorrectly make paths relative to that directory instead of the root, for example:
https://github.com/LibreOffice/dictionaries/tree/master/ca
2023-10-04 10:17:46 +02:00
Kovid Goyal 2a6158e05e Save to disk: Do not limit the total path length to 240 characters on non-Windows platforms. Fixes #2038238 [file and folder names garbled if too long in "save to disk".](https://bugs.launchpad.net/calibre/+bug/2038238) 2023-10-04 13:46:15 +05:30
Kovid Goyal 1daa020a4f Fix incorrect cover for AZW3 version of calibre User Manual. Fixes #2037898 [Incorrect cover for an .azw3 book](https://bugs.launchpad.net/calibre/+bug/2037898) 2023-10-04 13:30:19 +05:30
Kovid Goyal 7897c92a3a Fix #2038378 [[Enhancement] Use a darker or different color in the Change library access permission popup](https://bugs.launchpad.net/calibre/+bug/2038378) 2023-10-04 05:47:21 +05:30
Kovid Goyal 503d0e0113 Also decode bytes in comparable_price() 2023-10-03 07:40:27 +05:30
Kovid Goyal da24ae6480 Fix #2052 (Improve error handling in get_results method) 2023-10-03 07:39:37 +05:30
Kovid Goyal 2d000bf23e Make merge_metadata a db API
Since it operates on the database and is a fairly small function,
no sense in having it in a separate module
2023-10-02 15:44:11 +05:30
Charles Haley 125bc94ac8 Separate out merge_metadata as discussed on MobileRead 2023-10-02 10:40:26 +01:00
Kovid Goyal b284d3661e Content server: Change formatting of book details to match new de-emphasized titles based formatting in the main calibre program. Fixes #2029723 [[Enhancement] Suggestions to make the Book details panel look nicer](https://bugs.launchpad.net/calibre/+bug/2029723) 2023-10-02 08:38:11 +05:30
Kovid Goyal 4d20e70ea1 Edit book: When adding dictionaries allow directly a LibreOffice adding the dictionary just by choosing the language
Cleanup previous PR that implement this functionality
2023-10-01 20:19:07 +05:30
Kovid Goyal a44bb42eda Merge branch 'online-dictionaries' of https://github.com/un-pogaz/calibre 2023-10-01 19:59:57 +05:30
Kovid Goyal 5d8d85c649 Fix compatibility with zeroconf >= 0.73
Fixes #2038 (fix compatibility with newer zeroconf)
2023-10-01 15:08:59 +05:30
Kovid Goyal 2858397017 Only use bytes on python >= 3.11 2023-10-01 15:02:51 +05:30
Kovid Goyal b7fd0dde65 spawnv_passfds expects byte args in python 3.11 2023-10-01 14:59:13 +05:30
Kovid Goyal f45bda394b Edit book: Show full path to book being edited in the status bar 2023-10-01 09:04:26 +05:30
Kovid Goyal e841b4c94d DRYer 2023-10-01 08:40:42 +05:30
Kovid Goyal b4c15a0e55 Edit book: When saving a copy add some convenience actions to edit the copy immediately iether in the current editor window or a new window 2023-09-30 14:28:36 +05:30
un-pogaz f0fe25a87d fix downloading files 2023-09-28 19:53:34 +02:00
un-pogaz 44523f9438 Add a online dictionaries importer 2023-09-28 18:09:47 +02:00
Kovid Goyal 82846b43c7 PDF metadata: Fix a regression that broke updating metadata in PDF files without an /Info dictionary 2023-09-28 18:08:49 +05:30
Kovid Goyal f0d2639930 NOOK driver: For the Glowlight 2023 write the calibre metadata files into the NOOK sub-folder as the firmware doesnt allow writing files into the root folder 2023-09-28 09:48:01 +05:30
Kovid Goyal 597c47917f E-book viewer: Workaround bug in Chromium where getBoundingClientRect() fails sometimes leading to incorrect calculation of anchor positions. Fixes #2037543 [E-book viewer: incorrect ToC item is gets highlighted](https://bugs.launchpad.net/calibre/+bug/2037543) 2023-09-28 09:36:08 +05:30
Eli Schwartz f4fe3f254d fix crash in Get Books when regenerating UIC files
Current versions of PyQt seem to generate code incompatible with our
class definition:

```
Traceback (most recent call last):
  File "/home/eschwartz/git/calibre/src/calibre/gui2/actions/store.py", line 49, in do_search
    return self.search()
           ^^^^^^^^^^^^^
  File "/home/eschwartz/git/calibre/src/calibre/gui2/actions/store.py", line 55, in search
    sd = SearchDialog(self.gui, self.gui, query)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/eschwartz/git/calibre/src/calibre/gui2/store/search/search.py", line 38, in __init__
    self.setupUi(self)
  File "/home/eschwartz/git/calibre/src/calibre/gui2/store/search/search_ui.py", line 84, in setupUi
    self.results_view = ResultsView(parent=self.verticalLayoutWidget)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ResultsView.__init__() got an unexpected keyword argument 'parent'
```

The issue is that arguments forwarded to the PyQt class are now being
generated using keyword arguments rather than non-keyword args. As a
direct wrapper over a class belonging to another project, we really
should forward both types just in case.
2023-09-27 21:59:15 -04:00
Kovid Goyal 8c3ff7e7aa Edit book: Fix a regression in the previous release that caused Text search to sometimes not select matches correctly. Fixes #2034900 [Editor - Report: UnboundLocalError: local variable 'raw' referenced before assignment](https://bugs.launchpad.net/calibre/+bug/2034900) 2023-09-27 20:19:35 +05:30
Kovid Goyal ff3af3ac15 E-book viewer: Make CFI calculation more robust especially on pages with very little content. Fixes #2037454 [E-book viewer: "Back" button doesn't work under some conditions](https://bugs.launchpad.net/calibre/+bug/2037454)
We were only testing two x values per y value. Instead test all 48.
2023-09-27 19:54:56 +05:30
Kovid Goyal a3ae1ad46e Convenience function to run the image popup 2023-09-27 07:47:07 +05:30
Charles Haley f68293c7dd Clean up setting the preference controlling whether library view columns can be moved with the mouse. Use a checkbox to make the current state clearer. 2023-09-25 20:28:56 +01:00