Commit graph

26531 commits

Author SHA1 Message Date
Kovid Goyal
eddbcfc921 DRYer 2016-09-27 18:10:50 +05:30
Kovid Goyal
ef3463aa35 Windows: Run library restore ina separate process as on some windows machines, running it in the main process causes something in the system to lock the db file. 2016-09-27 11:41:00 +05:30
Kovid Goyal
dd2ef16429 Allow setting custom font size 2016-09-27 09:42:45 +05:30
Kovid Goyal
2e37c39300 ... 2016-09-27 08:39:02 +05:30
Kovid Goyal
e6bea96ff5 Do not reload book when changing color scheme 2016-09-27 08:37:27 +05:30
Kovid Goyal
28f8b0aa7b UI for changing font size 2016-09-27 08:12:08 +05:30
Kovid Goyal
ec8780bdff Micro-optimization 2016-09-27 06:46:51 +05:30
Kovid Goyal
d75e5323a9 Fix some news downloads in east asian languages not working because the truncation of article descriptions could cause invalid UTF-16 bytes in the string 2016-09-26 23:50:03 +05:30
Kovid Goyal
a3eee6a22a More strenuous cleaning for title/summary of feeds 2016-09-26 23:19:06 +05:30
Kovid Goyal
c2e11c6ce5 Start work on UI for font size 2016-09-26 18:13:37 +05:30
Kovid Goyal
a09f70ea22 ... 2016-09-26 18:09:35 +05:30
Kovid Goyal
eb43e53372 Get rid of an unneccessary #if 2016-09-26 16:24:03 +05:30
Kovid Goyal
4d8786e4e9 Make base font size a setting 2016-09-26 15:40:48 +05:30
Kovid Goyal
e3300f3123 ... 2016-09-26 13:27:25 +05:30
Kovid Goyal
6aefa3721a ... 2016-09-26 13:25:19 +05:30
Kovid Goyal
a08356207b Edit Book: On windows do not trigger shortcuts when using the right Alt (AltGr) key. This allows it to be used for entering special characters instead. Fixes #1627487 [bug in Polish mode of Calibre (error in keyboard shortcut)](https://bugs.launchpad.net/calibre/+bug/1627487) 2016-09-26 13:04:36 +05:30
Kovid Goyal
237e4a9455 Edit Book: Auto-add file extension when using the Save a Copy dialog if it is missing. Fixes #1627482 [save a copy as EPUB does not add automatically .epub extension to file](https://bugs.launchpad.net/calibre/+bug/1627482) 2016-09-26 11:28:25 +05:30
Kovid Goyal
1d6f518799 UI for max text width/height 2016-09-26 10:17:14 +05:30
Kovid Goyal
b62626ddd2 Couple of places where book.png was replaced incorrectly 2016-09-26 09:51:36 +05:30
Kovid Goyal
924caf3d68 UI for cols_per_screen preferences 2016-09-26 09:47:36 +05:30
Kovid Goyal
6eac8fd175 UI for setting the read mode preference 2016-09-26 09:04:01 +05:30
Kovid Goyal
491e5698cf ... 2016-09-26 09:03:24 +05:30
Kovid Goyal
314b13bdd8 Use default_cover.png instead of book.png where appropriate 2016-09-25 23:47:08 +05:30
Kovid Goyal
2401335784 Start work on page layout preferences UI 2016-09-25 19:33:38 +05:30
Kovid Goyal
01fb47f880 Show a nice error message when developing a widget with no develop()
method
2016-09-25 18:18:39 +05:30
Kovid Goyal
51b940dad9 Use 0 instead of auto for automatic pagination value of cols per screen 2016-09-25 13:49:32 +05:30
Kovid Goyal
63bac0b459 ... 2016-09-25 13:35:44 +05:30
Kovid Goyal
c3b015e75e Make the number of columns per screen automatic in paged mode 2016-09-25 13:32:51 +05:30
Kovid Goyal
1cc40a335e Apply changes to reader preferences when the preferences panel is closed 2016-09-25 12:01:22 +05:30
Kovid Goyal
fdb50deca9 ... 2016-09-25 11:29:17 +05:30
Kovid Goyal
718bb559b2 Finish up UI for viewer color scheme preferences 2016-09-25 10:47:19 +05:30
Kovid Goyal
b3f119e34e Fix modal popup on iPhone 5 2016-09-24 13:19:49 +05:30
Kovid Goyal
5e7f8ddb2d Use the explicit form of setting sqlite cache size as the sqlite page size was changed earlier this year 2016-09-23 18:52:39 +05:30
Kovid Goyal
d61b618421 ... 2016-09-23 08:13:34 +05:30
Kovid Goyal
73585a5dc0 Start work on the color preferences UI 2016-09-22 11:06:45 +05:30
Kovid Goyal
069c74563c Edit Book: Highlight class attributes inside HTML tags
Rather than using a special highlighting group, use the same style as
that used for classes in the css syntax.
2016-09-21 08:26:16 +05:30
Kovid Goyal
25de034110 Edit Book: Allow highlighting class names in the HTML differently via Preferences->Editor settings->Color scheme 2016-09-21 07:58:05 +05:30
madhead
4e9f242fe1
Update parsing code according to the new ozon.ru page markup 2016-09-20 22:13:03 +03:00
Kovid Goyal
7809a6798c Use ngettext for number of selected books in statusbar 2016-09-20 16:07:32 +05:30
Charles Haley
08b60ee008 Add rating types to bulk search/replace 2016-09-19 15:27:04 +02:00
Charles Haley
e5b99be408 bug #1624939: stop allowing editing on the table listing the displayed columns. Any changes were simply thrown away. Make double-click on a row open the column editor on that row. 2016-09-19 11:14:12 +02:00
Kovid Goyal
4c5c7e4c4e Add end caps to the yellow book in the logo 2016-09-19 11:15:36 +05:30
Kovid Goyal
82bbac4568 Merge branch 'master' of https://github.com/cbhaley/calibre 2016-09-18 16:38:09 +05:30
Charles Haley
84b8b32866 When in debug mode, print the lookup name of the column with a template that is throwing an exception. 2016-09-18 10:43:51 +02:00
Kovid Goyal
81a37c5d46 Add a bar at the bottom so that the pref panel can always be closed 2016-09-17 11:48:04 +05:30
Kovid Goyal
92244361a9 ... 2016-09-17 10:35:52 +05:30
Kovid Goyal
0961e31719 Use icons + text for the preferences UI instead of just icons 2016-09-17 10:33:01 +05:30
Kovid Goyal
5bfb8c5113 version 2.68.0 2016-09-16 07:34:34 +05:30
Kovid Goyal
f9e0afffe2 Add a tweak to Preferences->Tweaks to control the list of servers calibre considers public email servers 2016-09-15 21:00:37 +05:30
Kovid Goyal
0a90e37ad7 Merge branch 'master' of https://github.com/vdung/calibre 2016-09-15 20:48:26 +05:30
Kovid Goyal
5295a427fd ... 2016-09-15 20:42:02 +05:30
Viet Cao
77d2aeb823 Fix splitting landscape pages 2016-09-15 23:27:30 +09:00
Kovid Goyal
8b16eeac34 Do not use deprecated psutil API 2016-09-15 11:48:59 +05:30
Kovid Goyal
fa85e21967 CS: Fix cover thumbnails in the book list on high DPI displays 2016-09-15 10:18:23 +05:30
Kovid Goyal
54aaebe8be Edit metadata dialog: Fix auto-generation/validation of author sort values not working when only changing case of the author name. Fixes #1623593 [Changing upper- to lower-case doesn't work correct](https://bugs.launchpad.net/calibre/+bug/1623593) 2016-09-15 10:07:11 +05:30
Kovid Goyal
fb183bc6c6 A spot of refactoring 2016-09-15 10:04:16 +05:30
Kovid Goyal
b7a0bdf4fe ... 2016-09-15 08:50:54 +05:30
Kovid Goyal
b41426373e A nicer error message when calibre fails to create the temporary directory. Fixes #1622131 [Inelegant fail when TEMP folder is missing, having been set by an environment variable.](https://bugs.launchpad.net/calibre/+bug/1622131) 2016-09-14 20:13:38 +05:30
Kovid Goyal
0f6be31b89 Get rid of the no longer needed user agent override in the viewer 2016-09-14 18:31:41 +05:30
Kovid Goyal
34ebda86a5 Change the application name set in Qt to calibre from libprs500. Fixes #1623397 [[Enhancement] Change APP_UID from 'libprs500' to 'Calibre'](https://bugs.launchpad.net/calibre/+bug/1623397)
I looked into the code and the only place QSettings appears to be used
is to store the last used settings of the Qt WebKit Inspector. I think
it is acceptable to lose those settings to get rid of libprs500,
especially since some X11 implementations brokenly display the app name
in their user interfaces.
2016-09-14 18:29:33 +05:30
Charles Haley
c022a301c2 Fix dates being set to empty in bulk search/replace not becoming UNDEFINED 2016-09-14 14:35:09 +02:00
Kovid Goyal
874a7790b4 Edit metadata dialog: Make pressing up on an undefined numeric field set the value to zero instead of -99999. Fixes #1622757 [Metadata Edit - Step Up on Integers is broken](https://bugs.launchpad.net/calibre/+bug/1622757)
Merge branch 'master' of https://github.com/cbhaley/calibre
2016-09-13 17:54:17 +05:30
Charles Haley
3155b2717d In bulk and single edit, make the initial "up value" operation on an undefined field set the value to zero instead of -999999 2016-09-13 13:06:53 +02:00
Kovid Goyal
bd0a2129b1 Re-opening the db should not unload formatter functions 2016-09-13 16:06:26 +05:30
Kovid Goyal
5c366c0201 Merge branch 'master' of https://github.com/cbhaley/calibre 2016-09-13 15:42:24 +05:30
Charles Haley
1fe6c8d9a5 Move unloading formatter functions to backend.close(). 2016-09-13 12:06:07 +02:00
Charles Haley
88edeb42ad Don't clear the user-defined function list until after the DB is actually closed. This order prevents problems in plugins that run just before closing the db, e.g., library closed plugins.
It is possible that a better fix is to move the two lines of code into db.cache.close(). I looked for unwanted side effects and didn't see any, but I didnt want to make the more invasive change.
2016-09-13 11:29:30 +02:00
Kovid Goyal
e44ca5f067 Edit Book: When unmarking marked text, automatically ensure the current search scope is not to search in marked text 2016-09-13 09:13:55 +05:30
Kovid Goyal
b0f808f2a0 Conversion: Handle corrupted JPEG files that have valid headers but invalid data. Fixes #1622416 [Private bug](https://bugs.launchpad.net/calibre/+bug/1622416) 2016-09-13 08:57:04 +05:30
Kovid Goyal
b13b1ea5aa Conversion: Improve detection of input documents that use uppercase tag/attribute names. Fixes #1622261 [Private bug](https://bugs.launchpad.net/calibre/+bug/1622261) 2016-09-13 08:27:38 +05:30
Kovid Goyal
df33ef6a3c Fix regression in previous release that caused incorrect display of ratings in the side panel of the metadata download dialog 2016-09-13 07:24:48 +05:30
Kovid Goyal
d7b3be200a Get Books: Update publio and virtualo store plugins
Merge branch 'master' of https://github.com/t3d/calibre
2016-09-13 06:34:34 +05:30
Kovid Goyal
b530a31cdd calibredb: Fix set_custom not notifying the GUI 2016-09-13 06:22:26 +05:30
Tomasz Długosz
d1cf35f279 publio plugin: fix title lookup 2016-09-12 20:32:35 +02:00
Tomasz Długosz
00edb22400 virtualo plugin: coma instead of dot in price 2016-09-12 20:11:05 +02:00
Kovid Goyal
9a2bbdbc5d ... 2016-09-12 17:34:27 +05:30
Charles Haley
eda8d512bf Fix OPDS feed blowing up if a library has no custom columns 2016-09-09 09:16:28 +02:00
Kovid Goyal
cc183114d6 ... 2016-09-08 21:20:58 +05:30
Kovid Goyal
59e8070ef9 Fix reading metadata from PDF broken by poppler >= 0.47.0 2016-09-08 21:05:32 +05:30
Kovid Goyal
8f655cd610 Merge branch 'gh/pdf-metadata-fix' of https://github.com/aroig/calibre 2016-09-08 20:37:15 +05:30
Abdo Roig-Maranges
432aa7e21d metadata: Do not raise an exception if a PDF file has empty metadata
Check explicitly for `info is None`, since an empty dict also evaluates
to false. Otherwise it raises an exception when there is no metadata,
and prevents from generating the cover.

This has started to happen recently with some arxiv PDF's, like this
one: https://arxiv.org/pdf/1605.02391v2
2016-09-08 16:49:27 +02:00
Kovid Goyal
62a5d9c4d2 Fix layout of preferences panel for editor toolbars messed up 2016-09-08 19:52:40 +05:30
Kovid Goyal
a41399f2e3 ... 2016-09-08 08:25:18 +05:30
Kovid Goyal
2083970477 version 2.67.0 2016-09-08 08:20:59 +05:30
David
28f65e237e Add device names for the two new Kobo Devices
I don't know how I missed these before.
2016-09-07 23:38:15 +10:00
Kovid Goyal
d48e15556f ODT Input: Add support for continued lists. Fixes #1620581 [Numeration lost](https://bugs.launchpad.net/calibre/+bug/1620581) 2016-09-07 14:43:29 +05:30
Kovid Goyal
8d38de825e Fix undo not working with sort css 2016-09-07 12:55:05 +05:30
Kovid Goyal
d28114bde1 Edit Book: A new tool to sort the rules in a CSS stylesheet. To use it add it to the toolbar for CSS editors 2016-09-07 12:46:06 +05:30
Kovid Goyal
d23532e499 Edit Book: Fix high-dpi rendering of emblems in the File Browser 2016-09-07 10:57:54 +05:30
Kovid Goyal
95f62fcad2 More work on the prefs panel 2016-09-07 10:26:14 +05:30
Kovid Goyal
4224233eca Make the item list code re-useable 2016-09-07 10:08:44 +05:30
Kovid Goyal
3172744e22 Add warning about merging 2016-09-07 09:47:27 +05:30
Kovid Goyal
3318f376d9 Edit Book: The Remove Unused CSS tool now has an option to also merge CSS rules that have identical selectors 2016-09-07 09:25:41 +05:30
Kovid Goyal
3c05bf2ec2 Increase email send timeout to 25min. See #1620732 (Feature: Reconfigurable Email Timeout) 2016-09-06 22:54:13 +05:30
Kovid Goyal
fab8eb07ab ... 2016-09-06 21:17:40 +05:30
Kovid Goyal
2dfd24f04c ... 2016-09-06 20:35:23 +05:30
Kovid Goyal
94b72873ec Micro-optimization 2016-09-06 20:34:06 +05:30
Kovid Goyal
7d6c68c079 Fix sorting by name of half stars in the Tag Browser 2016-09-06 20:22:28 +05:30
Kovid Goyal
e3a77bf17f Tag Browser: Add an option in Preferences->Look & Feel->Tag Browser to turn off the display of counts in the Tag Browser 2016-09-06 17:46:12 +05:30
Kovid Goyal
88eabfc7d0 ... 2016-09-06 17:32:42 +05:30
Kovid Goyal
9ce4ce354f Start working on Preferences UI for the viewer 2016-09-06 15:00:03 +05:30
Kovid Goyal
bb3e2d6a29 ... 2016-09-06 14:35:02 +05:30
Kovid Goyal
a2d58d639b Color scheme support for the viewer 2016-09-06 11:47:48 +05:30
Kovid Goyal
80f311a6d0 ... 2016-09-06 09:40:24 +05:30
Kovid Goyal
057c141840 Add tests for searching on half star fields 2016-09-06 08:25:43 +05:30
Kovid Goyal
a60aeaa1ba Add a tweak in Preferences->Tweaks to exclude some images types from being treated a covers when dropped onto the Book Details panel. Fixes #1620198 [{Enhancement] Tweak to control image DnD to Book Details](https://bugs.launchpad.net/calibre/+bug/1620198) 2016-09-05 14:53:34 +05:30
Kovid Goyal
ad30806ba9 Cover Browser: Allow any metadata field to be used as the sub-title, not just the rating 2016-09-05 14:08:11 +05:30
Kovid Goyal
33b9f5e520 Fix searching in half star fields 2016-09-05 12:06:25 +05:30
Kovid Goyal
914113868d ... 2016-09-05 11:46:55 +05:30
Kovid Goyal
f881a80a50 Use the right font for ratings in the Tag Browser 2016-09-05 10:43:51 +05:30
Kovid Goyal
3ccdb1e8e7 ... 2016-09-05 10:39:51 +05:30
Kovid Goyal
292eaa393a ... 2016-09-05 10:35:52 +05:30
Kovid Goyal
31f109df7e Tag browser: Always show the book counts on the right edge of the Tag Browser 2016-09-05 10:28:00 +05:30
Kovid Goyal
a28efc879f Use the correct font for ratings in the cover grid 2016-09-05 09:18:26 +05:30
Kovid Goyal
27499c9188 Generate correct search expressions for half stars when clicking the Tag Browser entries 2016-09-05 08:52:03 +05:30
Kovid Goyal
93b727818b ... 2016-09-05 00:33:47 +05:30
Kovid Goyal
5c942e80ec Another place to use rating_to_stars 2016-09-05 00:22:13 +05:30
Kovid Goyal
7fe6a03db3 ... 2016-09-05 00:15:39 +05:30
Kovid Goyal
0dafccf479 Use rating_to_stars in more places 2016-09-05 00:07:57 +05:30
Kovid Goyal
dff20d07a5 Fix metadata diff dialog to handle changes int he rating edit widget 2016-09-04 21:43:42 +05:30
Kovid Goyal
4c4042e2c2 Fix regression in previous release that caused wide column icons to be scaled incorrectly 2016-09-04 20:15:00 +05:30
Kovid Goyal
494ccb9a82 Add support for half stars to the new content server 2016-09-04 20:00:32 +05:30
Kovid Goyal
982d406121 Implement bulk metadata editing for half star rating fields 2016-09-04 18:39:27 +05:30
Kovid Goyal
baddd6c298 Start work on allowing half-stars for custom rating columns
Still have to implement support in the bulk metadata editors and the
content server.
2016-09-04 16:47:35 +05:30
Kovid Goyal
a8f7c27e40 Fix drag and drop of semi-transparent images onto the book details panel giving them a black background instead of a white background 2016-09-04 09:19:18 +05:30
Kovid Goyal
5088a023c7 Allow reading more image formats as covers (All images will be converted to JPEG when stored). Fixes #1619993 [Request: Support for dragging TIFF files into Cover area](https://bugs.launchpad.net/calibre/+bug/1619993) 2016-09-04 08:29:20 +05:30
Kovid Goyal
72d735b41d Also add the date added and published dates to the OPDS acquisition feeds 2016-09-03 23:51:59 +05:30
Kovid Goyal
93c31cdaff Content server: OPDS feeds: Change the value of <updated> for entries in the acquisition feed to be the last modified date for the book. Also make the size and last modified timestamp available as attributes in the acquisition links. 2016-09-03 23:38:48 +05:30
Kovid Goyal
62ea49ad02 Metadata download dialog: Fix https links in the download summary not working 2016-09-03 22:48:56 +05:30
Kovid Goyal
efcecb8e67 DOCX Output: Handle nested display:table tags with no rows. Fixes #1619662 [Can't Convert Gutenberg AZW3 to DOCX](https://bugs.launchpad.net/calibre/+bug/1619662) 2016-09-02 21:04:54 +05:30
David
f924418f32 Kobo decided the new firmware should be 4.0. 2016-09-02 23:19:35 +10:00
Kovid Goyal
01c21e3a2b PDF Output: Turn off font hinting in WebKit
Requires a patched Qt WebKit, which will be available in the calibre 3
binary builds.
2016-09-02 14:45:56 +05:30
Kovid Goyal
be785b1143 PDF Output: Fix OpenType fonts with CFF font data not embeddable on windows
Qt now uses DirectWrite on windows, which means CFF fonts work
2016-09-02 13:12:03 +05:30
Kovid Goyal
47319bdccb version 2.66.0 2016-09-02 07:21:50 +05:30
Kovid Goyal
9d49446236 DOCX Input: Fix right-to-left alignment not working for footnotes. Fixes #1617254 [Left aligned footnotes appear right aligned](https://bugs.launchpad.net/calibre/+bug/1617254) 2016-09-01 22:29:53 +05:30
Kovid Goyal
afb8f797c6 A better error message when the user tries to use the Manage Collections action in the library view 2016-09-01 14:34:46 +05:30
Kovid Goyal
942b4e3a0e Workaround for Qt being unable to anti-alias rotated text on windows 2016-09-01 14:20:48 +05:30
Kovid Goyal
c868fdd32e Workaround for Win10's broken scaling of taskbar icons
Also set the app user model id explicitly for all three main calibre GUI
programs.
2016-09-01 14:11:47 +05:30
Kovid Goyal
071c41a92d Sending email: Allow setting up a mail relay that uses encryption without a username and password. Fixes #1618528 [SMTP to device does not accept blank username / password](https://bugs.launchpad.net/calibre/+bug/1618528) 2016-09-01 08:43:33 +05:30
Kovid Goyal
554886b958 Fix high DPI rendering of the welcome wizard 2016-09-01 08:27:53 +05:30
Kovid Goyal
9f388e3564 Driver for the PocketBook Touch HD
Fixes #1618962 [Driver for PocketBook Touch HD](https://bugs.launchpad.net/calibre/+bug/1618962)
2016-09-01 08:00:35 +05:30
Kovid Goyal
638acca9b3 Linux: Fix calibre not working when the username is non-ASCII. Fixes #1619056 [Calibre doesn't allow non-ascii usernames](https://bugs.launchpad.net/calibre/+bug/1619056) 2016-09-01 07:47:35 +05:30
Kovid Goyal
d6c3a1b1e1 DOCX Output: Ignore invalid text-indent values in the input document instead of erroring out. Fixes #1618869 [EPUB to DOCX conversion fails](https://bugs.launchpad.net/calibre/+bug/1618869) 2016-08-31 20:01:57 +05:30
Kovid Goyal
0f0ba7af23 Kobo driver: Add support for firmware version 3.20 and also fix the ignore collections in option not working
Merge branch 'master' of https://github.com/davidfor/calibre
2016-08-31 19:37:34 +05:30
David
c9e0721bef Fix ignore collection deleting and bump firmware version.
I forgot to test the ignore collections and delete empty collection
option together. This fixes that.

Plus, have confirmed the firmware for the new Aura One in the 3.20.x
series.
2016-08-31 23:11:08 +10:00
Kovid Goyal
e1a628d533 Nicer rendering for the splash screen message 2016-08-31 09:34:20 +05:30
Kovid Goyal
1057a82ab7 ... 2016-08-30 15:58:26 +05:30
Kovid Goyal
62118462b2 A new high resolution calibre logo
The old log was only available as a raster image at 512x512. This is
insufficient for the splash screen on high DPI monitors. So create a new
SVG logo (similar in look to the old one, but simplified).
2016-08-30 15:56:04 +05:30
Kovid Goyal
db2fdbc4a9 Fix high dpi rendering of splash screen 2016-08-30 09:45:54 +05:30
Kovid Goyal
3f434bee3f ... 2016-08-30 09:41:53 +05:30