Kovid Goyal
49141ebce2
Properly convert the icon_map
...
The enum is of unsigned long not int values
2021-11-19 15:35:42 +05:30
Kovid Goyal
50c16ef54d
Another PyQt enum change
2021-11-19 14:43:30 +05:30
Kovid Goyal
6a5126fe36
Dont escape - when generating CFI
...
Also recognize both escaped and unescaped hyphens when parsing CFI
2021-11-19 12:45:26 +05:30
Kovid Goyal
d0c5241e97
E-book viewer: Fix sorting of highlights incorrect in books that use HTML ids with a hyphen in them. Fixes #1951507 [Private bug]( https://bugs.launchpad.net/calibre/+bug/1951507 )
2021-11-19 12:07:18 +05:30
Kovid Goyal
dec5cb9d20
Only use the ascii hyphen on macOS since it is only needed there
2021-11-19 11:16:37 +05:30
Kovid Goyal
1a8209a898
PDF Output: Add a note that the hyphenate option can break copying of text if type 3 fonts are used
2021-11-19 10:25:45 +05:30
Kovid Goyal
2fa3561aef
Avoid JS errors when previewing non html documents such as svg images
2021-11-19 08:15:44 +05:30
Kovid Goyal
37c35a1ec4
Better error message for permission denied when accessing device files on macOS
2021-11-17 16:24:59 +05:30
Charles Haley
40e5c450d7
When the template dialog doesn't have a book to work with such as when it is invoked from plugboards preferences, create type-correct default values for the custom metadata fields.
2021-11-17 10:36:21 +00:00
Kovid Goyal
2e2fbb7cce
...
2021-11-15 08:26:09 +05:30
Kovid Goyal
1e05b40f7a
EPUB 3: When setting authors and there are only editors, remove the editors. Matches EPUB 2 behavior and is symmetric with using only editors as authors when reading the metadata
2021-11-14 18:08:59 +05:30
Kovid Goyal
5ca15b9175
Also use editors as authors in EPUB 2
2021-11-14 18:03:35 +05:30
Kovid Goyal
f7452f5211
Google metadata plugin: When searching by ISBN if no results are found retry using an alternate query syntax. Fixes #1531 (Google books metadata plugin: Workaround for API bug)
2021-11-14 17:45:37 +05:30
Kovid Goyal
85a7df7daa
Show the undo popup after file merging
2021-11-14 15:35:58 +05:30
Kovid Goyal
dc21508a39
Edit book: Allow merging HTML files by drag and drop of the files onto another HTML file
2021-11-14 13:56:34 +05:30
Kovid Goyal
852e5ca1dd
string changes
2021-11-14 11:20:47 +05:30
Kovid Goyal
3799336890
string changes
2021-11-14 08:51:33 +05:30
Kovid Goyal
975fdfc8c2
fg and bg buttons should be together
2021-11-13 15:24:59 +05:30
Kovid Goyal
98c4b99d73
DRYer
2021-11-13 15:24:45 +05:30
Kovid Goyal
6ca398619b
Cleaner handling of separators in the flow toolbar
2021-11-13 15:22:04 +05:30
Kovid Goyal
b604611a3a
A better multiline toolbar for the comments editor
2021-11-13 10:08:11 +05:30
Kovid Goyal
796034a8ab
Comments editor: Use a single line for all three toolbars if they fit
2021-11-13 07:18:03 +05:30
Kovid Goyal
0c77d88404
Allow the formats list to use less height
...
Also remove some wasted margins in various sub layouts
2021-11-12 20:24:40 +05:30
Charles Haley
fe5b15fe63
Improvement to Edit Metadata Single all-on-one. The cover and formats column now gives as much vertical space as possible to the cover image.
2021-11-12 14:24:47 +00:00
Charles Haley
0613b43364
Bug 1950758: Book details: Adjustments to search when clicking on a datetime column
...
Search never uses the time and timezone so suppress them from the search string.
2021-11-12 11:42:31 +00:00
Kovid Goyal
8abac02e39
version 5.32.0
2021-11-12 08:02:35 +05:30
Kovid Goyal
7003e9c466
Dont require setting seq when creating Author objects
2021-11-12 08:01:42 +05:30
Kovid Goyal
44283cdb79
Add a confirmation when deleting covers
2021-11-12 07:58:48 +05:30
Kovid Goyal
eea263f744
EPUB 3 metadata: If a book defines no authors but does define editors, use the editors as authors. Also support the display-seq refinement to sort authors. See #1950579 (Private bug)
2021-11-12 07:47:39 +05:30
Kovid Goyal
b3c2cf0c10
...
2021-11-11 22:34:12 +05:30
Kovid Goyal
f21206ddc7
Fix #1950663 [Enhancement Request: Hide 'Unknown' when Cover Browser subtitle is Authors]( https://bugs.launchpad.net/calibre/+bug/1950663 )
2021-11-11 21:02:45 +05:30
Charles Haley
89ce945e04
Two template language changes:
...
1) make strcat() inlined
2) fix incorrect argument checks for inlining test() and first_non_empty()
2021-11-11 11:42:16 +00:00
Kovid Goyal
90aac28ab2
Allow using HTML transform rules during conversion as well
2021-11-11 11:24:51 +05:30
Kovid Goyal
9f2c6a9ab6
Add a contains text selector
2021-11-11 10:43:21 +05:30
Kovid Goyal
b50834b23d
Fix transform running on incorrect container object
2021-11-11 10:00:34 +05:30
Kovid Goyal
c75a9f718e
...
2021-11-11 09:57:09 +05:30
Kovid Goyal
0e9b1c55e6
Edit book: Add a tool to transform HTML tags based on rules (Tools->Transform HTML)
2021-11-11 09:54:20 +05:30
Kovid Goyal
23f3dbd85c
DRYer
2021-11-11 09:17:58 +05:30
Kovid Goyal
add6a6e8d9
DRYer
2021-11-11 08:57:49 +05:30
Kovid Goyal
7ac7932f39
Use a human friendly format for rule export/import
2021-11-11 08:33:13 +05:30
Kovid Goyal
3e9e49d06c
Implement tester for HTML transforms
2021-11-11 08:18:25 +05:30
Kovid Goyal
9b2c742341
Fix #1950495 [Virtual library: Ampersands render incorrectly in context menu]( https://bugs.launchpad.net/calibre/+bug/1950495 )
2021-11-11 07:55:43 +05:30
Kovid Goyal
77e087f52f
Merge branch 'master' of https://github.com/davidfor/calibre
...
Fixes #1949908 [Device Support for Tolino Vision 6](https://bugs.launchpad.net/calibre/+bug/1949908 )
2021-11-11 07:49:58 +05:30
Kovid Goyal
89b7207ecf
Fix incorrect check for no open editor
2021-11-11 07:46:02 +05:30
Kovid Goyal
0f7bcb432d
for e.g. -> e.g.
2021-11-11 07:42:50 +05:30
Kovid Goyal
d57c828b56
Fix #1526 (rephrased prompt)
2021-11-11 07:34:00 +05:30
Kovid Goyal
2cb3a3c637
String changes
2021-11-11 07:30:11 +05:30
David
57b5d03c68
Add vision 6 to tolino driver
...
The new device uses Kobo vendor id. Also, show the names for this and the epos.
2021-11-11 10:09:59 +11:00
Kovid Goyal
3dc50b41ca
...
2021-11-10 22:23:13 +05:30
Kovid Goyal
10905d4329
styles->html
2021-11-10 22:21:06 +05:30
Kovid Goyal
077a6089ef
More HTML transform actions
2021-11-10 22:19:19 +05:30
Kovid Goyal
cb263c1175
Skip the actions test on CI if html5-parser is too old
2021-11-10 22:09:39 +05:30
Kovid Goyal
0d0c9c3f02
More HTML transform actions
2021-11-10 22:06:08 +05:30
Kovid Goyal
ff5e535af5
Merge branch 'master' of https://github.com/cbhaley/calibre
2021-11-10 21:27:55 +05:30
Kovid Goyal
f894831740
Fix advanced recipes help link not clickable
2021-11-10 21:26:48 +05:30
Charles Haley
cfcbc407a3
Add new formatter function "current_virtual_library_name().
2021-11-10 15:49:47 +00:00
Kovid Goyal
8f6c3dff7e
More HTML transform actions
2021-11-10 20:34:05 +05:30
Kovid Goyal
1097c34667
More HTML transform actions
2021-11-10 19:37:18 +05:30
Kovid Goyal
dd2a97d226
Start implementing HTML transform actions
2021-11-10 16:56:45 +05:30
Kovid Goyal
2a9caad4d3
Implement matching for HTML transform rules
2021-11-10 15:45:41 +05:30
Kovid Goyal
4f3c5be22d
Use a version and type when exporting rules
2021-11-10 14:41:02 +05:30
Kovid Goyal
35f95c4ed8
Implement validation for html transform rules
2021-11-10 14:33:30 +05:30
Kovid Goyal
9df1350784
Amazon metadata download: Add support for yet another variant of series markup
2021-11-10 13:27:00 +05:30
Kovid Goyal
45b17f6cad
Fix extracting cached URLs from google search results
2021-11-10 13:08:02 +05:30
Kovid Goyal
0749ba592c
Amazon metadata download: Recognize another markup variant for book comments
2021-11-10 11:11:01 +05:30
Kovid Goyal
790b1a2b37
Use a wizard for XPath input
2021-11-10 11:00:44 +05:30
Kovid Goyal
8d4966f14b
DRYer
2021-11-10 10:03:02 +05:30
Kovid Goyal
9de4b76699
DOCX Input: Sanitize image filenames more strictly to workaround broken EPUB software. Fixes #1950412 [epub image file names contains special charactors]( https://bugs.launchpad.net/calibre/+bug/1950412 )
2021-11-10 10:03:02 +05:30
Kovid Goyal
f7a70971d1
String changes
2021-11-10 10:03:02 +05:30
Kovid Goyal
166bb9fbb0
More work on HTML transform tool
2021-11-09 20:58:36 +05:30
Kovid Goyal
8b85aa82d9
Start work on HTML transform tool
2021-11-09 20:43:56 +05:30
Kovid Goyal
18dcc8734c
Fix #1950206 [Calibre missing private copy of kdialog on Fedora 35]( https://bugs.launchpad.net/calibre/+bug/1950206 )
2021-11-09 07:23:52 +05:30
Kovid Goyal
4d4f55a95d
Also use ascii filenames for @kindle.com addresses
...
Does no harm since filenames are not visible on Kindles anyway. Hopefully, fixes #1949604
2021-11-08 20:33:41 +05:30
Kovid Goyal
4c0138e40d
Use system random source for picking a random book
2021-11-08 20:30:02 +05:30
Kovid Goyal
359116e86a
...
2021-11-08 20:23:53 +05:30
Kovid Goyal
9e1e87371f
When picking a random book ensure recently chosen books are not re-selected. Fixes #1948889 ["Pick a random book" function not random]( https://bugs.launchpad.net/calibre/+bug/1948889 )
2021-11-08 20:22:19 +05:30
Kovid Goyal
2f6ad90635
Sending by email: Asciiize filenames when sending to @pbsync.com as the service cant handle non-ascii filenames
2021-11-08 19:42:55 +05:30
Kovid Goyal
6322ba9a1b
Pass bools_are_tristate to content server interface
2021-11-07 12:04:30 +05:30
Kovid Goyal
02cd4a3c06
Merge branch 'master' of https://github.com/cbhaley/calibre
...
Fixes #1950033 [Possible oversight in Book Details: Missing copy options on composite columns](https://bugs.launchpad.net/calibre/+bug/1950033 )
2021-11-07 11:54:42 +05:30
Kovid Goyal
085ebdd9f4
Icon theme chooser dialog: Allow right clicking on a theme to visit its homepage
2021-11-07 11:23:36 +05:30
Charles Haley
4a8f5a226a
Add searching for bool, numeric etc values to the content server.
2021-11-06 17:18:47 +00:00
Charles Haley
d1e2a03d58
Bug #1950033 : Book Details: Missing copy options on composite columns
...
Added the copy options as well as search and remove to composites, bools, numbers, etc
2021-11-06 15:03:38 +00:00
Kovid Goyal
2a5952f1e3
PDF Output: Fix the option to preserve cover aspect ratio being ignored when converting comics
2021-11-04 08:44:38 +05:30
Kovid Goyal
cc578e5a80
Prevent cover buttons in edit metadata from being expanded vertically
2021-11-03 21:45:26 +05:30
Kovid Goyal
ba89a2b970
Fix #1949448 [Opinion/enhancement request: Move 'welcome wizard' button to opposite side of preferences]( https://bugs.launchpad.net/calibre/+bug/1949448 )
2021-11-02 15:54:15 +05:30
Kovid Goyal
4b97f07532
Merge branch 'master' of https://github.com/davidfor/calibre
2021-11-02 07:56:34 +05:30
David
ff4a7e5a8e
Bump supported Kobo firmware version
2021-11-02 11:02:31 +11:00
Kovid Goyal
a553db9626
News download: Handle more types of invalid timestamps in RSS feeds
2021-11-01 14:35:45 +05:30
Charles Haley
38d34bd003
Fix formatter infix operators not handling raw_field of undefined values
2021-10-30 23:33:02 +01:00
Kovid Goyal
9cf1731d08
version 5.31.1
2021-10-29 14:49:34 +05:30
Kovid Goyal
4b9629b61f
Add a test for tostring on sub-trees
2021-10-29 14:34:31 +05:30
Kovid Goyal
f436139f55
version 5.31.0
2021-10-29 07:54:33 +05:30
Kovid Goyal
b95c2ad88e
Mention that the Kindle Oasis output profile works for PW 2021 also
2021-10-29 07:54:07 +05:30
Kovid Goyal
350ba190d4
pep8
2021-10-28 21:22:50 +05:30
Kovid Goyal
1796385b34
Multiple sort dialog: Allow removing saved sorts via a sub-menu of the Load button
2021-10-28 21:05:06 +05:30
Deckvig
87e24e7a98
Update amazon.py
...
fix get ratings fail in amazon.cn
2021-10-28 13:57:05 +08:00
Charles Haley
79536a7f7f
Small performance improvement for sorting categories by name and first letter
2021-10-27 15:58:43 +01:00
Kovid Goyal
571841268f
Kindle driver: Add support for the new Kindle PaperWhite
...
Lets hope nothing else is different on this device apart from the
changed BCD number. Fixes #1948883 [Add support for the 2021 Kindle Paperwhite (11th Version)](https://bugs.launchpad.net/calibre/+bug/1948883 )
2021-10-27 07:28:52 +05:30
Kovid Goyal
c70e064c23
Content server: Fix some OPDS feeds failing with non-ASCII content. Fixes #1947879 [IOS client access, the library does not display content.]( https://bugs.launchpad.net/calibre/+bug/1947879 )
...
This was caused by an underlying libxml2 bug.
https://bugs.launchpad.net/lxml/+bug/1873306
a697ed1e24
The workaround is to specify the encoding rather than using None.
2021-10-26 08:28:00 +05:30
Charles Haley
689a280a2c
Move the numeric_collation tweak to global preferences with the UI in Preferences / Behaviour. I didn't put it in db.prefs because I didn't want to create a linkage between icu.py and the database.
2021-10-25 16:53:30 +01:00
Kovid Goyal
1518344dd8
...
2021-10-24 22:20:25 +05:30
Charles Haley
21a4207ad7
Bug #1948560 : Odd behaviour with digits in alphabetical partitioning
...
This is fixed for the tag browser in the gui and the content server. I couldn't find anywhere else that used first letter partitioning.
When using first letter partitioning get_categories() constructs the sort key as follows:
- If the first character of the string is a digit (I hope isdigit() is localized) then use that digit otherwise use a string that is larger than any digit
- The ICU collation order key
- The sort key.
As such, items that start with a digit will first sort by that digit, then if needed use the ICU key as the second level then if needed use the sort key as the third level. Items that do not start with a digit will sort by the ICU key then the sort key.
2021-10-24 17:18:02 +01:00
Charles Haley
82e4b04e2f
Include some tests for non_numeric_sort_collator
2021-10-24 17:08:15 +01:00
Charles Haley
06b598eb9d
Fix non_numeric_sort_collator.
2021-10-24 17:07:50 +01:00
Kovid Goyal
ae437852be
E-book viewer: Add a button to directly open the viewer help section in the calibre user manual to the viewer controls
2021-10-24 21:21:08 +05:30
Kovid Goyal
6c45f4333d
oops
2021-10-24 18:46:05 +05:30
Kovid Goyal
4958e3623d
Add a clear button to the target field
2021-10-24 15:50:13 +05:30
Kovid Goyal
79a6ab5d94
Add a function to generation collation order for partitioning
2021-10-24 15:46:31 +05:30
Kovid Goyal
ff32d7c4f8
oops
2021-10-24 12:24:34 +05:30
Kovid Goyal
0078c8426f
E-book viewer: Prevent the display from sleeping when using auto-scroll or read aloud modes (Implemented only on Windows and macOS)
2021-10-24 12:20:12 +05:30
Kovid Goyal
a44cb71cbb
Platform independent wrapper for controlling sleep
2021-10-24 12:05:56 +05:30
Kovid Goyal
3fd1383c80
Wrap the Cocoa API for power management
2021-10-24 10:54:07 +05:30
Kovid Goyal
f2c5a14fab
Wrap the windows API to set thread execution state
2021-10-23 16:49:46 +05:30
Kovid Goyal
8972f56290
Allow setting a keyboard shortcut in Preferences->Shortcuts to open the content server in a local browser
...
See #1948519 ([Enhancement] Shortcut to open content server in browser)
2021-10-23 16:25:10 +05:30
Kovid Goyal
e416b1c30b
Edit book: Set semantics tool: Add support for EPUB 3 landmarks
2021-10-23 16:21:24 +05:30
Kovid Goyal
47143b0506
Fix #1948520 [[Enhancement] Change icon for Filter button in the User categories window]( https://bugs.launchpad.net/calibre/+bug/1948520 )
2021-10-23 14:30:32 +05:30
Kovid Goyal
ce6e97260c
Make functionality to set landmarks re-useable
2021-10-23 11:37:30 +05:30
Kovid Goyal
bd7d859ac2
Make functionality to ensure nav re-useable
2021-10-23 11:29:03 +05:30
Kovid Goyal
be73536c26
...
2021-10-23 10:44:46 +05:30
Kovid Goyal
9a295fad07
Add an entry to the Connect/share menu to open the content server in a local browser when it is running. Fixes #1948493 [Enhancement Request: Open content server in browser]( https://bugs.launchpad.net/calibre/+bug/1948493 )
2021-10-23 09:40:06 +05:30
Kovid Goyal
baf215b0c8
version 5.30.0
2021-10-22 04:54:50 +05:30
Kovid Goyal
b8c95130c2
Clean up the icon removal dialog box
2021-10-22 04:46:16 +05:30
Charles Haley
7320a9a7b3
Enhancement #1947948 : Scrollable list for removing custom icons
2021-10-21 20:23:15 +01:00
Kovid Goyal
88cf8ff2bb
E-book viewer: Read aloud: Allow right clicking to play/pause reading. Fixes #1946439 [[Enhancement - E-book viewer] Right mouse click to pause/play Read aloud]( https://bugs.launchpad.net/calibre/+bug/1946439 )
2021-10-21 19:55:20 +05:30
Kovid Goyal
dd4da79f8f
Merge branch 'master' of https://github.com/davidfor/calibre
2021-10-21 18:03:37 +05:30
David
3bb4031cc7
Bump Kobo firmware for Sage and Libra 2
2021-10-21 22:54:21 +11:00
Kovid Goyal
ba2bd3f01b
pep8
2021-10-21 11:20:08 +05:30
Eli Schwartz
fd467c4527
perform various automated cleanups of python2-compatible code
...
performed using:
```
pyupgrade --keep-percent-format --py3-only
```
and committing the results.
This changes various things, including:
- remove u from u'' strings, since python3 strings are always unicode
- consolidate on OSError for various exceptions that are deprecated aliases
- dict/set literals and comprehensions
- yield from
- remove extraneous () produced by accident by some modernization code
- modern super()
- remove __future__ imports
etc.
2021-10-20 21:45:51 -04:00
Eli Schwartz
39a22268b9
py3 porting cleanup: drop str proxy
...
We don't need unicode_type anymore, because the str/unicode split
disappeared.
In addition to converting all unicode_type to str, there are some cases
where string literals were converted to unicode_type, e.g. for r''
strings, since ur'' didn't work. These can now be dropped entirely.
2021-10-20 21:45:24 -04:00
Eli Schwartz
e794b388b4
fix incorrect log message referencing python type alias
...
During porting work, this got changed from "Unicode" to "unicode_type",
which was wrong.
2021-10-20 21:45:24 -04:00
Eli Schwartz
34f3033444
py3 porting cleanup: drop os.getenv/getcwd proxies
...
The stdlib getenv/getcwd is suitable everywhere now, so that is all that
is used.
2021-10-20 21:45:01 -04:00
Eli Schwartz
e592d895ea
py3 porting cleanup: drop raw_input compat alias
2021-10-20 21:43:47 -04:00
Eli Schwartz
887f620406
py3 porting cleanup: remove unneeded indirect import of builtins
...
filter, map, range, and zip were proxied through polyglot.builtins to
ensure that their `future_builtins` forms were used. In python3 this is
no longer needed and they don't need to be imported at all, from
anywhere. So, don't.
2021-10-20 21:43:43 -04:00
Charles Haley
63b61ee0c9
Bug #1947841 : Title & Author is/is not set. Implemented option 1.
2021-10-20 12:39:35 +01:00
Kovid Goyal
fad59ba7c7
ToC Editor: Ignore in succession clicks on the OK and Cancel buttons to avoid accidentally closing the window when finishing creating a new entry
2021-10-19 22:27:14 +05:30
Kovid Goyal
016a62b95e
Comments editor: Fix the formatting buttons not showing the current state correctly
2021-10-19 14:45:23 +05:30
Kovid Goyal
1e5b4d373d
Fix #1905479 [Edit Metadata: Non-default layout and custom longtext column breaks formatting shortcuts]( https://bugs.launchpad.net/calibre/+bug/1905479 )
...
Yet again
2021-10-19 14:35:22 +05:30
Kovid Goyal
83ced64197
Merge branch 'template-assign' of https://github.com/dtardon/calibre
2021-10-19 13:23:36 +05:30
Kovid Goyal
fae5391146
Map a few more shortcuts from JS to Qt for the viewer toolbar
...
Fixes #1946791 [[Enhancement - E-book viewer] Add shortcuts to tooltips of the viewer controls](https://bugs.launchpad.net/calibre/+bug/1946791 )
2021-10-19 13:16:43 +05:30
Kovid Goyal
db074fd8f3
Fix #1947308 [Verbose PermissionError when trying to modify author sort]( https://bugs.launchpad.net/calibre/+bug/1947308 )
2021-10-19 11:49:49 +05:30
David Tardon
22b32638e8
Fix parsing of assign() template function
...
This fixes a regression from commit
bde8cd5e65 , which allowed expression lists
as function arguments. However, assign() still expects simple expression
as its first argument. I don't think allowing expression list there
makes much sense, so let's restrict this.
2021-10-18 21:35:12 +02:00
Kovid Goyal
1332db808a
string changes
2021-10-17 11:29:01 +05:30
Kovid Goyal
e8e571c03c
Fix #1506 (Fix potential crash in ebook-edit due to type mismatch.)
2021-10-17 06:14:41 +05:30
Kovid Goyal
5cb4be9000
Fix #1947178 [[Enhancement - E-book viewer] Make string translatable]( https://bugs.launchpad.net/calibre/+bug/1947178 )
2021-10-14 21:37:44 +05:30
Kovid Goyal
ed7d57358e
string changes
2021-10-14 18:06:27 +05:30
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
Kovid Goyal
ef2e2c714c
Edit metadata dialog: Customize cover generation: Allow saving and loading cover generation settings as "themes"
2021-09-22 16:08:10 +05:30
Kovid Goyal
4cf5350a7c
Conversion dialog: Search replace expression builder: Fix incorrect search result highlighting when non-BMP unicode characters are present in the text
2021-09-22 12:19:21 +05:30
Kovid Goyal
3f65b62e96
Fix #1944487 [TOC not aligned properly when screen width not enough]( https://bugs.launchpad.net/calibre/+bug/1944487 )
2021-09-22 10:43:58 +05:30
Kovid Goyal
8c18cba3a7
E-book viewer: Fix popup footnote blank when the footnote link points to a <body> tag. Fixes #1943270 [Private bug]( https://bugs.launchpad.net/calibre/+bug/1943270 )
2021-09-22 08:59:18 +05:30
Kovid Goyal
27b06b16b1
Book details panel: While clicking tags/authors/etc. holding down the Ctrl+Shift modifier keys now add the tag to the current search with
...
"AND" instead of "OR" when using only Ctrl. Fixes #1943521 [Ctrl-clicking on tag browser & book details ignores "match all items."](https://bugs.launchpad.net/calibre/+bug/1943521 )
2021-09-22 08:25:36 +05:30