Commit Graph

45979 Commits

Author SHA1 Message Date
Charles Haley b3cb7ae6d1 More improvements in syntax highlighting for comments and strings 2022-10-13 13:18:30 +01:00
Kovid Goyal 2da0fe7bf9 string changes 2022-10-13 10:38:37 +05:30
Kovid Goyal 6b74cde930 Update The Athletic 2022-10-13 07:57:46 +05:30
Kovid Goyal 0561f520a8 More work on custom widget geometry restore 2022-10-12 20:58:21 +05:30
Kovid Goyal 623b1d69f2 Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-12 16:06:08 +05:30
Kovid Goyal 2d6fe7a8b5 string changes 2022-10-12 15:58:02 +05:30
Kovid Goyal 5893eea459 Update der Standard 2022-10-12 15:56:08 +05:30
Charles Haley 9b68f5c89a Three changes to template processing:
1) If the user presses ESC, ask "are you sure" if the template has changed.
2) Fix syntax highlighting of comments
3) Improve the python template example in the template docs, better using the new_api.
2022-10-12 11:24:49 +01:00
Kovid Goyal 3e4ee63f2b pep8 2022-10-11 22:24:28 +05:30
Kovid Goyal 7c7aef46f6 Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-11 22:22:47 +05:30
Charles Haley 594e152242 Changed python templates to use a context object. Updated the documentation and the tests. 2022-10-11 17:11:40 +01:00
Kovid Goyal ffea14db35 cleanup previous PR 2022-10-11 20:13:02 +05:30
Kovid Goyal 10a51fb804 Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-11 19:42:47 +05:30
Charles Haley 1b7cbccdaf Add a test calling a stored python template from a GPM template 2022-10-11 11:41:51 +01:00
Kovid Goyal 87bb69e17f Start work on custom save/restore for window geometry 2022-10-11 14:50:35 +05:30
Kovid Goyal 0f5b509c75 Update The Economic Times India Print Edition 2022-10-11 14:30:20 +05:30
Kovid Goyal 9cfeb668f1 Update Indian Express 2022-10-11 13:51:39 +05:30
Charles Haley 7929687138 Merge pull request #2 from un-pogaz/template_highlighter
Sligh improvement to syntax key word mode and small regex fix
2022-10-11 09:08:22 +01:00
un-pogaz 985c189bd4 sligh improvement to syntax to word mode and regex 2022-10-11 09:46:33 +02:00
Charles Haley 3f856408d7 Add some tests for python templates 2022-10-10 21:25:06 +01:00
Charles Haley 294a28433c Only detect the template type keyword on the first line.
Remove an extra space from the default formatter exception message.
2022-10-10 21:06:09 +01:00
Charles Haley f1f8c32975 Some fixes and improvements from un_pogaz 2022-10-10 19:02:00 +01:00
Charles Haley dfcdf7c131 Merge pull request #1 from un-pogaz/template_highlighter
Improve Highlighter
2022-10-10 18:54:36 +01:00
un-pogaz b0413ab3aa improve Highlighter 2022-10-10 19:33:39 +02:00
Charles Haley 715f6d9b81 Fix failing test. 2022-10-10 17:14:03 +01:00
Charles Haley 42726c5e0f Python templates, as discussed at length in https://www.mobileread.com/forums/showthread.php?t=349525.
I think this is stable, usable, and very close to finished, but I will probably need to react fo feedback.
2022-10-10 16:54:21 +01:00
Kovid Goyal 2bb6bb47e0 Update India Today Magazine 2022-10-10 11:30:51 +05:30
Kovid Goyal f4d63adc07 Fix #1992273 [[Enhancement] Remove format from book by right-clicking on the format in the Tag browser](https://bugs.launchpad.net/calibre/+bug/1992273) 2022-10-10 10:55:24 +05:30
Kovid Goyal 69eb9ee126 http -> https 2022-10-09 20:38:37 +05:30
Kovid Goyal 25c0b827c4 E-book viewer: Fix a regression that broke adding of new lookup sources. Fixes #1992278 [Could not add extra lookup sources](https://bugs.launchpad.net/calibre/+bug/1992278) 2022-10-09 20:23:07 +05:30
Kovid Goyal a1d2209fc7 E-book viewer: Fix copy to clipboard not ignoring text from elements that are marked as non user selectable. Fixes #1991504 [Copy text does not respect user-select: none](https://bugs.launchpad.net/calibre/+bug/1991504)
Apparently the bug in webengine where it does not copy HTML to the
clipbaord is no more, so we can go back to relying on the native copy
which does exclude such text automatically.
2022-10-09 15:25:42 +05:30
Kovid Goyal eebdd57a90 E-book viewer: Ask for confirmation when creating a highlight that will overwrite existing highlights. Fixes #1991597 [Highlights in reader, when nested, overwrite one another](https://bugs.launchpad.net/calibre/+bug/1991597) 2022-10-09 14:38:16 +05:30
Kovid Goyal fe310342d0 Content server: When adding books, run all file type plugins before reading metadata. Fixes #1992244 [Metadata wrong for books added through the web server](https://bugs.launchpad.net/calibre/+bug/1992244) 2022-10-09 12:12:44 +05:30
Kovid Goyal c276617a0b Fix #1991635 [crash invalid IPv6 URL due to a missing ]](https://bugs.launchpad.net/calibre/+bug/1991635) 2022-10-09 11:40:53 +05:30
Kovid Goyal 104a567adc Fix #1991766 [Small blemishes in the book details.](https://bugs.launchpad.net/calibre/+bug/1991766) 2022-10-09 11:28:22 +05:30
Kovid Goyal e708be5e61 Book list: When displaying yes/no custom columns, render the icon in the center of the column. Fixes #1992261 [Place checkmarks for custom columns in the center](https://bugs.launchpad.net/calibre/+bug/1992261) 2022-10-09 10:25:23 +05:30
Kovid Goyal 37fd854e33 Edit book: Preview panel: In dark mode when all of the background/foreground/link colors are set to "No change" do not render the book using dark colors 2022-10-07 23:28:19 +05:30
Kovid Goyal 66c7741822 ... 2022-10-07 13:16:11 +05:30
Kovid Goyal de4f69aaaa fix a couple of typos in the QS guide 2022-10-07 07:10:28 +05:30
Kovid Goyal f7f7abd64e Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-06 07:52:26 +05:30
Charles Haley 8863c7b9eb Remove the new virtual field "in_tag_browser" from displayable_fields 2022-10-05 20:26:32 +01:00
Kovid Goyal c824c23a38 Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-05 19:17:36 +05:30
Charles Haley 8521749f0a Two bug fixes involving user categories:
1) Fix child categories not displaying if the parent category doesn't exist.
2) Ensure that only the top most user category in a hierarchy can be hidden.
2022-10-05 13:49:30 +01:00
Kovid Goyal 24a2f7a3a5 Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-04 13:56:22 +05:30
Charles Haley b3fd42a912 Bug #1991571: 'Clear' button on short longtext columns. Changed look to be like the other widgets. 2022-10-04 09:13:57 +01:00
Kovid Goyal 7204a1a038 Merge branch 'master' of https://github.com/cbhaley/calibre 2022-10-04 07:28:31 +05:30
Kovid Goyal a68dd3f2f4 Merge branch 'img_context_menu' of https://github.com/un-pogaz/calibre 2022-10-04 07:19:14 +05:30
Charles Haley 0f4a94b3f7 Use an icon drawn by un_pogaz. 2022-10-03 20:58:48 +01:00
Charles Haley ffb485add6 Changes to the column width dialog suggested in https://www.mobileread.com/forums/showthread.php?t=349471
- Put all the resize actions in the dialog.
- Moved menu lines around to make more sense (to me)
- Added some tooltips

BTW: your "addRow()" worked perfectly when given a button as its only argument. :)
2022-10-03 19:13:41 +01:00
un-pogaz efa24a2667 resize context_menu.svg 2022-10-03 18:43:32 +02:00