Commit graph

33484 commits

Author SHA1 Message Date
Kovid Goyal
786e738b1a
Track output position on every token 2021-03-12 18:48:45 +05:30
Kovid Goyal
1dc5178685
... 2021-03-12 17:57:52 +05:30
Charles Haley
3dd617a5f1 Fix some dropdown lists in Preferences / Searching. 2021-03-11 14:32:32 +00:00
Charles Haley
48c00fd9f7 Correct problem where the booklist doesn't refresh after changing/adding/deleting a vl name. Clearing the cache isn't sufficient.
This problem isn't related to the new cache. It has been there for a long time
2021-03-11 14:09:42 +00:00
Kovid Goyal
b852195a2c
Clear new VL cache when changing the set of virtual libraries 2021-03-11 19:31:15 +05:30
Kovid Goyal
b7fba0b40e
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #1918428 [Match books  infinite loop and then crash calibre](https://bugs.launchpad.net/calibre/+bug/1918428)
2021-03-11 18:23:13 +05:30
Charles Haley
080f9226d9 Bug #1918428: virtual_libraries() performance improvement 2021-03-11 12:34:50 +00:00
Kovid Goyal
b2551d986e
Fix #1918581 [Device View: Column header tooltip doesn't render italics](https://bugs.launchpad.net/calibre/+bug/1918581) 2021-03-11 12:29:40 +05:30
Kovid Goyal
21d24177c6
Fix #1905257 [ebook-viewer: "Not a unicode string" when searching table of contents](https://bugs.launchpad.net/calibre/+bug/1905257) 2021-03-11 09:19:26 +05:30
Kovid Goyal
da779f6f2f
Dont use eval() to generate ICU functions
Instead use the python3 nonlocal feature to generate cell functions
Performance is better and code is simpler.
2021-03-11 09:13:42 +05:30
Kovid Goyal
611613681f
Only use workaround if boundingrect is actuall negative topped 2021-03-11 08:15:58 +05:30
Kovid Goyal
2ad7fdc33f
E-book viewer: In paged mode, fix scrolling not working correctly when margins are set to zero. Fixes #1918105 [back keyboard shortcut not working [solved]](https://bugs.launchpad.net/calibre/+bug/1918105) 2021-03-10 22:54:10 +05:30
Kovid Goyal
f38ac80991
Add a reference to the bug 2021-03-10 22:39:31 +05:30
Kovid Goyal
537efd11b1
E-book viewer: Fix incorrect toc navigation in books that link the entries to inline tags that wrap block tags that span multiple pages. Fixes #1918437 [Book reader incorrectly go to table of contents items](https://bugs.launchpad.net/calibre/+bug/1918437) 2021-03-10 22:37:42 +05:30
Kovid Goyal
cbd1c42865
E-book viewer: Allow using shift+click to extend selections. Fixes #1918251 [E-book viewer selection broken](https://bugs.launchpad.net/calibre/+bug/1918251) 2021-03-10 13:19:35 +05:30
Kovid Goyal
8d244b4a45
string changes 2021-03-10 12:26:18 +05:30
Kovid Goyal
3a361db030
string changes 2021-03-10 10:23:13 +05:30
Kovid Goyal
6730e8f748
version 5.13.0 2021-03-10 08:18:41 +05:30
Kovid Goyal
f679aad9a3
Merge branch 'master' of https://github.com/cbhaley/calibre 2021-03-10 08:11:22 +05:30
Charles Haley
808f0bfd7a Fix regression in template language caused by commit bde8cd5: expression lists. The commit broke the arguments(), globals(), and set_globals() functions. 2021-03-10 01:04:51 +00:00
Kovid Goyal
12712b738a
string changes 2021-03-09 21:37:50 +05:30
Kovid Goyal
2eb5af2f8c
Also show aspect ratio of trim region 2021-03-09 21:06:23 +05:30
Kovid Goyal
feb2b11822
Edit metadata dialog: When trimming covers, show the size of the current trim region. Fixes #1917363 [[Enhancement] edit metadata - trim borders manually screen - display pixel dimensions of area selected for trim](https://bugs.launchpad.net/calibre/+bug/1917363) 2021-03-09 21:02:48 +05:30
Kovid Goyal
6ba3aba70d
Use a busy cursor so user knows something is happening while editor is loaded 2021-03-09 20:43:32 +05:30
Kovid Goyal
943f08e50e
When text is selected in the viewer select the same text when opening the book for editing 2021-03-09 20:39:34 +05:30
Kovid Goyal
1df4adac5c
Edit book: Add a command line flag to allow selecting the specified text when opening a book. 2021-03-09 20:27:16 +05:30
Kovid Goyal
f8d754de0d
Fix #1918053 [[Enhancement - Viewer] Remember history of URL to query when searching the internet](https://bugs.launchpad.net/calibre/+bug/1918053) 2021-03-09 17:28:07 +05:30
Kovid Goyal
0e9c3ea215
E-book viewer: Fix using keyboard to extend selection not turning pages 2021-03-09 14:20:44 +05:30
Kovid Goyal
4e839cbaf2
Change the shortcut used for editing in viewer to ctrl+d 2021-03-09 14:15:13 +05:30
Kovid Goyal
09627ab8dd
Viewer: Allow editing the current book by pressing ctrl+alt+e or adding a button for it to the viewer toolbar. Fixes #1917967 [Enhancement Request: ebook-viewer: Button to open book in editor](https://bugs.launchpad.net/calibre/+bug/1917967) 2021-03-09 14:06:59 +05:30
Kovid Goyal
0457fc1b9c
Fix #1918040 [[Enhancement] Show a warning before generating cover from metadata](https://bugs.launchpad.net/calibre/+bug/1918040) 2021-03-09 11:43:41 +05:30
Kovid Goyal
5aec473530
string changes 2021-03-09 09:19:56 +05:30
Kovid Goyal
302784a6d9
... 2021-03-09 09:02:21 +05:30
Kovid Goyal
3505d2afdd
Also allow double clicking to move items in editor toolbar prefs 2021-03-09 08:54:22 +05:30
Kovid Goyal
f99f136137
Merge branch 'master' of https://github.com/cbhaley/calibre 2021-03-08 20:49:12 +05:30
Charles Haley
9b4df77da5 More template language documentation improvements. 2021-03-08 15:16:13 +00:00
Kovid Goyal
69d70d9797
Fix #1918045 [[Enhancement] Double click to add/remove actions in Toolbars & menus preferences](https://bugs.launchpad.net/calibre/+bug/1918045) 2021-03-08 20:40:46 +05:30
Kovid Goyal
1d68b65b9c
Fix #1918050 [[Enhancement] Add clear buttons inside the text fields of the Smart device control screen](https://bugs.launchpad.net/calibre/+bug/1918050) 2021-03-08 20:24:28 +05:30
Kovid Goyal
379f0faf8f
Find EPUB cover should not raise an exception when spine is empty 2021-03-08 20:20:47 +05:30
Kovid Goyal
dc41e4e30e
Fix #1918054 [[Enhancement - Content server viewer] Clicking Esc to go back in the Highlight page doesn't work if one highlight is selected](https://bugs.launchpad.net/calibre/+bug/1918054) 2021-03-08 20:18:32 +05:30
Kovid Goyal
f463c1dd97
Fix a couple of bugs in msgfmt.py
The charset was not being detected because of comments and
some sphinx generated .pot files mark the first mesg as fuzzy
which was causing them to not be added, leading to the .mo file
not working. Fixes #1918073 [Translated strings not in added to the User Manual](https://bugs.launchpad.net/calibre/+bug/1918073)
2021-03-08 18:39:39 +05:30
Kovid Goyal
54c56b9d0e
String changes 2021-03-08 17:08:16 +05:30
Kovid Goyal
bc1fda2a1f
More work on fast CSS parser 2021-03-08 09:33:08 +05:30
Charles Haley
38c0b26af7 Bug #1918030: Manage tags shows wrong count. Actually should be "Manage tags doesn't use exact match searching". 2021-03-07 11:12:35 +00:00
Charles Haley
bde8cd5e65 1) Fix regression in template language: at some point in V5 the template language was changed to disallow using an expression_list as a parameter. This was allowed in previous major revisions.
2) Allow expression lists in parameterized expressions.
3) Correct the grammar in the documentation.
2021-03-07 11:01:50 +00:00
Kovid Goyal
508200f8e9
Start work on fast CSS transformer 2021-03-06 11:43:02 +05:30
Charles Haley
5531796d40 Improvements to the template documentation 2021-03-05 14:38:57 +00:00
Kovid Goyal
5d126692f8
Fix #1917889 [carlibre epub reader got a bug](https://bugs.launchpad.net/calibre/+bug/1917889) 2021-03-05 19:38:18 +05:30
Kovid Goyal
b3a485b3ea
String changes 2021-03-05 09:13:26 +05:30
Kovid Goyal
6468dfd58d
... 2021-03-04 20:51:59 +05:30
Kovid Goyal
57650d92d1
Virtualize network access when running RS tests 2021-03-04 14:48:58 +05:30
Kovid Goyal
c851eaf67a
Fix #1917675 [[Enhancement] Strings not translatable in Plugins screen](https://bugs.launchpad.net/calibre/+bug/1917675) 2021-03-04 08:22:46 +05:30
Kovid Goyal
0035e8b65d
Better timing reporting for viewer in debug mode 2021-03-02 10:06:46 +05:30
Kovid Goyal
20f4e43044
PDF input: Replace U+2029 with spaces. See #1917386 (search & replace doesnt work with "newlines" in PDF to MOBI conversion) 2021-03-02 08:50:22 +05:30
Kovid Goyal
3b79e215e8
Port most remaining references to PyQt5 2021-03-01 16:22:00 +05:30
Kovid Goyal
dae94f64ee
Initial auto-conversion of PyQt imports 2021-03-01 14:38:47 +05:30
Kovid Goyal
203707010d
Shortcut module to ease importing PyQt names 2021-03-01 14:08:56 +05:30
Kovid Goyal
86b26119f0
Get rid of the workaround for cyrillic in the manual latex builder by not using a cyrillic example 2021-02-28 19:45:58 +05:30
Kovid Goyal
195f61d51a
Fix a regression in the previous release that broke sending of emails with text longer than 900 characters 2021-02-27 22:26:21 +05:30
Kovid Goyal
14ab03a101
pep8 2021-02-27 21:07:28 +05:30
Charles Haley
ac9c9d6ab5 Various improvements:
1) Changes to the template program language discussed in https://www.mobileread.com/forums/showthread.php?t=337668
2) General improvement of the template documentation, including documentation of the above changes. I looked at the changes using a markdown interpreter, but there might be problems exposed by generation of the web page.
3) Focus the program text box when opening the template dialog
4) Small changes to non-built-in template functions to improve performance
2021-02-27 14:20:10 +00:00
Kovid Goyal
eeb7672774
Edit book: Fix handling of file:// URLs when downloading external links 2021-02-27 10:01:50 +05:30
Kovid Goyal
4279f12183
version 5.12.0 2021-02-26 08:35:01 +05:30
Charles Haley
7a18631b8f Improvement to template function raw_field: an optional second argument providing the default if the field is None. 2021-02-25 16:04:56 +00:00
Kovid Goyal
1e6702fbc1
Speedup detection of character encoding when declaration is absent by using a native code implementation (ccharset) 2021-02-25 15:02:48 +05:30
Kovid Goyal
6222ec8a70
E-book viewer: When searching start the search from the current position, jumping to the first match at or after the current page. Fixes #1915773 [E-book viewer: searching should select the first match from the current postion, not from the beginning of the book](https://bugs.launchpad.net/calibre/+bug/1915773) 2021-02-25 09:06:13 +05:30
Kovid Goyal
c69f2851f3
String changes 2021-02-24 21:59:53 +05:30
Kovid Goyal
baea16dde4
Fix #1915775 [E-book viewer: Reset interface button needs a confirmation dialogue](https://bugs.launchpad.net/calibre/+bug/1915775) 2021-02-24 14:59:30 +05:30
Kovid Goyal
66a7213c27
Start searching at current spine item 2021-02-24 12:21:52 +05:30
Kovid Goyal
8799260f2f
string changes 2021-02-24 08:52:51 +05:30
Kovid Goyal
e47448de2e
Fix #1916653 [[Enhancement] Download news source by double clicking](https://bugs.launchpad.net/calibre/+bug/1916653) 2021-02-24 08:45:31 +05:30
Kovid Goyal
b0996fa9ad
Also fix saving in outbox 2021-02-23 22:09:03 +05:30
Kovid Goyal
98da158ca6
py3 compat when sending emails with non-ascii content 2021-02-23 21:44:11 +05:30
Charles Haley
a3c8793c6a Template language improvements:
1) added the infix compare operator 'in'. Usage: pattern in expression.
2) added the template function list_count_matching()
3) documentation for the above.
2021-02-23 10:14:20 +00:00
Kovid Goyal
76b0b6ad65
Add a context menu for categories in files browser to allow easily selecting/de-selecting all items in a category 2021-02-23 13:58:08 +05:30
Kovid Goyal
6e86fb0698
Edit book: File browser: Show total size of items in category when hovering over category with mouse 2021-02-23 11:01:33 +05:30
Kovid Goyal
dc9a13864b
E-book viewer: Fix selection popup bar sometimes going off screen when dragging up to the top line of text. Fixes #1915685 [ebook-viewer: Selection dialog may render partway off-screen](https://bugs.launchpad.net/calibre/+bug/1915685) 2021-02-23 09:57:30 +05:30
Kovid Goyal
6e73715533
Fix #1915768 [At one stage calibre welcome wizard only partially switches to the chosen language](https://bugs.launchpad.net/calibre/+bug/1915768) 2021-02-23 09:30:23 +05:30
Charles Haley
a12165e01b Template language changes:
1) add the possibility to specify a separator in a for statement.
2) add the template function list_remove_duplicates()
2021-02-22 11:43:19 +00:00
Kovid Goyal
f6235a1845
E-book viewer: Have the Table of Contents view automatically scroll to keep the chapter being read currently visible. Fixes #1916411 [Enhancement Request: ToC Behavior - Default to Current Chapter](https://bugs.launchpad.net/calibre/+bug/1916411) 2021-02-22 09:53:46 +05:30
Kovid Goyal
4d6d25a788
Merge branch 'master' of https://github.com/josdion/calibre 2021-02-21 19:07:35 +05:30
josdion
ac35a28c5e Remove EKnigi store
The web site e-knigi.net is down and domain is for sale.

Here is the messages from the web site owner:
Unfortunately, E-knigi.net no longer exists.
If anyone wants to buy the name, write to valtodorov at gmail.com
2021-02-21 13:33:15 +02:00
Kovid Goyal
8dd82b116e
pep8 2021-02-21 16:42:32 +05:30
Kovid Goyal
59d43a21c7
Merge branch 'master' of https://github.com/josdion/calibre 2021-02-21 16:38:54 +05:30
josdion
4fc67c81a4 Fix biblio store
Update html parser to be consistent with the current version of the site.
2021-02-21 12:55:40 +02:00
David
58a7565500 Add option for cover letterbox color to KoboTouch driver
Plus bump the supported firmware version the recent release.
2021-02-21 16:24:13 +11:00
Kovid Goyal
1609cec78c
Merge branch 'master' of https://github.com/cbhaley/calibre 2021-02-21 07:56:35 +05:30
Kovid Goyal
fb9930a439
Merge branch 'master' of https://github.com/josdion/calibre 2021-02-21 07:56:11 +05:30
josdion
7d9ebf412d Fix chitanka store
Update html parser to be consistent with the current version of the site.
2021-02-21 01:00:56 +02:00
Charles Haley
456adc2f2b Fix bug in template function subitems that allowed empty items in the returned value 2021-02-20 16:57:16 +00:00
Charles Haley
4cd6f6f1f5 Fix bug in template 'for' where loop variables are not stripped. 2021-02-19 13:26:53 +00:00
Yegor Timoshenko
2dd8ec37d2
Use an em dash to separate window title fragments
See the discussion here: https://bugzilla.mozilla.org/show_bug.cgi?id=1279647
2021-02-18 22:37:46 +03:00
Charles Haley
8fbb8df75c Add a new template function set_globals() that sets key:value pairs in the globals dict. Also slightly improve template language documentation. 2021-02-18 16:03:45 +00:00
Charles Haley
1af28bd3ba Add template function 'is_marked()' 2021-02-17 14:43:42 +00:00
Kovid Goyal
fa4713d1f3
Making editing bytes as text alway decode as UTF-8 instead of repr() 2021-02-16 09:07:49 +05:30
Kovid Goyal
fd77db2da5
Edit book: Fix editing of JavaScript files not working. Fixes #1915770 [editor creates mal-formed .js files](https://bugs.launchpad.net/calibre/+bug/1915770) 2021-02-16 08:38:29 +05:30
Kovid Goyal
52d048ece3
Viewer: Also send a load event to the window object after the iframe loads 2021-02-15 21:01:10 +05:30
Kovid Goyal
a2fe4afafe
Fix #1915630 [E-book viewer: "Save as" should prefill filename input field with the filename of the image](https://bugs.launchpad.net/calibre/+bug/1915630) 2021-02-14 11:13:14 +05:30
Kovid Goyal
2c2e6319c3
Merge branch 'master' of https://github.com/cbhaley/calibre 2021-02-13 18:56:49 +05:30
Charles Haley
fb2f184958 Two changes:
1) Add the alias "list_contains" to the "in_list" function so that naming is more consistent.
2) Add composite categories to valid grouped searches.
2021-02-13 13:08:27 +00:00
Kovid Goyal
69de7dea5f
... 2021-02-12 12:05:56 +05:30
Kovid Goyal
6752ccb57c
version 5.11.0 2021-02-12 08:33:01 +05:30
Kovid Goyal
24b37296d5
... 2021-02-11 17:37:37 +05:30
Kovid Goyal
7d5bb8524d
E-book viewer: Fix links with an href of # not working. Fixes #1915303 [Private bug](https://bugs.launchpad.net/calibre/+bug/1915303) 2021-02-11 08:51:21 +05:30
Kovid Goyal
dcf658b365
... 2021-02-09 23:49:03 +05:30
Kovid Goyal
2880e83d1a
Fix rpdb not working on py3 2021-02-09 23:44:53 +05:30
Kovid Goyal
a4cd28d746
... 2021-02-09 12:57:32 +05:30
Kovid Goyal
61efa239ec
Edit book: Add a tool to split the tag at the current cursor position,
creating a new tag with the same style and class attributes. To add the tool go to the Toolbars section in the editor preferences.  Fixes #1912958 [Feature: Merge/split paragraphs tool in ebook editor](https://bugs.launchpad.net/calibre/+bug/1912958)
2021-02-09 12:28:55 +05:30
Kovid Goyal
943c830859
E-book viewer: Show the URL when hovering over external links. Fixes #1911107 [Enhancement Request: ebook-viewer: Preview link destination](https://bugs.launchpad.net/calibre/+bug/1911107) 2021-02-08 23:02:51 +05:30
Kovid Goyal
0139ed13fe
E-book viewer: Hide the controls when clicking the back or forward buttons 2021-02-08 15:11:35 +05:30
Kovid Goyal
3746562f81
Fix #1914954 [ValueError: could not convert string to float: 'XV'](https://bugs.launchpad.net/calibre/+bug/1914954) 2021-02-08 11:33:15 +05:30
Kovid Goyal
2e0b2d1573
E-book viewer: When jumping to a highlight using the highlights panel, the back button should return to position before jump. Fixes #1914921 [Highlights are not integrated with the navigation history](https://bugs.launchpad.net/calibre/+bug/1914921) 2021-02-07 20:04:26 +05:30
Kovid Goyal
e723f56973
Fix #1914910 [Annotations Browser: Error when searching for punctuation](https://bugs.launchpad.net/calibre/+bug/1914910) 2021-02-07 19:49:35 +05:30
Kovid Goyal
973bd004d8
Fix #1914912 [[Enhancement] Go back to Preferences overview](https://bugs.launchpad.net/calibre/+bug/1914912) 2021-02-07 19:36:15 +05:30
Kovid Goyal
3b4bd3232a
... 2021-02-07 13:00:26 +05:30
Kovid Goyal
b4cad0b8fa
Google books metadata plugin: Use the https URL from the Google books feed
Fixes #1350 (Use HTTPS when downloading metadata via Google Books feed)
2021-02-07 12:44:43 +05:30
Kovid Goyal
7b52611fdd
Edit book: Allow Ctrl-clicking on class names to jump to the first style rule that matches the tag and class 2021-02-07 12:22:19 +05:30
Kovid Goyal
574d23ba28
E-book viewer: Fix incorrect tooltip when hovering over a section title in the search results list. Fixes #1914157 [E-book viewer: incorrect ToC hierarchy in search results mouseover tooltips](https://bugs.launchpad.net/calibre/+bug/1914157) 2021-02-06 11:22:55 +05:30
Kovid Goyal
d7cf8da401
Fix #1912746 [[Enhancement] Add items to Long Text Editor context menu](https://bugs.launchpad.net/calibre/+bug/1912746) 2021-02-06 08:05:37 +05:30
Kovid Goyal
1ddfed6b94
When using a Qt dialog with very long list of file type filters, hide the filter details. Needed on windows where the dialog becomes super long otherwise 2021-02-06 07:46:11 +05:30
Kovid Goyal
ae6c2a55d4
Bump version for dynamic loading of search_engines 2021-02-06 07:02:17 +05:30
Viktor Szakats
3a60807ca1
restore HTTPS when accessing cc.bingj.com
The certificate is corrected by now:
```
* Server certificate:
*  subject: CN=cc.bingj.com
*  start date: Jan 19 01:42:44 2021 GMT
*  expire date: Jul 19 01:42:44 2021 GMT
*  subjectAltName: host "cc.bingj.com" matched cert's "cc.bingj.com"
*  issuer: C=US; O=Microsoft Corporation; CN=Microsoft RSA TLS CA 01
*  SSL certificate verify ok.
```
2021-02-06 01:32:04 +01:00
Kovid Goyal
ccc1cad840
Add an All button 2021-02-05 20:53:20 +05:30
Kovid Goyal
7ecd365899
Content server: When browsing highlights for a book allow selecting multiple highlights to delete or export quickly 2021-02-05 20:49:19 +05:30
Kovid Goyal
abbed6e40c
Also set this as event for title_action to match action 2021-02-05 12:09:01 +05:30
Kovid Goyal
92d9c9055d
Forgot to pass event to container title bar callback 2021-02-05 12:02:32 +05:30
Kovid Goyal
12bee0e3cd
Content server: Re-use top bar styling for simple overlays 2021-02-05 11:49:46 +05:30
Kovid Goyal
d503102a31
Allow creating keyboard shortcuts to copy show and view URLs for selected books to clipboard. See #1912954 ([Enhancement] Library context menu and keyboard shortcuts for copying links) 2021-02-04 13:27:04 +05:30
Kovid Goyal
4b2c386c95
Make logic to get preferred view format re-useable 2021-02-04 13:21:12 +05:30
Charles Haley
7eb7cc4971 Bug #1914207: Average rating tooltip shows on hierarchical search Edit 2021-02-02 10:55:01 +00:00
Kovid Goyal
d4638fc663
... 2021-02-01 10:45:36 +05:30
Kovid Goyal
07aabb488b
calibredb: Add a timeout option to control the timeout when connecting to the calibre server 2021-02-01 08:31:33 +05:30
Kovid Goyal
787a2d55fd
Fix #1913888 [[Enhancement] Provide default button for search in TOC Edit](https://bugs.launchpad.net/calibre/+bug/1913888) 2021-01-30 22:30:52 +05:30
Kovid Goyal
985f9be4c9
... 2021-01-30 13:09:52 +05:30
Kovid Goyal
ccf69016df
Content server: Fix dragging selection handles not working in Safari. Fixes #1913854 [Cannot drag text selection handle on iOS touch screen devices](https://bugs.launchpad.net/calibre/+bug/1913854)
Apparently on safari to modify a selection its not enough to modify the
range, one has to set the range on the selection
2021-01-30 10:54:34 +05:30
Kovid Goyal
12707c9756
Make the saved search box a bit larger 2021-01-29 20:21:03 +05:30
Kovid Goyal
7e6efbd326
string changes 2021-01-29 07:57:07 +05:30
Kovid Goyal
fe1706dcc5
Fix #1913620 [[Enhancement] Book formats are in lower case for the Conversion output plugins](https://bugs.launchpad.net/calibre/+bug/1913620) 2021-01-28 22:24:52 +05:30
Kovid Goyal
861f9dda5f
... 2021-01-28 22:09:41 +05:30
Kovid Goyal
57d5585224
Add the button role 2021-01-28 08:53:07 +05:30
Kovid Goyal
1df2ed477e
Refactor shortcut definitions
Now they are directly keyed on runtime.is_standalone_viewer since that
is the canonical reference as to which mode we are running in.
2021-01-27 13:58:38 +05:30
Jiahao Li
75b426cc8f E-book viewer: Add shortcut option for syncing
Add a shortcut option for syncing last position and annotations. The option is
only added for non-standalone viewer mode since book syncing only applies
there. No default binding is assigned.
2021-01-27 00:25:44 -05:00
Kovid Goyal
7e9f2b9094
HTMLZ Output: Fix a regression in calibre 5 that broke creating HTMLZ documents when using the option to place CSS inline 2021-01-26 10:37:26 +05:30
Kovid Goyal
ce33ebe682
DRYer 2021-01-26 09:51:52 +05:30
Kovid Goyal
da53430e77
E-book viewer: Redesign the reference mode to also work on touch screens without a mouse. Now in reference mode paragraph numbers are displayed for all paragraphs 2021-01-26 09:46:18 +05:30
Kovid Goyal
ce9d4e4122
Make author_to_author_sort useable without tweaks 2021-01-23 09:12:16 +05:30
Kovid Goyal
9e1f28cbd4
... 2021-01-22 20:54:05 +05:30
Kovid Goyal
3d202a730a
Conversion: Fix regression in 5.10 that broke conversion when inserting metadata and using custom long text columns 2021-01-22 20:03:24 +05:30
Kovid Goyal
bfc9a8d5c5
version 5.10.0 2021-01-22 07:56:39 +05:30
Kovid Goyal
5ab0639d1f
py3 compat 2021-01-22 07:55:59 +05:30
Kovid Goyal
daefabde4c
String changes 2021-01-21 21:40:34 +05:30
Kovid Goyal
8f38ba50e1
pep8 2021-01-21 20:43:52 +05:30
Charles Haley
45349d9c38 Improvements to the template editor dialog
1) Make the dialog scrollable.
2) Add rows where a developer can put more fields while maintaining alignment.
3) Allow passing in a dictionary of formatter functions, allowing the developer to temporarily add new functions.
4) Adjust some sizes to make the dialog scroll more nicely
2021-01-21 14:36:43 +00:00
Kovid Goyal
c116933db8
Edit book: Remove unused CSS: Fix selectors that dont match from CSS rules containing multiple selectors not being removed. Fixes #1904350 [merged CSS, editor does not remove unsed names](https://bugs.launchpad.net/calibre/+bug/1904350) 2021-01-21 16:58:08 +05:30
Kovid Goyal
4b3ac510bf
E-book viewer: Highlight all currently visible ToC nodes, not just the first. See #1912003 (E-book viewer: at some circumstances incorrect ToC entries get highlighted) 2021-01-21 11:05:10 +05:30
Kovid Goyal
309cecad1c
E-book viewer: Fix scrolling with two fingers on touchpad on macOS not smooth. Fixes #1911218 [Scrolling with built-in trackpad of MacBook Pro on macOS very unsmooth](https://bugs.launchpad.net/calibre/+bug/1911218)
On macOS swiping fast tends to scroll along both axes simultaneously
2021-01-21 08:21:55 +05:30
Kovid Goyal
f92439fe6b
Move tests into separate module
Avoids parsing the test code on every import of a very central module
2021-01-21 05:54:51 +05:30
Kovid Goyal
6dc39a511a
Add a new tweak under "Author sort name algorithm" to optionally recognize common surname prefixes such as von, van, de etc.
Merge branch 'author-sort' of https://github.com/madphysicist/calibre
2021-01-21 05:49:58 +05:30
Joseph R. Fox-Rabinovitz
4391ef0b0e Added "invert" method to tests 2021-01-20 12:45:15 -05:00
Joseph R. Fox-Rabinovitz
f699b436a0 Added config key author_use_surname_prefixes and tests 2021-01-20 12:31:35 -05:00
Kovid Goyal
b0555e1cfe
pep8 2021-01-20 21:18:49 +05:30
Kovid Goyal
e19e08ecc4
Insert metadata: Allow showing identifiers such as ISBN in the jacket page template 2021-01-20 20:05:28 +05:30
Kovid Goyal
3f8403ca84
Conversion: Insert metadata: Allow hiding entries in the jacket template when they are not present in the metadata. 2021-01-20 19:35:07 +05:30
Kovid Goyal
eeb609f983
... 2021-01-20 14:19:25 +05:30
Kovid Goyal
588b5683f0
string changes 2021-01-20 13:53:35 +05:30
Kovid Goyal
65766fdff2
Fix #1909251 [Enhancement Request: Tag Manager - Copy nonexistent filters to Add field](https://bugs.launchpad.net/calibre/+bug/1909251) 2021-01-20 13:28:44 +05:30
Kovid Goyal
58b4fd3fe3
Fix add columns screen going back to main prefs when launched from column header context menu. Fixes #1910929 [Enhancement Request: Preferences: Inconsistent behaviour of Discard button](https://bugs.launchpad.net/calibre/+bug/1910929) 2021-01-20 13:21:41 +05:30
Kovid Goyal
c86bcede66
Fix #1910883 [can't automatically scroll down the list of icon rules](https://bugs.launchpad.net/calibre/+bug/1910883) 2021-01-20 13:12:05 +05:30
Kovid Goyal
1c12b0efe6
Bulk metadata edit: Add a new control to compress the cover image files for all selected books. Fixes #1911888 [Editing an ePub's internal cover should update its metadata cover](https://bugs.launchpad.net/calibre/+bug/1911888) 2021-01-20 12:32:19 +05:30
Kovid Goyal
48e36065a4
PDF Output: When converting fixed layout input documents fix anchors inserted for navigation sometimes being rendered as blue boxes. Fixes #1911466 [Private bug](https://bugs.launchpad.net/calibre/+bug/1911466) 2021-01-19 21:25:02 +05:30
Kovid Goyal
0727fb7793
calibre-server --manage-users: Add a scriptable interface calibre-server --manage-users -- help. Fixes #1912337 [[Enhancement] Add parameters for executing actions programatically from calibre-server --manage-users](https://bugs.launchpad.net/calibre/+bug/1912337) 2021-01-19 20:39:53 +05:30
Kovid Goyal
991e61af32
E-book viewer: Move read aloud popup bar to the bottom of the screen in flow mode. Fixes #1911470 [Read Aloud toolbar covers text](https://bugs.launchpad.net/calibre/+bug/1911470) 2021-01-19 19:33:36 +05:30
Kovid Goyal
3be5856df5
Bulk metadata download: Fix series number not being changes if the series is the same as the existing series 2021-01-19 18:20:49 +05:30
Kovid Goyal
54d57c6748
Add support for the CB7 comic file file format
Fixes #1912212 [Add support for CB7 and CBA file format](https://bugs.launchpad.net/calibre/+bug/1912212)
2021-01-19 13:33:45 +05:30
Kovid Goyal
eae5ff6d88
E-book viewer: Fix a regression that caused non-HTML descriptions to not be displayed in the metadata page 2021-01-19 09:24:34 +05:30
Charles Haley
e195687859 Also make saved search recursion checking case insensitive. Raise the 'recursion limit' to 10. 2021-01-18 10:12:26 +00:00
Kovid Goyal
15e8980cb2
E-book viewer: Allow adding a button to the selection bar that copies the currently selected text along with a calibre:// URL to show the text in the book. See #1912070 ([Enhancement] Additional access to copying Go To URL location link) 2021-01-18 13:14:22 +05:30
Kovid Goyal
9032d92954
E-book viewer: Add keyboard shortcuts to copy the current location to the clipboard. Fixes #1912070 [[Enhancement] Additional access to copying Go To URL location link](https://bugs.launchpad.net/calibre/+bug/1912070) 2021-01-18 11:21:45 +05:30
Kovid Goyal
447f366839
DRYer 2021-01-18 10:49:50 +05:30
Kovid Goyal
0bdaf44cfb
py3 compat for mtp on unix error reporting 2021-01-18 08:04:44 +05:30
Kovid Goyal
05776164d0
Merge branch 'master' of https://github.com/cbhaley/calibre 2021-01-17 19:35:18 +05:30
Charles Haley
cfbff3d98f New template function: field_exists() 2021-01-17 13:56:55 +00:00
Charles Haley
b7c4fcd711 Enhancement: allow template functions add() and multiply() to take a variable number of arguments. 2021-01-17 13:56:28 +00:00
Kovid Goyal
c577025037
pep8 2021-01-17 19:19:05 +05:30
Kovid Goyal
e3cde00f98
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #1912074 [Enhancement Request: Increase size of Edit Saved Search](https://bugs.launchpad.net/calibre/+bug/1912074)
Fixes #1912081 [Saved searches are case-sensitive](https://bugs.launchpad.net/calibre/+bug/1912081)
2021-01-17 19:16:57 +05:30
Charles Haley
aec0185f0c Show template function type in the template editor's function list. 2021-01-17 11:27:42 +00:00
Charles Haley
9df7d7ead9 Enhancement #1912081: make saved search lookup case insensitive. 2021-01-17 11:09:31 +00:00
Charles Haley
9c0fabff25 Enhancement #1912074: make the saved search editor multiline. 2021-01-17 10:59:15 +00:00
Kovid Goyal
9546557ec9
String changes 2021-01-17 05:46:35 +05:30
Joseph R. Fox-Rabinovitz
efe490b1b7 Added unit tests for author sort function 2021-01-15 12:47:44 -05:00
Joseph R. Fox-Rabinovitz
b1ecfe1fdf ENH: Added surname prefixes to author sort
If an author last name is preceded by von, van, di, la, le, da, de, etc. include that in the last name
2021-01-15 08:21:40 -05:00
Charles Haley
e6922b9983 Inline the formatter function contains() for better performance. 2021-01-15 11:56:23 +00:00
Kovid Goyal
93aed4db7a
Also add a test for AP based date formatting 2021-01-14 20:15:55 +05:30
Kovid Goyal
6daa33600d
E-book viewer: Fix clock being displayed in 24 hr format on some systems even though system locale is set to use 12 hr format. 2021-01-14 20:13:14 +05:30
Kovid Goyal
b657953478
Dont rely on the arguments of the activated signal as they are unknown in PyQt6 2021-01-14 03:15:39 +05:30
Kovid Goyal
e4cce88002
Dont use deprecated QApplication.fontMetrics() 2021-01-13 18:35:35 +05:30
Kovid Goyal
1d89aa737a
Fix detection of missing speech-dispatcher on linux 2021-01-12 07:15:49 +05:30
Kovid Goyal
e91ebda5e8
When detecting plugin zip safety dont use a hardcoded list of native code extensions 2021-01-11 07:19:25 +05:30
Kovid Goyal
31a1ce8d4a
Fix #1910904 [[Enhancement] Use a Cancel button instead of a Discard button](https://bugs.launchpad.net/calibre/+bug/1910904) 2021-01-10 16:42:34 +05:30
Guido Falsi
fc9a480cd4 Use python 3.7 compatible syntax.
The := operator was introduced in python 3.8. I don't think making calibre incompatible with previous python versions is worth the use of the new operator here.

FreeBSD at least uses python 3.7 by default and this would cause problems in providing calibre to users, and require them to custom compile software to get it.
2021-01-09 11:44:07 +01:00
Kovid Goyal
986408809c
Bulk metadata edit: Fix regression that inverted the meaning of the case sensitivity setting in the Search & replace tab 2021-01-09 06:25:30 +05:30
Kovid Goyal
78a001b335
calibredb list: Fix incorrect output when redirecting to file
py3 compat, caused by mix of text and binary output streams.
2021-01-09 06:08:51 +05:30
Charles Haley
84b0c4a318 Bug #1910662: Composite column shows as one string 2021-01-08 10:27:31 +00:00
Kovid Goyal
b33ea2fcd3
Add a reference to Qt bug for mediaplaypause 2021-01-08 14:40:37 +05:30
Kovid Goyal
8eb56f4e1d
version 5.9.0 2021-01-08 08:32:31 +05:30
Kovid Goyal
f3e5461d00
Remove ctypes based sendfile wrapper since os.sendfile is available in py3 2021-01-07 10:39:59 +05:30
Kovid Goyal
2b08beb226
Fix #1909314 [[Enhancement - Content server] Delete book by pressing Delete key on the Book details page](https://bugs.launchpad.net/calibre/+bug/1909314) 2021-01-06 18:57:49 +05:30
Kovid Goyal
54c6c6e3d7
Add a download button to the export highlights dialog 2021-01-06 15:09:49 +05:30
Kovid Goyal
13d829c74a
Add links in markdown export for browser viewer 2021-01-06 14:57:06 +05:30
Kovid Goyal
fa85e012dd
Content server viewer: Allow exporting all highlights
Fixes #1909529 [Browser viewer: Highlight management](https://bugs.launchpad.net/calibre/+bug/1909529)
2021-01-06 14:38:14 +05:30
Kovid Goyal
a30d4be28d
Merge branch 'patch-1' of https://github.com/madphysicist/calibre 2021-01-06 08:34:05 +05:30
Joseph Fox-Rabinovitz
61b88e5288
Code formatting issue in comment
Original rendering here: https://manual.calibre-ebook.com/plugins.html#catalog-plugins
2021-01-05 16:24:40 -06:00
Kovid Goyal
ed0f7e9684
Add an alias fo rthe play/pause toggle key 2021-01-05 16:22:07 +05:30
Kovid Goyal
78e967edc6
py3 compat: Fix diff on non HTML files not working 2021-01-05 08:42:25 +05:30
Kovid Goyal
a6840fb462
pep8 2021-01-04 22:15:31 +05:30
Charles Haley
a2411ef0a0 Add hierarchical search to the tag browser context menu 2021-01-04 15:57:03 +00:00
Kovid Goyal
23f0086ab7
Cancel any speech in progress when hiding the selection_bar after triggering the speak aloud action on it 2021-01-03 22:29:51 +05:30
Charles Haley
a965d310f0 Enhancement #1909892: Add context menu actions to search and filter items in Category editor 2021-01-03 12:32:29 +00:00
Charles Haley
746ae8e37a Add new template function list_split. Fix python 3 imcompatibility getting source code from the built-in functions class. 2021-01-03 11:13:59 +00:00
Charles Haley
5a3d65a132 Add a method to db.cache to return the size of a format stored in the database table 'data'. With this method one can compare the real size to the stored size. 2021-01-02 15:07:21 +00:00
Kovid Goyal
c4c1c5f841
Amazon metadata download: Ignore ' and " in titles when matching results 2021-01-01 19:38:42 +05:30
Charles Haley
b2f9b48a05 Bug #1909786: add drop-down list to preference "Tag browser: Categories not to partition" 2021-01-01 10:51:23 +00:00
Charles Haley
4131efa270 Fix for Bug #1909738: Strangeness with hierarchical searches
Because it is useful I decided to continue to permit hierarchy for saved searches even though behavior will be a bit strange.

The following behaviors exist and will not be changed.
- Renames will not rename all items in the the hierarchy.
- Intermediate nodes that aren't 'real' searches will not offer the rename option.
- Drag & drop is disabled.

In addition I changed the behavior of "Add search" in "Manage saved searches". It used to act like a rename if the target name already exists, throwing away the old search expression. It now refuses.
2020-12-31 12:51:07 +00:00
Kovid Goyal
1eb424dcb7
Edit book: Errors in loading third party plugins should not prevent editor from starting 2020-12-29 21:52:30 +05:30
Charles Haley
e62a22f000 Bug #1909507: Enhancement: permit disambiguation of columns such as formats and #formats in rules editor. 2020-12-29 09:17:29 +00:00
Charles Haley
d61540d065 Bug #1909442: saved searches don't work in the device view 2020-12-28 16:16:29 +00:00
Kovid Goyal
94d68db7af
LRF Output: Fix conversion broken in calibre 5 when font size rescaling is active. Fixes #1909224 [Error al convertir a LRF](https://bugs.launchpad.net/calibre/+bug/1909224) 2020-12-28 19:46:13 +05:30
Kovid Goyal
568e9851a4
py3 compat 2020-12-28 19:28:31 +05:30
Kovid Goyal
fe1886393b
Use a monotonic clock 2020-12-27 19:26:10 +05:30
Kovid Goyal
ca6e78008d
Merge branch 'master' of https://github.com/davidfor/calibre 2020-12-27 18:04:37 +05:30
Kovid Goyal
51a21c3887
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #1909380 [Tag Browser: Drag & drop doesn't give VL prompt](https://bugs.launchpad.net/calibre/+bug/1909380)
2020-12-27 18:03:40 +05:30
Kovid Goyal
1bec527eb7
Ensure timeouts are respected by all fetches in BasicNewsRecipe 2020-12-27 18:02:48 +05:30
Charles Haley
74e6a375fc Enhancement #1909380: make drag & drop give VL prompt 2020-12-27 11:31:30 +00:00
David
28e36d7efd Fix handling of subtitle option in KoboTouch driver 2020-12-27 22:24:37 +11:00
Kovid Goyal
0e19f6a399
Use an up-to-date UA when downloading news 2020-12-27 12:56:45 +05:30
Kovid Goyal
e0ec185ea2
Improve random user agent selection
Dont hardcode a default user agent. Also, when picking randomnly pick
according to relative popularity.
2020-12-27 11:12:47 +05:30
Kovid Goyal
18a3d945c6
Get common user agents from the calibre website logs 2020-12-27 10:21:14 +05:30
Kovid Goyal
ffdf794246
Allow re-use of method to get any URL 2020-12-27 10:18:01 +05:30
Charles Haley
10e227c70c Bug 1909339]: Enhancement Request: Rules editors: Button to open icons folder 2020-12-26 10:14:53 +00:00
Charles Haley
530238b2fb Bug #1909332: Duplicated rules appear to overwrite next item in list Edit
Actually the duplicated rule was exchanged with the last rule.
2020-12-26 09:22:12 +00:00
Kovid Goyal
d7a7dd755f
show-book -> view-book in markdown highlights export 2020-12-26 14:33:29 +05:30
Charles Haley
a92ee3ecb5 Bug #1909258: Fix for tags-like composite columns "shown in the tag browser" not considered categories in quickview. 2020-12-25 21:11:38 +00:00
Charles Haley
301844ae38 Bug #1909293:Composite tag-like column: problem with case 2020-12-25 20:38:47 +00:00
Kovid Goyal
c071bb5be1
Fix dropping files onto book details causing an error if the confirmation dialog is disabled. Fixes #1909291 [Cannot add additional formats via drag-and-drop in 5.8.1](https://bugs.launchpad.net/calibre/+bug/1909291) 2020-12-25 18:30:06 +05:30
Kovid Goyal
673f779b4c
Forgot to bump version number 2020-12-24 17:23:48 +05:30
Kovid Goyal
16b46e5acd
Another evaluate() call site that needed global_vars 2020-12-24 16:52:36 +05:30
Kovid Goyal
27f11a66ea
Fix #1909217 [Error saving books on disk](https://bugs.launchpad.net/calibre/+bug/1909217) 2020-12-24 16:49:45 +05:30
Kovid Goyal
2ccfa5140e
Validate saved value 2020-12-24 16:44:59 +05:30
Kovid Goyal
4a3f3dd7d2
Forgot to fix restore defaults in previous commit 2020-12-24 16:25:11 +05:30
Kovid Goyal
619665880a
Fix #1909197 [cannot change layout settings in calibre 5.8, especially from single page to multiple page view.](https://bugs.launchpad.net/calibre/+bug/1909197) 2020-12-24 16:16:45 +05:30