27464 Commits

Author SHA1 Message Date
Kovid Goyal
67a168edae ... 2014-11-21 14:19:43 +05:30
Kovid Goyal
c40483eb86 Load all syntax related code on demand 2014-11-21 14:15:20 +05:30
Kovid Goyal
4d7da61387 Move special handling of keypresses into the syntax dependent smarts modules 2014-11-21 14:02:56 +05:30
Kovid Goyal
7aa1f5e54f ... 2014-11-21 13:35:10 +05:30
Kovid Goyal
ee06db6ff8 Edit Book: Add syntax highlighting for javascript 2014-11-21 13:29:28 +05:30
Kovid Goyal
388083e92f ... 2014-11-21 13:28:59 +05:30
Kovid Goyal
33af80f8bb Add a javascript syntax highlighter 2014-11-21 13:16:56 +05:30
Kovid Goyal
adc6a173a5 oops 2014-11-21 12:27:26 +05:30
Kovid Goyal
01f9a4a330 Dont crash if pygments raises an exception 2014-11-21 12:23:25 +05:30
Kovid Goyal
022c1ed445 Make the Pygments<->Qt glue faster and also fix handling of EOL 2014-11-21 12:03:11 +05:30
Kovid Goyal
ca534b9919 Refactor the pygments based highlighter so that the plumbing connecting pygments to Qt can be re-used 2014-11-21 10:31:54 +05:30
Kovid Goyal
6f539330f4 ... 2014-11-21 09:51:53 +05:30
Kovid Goyal
ba329fa521 version 2.11 2014-11-21 08:21:26 +05:30
Kovid Goyal
cc4452f072 Prevent misbehaving plugins that delete shortcut actions without unregistering them from causing crashes 2014-11-21 07:59:17 +05:30
Kovid Goyal
95d9151a5c Refactor the pygments util function into their own module
Ensures that cdiff does not fail if pygments is unavailable
2014-11-20 23:04:36 +05:30
Kovid Goyal
66bfe1797b Do not use the pygments based highlighter if the user does not have pygments (will happen on some linux distros and for people running from source who dont update the binary) 2014-11-20 22:58:44 +05:30
Kovid Goyal
cabc1280f8 Add smart-indent to the python code editor 2014-11-20 22:51:56 +05:30
Kovid Goyal
36deae13e9 Nicer editor widget for editing S&R functions 2014-11-20 22:00:35 +05:30
Kovid Goyal
64b9a921ab A syntax highlighter for python using pygments 2014-11-20 21:53:43 +05:30
Kovid Goyal
247e4ec674 Fix completion worker stdout handling on windows 2014-11-20 17:20:44 +05:30
Kovid Goyal
78a5c3fd0f Refactor for re-use 2014-11-20 17:20:27 +05:30
Kovid Goyal
c356e09dcf Fix regression in 2.10 that caused printing to stdout/stderr in FileType plugins to not work when running using calibre-debug -g in a windows console 2014-11-20 17:02:46 +05:30
Kovid Goyal
38fe10d9f9 Fix Ctrl-R while in debug mode not restarting in debug mode properly 2014-11-20 15:29:52 +05:30
Kovid Goyal
fe66042bc6 Make the functions namespace a little easier to use 2014-11-20 15:20:09 +05:30
Kovid Goyal
3074d11ce5 ... 2014-11-20 12:53:22 +05:30
Kovid Goyal
47b0baae85 Allow S&R funcs to specify they would like to be called once after all matches are found 2014-11-20 11:23:11 +05:30
Kovid Goyal
cf42295fc5 Refactor ToC generation code to make it re-useable 2014-11-20 11:22:29 +05:30
Kovid Goyal
00ea2cc4a4 DOCX Input: Add support for multilingual documents. Fixes #1394428 [docx driver doesn't handle different languages](https://bugs.launchpad.net/calibre/+bug/1394428) 2014-11-20 08:27:06 +05:30
Kovid Goyal
c983f4f999 Fix a regression in 2.10 that caused changes in Preferences->Adding books to not work for the next immediate add 2014-11-19 21:27:03 +05:30
Kovid Goyal
b18d693ba2 Show output from print() calls in S&R functions 2014-11-19 17:53:19 +05:30
Kovid Goyal
48a701012c Handle HTML entities in the builtin S&R funcs 2014-11-19 15:36:51 +05:30
Kovid Goyal
ef3509ebc5 Finish implementation of function mode for the editor 2014-11-19 15:02:59 +05:30
Kovid Goyal
35cd019066 ... 2014-11-19 14:21:49 +05:30
Kovid Goyal
bff2ebc9d5 Use decorators for builtin S&R functions: prettier :) 2014-11-19 09:52:18 +05:30
Kovid Goyal
18e61e8eab DRYer 2014-11-19 09:20:38 +05:30
Kovid Goyal
705ed00b5f Move imports out of S&R builtin funcs 2014-11-19 09:12:55 +05:30
Kovid Goyal
5de64c93a2 Tooltips for function mode controls 2014-11-19 08:55:12 +05:30
Kovid Goyal
d8cef2d192 Add saved searches context menu items to the functions box 2014-11-18 21:10:08 +05:30
Kovid Goyal
c70b89e099 More builtin search and replace functions 2014-11-18 21:03:25 +05:30
Kovid Goyal
8ea08e2153 Add function mode support to the saved searches dialog 2014-11-18 20:56:45 +05:30
Kovid Goyal
4cb585cc3e Start work on function mode for S&R in the editor 2014-11-18 19:09:16 +05:30
Charles Haley
b98db0e2b2 Fix regression in evaluating composite columns that use other composite columns.
Assume column X uses column Y. If X assigns to template variables then evaluated Y, the variables were cleared. The regression happened because the performance increase changes to use ProxyMetadata also caused X and Y to be evaluated in the same formatter instance where before they were evaluated in separate instances. This triggered a long-standing latent bug where a 'global' local variable dictionary was cleared every time a template was executed. The fix is to make the local variable dict local to the template evaluation instance.
2014-11-17 18:25:45 +01:00
Kovid Goyal
48ecd9b516 ... 2014-11-17 09:37:10 +05:30
Kovid Goyal
77504c31a0 Edit metadata dialog: Fix date fields being displayed in the UTC timezone instead of the local timezone, causing the day to be off by one in some timezones. Fixes #1393166 [Wrong date after edit date in bulk edit metadata form](https://bugs.launchpad.net/calibre/+bug/1393166) 2014-11-17 09:30:16 +05:30
Kovid Goyal
dfbb179cce Conversion/Book polishing: Fix ampersands in title/series/publisher/author not being properly escaped. Fixes #1393230 [[Jacket] Ampersands in title/authors/series not parsed](https://bugs.launchpad.net/calibre/+bug/1393230) 2014-11-17 08:55:37 +05:30
Kovid Goyal
328000d9f7 ... 2014-11-16 22:30:21 +05:30
Kovid Goyal
02078028bc ... 2014-11-16 19:16:10 +05:30
Polyfun
f5bff92ac4 Fixed libimobiledevice _afc_file_write wrapper to loop until all bytes are written.
_afc_file_write is used by the idevice interface to copy files to the
idevice. This fix has been successfully tested by round tripping a 500
MB file from the PC to the device and back again, and checking that the
before and after files are identical.
2014-11-15 18:28:20 +05:30
Kovid Goyal
870ad92a0d Fix a regression in 2.10 that causes Adding books from sub-folders, one book per folder to incorrectly add OPF files present in the sub-folders as an extra format. See #1392864 (Errors in book import in 2.10) 2014-11-15 10:35:15 +05:30
Kovid Goyal
8291e02f12 Track when GUI processes are detached 2014-11-15 09:14:28 +05:30