Commit graph

26531 commits

Author SHA1 Message Date
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
Kovid Goyal
68c1303c21 Fix cover display on high dpi screens in the edit metadata and convert dialog 2016-08-30 09:38:37 +05:30
Kovid Goyal
2035356c53 Fix #1618277 [[Cosmetic] Editing the new short-text column type](https://bugs.launchpad.net/calibre/+bug/1618277) 2016-08-30 09:17:19 +05:30
Kovid Goyal
4fb414f95b Same optimization for google books 2016-08-28 14:45:27 +05:30
Kovid Goyal
6333859f09 Small speed up for amazon metadata download by avoiding the redirect from http to https 2016-08-28 14:40:59 +05:30
Kovid Goyal
b003cd6f81 Add some debug mode output for dpi and dpr 2016-08-26 20:42:59 +05:30
Kovid Goyal
139047b29e ... 2016-08-26 20:29:57 +05:30
Kovid Goyal
f46aade946 Turn on high DPI scaling automatically based on the DPI of the monitor.
Note that this will only work for Qt >= 5.6 so actual testing will have
to wait for calibre 3.0
2016-08-26 20:28:52 +05:30
Kovid Goyal
ba8363f077 More hidpi fixes 2016-08-26 16:40:15 +05:30
Kovid Goyal
65bcc48822 Fix hidpi image rendering in the diff viewer 2016-08-26 14:59:20 +05:30
Kovid Goyal
c2c39fa044 Another hidpi fix 2016-08-26 14:19:56 +05:30
Kovid Goyal
fc43a34b68 A couple more places that needed non-integer dpr support 2016-08-26 13:51:19 +05:30
Kovid Goyal
6e158af47c version 2.65.1 2016-08-26 12:53:05 +05:30
Kovid Goyal
d55ec4e00b A few more places where we need to handle non-integer device pixel ratios 2016-08-26 12:46:02 +05:30
Kovid Goyal
2948a6210d Handle non-integer device pixel ratios in cover flow 2016-08-26 12:35:53 +05:30
Kovid Goyal
206a4d6535 Another QIcon.scaled typo 2016-08-26 12:30:35 +05:30
Kovid Goyal
9e8141d5db Fix cover grid scaling for non-integral device pixel ratios 2016-08-26 12:21:59 +05:30
Kovid Goyal
1207eb4f8b Fix a typo that causes calibre to crash when connecting a device with the cover grid visible 2016-08-26 12:07:58 +05:30
Kovid Goyal
78553a8284 Edit Book: Allow restricting a search to the files currently open for editing 2016-08-26 11:05:35 +05:30
Kovid Goyal
6e61642c16 version 2.65.0 2016-08-26 05:37:52 +05:30
Kovid Goyal
bd2c7c3934 Revert "Use a radio button for the case-sensitive/primary find options as they are mutually exclusive"
Radio buttons prevent both options from being turned off, which is a
valid use case.

This reverts commit bf63198d19.
2016-08-26 05:19:36 +05:30
Kovid Goyal
c0acacf674 ... 2016-08-25 21:40:55 +05:30
Kovid Goyal
f48a5ef678 ... 2016-08-25 21:36:05 +05:30
Kovid Goyal
97ca819606 DOCX Input: Fix images that have the # character in their filenames not being converted correctly. Fixes #1616482 [when converting to epub images do not appear](https://bugs.launchpad.net/calibre/+bug/1616482) 2016-08-25 21:22:25 +05:30
Kovid Goyal
cae60d5a54 Increase size of generated theme cover image so it can be used for hi dpi display 2016-08-25 21:17:08 +05:30
Kovid Goyal
402fc88b73 ... 2016-08-25 20:56:28 +05:30
Kovid Goyal
ae0ccff893 Another place int he preferences dialog that needed to be fixed for hidpi 2016-08-25 20:44:48 +05:30
Kovid Goyal
34684813c5 Driver for Kobo Aura One and Aura Edition 2
Kobo driver: Add an option to ignore some collections on the device. The
specified collections will not be touched by the driver.

Merge branch 'master' of https://github.com/davidfor/calibre
2016-08-25 20:02:09 +05:30
Kovid Goyal
3347f5b011 ToC wizard: Fix generating toc from headings/xpath yielding unexpected results when tags are present out of sequence 2016-08-25 19:56:52 +05:30
David
baa098bb0a Add device Aura One and support for ignoring some collecitons.
Kobo are releasing the Aura One and Aura Edition 2. This adds the device
ids but does not update the firmware version. The firmware for these
devices have not been released. It will probably be compatible, but,
there might be changes.

This also includes an extra configuration option to ignore some
collections. With this, the named collections will not be touched buy
the drivers collection management.
2016-08-25 23:02:52 +10:00
Kovid Goyal
7152a09ee2 Fix high DPI rendering of cover grid covers 2016-08-25 13:00:30 +05:30
Kovid Goyal
b0d87f4263 Fix high DPI rendering of emblems in the cover grid 2016-08-25 10:15:40 +05:30
Kovid Goyal
5724e51fc0 High DPI rendering fix for the column icon rule editor 2016-08-25 09:48:29 +05:30
Kovid Goyal
fba492a425 Fix high DPI rendering of column icons 2016-08-25 09:20:13 +05:30
Kovid Goyal
e7a8940f28 Fix high DPI rendering of yes/no icons in the book list 2016-08-25 08:58:19 +05:30
Kovid Goyal
bc6e4b8813 Fix high DPI rendering for the iamge editor widget in Edit Book 2016-08-25 08:33:19 +05:30
Kovid Goyal
c875d408a7 Fix high DPI rendering of covers in book details panel 2016-08-24 21:20:53 +05:30
Kovid Goyal
924f426310 Dont roundtrip via JPEG when image dropped on book details popup window 2016-08-24 21:15:12 +05:30
Kovid Goyal
0b4ff115a8 Fix rendering of cover in book details popup window on high DPI screens 2016-08-24 21:06:26 +05:30
Kovid Goyal
1e90aaa1a8 Fix image rendering quality in cover download and PDF covers dialogs on High DPI screens 2016-08-24 20:48:23 +05:30
Kovid Goyal
04d8f2cda5 Couple more high DPI fixes for the editor 2016-08-24 20:11:20 +05:30
Kovid Goyal
6be52464ae Edit Book: Fix icons in File Browser blurry on High DPI screens 2016-08-24 19:49:52 +05:30
Kovid Goyal
f42190580c Get rid of unneccessary notify specific icon 2016-08-24 19:29:43 +05:30
Kovid Goyal
3381e02158 Fix blurred geenrated icons in editor on High DPI screens 2016-08-24 19:24:34 +05:30
Kovid Goyal
4d7683b750 Fix some icons being blurry on High DPI screens
Get Qt to use high DPI images when rendering icons. Unfortunately,
turning this on means that non-square images are not rendered properly,
so convert all icons to square images.
2016-08-24 19:15:52 +05:30
Kovid Goyal
bf63198d19 Use a radio button for the case-sensitive/primary find options as they are mutually exclusive 2016-08-24 17:20:02 +05:30
Kovid Goyal
470f621748 Add an option in Preferences->Searching to make searching case-sensitive 2016-08-24 17:06:33 +05:30
Kovid Goyal
6f3c8109d4 Edit Book: Fix drag and drop of text replacing non-breaking spaces with normal spaces
With modern Qt/PyQt one can just override createMimeDataFromSelection
instead of the convoluted fixes used earlier
2016-08-23 19:51:43 +05:30
Kovid Goyal
908b098912 Show indicator when hovering over side margins 2016-08-23 14:58:01 +05:30
Kovid Goyal
1baa9a2866 ... 2016-08-23 13:15:54 +05:30
Kovid Goyal
c20c111ee2 Clicking on side margins should turn the page 2016-08-23 13:06:12 +05:30
Kovid Goyal
44b19629b4 Fix Cover Browser blurry on HiDPI screens when scaling is enabled via the Qt environment variables 2016-08-23 11:00:13 +05:30
Kovid Goyal
0f41e53a9f DOCX Input: Add support for RTL tables 2016-08-23 08:03:21 +05:30
Kovid Goyal
0e11f80cf6 PyQt 5.7 compatibility fix 2016-08-23 07:36:14 +05:30
Kovid Goyal
343fa0148d DOCX Input: More fixes for right-to-left language support. Fixes #1569771 [right to left Arabic language tables](https://bugs.launchpad.net/calibre/+bug/1569771) 2016-08-22 20:43:59 +05:30
Kovid Goyal
1df8918fdd Finish up zone tap gestures 2016-08-22 15:01:04 +05:30
Kovid Goyal
5fc6b6db39 Tapping in the top quarter of the page now shows the chrome 2016-08-22 14:50:23 +05:30
Kovid Goyal
5eaccd6619 Momentum scrolling in flow mode 2016-08-22 14:09:15 +05:30
Kovid Goyal
6f93debe6e Handle swiping in flow mode 2016-08-22 10:02:29 +05:30
Kovid Goyal
fa1aad42c5 Allow remove_tags_before to be a list 2016-08-21 19:10:50 +05:30
Kovid Goyal
d3f36abfac DRYer 2016-08-21 11:20:26 +05:30
Kovid Goyal
04e9737979 ... 2016-08-21 08:34:01 +05:30
Kovid Goyal
0f98eb7ac9 Swiping should scroll by screen not column 2016-08-20 12:33:31 +05:30
Kovid Goyal
d0aff1e53a Tap-hold now always simulates a mouse click 2016-08-20 11:11:56 +05:30
Kovid Goyal
67f0358296 Give gestures an id and clean up tap hold handling 2016-08-20 10:53:47 +05:30
Kovid Goyal
c7163db345 Detect a tap on a link and trigger the link 2016-08-20 10:09:41 +05:30
Kovid Goyal
7cb8a5f4d2 DOCX Input: Fix right-to-left text support only working for block level styles, not character level styles. 2016-08-19 23:52:28 +05:30
Kovid Goyal
fefb3ee882 E-book viewer: Fix duplicate names in hyphenation dictionary chooser. Fixes #1615040 [Greek modern language listed twice](https://bugs.launchpad.net/calibre/+bug/1615040) 2016-08-19 22:48:57 +05:30
Kovid Goyal
abe32ad8ca Implement swipe and hold gesture to turn pages rapidly 2016-08-19 12:11:52 +05:30
Kovid Goyal
a832c170fc Page turn gestures in paged mode 2016-08-19 09:27:38 +05:30
Kovid Goyal
7884ffb23e Add an entry for the Kindle Oasis to the Welcome Wizard
Fixes #1614114 [Kindle Oasis not a possible choice](https://bugs.launchpad.net/calibre/+bug/1614114)
2016-08-17 19:54:36 +05:30
Kovid Goyal
78c24ce6c5 Start work on gesture support for viewer 2016-08-17 13:38:16 +05:30
Kovid Goyal
4eb45e1816 Endpoint to print directly to server log 2016-08-15 16:15:55 +05:30
Kovid Goyal
07c614f897 Fix a regression in the previous release that caused the completion popups for some custom column types int he book list to stop working. Fixes #1612640 [Editing user defined column directly in a table cell does not display a combo with existing values anymore](https://bugs.launchpad.net/calibre/+bug/1612640) 2016-08-12 20:15:33 +05:30
Kovid Goyal
14170fdcc4 version 2.64.0 2016-08-12 08:22:57 +05:30
Kovid Goyal
a715d5f5ea Show the overlay when clicking on the top margin 2016-08-11 20:42:43 +05:30
Kovid Goyal
202528eda9 E-book viewer: Fix books that set side margins on body using percentages not working correctly. Fixes #1608458 [Private bug](https://bugs.launchpad.net/calibre/+bug/1608458) 2016-08-11 19:56:34 +05:30
Kovid Goyal
df1d52a7ef Fix positioning of completion popup above widgets 2016-08-11 18:19:58 +05:30
Kovid Goyal
c40995b2b6 Use the new search bar widget for the ToC search bar 2016-08-11 17:29:19 +05:30
Kovid Goyal
7852aa3eac Add history to the search bar widget 2016-08-11 10:14:18 +05:30
Kovid Goyal
4815820f9b Merge branch 'regexfn_result_dialog' of https://github.com/Mymei2/calibre 2016-08-11 09:08:14 +05:30
Mymei
2479e304e9 Configurable suppression of replace result dialog (see 1610658)
This is the second part of the proposal filed originally as bug #1609111.

The result dialog, shown after replacements, slows down book editing in some cases.
For example, when the user repeatedly applies his own regex-function to relatively small pre-marked text fragments.

User should have a choice to suppress the result dialog.

This implementation allows for the following switch inside the user replace function:
replace.suppress_result_dialog = True

This way it nicely fits to the first part (see #1609111) and it allows individual configuration from case to case.
Actually, it's not dependent on the other two switches ('call_after_last_match' and 'append_final_output_to_marked'),
so it can be used in combination with any of them or even individually.

This implementation also should not have any impact on other modes of work and it should not change the previous behavior.
It also should not break the backwards compatibility, I hope.
2016-08-10 19:29:29 +02:00
Kovid Goyal
729cdb6306 Make the icon size in the Preferences dialog depend on the UI font size 2016-08-10 15:59:48 +05:30
Kovid Goyal
69d311033e Use the correct technique for getting the current y offset for checking if text is in the header/footer 2016-08-10 15:44:31 +05:30
Kovid Goyal
b076795404 Fix dead links 2016-08-10 15:04:11 +05:30
Kovid Goyal
15cf137793 PDF Output: Fix a regression that caused the last page of a chapter to sometimes be dropped from the output 2016-08-10 13:07:02 +05:30
Kovid Goyal
0cb677fb90 Edit book: Function mode: Allow appending text to the end of the marked text when running function mode search/replace on marked text
Merge branch 'regexfn_return_value' of https://github.com/Mymei2/calibre
2016-08-08 10:03:11 +05:30
Kovid Goyal
a699cbc09a PDF Output: Add a new variable _TOP_LEVEL_SECTION_ for use in header/footer templates that resolves to the current top-most section in the Table of Contents 2016-08-08 09:52:46 +05:30
Mymei
27ecd03807 Append final user replace regex-function output to marked text (see #1609111)
Introduces a new flag "append_final_output_to_marked".
Depends also on existing flag "call_after_last_match".

Following two lines at the end of a user replace function will cause,
that the return value of the last additional call (after all replacements
are completed) will be appended to the marked text:
replace.call_after_last_match = True
replace.append_final_output_to_marked = True

TODO: Documentation update is required.
Part: Editing books
Chapter: Function Mode for Search & Replace in the Editor
Section: Having your function called an extra time after the last match is found
2016-08-07 10:30:34 +02:00
Kovid Goyal
324a5a2635 Do not show an error if the user tries to quit calibre while editing a cell in the book list. Instead, just silently abort the edit. See #1610539 (Data error when closing calibre) 2016-08-07 06:46:14 +05:30
Kovid Goyal
c4d05d8a36 ... 2016-08-06 09:01:58 +05:30
Kovid Goyal
fd60afd97e E-book viewer: Fix 0px margins not being respected when the option to override book margins is turned off. See #1608458 (ebook viewer: epub page margins bigger each chapter) 2016-08-04 05:22:04 +05:30
Kovid Goyal
ece360f04c Linux/OSX: Shutdown gracefully on receiving interrupt or terminate signals 2016-08-03 11:14:39 +05:30
Kovid Goyal
0e961be543 More Qt 5.7 compatibility fixes 2016-08-01 09:19:28 +05:30
Kovid Goyal
fc1676e30f Another Qt 5.7 compatibility fix 2016-08-01 08:31:05 +05:30
Kovid Goyal
32fd1c2e7f Ignore the auto_proxy env var since we dont support pac files in any case 2016-08-01 00:45:48 +05:30
Kovid Goyal
567040ee1e Perform PEP8 compliance checks on the entire codebase
Some bits of PEP 8 are turned off via setup.cfg
2016-07-29 21:25:17 +05:30
Kovid Goyal
a585b65f3b Finish up EditWithComplete 2016-07-28 10:43:36 +05:30
Kovid Goyal
7c0d90f7b4 More work on the completion popup 2016-07-27 20:07:05 +05:30
Kovid Goyal
193db4879e Framework for easily developing widgets 2016-07-27 14:09:23 +05:30
Kovid Goyal
c572d2436e Dont import regex on calibre startup, since importing it seems to fail for unknown reasons on some linux installs 2016-07-27 13:05:46 +05:30