Kovid Goyal
8f69cf6874
...
2020-10-09 12:12:02 +05:30
Kovid Goyal
0e7f455242
Allow plugins to be imported from calibre
...
Might be used in third-party plugin code
2020-10-09 12:08:56 +05:30
Kovid Goyal
67ab770a77
Import plugins from calibre.constants not calibre
2020-10-09 12:08:02 +05:30
Kovid Goyal
299fa4d060
Remove unused code
...
unicode is native for strftime and argv on Windows python 3
2020-10-09 10:29:38 +05:30
Kovid Goyal
6c63e47443
Remove unused code
2020-10-09 10:03:39 +05:30
Kovid Goyal
99e86bbe29
Windows: Fix some MOBI files with non-BMP characters not being processed correctly. Fixes #1898894 [Conversion from epub to mobi en v5.2]( https://bugs.launchpad.net/calibre/+bug/1898894 )
...
lxml passes unicode to libxml2 as UCS-4 when non-BMP chars are present,
and libxml needs iconv to process UCS4 (god knows why) which was not
being built on windows.
2020-10-09 09:29:07 +05:30
Kovid Goyal
5af81d105c
Release the GIL when calling ReadFile
2020-10-08 16:55:26 +05:30
Kovid Goyal
d4ea5f726d
Switch to using winutil for auto-reload on windows
2020-10-08 16:44:22 +05:30
Kovid Goyal
1754c87256
Add a couple more win32file functions
2020-10-08 15:01:25 +05:30
Kovid Goyal
0341bf40db
Wrap the basic win32 file apis
...
Want to eliminate use of pywin32 gradually
2020-10-08 09:45:16 +05:30
Kovid Goyal
003a22b47c
E-book viewer: Fix scrolling past the end of chapter boundaries not working in books that have negative margins
2020-10-08 07:23:33 +05:30
Kovid Goyal
8757d4e775
Fallback to default pattern if even version0 fails to compile
2020-10-07 20:11:19 +05:30
Kovid Goyal
9e0f63cb2f
version 5.2.0
2020-10-07 08:38:47 +05:30
Kovid Goyal
019f1c8fb2
Also fallback to version 0 regexps for reading metadata from filenames
...
Fixes #1898739 [Viewer fail opening books](https://bugs.launchpad.net/calibre/+bug/1898739 )
2020-10-06 20:23:55 +05:30
Kovid Goyal
45f9e9318c
Browse annotations: Add a check box to restrict the displayed annotations to only the books currently selected in the calibre library. Fixes #1897354 [Enhancement Request: Annotation browser and VLs]( https://bugs.launchpad.net/calibre/+bug/1897354 )
2020-10-06 12:42:23 +05:30
Kovid Goyal
0f4b491083
Implement restrict_to_book_ids for annotation fetching
2020-10-06 10:38:16 +05:30
Kovid Goyal
dc13fdcde0
Re-organize code
2020-10-06 09:56:03 +05:30
Kovid Goyal
85ba1a3cc1
Add a shirtcut (Shift+V) to open the last read book. Fixes #1897336 [[Enhancement] Add shortcut to view last viewed book]( https://bugs.launchpad.net/calibre/+bug/1897336 )
2020-10-06 09:41:20 +05:30
Kovid Goyal
47b1bcb4d9
Viewer: Fix toolbar show controls button not working when no book is open. Fixes #1898598 [Ebook viewer: unhandled error when clicking "Show viewer controls"]( https://bugs.launchpad.net/calibre/+bug/1898598 )
2020-10-06 06:07:21 +05:30
Kovid Goyal
4ff8481b83
Viewer: Fix incorrect positioning of context menu for viewer toolbar. Fixes #1898577 [Right-clicking on toolbar - menu appears in corner of desktop]( https://bugs.launchpad.net/calibre/+bug/1898577 )
2020-10-05 21:32:52 +05:30
Kovid Goyal
56a9b9529a
MOBI Input: Fix regression that broke reading of some documents
...
Apparently lxml.html is super fragile on Windows with python 3, so
fallback to html5-parser when it barfs.
2020-10-05 16:00:54 +05:30
Kovid Goyal
02095fcf81
Bulk metadata search and replace: Fallback to V0 regex mode for expressions that dont parse with V1
2020-10-05 08:06:57 +05:30
Kovid Goyal
0e09b58efb
Fix a regression that broke application of plugboards when sending by email
2020-10-04 21:31:42 +05:30
Kovid Goyal
0b386c3cc7
ODT Input: Fix a regression that broke conversion of ODT files with footnotes. Fixes #1898441 [Problem converting from .odt to .epub]( https://bugs.launchpad.net/calibre/+bug/1898441 )
2020-10-04 18:26:51 +05:30
Kovid Goyal
e6c651c5bf
...
2020-10-04 18:08:49 +05:30
Charles Haley
df3c64eb92
Don't use the search cache if the search involves dates.
2020-10-04 12:15:14 +01:00
Kovid Goyal
1c3c302e1a
String changes
2020-10-04 14:57:02 +05:30
Kovid Goyal
5bf8e926b6
Viewer: Fix mouse wheel not working while selection bar is visible
...
Fixes #1898413 [Viewer: some mouse actions with popup bar displayed should be changed](https://bugs.launchpad.net/calibre/+bug/1898413 )
2020-10-04 12:01:41 +05:30
Kovid Goyal
8bd7109300
Viewer: Fix selection popup bar not always close to mouse when ending select-to-drag
2020-10-04 11:23:25 +05:30
Kovid Goyal
2e0a2a6e33
String changes
2020-10-04 11:12:32 +05:30
Kovid Goyal
c283bb5620
String changes
2020-10-04 09:51:29 +05:30
Kovid Goyal
b8e69e1bc1
Fix calibre-server not exiting on ctrl+c on Windows
2020-10-04 09:23:06 +05:30
Kovid Goyal
2d4c770d3d
String changes
2020-10-04 08:35:17 +05:30
Charles Haley
ec96f8f7fa
Minor string changes
2020-10-03 13:20:11 +01:00
Kovid Goyal
485a07aee4
Bump beta version
...
Fixes issue with UTF-8 BOM preventing some plugins from loading. Also
fixes issue with compiling RapydScript and therefore the server/viewer
when using CALIBRE_DEVELOP_FROM
2020-10-03 15:29:09 +05:30
Kovid Goyal
e258ae93bd
Content server OPDS feeds: Fix error if the metadata for a book contains particular unicode characters. Fixes #1897410 [Private bug]( https://bugs.launchpad.net/calibre/+bug/1897410 )
...
libxml's parser chokes on them on windows. Use my html5-parser instead.
2020-10-03 15:07:25 +05:30
Kovid Goyal
0e25387a9f
When loading code from plugins load as bytes
...
This is closer to how the python interpreter does it
2020-10-03 14:17:25 +05:30
Kovid Goyal
0d3a80e850
Remove UTF-8 BOM from .py files when loading from the zip plugin
2020-10-03 14:14:05 +05:30
Kovid Goyal
aab1d2268c
Make a beta release
...
The new plugin loading and bypy freeze code needs testing
2020-10-03 09:48:40 +05:30
Kovid Goyal
7a64067d72
...
2020-10-03 09:39:54 +05:30
Kovid Goyal
70ca16c3ef
Fix detection of packages in zipplugin
2020-10-03 09:36:56 +05:30
Kovid Goyal
2d9ac6aa54
Basic cleanups for the python template function merge
2020-10-03 09:18:18 +05:30
Kovid Goyal
7e577735ba
pep8
2020-10-03 09:07:11 +05:30
Kovid Goyal
927cf43a4c
Merge branch 'master' of https://github.com/cbhaley/calibre into master
2020-10-03 09:06:24 +05:30
Kovid Goyal
27584dc8a1
Delegate to bypy to tell us if we are running from develop
2020-10-03 09:05:37 +05:30
Kovid Goyal
6f44e1cc42
Clarify how to get help for format specific otions in calibredb catalog
2020-10-03 09:05:37 +05:30
Kovid Goyal
06a48034db
Remove workarounds for zipimport threading bug
...
No longer needed as the new bypy freezing code does not use zipimport
2020-10-03 09:05:37 +05:30
Kovid Goyal
fe478a2cee
Use the new bypy freezing code for windows build
2020-10-03 09:05:37 +05:30
Kovid Goyal
bbb050b77c
Modernize infra for loading plugins
...
Enable the new meta plugin finder and resource loading infrastructure from
python 3.7
2020-10-03 09:05:36 +05:30
Kovid Goyal
0c2b5e5b32
Add tests for ResourceReader implementation
2020-10-03 09:05:36 +05:30