Eli Schwartz
da8092c58a
do not use a side effect of allocating list(map(...)) to execute functions for each member of a list
2021-12-02 10:49:03 -05:00
Kovid Goyal
d76bf7a13d
pep8
2021-12-01 18:21:56 +05:30
David
71b297dbd1
Show audiobooks and fix subtitle handling
...
Kobo now has purchased audiobooks. Plus there was an error in handling subtitle when the template returned an empty string.
2021-12-01 23:35:00 +11:00
Kovid Goyal
0b532f6974
calibre-server --manage-users: Allow managing users while the server is running
2021-12-01 11:42:17 +05:30
Kovid Goyal
872613f5f3
Fix a few places where ints were passed to PyArg_Parse instead of Py_ssize_t
2021-12-01 10:55:09 +05:30
Kovid Goyal
055f5b0979
Add the Py_SSIZE_T_CLEAN definition needed for python 3.10
...
Ideally someone needs to go through all the code and check that nothing
breaks because of this macro, but, I dont have that kind of time
2021-12-01 10:47:51 +05:30
Kovid Goyal
f2add0b2aa
calibre-server --manage-users: Add commands for automating readonly and restriction management. Fixes #1952764 [[Enhancement] command for automatically editing userdb]( https://bugs.launchpad.net/calibre/+bug/1952764 )
2021-12-01 10:45:40 +05:30
Kovid Goyal
e592768e83
DOCX Input: also remove & from font file names
2021-11-30 10:30:00 +05:30
Kovid Goyal
4fa03c00ff
Add logging for iframe ready event
2021-11-30 08:37:34 +05:30
Kovid Goyal
ba9e65df0f
Micro-optimization when reloading iframes
...
Just use a url query instead of first changing to 'about:blank'
2021-11-30 08:03:44 +05:30
Kovid Goyal
bd111dc365
No need to call init() in display book since the iframe is inited at construction time
2021-11-30 00:12:20 +05:30
Kovid Goyal
ce49820ffc
E-book viewer: Fix an occassional hang on startup at "Loading section". Fixes #1950673 [Opening books using the book reader fails to load.]( https://bugs.launchpad.net/calibre/+bug/1950673 )
2021-11-30 00:10:37 +05:30
Kovid Goyal
d8671c8e9e
better error essage when iframe receives unexpected encrypted message
2021-11-29 22:49:48 +05:30
Kovid Goyal
416fa04d3b
Make doubly sure the ready message is sent only once
2021-11-29 22:46:29 +05:30
Kovid Goyal
ee717920ba
Add names for all iframe clients
2021-11-29 22:28:39 +05:30
Kovid Goyal
61e2d4e175
EPUB 3 metadata: If the book contains a "subtitle" append it to the main title when reading metadata. Fixes #1950762 [Add subtitle to calibre title]( https://bugs.launchpad.net/calibre/+bug/1950762 )
2021-11-29 15:15:21 +05:30
Kovid Goyal
02e8bc631c
E-book viewer: Add opened books to the Windows Jump List automatically
2021-11-29 14:10:42 +05:30
Kovid Goyal
1dbbf5b73d
Fix #1952498 [[Enhancement - E-book viewer] Don't search for selection if it is a blanc space]( https://bugs.launchpad.net/calibre/+bug/1952498 )
2021-11-29 13:21:00 +05:30
Kovid Goyal
cb9d4c5416
string changes
2021-11-29 12:07:23 +05:30
Kovid Goyal
171e5f19e5
Add books dialog: When a non-book file type is added the next time the dialog is used, preselect the "All files" filter. Fixes #1952562 [Update default selection filter for manual format adds via GUI]( https://bugs.launchpad.net/calibre/+bug/1952562 )
2021-11-29 11:27:28 +05:30
Kovid Goyal
e80f16ddbf
DRYer
2021-11-29 09:56:15 +05:30
Kovid Goyal
b57bd18b12
Cleanup previous PR
2021-11-28 21:08:24 +05:30
Kovid Goyal
05352b0233
pep8
2021-11-28 20:21:30 +05:30
Charles Haley
0c3849411b
Add the ability to customise the toolbar library icon and window title icons on a per-library basis.
2021-11-28 11:41:23 +00:00
Christopher Hackett
2482845430
Stores: Remove WH Smith UK
...
Searches return 0 results.
On inspection eBooks no longer appear to be sold by WH Smith.
Instead product pages for books on WH Smith contain text such as
"Also available on eBook for £xx.xx. Click here to purchase from Rakuten Kobo"
with a deep link to the relevant kobo.com product page.
Additionally the landing page of Kobo on WH Smith also just links to Kobo.com.
As such it seems wise to delist this store.
2021-11-25 17:48:37 +00:00
Kovid Goyal
cee59dbf18
Fix #1950896 [No warning when deleting Saved search in Tag browser]( https://bugs.launchpad.net/calibre/+bug/1950896 )
2021-11-25 11:53:39 +05:30
Kovid Goyal
f0cdd690ea
Fix #1950899 [Renaming Saved seach to the same name displays a warning]( https://bugs.launchpad.net/calibre/+bug/1950899 )
2021-11-25 11:45:46 +05:30
Kovid Goyal
c45ef9be71
String changes
2021-11-25 10:45:19 +05:30
Kovid Goyal
e8a7bd2167
Get books: Update the Kobo plugin for website changes
...
Fixes #1952142 [Get Books times out connecting to Kobo](https://bugs.launchpad.net/calibre/+bug/1952142 )
2021-11-25 10:04:27 +05:30
Kovid Goyal
58b35b8923
Fix #1952034 [[Enhancement] Add a download icon to the Download metadata button in the Edit metadata window]( https://bugs.launchpad.net/calibre/+bug/1952034 )
2021-11-24 13:16:13 +05:30
Kovid Goyal
5adfacad4b
Fix #1950760 [[Enhancement] Move the Restore defaults button to the left of the Preferences window]( https://bugs.launchpad.net/calibre/+bug/1950760 )
2021-11-24 11:09:07 +05:30
Kovid Goyal
24a546be7b
Fix #1951637 [[Enhancement] Icon for Restore defaults button missing in Convert book window]( https://bugs.launchpad.net/calibre/+bug/1951637 )
2021-11-24 10:48:16 +05:30
Kovid Goyal
235b7e38c1
Fix inefficient regex that slows down a lot with certain input. Fixes #1951979 [Private bug]( https://bugs.launchpad.net/calibre/+bug/1951979 )
2021-11-23 21:26:18 +05:30
Kovid Goyal
1e12201376
String changes
2021-11-23 21:12:52 +05:30
Kovid Goyal
2d66fa4e68
Change some text to reflect the fact that stemming works for multiple languages not just English
2021-11-23 15:24:13 +05:30
Kovid Goyal
e99ab7e002
Dont import calibre.gui2 to build forms
2021-11-21 22:18:20 +05:30
Charles Haley
b73125904a
Reviewed template_dialog.py. I made cosmetic changes in some variable names to make the code easier (for me) to understand.
2021-11-20 10:52:34 +00:00
Charles Haley
de477900ac
Bug #1951673 : Clicking on field Search Mode resets previous field
...
Moved the mode field, which as a side benefit makes it more "important".
2021-11-20 10:09:15 +00:00
Kovid Goyal
5c67b4cf2f
Dont skip html transform test on CI
...
Arch now has html5-parser 4.10
2021-11-20 15:11:32 +05:30
Kovid Goyal
4e727166f5
More PyQt busywork
...
Qt::Modifier doesnt work in PyQt6 so move to Qt::KeyboardModifier
instead
2021-11-20 14:22:54 +05:30
Kovid Goyal
91d0542274
Fix error when running from source
2021-11-20 04:31:40 +05:30
Kovid Goyal
d9bdbbab7f
Replace use of the deprecated QDesktoWidget
...
It is removed in PyQt6
2021-11-19 22:01:50 +05:30
Kovid Goyal
7d85958b57
more meaningless pyqt busywork
...
PyQt6 makes exec_() no longer available as an alias for exec(). Just to
waste my time, I suppose.
2021-11-19 21:05:35 +05:30
Kovid Goyal
2ba2439e6f
Another PyQt enum waste of time
2021-11-19 19:58:51 +05:30
Kovid Goyal
9b09daa91b
delay import or template dialog
2021-11-19 19:56:42 +05:30
Kovid Goyal
3bff1f494f
Get rid of QRegExp
...
It is not available in PyQt6 and we anyway use the python re module
everywhere else
2021-11-19 19:36:18 +05:30
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