34079 Commits

Author SHA1 Message Date
Kovid Goyal
ee64e604a8
string changes 2021-10-13 21:30:07 +05:30
Kovid Goyal
4391311d56
Sending books by e-mail: Preserve non-English characters in attached filenames 2021-10-12 15:57:25 +05:30
Kovid Goyal
8bc11e1d91
avoid lrf metadata read failure on malformed meta blocks 2021-10-12 15:53:22 +05:30
Kovid Goyal
d8c118cbb4
Fix #1946674 [[Enhancement] Add icons to the Category editor context menu](https://bugs.launchpad.net/calibre/+bug/1946674) 2021-10-12 08:34:11 +05:30
Kovid Goyal
2d074400e2
E-book viewer: Fix cover and full screen images not centered in paged mode when more than one page is displayed per screen. 2021-10-12 08:21:25 +05:30
Kovid Goyal
9197b55d72
String changes 2021-10-11 21:33:08 +05:30
Kovid Goyal
2447aa0745
string changes 2021-10-10 15:06:36 +05:30
Kovid Goyal
431f42bae7
Fix #1946585 [[Enhancement] Use a less light color for the Scheduled news](https://bugs.launchpad.net/calibre/+bug/1946585) 2021-10-10 15:05:19 +05:30
Kovid Goyal
7cb223998d
Fix #1946570 [[Enhancement] String changes for Tag browser context menu](https://bugs.launchpad.net/calibre/+bug/1946570) 2021-10-10 07:53:13 +05:30
Kovid Goyal
2f2729646f
Fix #1946569 [[Enhancement] Add icons to the Tag brower context menu](https://bugs.launchpad.net/calibre/+bug/1946569) 2021-10-10 07:44:44 +05:30
Charles Haley
aed556e815 Enhancement #1946560: Search for sub category in Tag brower
and
Enhancement #1946559: Add a separator to the context menu shown when right clicking on a sub category in the Tag browser
2021-10-09 16:01:57 +01:00
Charles Haley
aba1fbf004 Bug #1946417: Rename in VL and User Category behaviour 2021-10-08 15:14:31 +01:00
Kovid Goyal
6fe5398894
version 5.29.0 2021-10-08 07:22:12 +05:30
Kovid Goyal
8461400a20
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #1946342 [Custom collumn returns "TEMPLATE ERROR list index out of range"](https://bugs.launchpad.net/calibre/+bug/1946342)
2021-10-08 07:13:16 +05:30
Charles Haley
4dec0e2c91 Bug #1946342: nesting composite columns sometimes fails with a list index exception. 2021-10-07 17:36:03 +01:00
Kovid Goyal
92e5a55dbb
Forgot to handle the case of import plugins creating a new file when auto-adding 2021-10-07 21:43:51 +05:30
David
9470dcc40c Add support for Kobo devices Sage and Libra 2
Two new devices. Adding the device ids and strings so they will be recognised when released. But, have not bumped firmware version as the exact version has not been confirmed. And while it is unlikely other changes will be needed, this has not been confirmed.
2021-10-07 11:12:59 +11:00
Kovid Goyal
a16c9b6807
Add a clear button 2021-10-06 21:45:20 +05:30
Kovid Goyal
ce37adcef7
Implement save/load for multisorts 2021-10-06 21:41:02 +05:30
Kovid Goyal
ecdc1007c1
Allow creating sorts based on multiple columns (Add the Sort action to the toolbar via Preferences->Toolbars & menus)
Fixes #1945891 [[Enhancement] Select sortable columns in a separate window](https://bugs.launchpad.net/calibre/+bug/1945891)
2021-10-06 14:38:52 +05:30
Kovid Goyal
200b62d25c
Allow drag and drop of books onto formats in the Tag Browser to convert them. Fixes #1945890 [[Enhancement] Drag book to format in the Tag browser to convert it to that format](https://bugs.launchpad.net/calibre/+bug/1945890) 2021-10-05 13:17:38 +05:30
Kovid Goyal
645cf5eff9
Auto adding: Run onimport filetype plugins before reading metadata. Matches behavior of manual adding. Fixes #1945889 [Metadata wrong for auto-added books](https://bugs.launchpad.net/calibre/+bug/1945889) 2021-10-05 08:27:37 +05:30
Kovid Goyal
47bf99c214
... 2021-10-04 20:59:25 +05:30
Kovid Goyal
f70125774e
string changes 2021-10-04 16:05:01 +05:30
Charles Haley
59982dc78f Make the formatter function raw_field() account for column aliases such as "date" for "timestamp". 2021-10-04 10:05:39 +01:00
Kovid Goyal
ab15421c43
Content server: Fix category collapse by partition not working. Fixes #1945882 [[Content Server] "Search for books" setting error](https://bugs.launchpad.net/calibre/+bug/1945882) 2021-10-03 18:15:43 +05:30
Kovid Goyal
88a517cf53
fix bugs introduced in previous PR 2021-10-03 13:53:30 +05:30
Christian Clauss
fb1d7c40f8 Fix the remaining typos 2021-10-03 10:00:15 +02:00
Christian Clauss
3e81179175 Fix more typos 2021-10-02 17:15:24 +02:00
Charles Haley
7711c98950 The tag browser focus PR I made yesterday didn't work when the node has expanded children. 2021-10-01 11:27:40 +01:00
Kovid Goyal
2013482afb
Fix #1945040 [[Enhancement] Remove separator between drop down menu restart options](https://bugs.launchpad.net/calibre/+bug/1945040) 2021-10-01 10:19:39 +05:30
Charles Haley
a9541405e8 Ensure that once the tag browser has the focus, Tab and Backtab don't move the focus to another widget.
See https://www.mobileread.com/forums/showthread.php?p=4158532#post4158532
2021-09-30 15:09:56 +01:00
Charles Haley
c4d9b25446 Fix labels being interchanged for two tag browser shortcuts 2021-09-30 15:08:56 +01:00
Kovid Goyal
cc682db2ba
Merge branch 'deobjectify-classes' of https://github.com/keszybz/calibre 2021-09-30 13:41:09 +05:30
Kovid Goyal
bc6e9cff20
Merge branch 'suppress-brokenpipeerror' of https://github.com/keszybz/calibre 2021-09-30 13:32:03 +05:30
Zbigniew Jędrzejewski-Szmek
9d63b6ae56 Drop (object) from class definitions
Python2 had old-style classes (no "(object)"), and new style classes (with
"object"). Under Py3 this is a noop, so let's drop it to make the code
a bit shorter.
2021-09-30 09:23:56 +02:00
Zbigniew Jędrzejewski-Szmek
fa8bbfda15 Suppress BrokenPipeError in logging
https://bugzilla.redhat.com/show_bug.cgi?id=1903583 sports the following traceback:
Traceback (most recent call last):
  File "/usr/bin/ebook-convert", line 20, in <module>
    sys.exit(main())
  File "/usr/lib64/calibre/calibre/ebooks/conversion/cli.py", line 401, in main
    plumber.run()
  File "/usr/lib64/calibre/calibre/ebooks/conversion/plumber.py", line 1135, in run
    pr(0., _('Running transforms on e-book...'))
  File "/usr/lib64/calibre/calibre/ebooks/conversion/plumber.py", line 67, in __call__
    self.global_reporter(global_frac, msg)
  File "/usr/lib64/calibre/calibre/ebooks/conversion/cli.py", line 288, in __call__
    self.log('%d%% %s'%(percent, msg))
  File "/usr/lib64/calibre/calibre/utils/logging.py", line 179, in __call__
    self.info(*args, **kwargs)
  File "/usr/lib64/calibre/calibre/utils/logging.py", line 171, in print_with_flush
    self.flush()
  File "/usr/lib64/calibre/calibre/utils/logging.py", line 191, in flush
    o.flush()
  File "/usr/lib64/calibre/calibre/utils/logging.py", line 53, in flush
    self.stream.flush()
BrokenPipeError: [Errno 32] Datenübergabe unterbrochen (broken pipe)

If logging fails because somebody closed the output pipe, this is not an error.
Let's just ignore this this silently.

I removed the two .flush() implementations because those two classes inherit
from Stream.
2021-09-30 09:11:16 +02:00
Zbigniew Jędrzejewski-Szmek
9b9d6728ef conversions: use makedirs(exist_ok=True)
https://bugzilla.redhat.com/show_bug.cgi?id=1922761 reports the following
failure:

Traceback (most recent call last):
  File "/bin/ebook-edit", line 20, in <module>
    sys.exit(ebook_edit())
  File "/usr/lib64/calibre/calibre/gui_launch.py", line 119, in ebook_edit
    main(args)
  File "/usr/lib64/calibre/calibre/gui2/tweak_book/main.py", line 98, in main
    _run(args)
  File "/usr/lib64/calibre/calibre/gui2/tweak_book/main.py", line 66, in _run
    from calibre.gui2.tweak_book.ui import Main
  File "/usr/lib64/calibre/calibre/gui2/tweak_book/ui.py", line 29, in <module>
    from calibre.gui2.tweak_book.boss import Boss
  File "/usr/lib64/calibre/calibre/gui2/tweak_book/boss.py", line 28, in <module>
    from calibre.ebooks.oeb.polish.main import SUPPORTED, tweak_polish
  File "/usr/lib64/calibre/calibre/ebooks/oeb/polish/main.py", line 20, in <module>
    from calibre.ebooks.oeb.polish.jacket import (
  File "/usr/lib64/calibre/calibre/ebooks/oeb/polish/jacket.py", line 9, in <module>
    from calibre.ebooks.conversion.config import load_defaults
  File "/usr/lib64/calibre/calibre/ebooks/conversion/config.py", line 20, in <module>
    os.makedirs(config_dir)
  File "/usr/lib64/python3.9/os.py", line 225, in makedirs
    mkdir(name, mode)
FileExistsError: [Errno 17] Arquivo existe: '/home/vinicius/.config/calibre/conversion'

I assume that the user had two calibre instances started, and they raced on
the check and creation of the directory. Let's use os.makedirs(exist_ok=True).
(added in Python 3.2).

Also, only create the directories when saving/reading the file, not when the
module is imported.
2021-09-30 08:43:15 +02:00
Kovid Goyal
a129b416e9
Edit book: See what changed: Fix non-BMP unicode characters causing highlighting of changed words to be slightly misplaced 2021-09-27 08:30:51 +05:30
Kovid Goyal
559dae66ee
Add a bit of text to make double clicking to edit more discoverable in the diff dialog 2021-09-27 08:15:41 +05:30
Kovid Goyal
36631868f5
PDF Output: Fix a regression that broke conversion of comics that contain 1-bit images 2021-09-26 21:49:01 +05:30
Kovid Goyal
5bf68b5971
When getting identifiers for a book use a copy of the dict
Fixes #1945098 [5.28 Forgets or reverts identifiers](https://bugs.launchpad.net/calibre/+bug/1945098)
2021-09-26 20:07:49 +05:30
Kovid Goyal
5f6dcd9e8b
Edit book: Fix pressing Ctrl+Tab inserting a tab at the start of a line instead of switching tabs 2021-09-26 08:37:24 +05:30
Kovid Goyal
95fc272b5b
Edit book: When changing a paragraph to a heading if the cursor is adjacent to a paragraph tag but not inside any tags other than body, use the adjacent tag 2021-09-24 10:55:27 +05:30
Kovid Goyal
7108eca442
version 5.28.0 2021-09-24 07:15:51 +05:30
Kovid Goyal
39ca1c185e
pep8 2021-09-23 10:43:13 +05:30
Kovid Goyal
35180e7251
E-book viewer: Allow pressing the 0-9 keys to apply a quick highlight style. Fixes #1944614 [[Enhancement] Add hotkeys for applying specific highlighting colors](https://bugs.launchpad.net/calibre/+bug/1944614) 2021-09-23 08:50:47 +05:30
Kovid Goyal
ed10c3e0cb
Sanitize XML chars when parsing html fails in the comments editor widget 2021-09-23 08:47:05 +05:30
Kovid Goyal
f2dcb7a967
Fix #1944615 [[Enhancement] "Remove this highlight" would benefit from another hotkey](https://bugs.launchpad.net/calibre/+bug/1944615) 2021-09-23 07:47:23 +05:30
Kovid Goyal
d12e14b236
Edit book: When renaming classes in style sheets only recognize class names preceded by a period. Fixes #1944562 [Renaming class called "body" renames rules for body element](https://bugs.launchpad.net/calibre/+bug/1944562) 2021-09-22 20:34:37 +05:30