Kovid Goyal
362597ac87
py3 compat: forgot to port oneinstance of ungettext
2019-12-17 18:13:12 +05:30
Kovid Goyal
d775ae3582
string changes
2019-12-17 08:50:20 +05:30
Kovid Goyal
034c22de8c
Viewer: In multiple pages per screen mode, When paging back to a chapter we have just paged forward from return to the exact position we left from in terms of number of blank trailing pages displayed. Fixes #1856472 [Scrolling backwards at section boundaries causes incorrect page display]( https://bugs.launchpad.net/calibre/+bug/1856472 )
2019-12-16 22:56:58 +05:30
Kovid Goyal
018d673023
Merge branch 'master' of https://github.com/roman-mkh/calibre
2019-12-16 19:44:31 +05:30
Roman Mukhin
bf6f617800
Added currency symbol for RUB
2019-12-16 15:07:16 +01:00
Roman Mukhin
8dddfb9c05
corrected handling with http response headers
2019-12-16 15:01:21 +01:00
Kovid Goyal
8c382e7e4f
...
2019-12-15 18:19:32 +05:30
Kovid Goyal
c7f8350eca
Fix error highlighting in search and replace tab of bulk metadata edit in dark mode
2019-12-15 18:09:25 +05:30
Kovid Goyal
e9780b2a35
Make colors used by python highlighter work with dark theme as well
2019-12-15 18:01:53 +05:30
Kovid Goyal
307680a019
Viewer: Add a setting under Preferences->Colors to control when the viewer will override all book colors or not.
2019-12-15 17:48:00 +05:30
Kovid Goyal
e9b09b0066
Viewer: Add a class to <body> indicating if we are using light or dark color scheme. Can be used in the user stylesheet
2019-12-15 16:42:01 +05:30
Kovid Goyal
4ea2bd2a90
Avoid un-needed conversion to hsv to check if a color is dark
...
The V is HSV is anyway defined as max(r, g, b)
2019-12-15 16:28:05 +05:30
Kovid Goyal
6ca7282fd9
Viewer toolbar: Add an action to toggle the inspector
2019-12-15 14:42:13 +05:30
Kovid Goyal
4b077904c0
Viewer: have the toolbar actions for the docks indicate visibility
2019-12-15 14:38:33 +05:30
Kovid Goyal
ba95c2b363
Conversion dialogs: Dont allow a single large pane to change the size of all other panes. Fixes #1856382 [Changing the Output format to PDF in the conversation settings changes the cover size in the window]( https://bugs.launchpad.net/calibre/+bug/1856382 )
2019-12-15 13:30:22 +05:30
Kovid Goyal
36dfc37887
Fix #1856384 [[Enhancement] Show metadata from the beginning]( https://bugs.launchpad.net/calibre/+bug/1856384 )
2019-12-15 12:29:09 +05:30
Kovid Goyal
b861197248
Unify reference mode icon
2019-12-15 11:03:28 +05:30
Kovid Goyal
7b22d7f51a
Viewer: Fix occasional skipping over a chapter when flick scrolling in flow mode
2019-12-15 10:53:41 +05:30
Kovid Goyal
5bf261244d
Viewer: Fix flick scrolling in flow mode jumping to next chapter. Fixes #1856398 [Unable to scroll on touchscreen in e-book viewer]( https://bugs.launchpad.net/calibre/+bug/1856398 )
2019-12-15 10:12:05 +05:30
Kovid Goyal
ae3208c606
Advanced search dialog: Fix an error when closing dialog if on the second tab and no field is focused
2019-12-15 09:18:14 +05:30
Kovid Goyal
3185b543de
Use share_open for server log files in preferences
2019-12-15 09:07:22 +05:30
Kovid Goyal
a3a2e8bd48
...
2019-12-14 11:31:02 +05:30
Kovid Goyal
537a27d098
macOS; Use transient scrollbars unless they are disabled in system preferences
2019-12-14 11:15:33 +05:30
Kovid Goyal
c139aac5ab
Code to get cocoa transient scroller setting
2019-12-14 10:29:09 +05:30
Kovid Goyal
ebba389a6a
Fix search highlight color in dark mode
2019-12-14 09:40:53 +05:30
Kovid Goyal
e5ee211dd1
String changes
2019-12-13 08:40:55 +05:30
Kovid Goyal
e1570706e1
version 4.6.0
2019-12-13 01:41:30 +05:30
Kovid Goyal
b509cfefbc
Fix #1856234 [Text under icons not shown in the Preferences for Edit book]( https://bugs.launchpad.net/calibre/+bug/1856234 )
2019-12-13 01:14:10 +05:30
Kovid Goyal
e89f8efb9c
Make file browser and toc view use window background in editor
2019-12-12 11:17:14 +05:30
Kovid Goyal
76de4ffe1c
Viewer: Fix max text width/height settings not being applied correctly on window resize. Fixes #1854211 [The text becomes very narrow when making the window smaller if a max weight is set]( https://bugs.launchpad.net/calibre/+bug/1854211 )
2019-12-12 10:38:51 +05:30
Kovid Goyal
9aa4a426e7
Fix #1855820 [Configure metadata download field sizes]( https://bugs.launchpad.net/calibre/+bug/1855820 )
2019-12-12 08:47:55 +05:30
Kovid Goyal
e9576e8559
Fix rendering of checkbox outlines in dark mode
2019-12-12 08:37:11 +05:30
Kovid Goyal
aa0da824a5
Dont draw ugly border line under editor tab bar in dark mode
2019-12-11 21:04:47 +05:30
Kovid Goyal
3d42f724f3
Fix #1855957 [[Enhancement] Increase Max. OPDS items per query]( https://bugs.launchpad.net/calibre/+bug/1855957 )
2019-12-11 11:49:47 +05:30
Kovid Goyal
ddbf868592
Fix toolbar extender button not visible in dark theme
2019-12-10 13:56:04 +05:30
Kovid Goyal
406944a17e
Fix icons in text edit widget toolbar for dark themes
2019-12-10 11:27:53 +05:30
Kovid Goyal
ade858c1de
Make various text formatting icons work better with dark themes
2019-12-10 11:17:32 +05:30
Kovid Goyal
04c2ccf6b2
py3 compat
2019-12-09 22:30:10 +05:30
Kovid Goyal
0c838d4a40
Turn on allowZip64 by default this matches python3 but not python2
2019-12-09 22:22:05 +05:30
Kovid Goyal
0fbc3cece6
Implement going to references in Go to...
2019-12-09 17:16:17 +05:30
Kovid Goyal
e6044fae91
Implement support for references with --open-at
2019-12-09 17:02:30 +05:30
Kovid Goyal
6a540b8b98
Cleanup passing of --open-at data to show_book
2019-12-09 10:31:12 +05:30
Kovid Goyal
f495ffc16c
Add a reference mode control to the viewer chrome
2019-12-09 09:49:58 +05:30
Kovid Goyal
7dea54d135
Add a button to toggel reference mode to the toolbar
2019-12-09 09:29:27 +05:30
Kovid Goyal
e1d9a25f81
Restore reference mode from the 3.x viewer
2019-12-09 09:05:28 +05:30
Kovid Goyal
d6262bbb90
Remove unused code
2019-12-09 00:14:43 +05:30
Kovid Goyal
68667f5f56
Fix no_activate_on_click style not delegating to the current style
2019-12-09 00:11:03 +05:30
Kovid Goyal
6fb8c25e89
Make toolbar separators stand out a bit more in dark themes
2019-12-08 23:10:32 +05:30
Kovid Goyal
7f991ad084
...
2019-12-08 21:59:16 +05:30
Kovid Goyal
3b50d8f280
Fix menu separators not visible in dark mode
2019-12-08 21:57:50 +05:30
Kovid Goyal
1713740406
set a property that can be accessed from C++ for dark mode
2019-12-08 21:35:40 +05:30
Kovid Goyal
c0655e782b
Make the text color consistent
2019-12-08 21:33:57 +05:30
Kovid Goyal
862463bc2b
Always use a lighter shade for current item hightlight
2019-12-08 21:04:56 +05:30
Kovid Goyal
d974b2f39c
Allow CALIBRE_USE_DARK_PALETTE override registry setting on windows
2019-12-08 20:40:44 +05:30
Kovid Goyal
0a1d4cfcbf
Color tweaks
2019-12-08 11:13:24 +05:30
Kovid Goyal
ad56467166
Define the dark theme link color in only one place
2019-12-08 09:11:56 +05:30
Kovid Goyal
0fdc70eac9
Fix tooltip bg in dark palette
2019-12-08 09:02:54 +05:30
Kovid Goyal
9c7f24805b
Only modify dark palette on macOS where we dont explicitly set the colors
2019-12-08 09:01:35 +05:30
Kovid Goyal
537fcd9021
Allow using an env var on linux for dark mode
2019-12-08 08:50:42 +05:30
Kovid Goyal
9d50e774b9
Only enable dark mode palette when using calibre style since it does not work with the system style
...
Also dont disable alternating row colors with dark palettes on windows,
since we can control the color.
2019-12-08 08:04:26 +05:30
Kovid Goyal
9d8ad144ff
DOCX Input: Fix incorrect font sizes for footnote references in paragraphs that have text with multiple font sizes. Fixes #1855403 [Private bug]( https://bugs.launchpad.net/calibre/+bug/1855403 )
2019-12-08 07:45:31 +05:30
Kovid Goyal
08ca34e735
DOCX Input: Avoid nested <sup> tags for footnote references
...
Also avoid empty <sup> or <sub> tags.
2019-12-08 07:44:03 +05:30
Kovid Goyal
935e7573ab
Add support for windows 10 dark mode
...
If dark mode is enabled in windows 10 under Settings -> Personalization
-> Colors then calibre will use dark colors for its interface. Note
that changing the setting will only take effect when calibre is
restarted.
2019-12-07 04:23:30 +05:30
Kovid Goyal
5774a6ef9a
Use the same ToC icon for viewer as for rest of calibre
2019-12-06 17:12:01 +05:30
Kovid Goyal
55ba61babc
Viewer: Improve metadata rendering. Fixes #1855163 [Show metadata in the same font size]( https://bugs.launchpad.net/calibre/+bug/1855163 )
2019-12-06 15:37:00 +05:30
Kovid Goyal
2d25f8d779
Log the user agent and keep it stable
2019-12-06 14:01:08 +05:30
Kovid Goyal
2e693b4156
Merge branch 'master' of https://github.com/davidfor/calibre
2019-12-06 07:24:29 +05:30
David
fac8c55cc6
Update supported Kobo firmware version
2019-12-06 07:38:40 +11:00
Kovid Goyal
14293ba36d
Content server: Remove un-needed narrow nbsp before titles in mobile view
2019-12-05 18:23:51 +05:30
Kovid Goyal
64adf22ac0
Fix azw3 conversion of entities failing on narrow python builds such as windows
2019-12-04 23:17:44 +05:30
Kovid Goyal
281ddb8678
Make the name of the html syntax highlighter module more explicit
...
Avoids name collisions with the stdlib html module in python3
2019-12-03 10:45:42 +05:30
Kovid Goyal
14819b4ec7
PDF Output: Fix the option to break long words at the end of lines not working since calibre 4. Fixes #1854349 [pdf-hyphenate no longer hyphenating pdfs]( https://bugs.launchpad.net/calibre/+bug/1854349 ) [pdf-hyphenate no longer hyphenating pdfs]( https://bugs.launchpad.net/calibre/+bug/1854349 )
2019-12-02 20:32:26 +05:30
Kovid Goyal
e757597971
Polish books: Add a tool to add or remove soft hyphens from the book text
2019-12-02 20:26:36 +05:30
Kovid Goyal
6625560e81
Make algorithm non recursive to avoid failure on deeply nested tags
2019-12-02 18:42:37 +05:30
Kovid Goyal
7f85f0b531
Implement hyphenation of HTML
2019-12-02 17:15:06 +05:30
Kovid Goyal
9d9cd957f2
Fix failing test
2019-12-02 15:15:31 +05:30
Kovid Goyal
a8cb5c96ba
Clear caches per test rather than per class
2019-12-02 14:56:35 +05:30
Kovid Goyal
1e5de81544
Function to hyphenate individual words, sans surrounding punctuation
2019-12-02 14:44:54 +05:30
Kovid Goyal
aa1f52460e
Function to remove surrounding punctuation
2019-12-01 20:03:18 +05:30
Kovid Goyal
c344ef0775
Fix #1854616 [[Enhancement] Add separator in Fonts preferences]( https://bugs.launchpad.net/calibre/+bug/1854616 )
2019-12-01 18:14:00 +05:30
Kovid Goyal
d6ee7238bb
Viewer: Auto-expand entries in the Table of Contents when viewing the corresponding location in the book.
2019-12-01 14:23:57 +05:30
Kovid Goyal
ccce39da50
Viewer: When creating a new bookmark ifthere is selected text use it as the default bookmark title. Fixes #1854611 [Feature request: Highlighter and Bookmark]( https://bugs.launchpad.net/calibre/+bug/1854611 )
2019-12-01 14:09:41 +05:30
Kovid Goyal
0abd0d88ee
Test cache usage
2019-12-01 13:40:29 +05:30
Kovid Goyal
cd4f231d74
Code to get path to dictionaries
2019-12-01 13:29:19 +05:30
Kovid Goyal
b16b5535bf
Implement mapping of locales to dictionary names
2019-12-01 10:50:32 +05:30
Kovid Goyal
ae3417cc5b
Forgot to actually rename the lzma package
2019-11-30 18:01:52 +05:30
Kovid Goyal
5c1b69f5b9
Add hyphen dependency
2019-11-30 17:58:57 +05:30
Kovid Goyal
b62a5af46c
Rename lzma module to calibre_lzma
2019-11-30 16:52:34 +05:30
Kovid Goyal
4a45f32357
Start work on libhyphen wrapper
2019-11-30 16:48:27 +05:30
Kovid Goyal
41791d1e4d
...
2019-11-30 13:25:05 +05:30
Kovid Goyal
9bd07a9b8f
Show image at natural size when unchecking fit image
2019-11-30 13:24:33 +05:30
Kovid Goyal
d867756bbb
Fix resizing behavior of user categories editor
2019-11-29 09:54:31 +05:30
Kovid Goyal
e38ed4bda3
String changes
2019-11-29 09:46:24 +05:30
Kovid Goyal
30ed603583
Fix #1854422 [[Enhancement] Center the imaga in View image window]( https://bugs.launchpad.net/calibre/+bug/1854422 )
2019-11-29 09:44:53 +05:30
Kovid Goyal
789a78ce39
Remove border from cover in conversion dialog as well
2019-11-29 09:25:09 +05:30
Kovid Goyal
e4ef69b78f
More vertical font merging typos
2019-11-29 09:17:42 +05:30
Kovid Goyal
51d434ecea
version 4.5.0
2019-11-29 02:54:00 +05:30
Kovid Goyal
08efb46599
PDF Output: Fix incorrect rendering if the input document has too many anchors. Fixes #1854345 [too many ids in input causes zoomed out converted pdf]( https://bugs.launchpad.net/calibre/+bug/1854345 )
2019-11-28 17:38:13 +05:30
Kovid Goyal
163b2dfd2d
Driver for the new PocketBook Inkpad X
...
Fixes #1854335 [Driver for PocketBook Inkpad X](https://bugs.launchpad.net/calibre/+bug/1854335 )
2019-11-28 16:44:56 +05:30
Kovid Goyal
08674935c1
Handle missing title a bit better
2019-11-28 16:38:44 +05:30
Kovid Goyal
8db03fd0c8
...
2019-11-28 14:07:44 +05:30
Kovid Goyal
246534e5e5
Fix #1853673 [[Enhancement] Remove frame around cover in the Edit metadata window]( https://bugs.launchpad.net/calibre/+bug/1853673 )
2019-11-28 14:03:32 +05:30
Kovid Goyal
d717e5d368
Viewer: And Enter as shortcut for find next match
2019-11-28 11:57:45 +05:30
Kovid Goyal
808856eabe
Edit book: Create @font-face rules when importing multiple font files into book automatically, similar to how it is done when importing a single font file.
2019-11-28 11:23:11 +05:30
Kovid Goyal
c091461b99
Dont delete toc pages if they empty PDF file
2019-11-28 10:52:42 +05:30
Kovid Goyal
fdc0c7cf7e
Fix a regression that could cause window layout settings to sometimes not be saved during shutdown
2019-11-27 09:13:15 +05:30
Kovid Goyal
c821f59818
Driver for the new Bookeen Diva HD
...
Fixes #1854063 [Driver for Bookeen Diva HD](https://bugs.launchpad.net/calibre/+bug/1854063 )
2019-11-26 22:13:13 +05:30
Kovid Goyal
6144b06e47
Fix O_NONBLOCK for self pipe on macOS
2019-11-25 09:23:20 +05:30
Kovid Goyal
b8aef51c97
Image viewing popup dialog: Add a checkbox to fit image to window. Fixes #1853671 [Open image in the viewer with local software]( https://bugs.launchpad.net/calibre/+bug/1853671 )
2019-11-24 21:24:13 +05:30
Kovid Goyal
6272c2b1eb
py3 compat
2019-11-24 08:27:54 +05:30
Kovid Goyal
86f972cde1
Handle not being able to decode plugin loading failure exceptions
2019-11-23 07:52:18 +05:30
Kovid Goyal
55e8d547af
Oops
2019-11-23 07:41:59 +05:30
Kovid Goyal
8d07d6bf55
PDF Output: Add an option to shift text horizontally on odd/even pages. Fixes #1853155 [PDF Output with even/odd page margins]( https://bugs.launchpad.net/calibre/+bug/1853155 )
2019-11-22 09:56:23 +05:30
Kovid Goyal
6ce63fcec9
API to get/set PDF page boxes
2019-11-22 09:10:22 +05:30
Kovid Goyal
3eb3d75bf5
Add bindings for getting/setting PDF page boxes
2019-11-22 08:51:49 +05:30
Kovid Goyal
f44b5e8c6f
version 4.4.0
2019-11-22 07:09:54 +05:30
Kovid Goyal
286efc792e
Viewer: When using the system color theme only override link colors in the book if the theme is dark. Fixes #1852990 [Viewer ignores color-property for links]( https://bugs.launchpad.net/calibre/+bug/1852990 )
2019-11-21 20:44:59 +05:30
Kovid Goyal
ee5dd52ec1
Fix compiler warning
2019-11-21 15:50:44 +05:30
Kovid Goyal
9f38f7e6ea
typo
2019-11-21 14:43:08 +05:30
Kovid Goyal
49d2f04a7e
Bulk metadata download review dialog: When clicking cancel ask for confirmation if some books have already been reviewed
2019-11-21 10:39:59 +05:30
Kovid Goyal
ab57033fcb
Viewer: The --open-at command line argument now allows matching on ToC hrefs as well as titles
2019-11-21 10:27:36 +05:30
Kovid Goyal
c1d6b7b85c
Viewer: Fix hang when using --open-at with single instance viewer and the specified location is already open. Fixes #1656573 [[Enhancement] viewer command-line parameter to go to ePub TOC entry/bookmark]( https://bugs.launchpad.net/calibre/+bug/1656573 )
2019-11-21 10:09:16 +05:30
Kovid Goyal
cd66cb007e
Fix #1853241 [Viewer: lookup icon should be a library]( https://bugs.launchpad.net/calibre/+bug/1853241 )
2019-11-21 09:39:22 +05:30
Kovid Goyal
c9530f9a34
Changing directory in render_book not needed as plumber does that for us
2019-11-21 09:20:07 +05:30
Kovid Goyal
30b8e1de84
Viewer: Fix opening .txt files in the standalone viewer leaving behind a temporary index.html file in the directory of the txt file. Fixes #1853232 [Viewing Text Files Creates an Index File]( https://bugs.launchpad.net/calibre/+bug/1853232 )
2019-11-21 09:16:21 +05:30
Kovid Goyal
d57626c043
Handle non-UTF-8 filenames in cache directory when expiring
2019-11-20 08:28:54 +05:30
Kovid Goyal
428957543c
Book details window: Show path to book in cover tooltip. Fixes #1853184 [[Enhancement] Show path to cover image when hovering]( https://bugs.launchpad.net/calibre/+bug/1853184 )
2019-11-20 07:21:49 +05:30
Kovid Goyal
ba31bc20bc
Reduce height of tooltip box in conversion dialog
2019-11-19 08:05:00 +05:30
Kovid Goyal
d266d7e379
py3.8 compat
...
See https://bugs.python.org/issue38828
2019-11-17 16:10:07 +05:30
Kovid Goyal
22cfc4f5b8
Fix #1852889 [[Enhancement] Show window size in pixels when changing Page layout preferences]( https://bugs.launchpad.net/calibre/+bug/1852889 )
2019-11-17 15:00:32 +05:30
Kovid Goyal
47e26f89bc
Fix #1852888 [Hiding toolbar by right clicking on it]( https://bugs.launchpad.net/calibre/+bug/1852888 )
2019-11-17 14:51:02 +05:30
Kovid Goyal
865b911be6
Book details popup window: Add Open with actions to context menu when right clicking the cover image. Fixes #1852626 [[Enhancement] Open image by double clicking on the cover]( https://bugs.launchpad.net/calibre/+bug/1852626 )
2019-11-17 12:37:25 +05:30
Kovid Goyal
882f454fba
py3: compat
2019-11-17 11:55:03 +05:30
Kovid Goyal
144d17ef68
Fix #1852866 [Button placed over text]( https://bugs.launchpad.net/calibre/+bug/1852866 )
2019-11-17 11:32:59 +05:30
Kovid Goyal
f41348a5e1
Viewer: Allow customizing what actions appear on the toolbar (Preferences->Miscellaneous->Customize toolbar). Fixes #1852017 [Rearrange the optional toolbar icons]( https://bugs.launchpad.net/calibre/+bug/1852017 )
2019-11-17 09:22:39 +05:30
Kovid Goyal
0f94cb092f
UI for customizing toolbar
2019-11-16 18:50:50 +05:30
Kovid Goyal
7d21239360
Refactor toolbar actions code to make the actions eventually configurable
2019-11-16 14:44:01 +05:30
Kovid Goyal
826d51a63f
Viewer: Ignore book prepare failure during shutdown
2019-11-16 08:06:57 +05:30
Kovid Goyal
74d6513287
Default title should start with #1
2019-11-15 11:07:31 +05:30
Kovid Goyal
d4dc80c9c4
Fix #1851908 [Suggest a name for the bookmark]( https://bugs.launchpad.net/calibre/+bug/1851908 )
2019-11-15 11:02:51 +05:30
Kovid Goyal
f825c7c4d6
PDF Output: Improve handling of images that do not fit on a page. Fixes #1852205 [Calibre Vers. 4, new Viewer print feature.]( https://bugs.launchpad.net/calibre/+bug/1852205 )
2019-11-15 10:45:03 +05:30
Kovid Goyal
9e8585faf1
Viewer: In paged mode break long text without spaces at arbitrary points instead of overflowing to the next page. Fixes #1852192 [long urls in footnotes are not hyphenated in the next line but instead to the next page]( https://bugs.launchpad.net/calibre/+bug/1852192 )
2019-11-15 10:03:28 +05:30
Kovid Goyal
72e8b008bf
Edit book: Check book: Mark empty id attributes in the OPF as errors. See #1852318 (Private bug)
2019-11-15 09:10:06 +05:30
Kovid Goyal
028241eb0e
Allow pressing the down arrow key to show the completion popup
...
Also have the enter key close the completion popup, applying any
selected completion first.
2019-11-14 15:47:04 +05:30
Kovid Goyal
55ca95bb34
Better implementation of setting current item on mouse motion in completion popups
...
Dont rely on the entered() signal since it is emitted even when the
mouse does not move but the list scrolls.
2019-11-14 15:23:39 +05:30
Kovid Goyal
ac758eb0cd
No focus for completion popup
...
Might fix issue with some windows computers and the popup
grabbing focus.
2019-11-14 15:07:34 +05:30
David
126e9971e5
Fix for https://bugs.launchpad.net/calibre/+bug/1830101
...
Had wrong database version for addition of ISBN column. Also missed Libra H2O in the names of supported devices.
2019-11-12 21:36:16 +11:00
Kovid Goyal
a268eb52d1
PDF Output: Fix an error when using fonts with vertical metrics. Fixes #1852036 [fail to convert azw3 to pdf in calibre 4.3]( https://bugs.launchpad.net/calibre/+bug/1852036 )
2019-11-11 09:27:27 +05:30
Kovid Goyal
bc0c9c1fcc
Viewer: Fix viewer flickering when scrollbar is enabled and the header/footer is too wide for the screen.
2019-11-10 23:28:50 +05:30
Kovid Goyal
b1dbedaab0
Remove unused code
2019-11-10 21:32:29 +05:30
Kovid Goyal
52750191f1
Dont spam server log with errors when timing out connections that never even get ready
2019-11-10 18:27:31 +05:30
Kovid Goyal
228453fb48
Also indicate if content server is running with HTTP or HTTPS
2019-11-10 17:58:07 +05:30
Kovid Goyal
ffab572a9e
Linux: Make some cache removal code robust against un-decodeable filenames in the cache directories
2019-11-10 17:42:22 +05:30
Kovid Goyal
a1cc1d8a9d
Viewer: Fix scrolling of panels in preferences causing artifacts. Fixes #1851933 [Buttom on the page is sometimes shown in the middle of the preferences]( https://bugs.launchpad.net/calibre/+bug/1851933 )
2019-11-10 17:13:38 +05:30
Kovid Goyal
c39f96fbed
Simplify code a bit
2019-11-10 16:56:13 +05:30
Kovid Goyal
07d5f721d4
Clear caches on book load
2019-11-10 13:06:45 +05:30
Kovid Goyal
390c83bf3d
Viewer: improve appearance of controls on small screens. Fixes #1851921 [Showing the settings on mobile device]( https://bugs.launchpad.net/calibre/+bug/1851921 )
2019-11-10 08:44:09 +05:30
Kovid Goyal
3411653498
Also move close button to left for simple overlays
2019-11-10 08:27:07 +05:30
Kovid Goyal
4b11f99cd8
Move close button in viewer preferences to left to match the rest of the content server UI. Fixes #1851937 [The close button placement]( https://bugs.launchpad.net/calibre/+bug/1851937 )
2019-11-10 08:17:46 +05:30
Kovid Goyal
cb12614467
String changes
2019-11-10 08:11:57 +05:30
Kovid Goyal
bc5166d99a
Improve formatting of preferences button box on small screens. Fixes #1851930 [Large Reset button in the Viewer settings]( https://bugs.launchpad.net/calibre/+bug/1851930 )
2019-11-10 08:06:19 +05:30
Kovid Goyal
263bb0ce88
Viewer: Fix restoring user stylesheet to default not being applied until a viewer restart
2019-11-10 07:30:38 +05:30
Kovid Goyal
6ec980c99f
string changes
2019-11-09 15:30:12 +05:30
Kovid Goyal
5fbfe3fb36
Viewer: Add a shortcut (Ctrl+F11) to toggle the toolbar
2019-11-09 09:07:20 +05:30
Kovid Goyal
ce81764353
Remove unused code
2019-11-09 08:25:12 +05:30
Kovid Goyal
e94f9fd04a
Viewer: Do not wait for loading of <link> tags that are not stylesheets. Fixes #1851814 [Link tag with url results in slow loading]( https://bugs.launchpad.net/calibre/+bug/1851814 )
2019-11-08 16:34:42 +05:30
Kovid Goyal
2ebf0f589d
version 4.3.0
2019-11-08 06:48:06 +05:30
Kovid Goyal
c0acccde24
Viewer/Content server: Fix history for completion popups such as search bars not being stored correctly. Fixes #1847976 [feature request: viewer 4 search history as in viewer 3]( https://bugs.launchpad.net/calibre/+bug/1847976 )
2019-11-08 06:43:25 +05:30
Kovid Goyal
caad54863b
Improve performance when polishing large numbers of books in a large library by debouncing Tag browser refreshes
2019-11-07 19:35:18 +05:30
Kovid Goyal
481013d23f
pep8
2019-11-07 14:52:14 +05:30
Kovid Goyal
fe066ce2d6
Conversion: CSS selectors with unknown pseudo-elements should not match any tags. See #1827700 (Private bug)
2019-11-07 14:15:46 +05:30
Kovid Goyal
f6087f7929
Micro-optimization
2019-11-07 10:42:06 +05:30
Kovid Goyal
e25d26a628
Micro-optimization
...
Also dont use plain asserts in tests
2019-11-07 10:36:08 +05:30
Kovid Goyal
2d41f863b7
pep8
2019-11-07 09:59:27 +05:30
Kovid Goyal
054752d956
...
2019-11-07 09:53:48 +05:30
Kovid Goyal
9e1bbdf5b4
Fix #1849939 [When changing language in installer it doesn't change the default installation directory.]( https://bugs.launchpad.net/calibre/+bug/1849939 )
2019-11-07 09:21:26 +05:30
Jim Miller
cc64a6d76b
Add right-click copy link for identifiers and author links in book details.
2019-11-06 20:32:22 -06:00
Kovid Goyal
61c67430da
...
2019-11-06 14:41:24 +05:30
Kovid Goyal
9950856380
When cleaning viewer cache remove all but the newest entry for a particular book path
2019-11-06 14:36:25 +05:30
Kovid Goyal
953a1d7573
...
2019-11-06 13:58:00 +05:30
Kovid Goyal
2da1f63821
Ensure worker process is killed on viewer exit
2019-11-06 07:19:58 +05:30
Kovid Goyal
bcc9f16df2
Duplicates dialog: Sort sub-list of matching books already in calibre by author for easier inspection. Fixes #1851386 [[enhancement] sort authors per title in duplicated window after import]( https://bugs.launchpad.net/calibre/+bug/1851386 )
2019-11-06 07:10:46 +05:30
Kovid Goyal
abd6492691
Fix regression in calibre 4 causing shortcuts to not be displayed in context menus on windows because of stupidity from Qt https://bugreports.qt.io/browse/QTBUG-61181
2019-11-05 15:18:12 +05:30
Kovid Goyal
0dc03ed11e
Viewer: Change the default color scheme to "System" which matches the colors used by the rest of calibre/the operating system
...
Also means that if you switch color schemes while the viewer is running,
the viewer will follow along automatically.
2019-11-05 15:07:52 +05:30
Kovid Goyal
c46a5f8127
Reload book if set_path() fails for any reason
2019-11-05 10:11:01 +05:30
Kovid Goyal
bc83a98ddf
Viewer: When resizing and the resizing back to the old size ensure we return to the same page in paged mode. Fixes #1847507 [Viewer: when ToC is opened and closed, it doesn't return to same position]( https://bugs.launchpad.net/calibre/+bug/1847507 )
2019-11-05 09:55:15 +05:30
Kovid Goyal
5f9b7597d9
...
2019-11-05 08:24:35 +05:30
Kovid Goyal
e4f2cdf947
Book details panel: Fix removal of identifiers via right click not working
2019-11-04 20:02:53 +05:30
Kovid Goyal
91e2b16deb
Content server: Fix conversion of comics not working. Fixes #1847017 [WebUI conversion failed for all comic cbz/cbr format, GUI works fine]( https://bugs.launchpad.net/calibre/+bug/1847017 )
...
Could not launch non simple workers from within a simple worker. Now
fixed.
2019-11-04 17:46:45 +05:30
Kovid Goyal
8723d0ee27
Fix #1849958 [[Enhancement] Go back to book library by clicking Esc on server]( https://bugs.launchpad.net/calibre/+bug/1849958 )
2019-11-04 15:55:37 +05:30
Kovid Goyal
92b60c87c4
Fix #1850922 [[Enhancement] Make the buttons the same size]( https://bugs.launchpad.net/calibre/+bug/1850922 )
2019-11-04 15:15:45 +05:30
Kovid Goyal
2f76e4a540
Fix loading overlay messages not wrapping
2019-11-04 15:01:55 +05:30
Kovid Goyal
c6c7400105
Viewer: Add a keyboard shortcut ; to go to a book location or position
2019-11-03 18:23:41 +05:30
Kovid Goyal
95adbb3093
Hide toolbar in fullscreen mode
...
Mimics behavior of old viewer
2019-11-03 15:22:09 +05:30
Kovid Goyal
f362901931
PDF Output: Workaround for weird added anchor markup rendering with Qt 5.13.2
2019-11-03 15:10:36 +05:30
Kovid Goyal
b21132b428
cleanup
2019-11-03 14:59:11 +05:30
Kovid Goyal
580d0e2ba7
PDF Output: Fix links that go to destinations in the same file not working. Fixes #1849529 [Footnotes Broken When Converting From EPUB to PDF]( https://bugs.launchpad.net/calibre/+bug/1849529 )
2019-11-03 14:44:34 +05:30
Kovid Goyal
018bf4697b
...
2019-11-03 14:35:22 +05:30
Kovid Goyal
21de8718d7
Viewer: Fix changes to keyboard shortcuts not being applied until viewer is restarted. Fixes #1851045 [Change the shortcut for word lookup does not work]( https://bugs.launchpad.net/calibre/+bug/1851045 )
2019-11-03 14:08:19 +05:30
Kovid Goyal
575a6ea121
DOCX Input: Fix AlternateContent blocks rendering both choice and fallback sections. Fixes #1847365 [Private bug]( https://bugs.launchpad.net/calibre/+bug/1847365 )
2019-11-03 12:52:23 +05:30
Kovid Goyal
07b48787c9
DRYer
2019-11-03 12:16:01 +05:30
Kovid Goyal
dedea474c8
Ignore comments when getting text from serialized html
2019-11-03 09:58:35 +05:30
Kovid Goyal
47d3d16978
Forgot to port getting text from serialized tree to new serialization format
2019-11-03 09:43:52 +05:30
Kovid Goyal
cb8b181daa
Add a note to not change the viewer user agent
2019-11-03 07:19:46 +05:30
Kovid Goyal
c17411a39f
Only use Qt bug workaround in the viewer
2019-11-03 07:16:17 +05:30
Kovid Goyal
a179632356
Also reset headers/footers when resetting interface
...
And work Qt 5.13.2 bug in more places
2019-11-03 07:12:51 +05:30
Kovid Goyal
4e98478013
Viewer: Add a control to easily reset the interface to defaults
2019-11-02 15:08:46 +05:30
Kovid Goyal
47fc7c20b9
Add a setting to control toolbar visibility
2019-11-02 14:04:48 +05:30
Kovid Goyal
8bfe1b2598
Have only a single toolbar
2019-11-02 13:25:35 +05:30
Kovid Goyal
8f3991f877
macOS: Fix unable to re-arrange entries in the CSV catalog list. Fixes #1850918 [Generate catalog - field re-arrange deletes fields]( https://bugs.launchpad.net/calibre/+bug/1850918 )
2019-11-02 12:03:20 +05:30
Kovid Goyal
465cf583a5
...
2019-11-02 09:49:16 +05:30
Kovid Goyal
1b93d540b7
Update the ISO 639-3 language database
2019-11-02 09:21:28 +05:30
Kovid Goyal
6cccd18be8
Workaround for AJAX breakage on Qt 5.13.2
...
Fixes #1850975 [qt5-webengine 5.13.2 breaks ebook-viewer](https://bugs.launchpad.net/calibre/+bug/1850975 )
2019-11-02 07:24:10 +05:30
Kovid Goyal
8b7b9427bd
Better error message on AJAX call failure
2019-11-02 07:18:35 +05:30
Kovid Goyal
98c9a747d6
Viewer: Fix mouse wheel not working when mouse is over page margins. Fixes #1850845 [Viewer problems in full-screen mode]( https://bugs.launchpad.net/calibre/+bug/1850845 )
2019-11-01 11:18:04 +05:30
Charles Haley
e7cef6208c
Possible fix for #1850764 .
...
Assuming I guessed right on the column icon rule, the problem is that Polish doesn't clear the icon caches (or any other cache). I fixed this by adding a call to refresh_ids
after line 532. My problem is that I don't know what to do with the resulting lines 534-536. Do they need to stay? They are updating the book details pane. As far as I can tell, refresh_ids does not do that update, so the lines should stay. Do you agree?
2019-10-31 18:18:03 +00:00
Kovid Goyal
1c82942ed8
Forgot to also catch attributeerror for people running from source
2019-10-31 22:44:16 +05:30
Kovid Goyal
78d048c809
Implement a vertical toolbar
2019-10-31 15:29:59 +05:30
Kovid Goyal
a82a2724ce
Clear history only after first page of book is loaded
2019-10-31 10:50:59 +05:30
Kovid Goyal
6e2122df17
Clear history when loading a new book
2019-10-31 08:58:18 +05:30
Kovid Goyal
f1db7eab2f
Validate pathtoebook
2019-10-31 08:57:39 +05:30
Kovid Goyal
74d97ca869
Merge branch 'bash-completion' of https://github.com/eli-schwartz/calibre
2019-10-30 21:42:24 +05:30
Kovid Goyal
cba0a645a3
Fix typo
2019-10-30 20:48:52 +05:30
Eli Schwartz
53f30d9b7f
linux install: make file blobs start as unicode and get encoded while writing
...
Kovid wants to be cautious about future refactoring maybe trying to
modify them, and would prefer Things™ be unicode for flexibility when
using them, and only be bytes when actually write()'ing them.
See https://github.com/kovidgoyal/calibre/pull/1065#issuecomment-547893895
2019-10-30 10:34:50 -04:00
Kovid Goyal
8999853fc6
Allow HTML files to control how they rendered as covers
...
Fixes #1064 (Add render page tweak settings.)
2019-10-30 10:13:17 +05:30
Kovid Goyal
6dc53379ee
Make code to parse PDF page sizes re-useable
2019-10-30 09:42:07 +05:30
Kovid Goyal
21afbdc1d6
py3: Fix #1850571 [[Python3] kobo driver fails to load]( https://bugs.launchpad.net/calibre/+bug/1850571 )
2019-10-30 08:28:14 +05:30
Eli Schwartz
19c4636677
linux: install bash completion as individual components
...
In order to prevent bloating the shell with thousands of bash completion
specs, bash completions are lazy-loaded as soon as the command is first
tab-completed. This only works when the completionsdir contains a
filename with the same name as the command being completed; as a result,
calibre commands were able to be tab-completed only after 'calibre' was
first completed.
(This is unlike the zsh completions, which work when installed as a
single unified file because zsh builds a cache of all known compdefs,
and can load a completion on demand by reading from the file which
contains it.)
One common solution for programs which install several completions that
share common helper functions is to install the completions in one file,
and symlink all other command names to ensure the file is loaded by any
name. I've opted for the other solution, which is to install each
completion separately, since there is no common helper function to load
once and use everywhere. As a result, there are some small speedups to
be gained from only loading the completions being used.
The main change is reindenting a lot of code to no longer be in a global
context manager, but instead get written inside o_and_e/o_and_w.
It's also necessary to write each individual completion file to the
uninstaller, so do that.
2019-10-29 20:19:22 -04:00
Eli Schwartz
05d42e0fe8
linux install: make bash completion fully python3 compliant
...
This gets us closer to a state where polyglot hacks can be dropped, and
is necessary to make per-command completion files not require even more
hacks to proxy through polyglot_write.
2019-10-29 20:19:22 -04:00
Eli Schwartz
54d1d4deb1
bash-completion: also complete epub files for calibre-debug
...
This is actually probably somewhat more common than azw3. ;)
2019-10-29 20:19:07 -04:00
Kovid Goyal
55033c352d
Book details: Fix clicking on tags etc not generating exact match searches
2019-10-29 21:37:24 +05:30
Kovid Goyal
e00a8a945c
Forgot to handle comments when unserializing the new JSON format
2019-10-29 20:42:40 +05:30
Kovid Goyal
9f02e70317
Ensure root tag is in correct namespace
2019-10-29 18:24:39 +05:30
Kovid Goyal
ddb96c0eed
Fix html_as_json compilation under python2
2019-10-29 18:16:46 +05:30
Kovid Goyal
007f9fb087
Implement unserialization for the new serialization format
2019-10-29 18:06:33 +05:30
Kovid Goyal
b44c42a78c
...
2019-10-29 16:49:39 +05:30
Kovid Goyal
cb9b08b369
Dont serialize the default namespace on ever tag
2019-10-29 15:58:24 +05:30
Kovid Goyal
7687c3dab6
Move the iterate over elems loop in native code as well
2019-10-29 15:56:57 +05:30
Kovid Goyal
e33c18459a
Finish fast serialization of html to json
2019-10-29 12:50:26 +05:30
Kovid Goyal
4f03b0163f
Fix #1850196 [test_ssl fails with EE_KEY_TOO_SMALL]( https://bugs.launchpad.net/calibre/+bug/1850196 )
2019-10-29 01:05:59 +05:30
Kovid Goyal
fc7aee08df
Start work on fast html to json
2019-10-28 13:30:18 +05:30
Kovid Goyal
42f553e367
Content server: Fix download button not working with non-ebook formats. Fixes #1850078 [Calibre content server download issues]( https://bugs.launchpad.net/calibre/+bug/1850078 )
2019-10-28 08:58:47 +05:30
Kovid Goyal
3abe43d90c
Serialization: Dont mangle the name of epub namespaced tags
...
Also dont normalize boolean attributes
2019-10-27 13:07:19 +05:30
Kovid Goyal
78a97a0e37
Handle comments while getting char count
2019-10-27 12:52:12 +05:30
Kovid Goyal
a687204ec3
Speedup char counting when preparing book
2019-10-27 12:38:01 +05:30
Kovid Goyal
8582154527
Avoid calls to nlinks() in worker processes
2019-10-26 19:00:07 +05:30
Kovid Goyal
751c6942f9
Implement profiling of book preparation
...
Cache href_to_name() which was marked as a hot function by the profiler.
2019-10-26 18:19:32 +05:30
Kovid Goyal
60a1f637c5
Dont use multiple workers when rendering books for the server
...
Can lead to resource exhaustion and also is currently hanging for
reasons unknown
2019-10-26 17:28:55 +05:30
Kovid Goyal
b9cb195804
Viewer: Allow also using --open-at with book positions
2019-10-26 17:18:21 +05:30
Kovid Goyal
221d8f73a4
Fix failing test
2019-10-26 17:02:10 +05:30
Kovid Goyal
73c69949df
Rename goto_bookpos -> goto_cfi
2019-10-26 16:56:30 +05:30
Kovid Goyal
eeab136034
oops
2019-10-26 16:23:52 +05:30
Kovid Goyal
b582bbd520
Dont pre-launch workers, instead launch all workers once container is ready
...
Makes a significant difference in the time to open small books on
windows
2019-10-26 15:57:26 +05:30
Kovid Goyal
efb2d424a7
Improve error reporting
2019-10-26 15:39:21 +05:30
Kovid Goyal
facc4045d4
Use pipe worker for the main render process
2019-10-26 15:39:20 +05:30
Kovid Goyal
8972d63efd
...
2019-10-26 15:39:20 +05:30
Kovid Goyal
e3adac0c51
Forgot another use of container.bookmark_data
2019-10-26 15:39:20 +05:30
Kovid Goyal
2d2ee3f85c
Use one less worker process
2019-10-26 15:39:20 +05:30
Kovid Goyal
9a44ef24ff
Avoid re-parsing the OPF file in worker processes
2019-10-26 15:39:20 +05:30
Kovid Goyal
36d5dee047
Only pre-launch workers for books likely to benefit from parallelization
2019-10-26 15:39:20 +05:30
Kovid Goyal
29e20d8b59
Do not modify anything other than the titlepage when processing covers in EPUB files.
...
This speeds up book preparation by not requiring book wide link
replacement.
2019-10-26 15:39:19 +05:30
Kovid Goyal
75dd89722a
Viewer: Run the first read book preparation in parallel
2019-10-26 15:39:19 +05:30
Kovid Goyal
243144f3b9
Viewer: Add command line option to force reloading of all books
2019-10-26 15:38:06 +05:30
Kovid Goyal
f62e3a1bfc
Fix a crash in popup completion lists if the mouse is over the list and list is scrolled with the keyboard
...
Seems to be a regression in newer Qt versions, work around it.
2019-10-26 10:21:28 +05:30
Kovid Goyal
99ce8f9876
Viewer: Fix rare exception when navigating to a CFI. Fixes #1849775 [Exception in ebook viewer]( https://bugs.launchpad.net/calibre/+bug/1849775 )
2019-10-25 20:37:01 +05:30
Kovid Goyal
89eef411c4
Make custom font size panel more keyboard friendly
2019-10-24 14:15:57 +05:30
Kovid Goyal
4eeede8d25
...
2019-10-24 14:00:04 +05:30
Kovid Goyal
ead1b832f8
Viewer: Ignore failures printing console message when the viewer is launched with broken stderr. Fixes #1849612 [Bad file descriptor error in downloaded epub when opened from web browser]( https://bugs.launchpad.net/calibre/+bug/1849612 )
2019-10-24 13:56:44 +05:30
Eli Schwartz
cbf7bd49df
py3: use correct sort key for forcing an element to sort first
...
0 isn't a valid comparison for ICU sort_key() output and returns
tracebacks instead, but sort_key(0) is.
2019-10-24 01:42:48 -04:00
Kovid Goyal
a3dbdf7875
More dark mode fixes
2019-10-23 20:40:07 +05:30
Kovid Goyal
a3dfc924e2
Amazon metadata: Fix failure to get published date from audible book pages. Fixes #1849400 [traceback when searching amazon.com]( https://bugs.launchpad.net/calibre/+bug/1849400 )
2019-10-23 08:01:29 +05:30
Kovid Goyal
4509900b32
Another place that should react to palette changes
2019-10-22 23:34:06 +05:30
Kovid Goyal
a5493fd287
Another dark mode hover color fix
2019-10-22 09:34:16 +05:30
Kovid Goyal
23dcafa265
Viewer: Fix shortcuts preferences not being translated
2019-10-22 09:02:27 +05:30
Kovid Goyal
d744eb1a6d
Tag browser: Fix incorrect text color when using dark theme for hovered item
2019-10-21 14:57:37 +05:30
Kovid Goyal
3bf65b261e
Make icon theme cover file writing atomic
2019-10-21 08:43:37 +05:30
Kovid Goyal
efb6405ff1
Fix crash if canceling the icon theme download while covers are downloading
2019-10-21 08:16:32 +05:30
Kovid Goyal
39e28b3fdb
py3: Fix typo that broke changing icon_theme
...
Fixes #1848954 [TypeError when trying to change icon theme](https://bugs.launchpad.net/calibre/+bug/1848954 )
2019-10-21 07:45:49 +05:30
Kovid Goyal
f2750c00cb
Use monotonic instead of time.time()
2019-10-20 19:01:09 +05:30
Kovid Goyal
0822f1b6fa
Allow the simple worker process to be launched first and run later
2019-10-20 18:38:48 +05:30
Kovid Goyal
c0fa79d58b
Viewer: Fix non-ASCII content in stylesheets not being interpreted correctly. Fixes #1848858 [Issue with viewer: '::before']( https://bugs.launchpad.net/calibre/+bug/1848858 )
2019-10-20 16:52:00 +05:30
Kovid Goyal
06a6ef5612
PDF Output: When a link with a fragment points to a non-existent anchor link to the top of the file instead of not linking at all
2019-10-20 13:19:06 +05:30
Kovid Goyal
882d09b7e0
...
2019-10-20 11:21:30 +05:30
Kovid Goyal
70a2ec517e
oops
2019-10-20 11:00:36 +05:30
Kovid Goyal
459e30d82f
PDF Output: Fix standard svg fullscreen image markup not working
2019-10-20 10:58:24 +05:30
Kovid Goyal
ac2d44e4dc
Clean up fs_images
2019-10-20 10:46:44 +05:30
Kovid Goyal
579049affd
PDF Output: Fix some books with full screen images failing to convert.
...
Fixes #1848701 [Private bug](https://bugs.launchpad.net/calibre/+bug/1848701 )
2019-10-20 10:13:26 +05:30
Kovid Goyal
205754891e
Cleaner viewer launch
2019-10-19 13:42:29 +05:30
Kovid Goyal
5e611db7db
Compile HTML preproc regexps on demand rather than at import time
2019-10-19 10:51:27 +05:30
Kovid Goyal
e5dc6b4002
Make the regexps used for pre-processing pdftohtml output more efficient
2019-10-19 10:03:21 +05:30
Kovid Goyal
2014e6520e
...
2019-10-18 20:29:28 +05:30
Kovid Goyal
1b0efe04d9
Viewer: use absolute file paths for books passed in on the command line.
...
This allows them to be re-opened via the Open Books screen even if the
viewer was launched from a different starting directory.
2019-10-18 18:52:34 +05:30
Kovid Goyal
65c4f2afa2
version 0.4.2
2019-10-18 08:49:15 +05:30
Kovid Goyal
a3f4736b4b
Metadata jacket: Fix <br> tags in the comments not being rendered correctly when inserting the comments into the jacket page. Fixes #1848327 [Imported metadata is truncated in conversion]( https://bugs.launchpad.net/calibre/+bug/1848327 )
2019-10-18 08:39:52 +05:30
Kovid Goyal
99ebcf838a
Make color scheme changing more robust
2019-10-18 08:08:59 +05:30
Kovid Goyal
ca1b3967b0
Fix #1848515 [Faile to compile translation file on 4.1.0]( https://bugs.launchpad.net/calibre/+bug/1848515 )
2019-10-17 19:51:32 +05:30
Kovid Goyal
c0a9270f0f
...
2019-10-17 16:44:01 +05:30
Kovid Goyal
997333f0b0
DRYer
2019-10-17 16:37:20 +05:30
Kovid Goyal
51fddd3415
Move book extraction out of Container constructor
2019-10-17 16:34:48 +05:30
Kovid Goyal
15d9fc23f2
FB2 Output: Speed up conversion of images and handle external links
...
Merge branch 'fb2-fixes' of https://github.com/PalmtopTiger/calibre
2019-10-17 16:17:57 +05:30
Kovid Goyal
bf3236db9b
...
2019-10-17 15:30:16 +05:30
Kovid Goyal
f8e4485bc3
Add a class to the footnote container
2019-10-17 15:26:29 +05:30
Kovid Goyal
609c8a2215
Edit book: Apply the same workaround for use of 100% instead of 100vh in full screen SVG images as is used in the viewer. This should give the same rendering as in the viewer, leading to less confusion.
...
I of course dont like implementing this kind of hackery, but...
2019-10-17 13:12:08 +05:30
Kovid Goyal
27d3a28a1d
Viewer: Don't map epub:type to ARIA role
...
Apparently the EPUB committee has decided not to phase out epub:type
after all, so keep it around. This way it can be used in namespaced
CSS stylesheets.
2019-10-17 12:23:59 +05:30
Kovid Goyal
7369171e33
Move spinner implementation into native code
...
Should make it more performant and allow drawing without
holding the GIL. Note that have not currently replaced the
actual python implementation as that would break running from source.
Will do that after the next release.
2019-10-17 11:39:41 +05:30
Kovid Goyal
6abbf2221e
Viewer: Fix an error when processing a CFI with an invalid text offset. Fixes #1848320 [E-book viewer - Error: Unhandled error]( https://bugs.launchpad.net/calibre/+bug/1848320 )
2019-10-16 18:26:08 +05:30
Kovid Goyal
95da08c893
Clean up error handling
2019-10-16 14:29:45 +05:30
Kovid Goyal
c5a48c8ae5
Viewer: Fix scrolling backwards to previous chapter not always scrolling to the end of the chapter, if the chapter loads external resources. Fixes #1847818 [Private bug]( https://bugs.launchpad.net/calibre/+bug/1847818 )
2019-10-16 09:38:20 +05:30
Kovid Goyal
d87abcce3b
Viewer: Fix hang on books with namespaced attributes on <html> that do not belong to a known ebook namespace. Fixes #1846886 [New ebook viewer hangs on some large EPUB]( https://bugs.launchpad.net/calibre/+bug/1846886 )
2019-10-16 08:04:58 +05:30
Kovid Goyal
667d4586fd
Fix keyboard shortcuts not working after closing footnote popup
2019-10-16 07:14:31 +05:30
Kovid Goyal
04d3066594
Properly log FAKE_PROTOCOL failed requests
2019-10-16 07:12:37 +05:30
Kovid Goyal
df2756faa3
Sandboxed network requests must start with book/
2019-10-16 07:03:33 +05:30
Kovid Goyal
a8bd8f806d
Viewer: Fix search history not persisting between viewer restarts. Fixes #1847976 [feature request: viewer 4 search history as in viewer 3]( https://bugs.launchpad.net/calibre/+bug/1847976 )
2019-10-16 06:57:32 +05:30
Kovid Goyal
9e9a863e19
Output time to prepare book in debug mode
2019-10-16 06:30:09 +05:30
Kovid Goyal
3bf9fe32ac
Micro-optimization
2019-10-16 06:26:27 +05:30
Kovid Goyal
bf18b7273f
Filter out <base> when rendering books
2019-10-16 06:19:28 +05:30
Kovid Goyal
7ca139a210
Fix loading of non-virtualized resources when html files are not in the book root
2019-10-16 06:16:33 +05:30
Kovid Goyal
47e69cb545
Only run the link regex over virtualized resources client side
2019-10-16 04:44:29 +05:30
Kovid Goyal
8c3c634650
...
2019-10-16 04:36:32 +05:30
Kovid Goyal
adad3b4d1f
Viewer: Fix rendering of books with mathematics failing
2019-10-16 04:34:57 +05:30
Kovid Goyal
504501de7f
Revert workaround for Qt Bug that caused calibre to not start full screen in windows 10 tablet mode
...
The bug has been fixed as of Qt 5.8 https://bugreports.qt.io/browse/QTBUG-56831
And maybe calling restoreGeometry() fter show will help with offscreen
positioning in multi-monitor setups.
2019-10-16 04:14:56 +05:30
Kovid Goyal
9868c1cc5e
Force reload of all books on next update
...
There have been a lot of changes to the viewer code
2019-10-15 21:30:09 +05:30
Kovid Goyal
a046eb67ea
Viewer: Dont virtualise resources
...
We dont need to virtualize since we can override network access. This
should improve individual HTML file loading performance a bit. Since we
dont need to replace virtualised links and load content as blobs
2019-10-15 21:27:17 +05:30
Kovid Goyal
6fb1eab8d7
...
2019-10-15 19:12:12 +05:30
Kovid Goyal
a1171d71fb
Better solution to avoid flash of unstyled text
...
Simply hide the iframe while loading
2019-10-15 18:40:11 +05:30
Kovid Goyal
d9284fe6ab
Separate miscellaneous transforms from virtualization
2019-10-15 18:03:56 +05:30
Kovid Goyal
07bd906363
Make inline style transformation its own re-useable function
2019-10-15 18:01:50 +05:30
Kovid Goyal
be58929e95
Clean up progress_frac reporting in flow mode
2019-10-15 11:58:58 +05:30
Kovid Goyal
d66ed41ef9
Viewer: Fix scrolling by screenfuls not working correctly in flow mode
2019-10-15 11:10:59 +05:30
Kovid Goyal
a1d51ea302
Various improvements to dark mode support
...
Now colors can be dynamically changed and more widgets
react appropriately. Also use err/ok indicator colors
that work in both light and dark mode
2019-10-15 10:36:07 +05:30
Kovid Goyal
5469beeeb6
Disable alternating row colors when using dark color themes as the alternate color Qt picks is pretty bad
2019-10-15 06:42:34 +05:30
Kovid Goyal
5b431a8c6a
Forgot to remove content load delay for testing
2019-10-15 06:25:13 +05:30
Kovid Goyal
f38a7d15ba
EPUB 2 metadata: Fix obfuscated fonts being broken when updating metadata if the file uses Adobe font obfuscation and the identifier with the key has an uppercase UUID scheme name. Fixes #1847890 [dc:identifier line being removed from content.opf]( https://bugs.launchpad.net/calibre/+bug/1847890 )
2019-10-15 06:21:28 +05:30
Kovid Goyal
0bf8898ca4
Viewer: prevent flash of unstyled text while loading individual HTML files
2019-10-15 05:25:54 +05:30
Kovid Goyal
dfdf3e113a
Viewer: Fix right clicking on margins not showing controls
2019-10-15 05:00:07 +05:30
Kovid Goyal
c0c6872249
Add a note about tapping to show controls
2019-10-15 04:25:13 +05:30
Charles Haley
91d571ffc7
Display lookup key and description in tooltips for custom column widgets in edit metadata.
2019-10-14 22:50:30 +01:00
Kovid Goyal
7733877cc9
Better fix for dark mode button text being black
2019-10-14 21:36:12 +05:30
Kovid Goyal
9c4bd9de0e
macOS: Fix for text in drop down boxes being black in dark mode
2019-10-14 21:18:37 +05:30
Kovid Goyal
30731ad4e3
When using a dark color scheme fix the link color everywhere not just in the book details
2019-10-14 21:01:46 +05:30
Kovid Goyal
420b2f65b4
Edit book: Fix a crash when editing CSS files caused by a behavior change in Qt 5.13. Fixes #1846760 [ebook editor crashes out when scrolling]( https://bugs.launchpad.net/calibre/+bug/1846760 )
...
Apparently, if a QTextFormat.FormatRange object is garbage collected by
python it is no longer safe to use a previously stored reference to it
QTextFormat object
2019-10-14 17:26:51 +05:30
Kovid Goyal
12485fef82
Viewer: Fix error while viewing books with a comment after a <meta> tag. Fixes #1847977 [strange problem with epub in viewer 4]( https://bugs.launchpad.net/calibre/+bug/1847977 )
2019-10-14 15:46:46 +05:30
Kovid Goyal
989e4de74c
Viewer: Dont generate covers for books that dont have a cover
2019-10-14 10:32:38 +05:30
Kovid Goyal
b20f1d3fd7
Viewer: Treat the first image in comics as the cover
2019-10-14 09:34:58 +05:30
Kovid Goyal
7a9e791506
Code to render books without an auto-generated cover
2019-10-14 09:05:55 +05:30
Kovid Goyal
cc8918d470
Content server: When adding books and a duplicate is suspected provide more information about what books match the duplicate
2019-10-14 07:49:51 +05:30
Kovid Goyal
dec7a51650
py3 compat
2019-10-13 09:40:49 +05:30
Kovid Goyal
5679a596d0
Viewer: Preselect text in search box when showing it. Fixes #1847677 [New Viewer Search]( https://bugs.launchpad.net/calibre/+bug/1847677 )
2019-10-11 07:12:19 +05:30
Kovid Goyal
b17b3f358d
Content server: Fix detection of iOS on iPAD with iOS 13 which defaults to desktop mode
2019-10-09 20:31:39 +05:30
Kovid Goyal
4a3df07974
Viewer: If the book has no ToC try to generate one from headings, if any. Fixes #1847277 [Book viewer don't display content of fb2]( https://bugs.launchpad.net/calibre/+bug/1847277 )
2019-10-09 20:20:18 +05:30
Kovid Goyal
02a9da1681
py3 compat
2019-10-09 18:19:28 +05:30
Kovid Goyal
74303fe6d8
Viewer: Restore print to PDF functionality
2019-10-09 17:30:41 +05:30
Kovid Goyal
5ea542b13c
Viewer: Improve rendering of comics. No blank pages after large images or after every image in multi-page mode.
2019-10-09 16:41:05 +05:30
Kovid Goyal
871b0386de
Hide loading overlay on book load failure
2019-10-09 16:36:58 +05:30
Kovid Goyal
7b1e665186
Viewer: Show nicer error message for DRMed books
...
Fixes #1847468 [Error when reading DRM protected file from amazon](https://bugs.launchpad.net/calibre/+bug/1847468 )
2019-10-09 16:26:38 +05:30
Kovid Goyal
be146674de
Apparently layoutStyle() is deprecated
2019-10-09 15:01:32 +05:30
Kovid Goyal
83dd9c375d
Viewer: Fix a regression that broke creating new color schemes
...
Fixes #1847407 [Unhandled error when adding new color scheme](https://bugs.launchpad.net/calibre/+bug/1847407 )
2019-10-09 14:32:27 +05:30
Kovid Goyal
21df277dc4
Viewer: Make it easier to use the bookmarks panel with only keyboard. Fixes #1847423 [[Feature] Make ebook viewer keyboard-friendly]( https://bugs.launchpad.net/calibre/+bug/1847423 )
2019-10-09 14:11:23 +05:30
Kovid Goyal
e2ded28390
Viewer: Set the classes calibre-viewer-paginated and calibre-viewer-scrolling on the <body> tag in Paged and Flow modes. This allows the User styles to target these modes, if needed. Fixes #1847427 [Request New Feature]( https://bugs.launchpad.net/calibre/+bug/1847427 )
2019-10-09 13:06:14 +05:30
Kovid Goyal
6f09624280
When calculating CFI in paged mode go column-by-column from left to right and in each column start form midpoint and expand outwards
2019-10-09 12:55:45 +05:30
Kovid Goyal
1ca6398471
Viewer: Also show book position in Goto list
2019-10-09 11:39:49 +05:30
Kovid Goyal
4a074eb2bf
Viewer: Fix preferences under Scrolling behavior not being saved correctly
2019-10-09 11:34:34 +05:30
Kovid Goyal
3faa52ee58
Viewer: Allow jumping to a book position, in addition to a CFI location via Go to->Location
2019-10-09 11:23:22 +05:30
Andrey Efremov
3e680ac307
FB2 Output: Merge ifs
2019-10-09 12:18:31 +07:00
Andrey Efremov
c42d2db421
FB2 Output: Handle external links
2019-10-09 12:13:25 +07:00
Kovid Goyal
1cdface5ad
Viewer: Fix remembered position sometimes off by one page in paged mode. Fixes #1847322 [Viewer opens to wrong page]( https://bugs.launchpad.net/calibre/+bug/1847322 )
2019-10-09 09:13:09 +05:30
Kovid Goyal
5d272e86e8
...
2019-10-09 09:10:51 +05:30
Kovid Goyal
a79c83cb9e
Viewer: Fix scrollbar showing up on initial book open even if disabled in preferences. Fixes #1847323 [Scrollbar shows even when disabled on book open]( https://bugs.launchpad.net/calibre/+bug/1847323 )
2019-10-09 07:43:18 +05:30
Kovid Goyal
0605ec0054
Viewer: restrict max size of margin page turn indicators to 25px rather than 75px
2019-10-08 22:43:20 +05:30
Kovid Goyal
acad92b5a3
Viewer: Fix SVG images that use xlink:href to refer to paths not being displayed. Note you will have to reload the book to see the fix. Fixes #1847181 [Private bug]( https://bugs.launchpad.net/calibre/+bug/1847181 )
2019-10-08 21:45:14 +05:30
Kovid Goyal
32382b7b37
Simplify loading overlay implementation
2019-10-08 21:31:27 +05:30
Kovid Goyal
29899bec68
Remove unused code
2019-10-08 19:32:40 +05:30
Kovid Goyal
c264cf7a21
Viewer: Dont flash the home page before loading a book if a book has been specified
2019-10-08 19:23:08 +05:30
Kovid Goyal
96ebc4bda3
Prevent loading overlay from slowing actual loading
...
The python GIL means quick pre-emption is too costly
2019-10-08 18:34:20 +05:30
Kovid Goyal
5385df337e
Viewer: Fix ctrl+m shortcut not working on windows
2019-10-08 18:08:51 +05:30
Kovid Goyal
88ed3546be
Viewer: Use Qt for errors and the loading spinner
...
Makes the UI more consistent with the rest of calibre.
Also, change the initial loading text depending on
whether the prepared book is already cached or not.
2019-10-08 15:42:14 +05:30
Andrey Efremov
e7175e802b
FB2 Output: Remove section regexp what do nothing and rearrange regexps
2019-10-08 16:10:33 +07:00
Andrey Efremov
d7a4e10c60
FB2 Output: Revert some changes in regular expressions due to different behavior
2019-10-08 15:57:13 +07:00
Kovid Goyal
53ffa30767
...
2019-10-08 12:55:19 +05:30
Kovid Goyal
9fa545f5d9
Book details: Automatically adjust the link color when using a dark theme
2019-10-08 11:16:45 +05:30
Andrey Efremov
162d86429d
FB2 Output: Ignore case flag is not required because the writer outputs only lowercase tag names
2019-10-08 12:19:02 +07:00
Andrey Efremov
cb45766216
FB2 Output: Put line breaks between paragraphs on a separate line
2019-10-08 12:16:35 +07:00
Andrey Efremov
3b8d769128
FB2 Output: Simplify regular expressions
2019-10-08 12:16:06 +07:00
Andrey Efremov
abe408bc39
FB2 Output: Dedent the header to position it on the same level as the body
2019-10-08 11:16:51 +07:00
Kovid Goyal
551c868899
Add macOS specific shortcuts for changing font size
2019-10-08 08:25:44 +05:30
Kovid Goyal
fd2eb6b6d8
Content server; Fix regression that caused series name in book details view not not be blue to indicate it is clickable
2019-10-08 08:24:12 +05:30
Kovid Goyal
77f240a4d3
version 4.1.0
2019-10-08 07:03:45 +05:30
Kovid Goyal
3c1c90ba7d
Refactor the viewer preferences
...
DRYer and add restore default/OK/Cancel buttons to all preferences
sections
2019-10-07 22:23:40 +05:30
Kovid Goyal
a2708e8ea2
Viewer: Also apply changes to preferences when pressing esc as there are a number of people who do this and then complain that the preferences dont stick, and I have only so much patience
2019-10-07 20:16:08 +05:30
Andrey Efremov
8b11947309
FB2 Output: Keep contents of empty tags if they placed between words
2019-10-07 17:48:17 +07:00
Kovid Goyal
b1ef8dc2fb
Right clicking in overlays should act like Esc
2019-10-07 16:16:23 +05:30
Kovid Goyal
b7af7c7df6
Fix dragging scrollbar slider not working when mouse leaves window
2019-10-07 16:09:12 +05:30
Kovid Goyal
696a93deea
Edit book: Font manager: Fix removing embedded font failing if @font-face rule has no src. Fixes #1847052 [Unable to remove font from font manager]( https://bugs.launchpad.net/calibre/+bug/1847052 )
2019-10-07 16:01:22 +05:30
Kovid Goyal
9ee5bc98c5
Automatically adjust scrollbar colors to match current color scheme
2019-10-07 13:38:13 +05:30
Kovid Goyal
63fda1fed3
Implement the scrollbar inside the web view
...
This allows it to be hidden naturally when displaying the overlay.
Also gives nice control when clicking in the gutter to scroll by page
2019-10-07 13:18:24 +05:30
Andrey Efremov
0c1ca17192
FB2 Output: Annotation should be wrapped in p
2019-10-07 12:28:49 +07:00
Andrey Efremov
d02966423c
FB2 Output: Remove empty tags
2019-10-07 12:28:18 +07:00
Andrey Efremov
58352097ad
FB2 Output: Proper join of XML parts
2019-10-07 12:27:00 +07:00
Andrey Efremov
62757eadff
FB2 Output: Remove empty lines from header
2019-10-07 12:22:07 +07:00
Kovid Goyal
bb5b7b0253
Fix clicking on scrollbar arrows/gutter not scrolling text
2019-10-07 07:22:03 +05:30