1261 Commits

Author SHA1 Message Date
un-pogaz
02b2811892 chaley recommandation 2022-10-17 14:22:19 +02:00
Kovid Goyal
1de95a2897
... 2022-10-16 21:05:55 +05:30
un-pogaz
e7cc30b3a9 add doc 2022-10-16 15:01:39 +02:00
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
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
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
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
616290b17e
Cleanup previous PR
Tag browser: When searching the Tag browser allow also filtering the book list to show only books that match one of the categories currently shown in the Tag browser. To use enable the two Preferences: Preferences->Look & feel->Tag browser->Hide empty categories and Find shows all items that match. Then when searching the Tag browser, press Ctrl+Alt+Shift+F to restrict the displayed books.

Fixes #1989813
2022-09-20 07:32:49 +05:30
Charles Haley
16c2d73037 Enhancement #1989813: Option to quickly select filtered tag browser categories
Done using a new Virtual Field, in_tag_browser that is searchable using 'in_tag_browser:true' (or false or ...).

The feature is discoverable through a new menu item in Configure tag browser: Filter book lists. This menu item can be 'clicked' using a shortcut key.
2022-09-18 14:08:58 +01:00
Charles Haley
5cc86cd138 New formatter function to_hex(): returns a calibre-compliant hex representation of a string. 2022-09-15 22:37:09 +01:00
un-pogaz
6e5bf799c2 add strcmpcase() 2022-09-14 09:05:46 +02:00
Kovid Goyal
8304e5911e
... 2022-09-12 12:38:53 +05:30
Kovid Goyal
2554ab467b
Cater to winblows 2022-09-08 10:38:26 +05:30
Charles Haley
9cdfd67724 Minor typo: make "super-quote" always hyphenated 2022-08-25 19:38:38 +01:00
Kovid Goyal
b56b524a78
Remove webeninge_demo plugin example as now we can use webengine in the main calibre process 2022-08-10 22:20:58 +05:30
Kovid Goyal
73f8c4c977
string typos 2022-08-09 11:20:02 +05:30
Kovid Goyal
cc58f2eda7
... 2022-08-08 15:27:13 +05:30
Kovid Goyal
872c7ea159
... 2022-08-08 13:45:24 +05:30
Kovid Goyal
5b59008313
Add a section on searching to the viewer section in the manual 2022-08-08 13:44:00 +05:30
Kovid Goyal
bec1e4395f
string changes 2022-07-24 03:53:03 +05:30
ImgBotApp
25c4dfb671
[ImgBot] Optimize images
*Total -- 1,268.83kb -> 973.83kb (23.25%)

/recipes/icons/thenewcriterion.png -- 46.93kb -> 1.50kb (96.8%)
/imgsrc/hotmail.svg -- 3.21kb -> 0.61kb (80.91%)
/imgsrc/format-text-color.svg -- 3.57kb -> 0.94kb (73.65%)
/imgsrc/list_remove.svg -- 3.75kb -> 0.99kb (73.64%)
/imgsrc/window-close.svg -- 3.77kb -> 1.00kb (73.59%)
/imgsrc/swap.svg -- 3.64kb -> 0.97kb (73.5%)
/recipes/icons/le_monde_en.png -- 1.17kb -> 0.33kb (72.25%)
/imgsrc/h-ellipsis.svg -- 3.70kb -> 1.04kb (71.93%)
/imgsrc/v-ellipsis.svg -- 3.70kb -> 1.04kb (71.93%)
/imgsrc/sync-right.svg -- 3.79kb -> 1.08kb (71.52%)
/recipes/icons/russiafeed.png -- 1.30kb -> 0.37kb (71.36%)
/imgsrc/ok.svg -- 4.14kb -> 1.34kb (67.49%)
/imgsrc/next.svg -- 4.60kb -> 1.58kb (65.66%)
/imgsrc/previous.svg -- 4.63kb -> 1.60kb (65.52%)
/imgsrc/search.svg -- 4.17kb -> 1.46kb (65.09%)
/resources/pin-template.svg -- 5.44kb -> 1.92kb (64.66%)
/imgsrc/highlight.svg -- 1.99kb -> 0.71kb (64.57%)
/imgsrc/document_open.svg -- 4.01kb -> 1.42kb (64.47%)
/imgsrc/document-import.svg -- 4.21kb -> 1.55kb (63.21%)
/imgsrc/merge.svg -- 4.45kb -> 1.67kb (62.55%)
/imgsrc/highlight_only_off.svg -- 4.50kb -> 1.72kb (61.72%)
/imgsrc/restart.svg -- 4.47kb -> 1.73kb (61.44%)
/imgsrc/code.svg -- 4.10kb -> 1.58kb (61.38%)
/imgsrc/rotate-right.svg -- 4.60kb -> 1.83kb (60.25%)
/imgsrc/books_in_series.svg -- 5.76kb -> 2.37kb (58.75%)
/imgsrc/add_book.svg -- 5.38kb -> 2.24kb (58.37%)
/imgsrc/drm-unlocked.svg -- 5.06kb -> 2.11kb (58.3%)
/imgsrc/print.svg -- 4.34kb -> 1.81kb (58.24%)
/imgsrc/format-indent-more.svg -- 4.73kb -> 1.98kb (58.2%)
/imgsrc/help.svg -- 5.05kb -> 2.14kb (57.68%)
/imgsrc/reference.svg -- 2.18kb -> 0.93kb (57.39%)
/imgsrc/minusminus.svg -- 5.93kb -> 2.56kb (56.94%)
/imgsrc/edit_book.svg -- 5.63kb -> 2.49kb (55.8%)
/imgsrc/auto-reload.svg -- 5.14kb -> 2.33kb (54.68%)
/imgsrc/embed-fonts.svg -- 4.94kb -> 2.24kb (54.65%)
/imgsrc/tb_folder.svg -- 5.20kb -> 2.36kb (54.6%)
/imgsrc/edit-select-all.svg -- 5.10kb -> 2.32kb (54.6%)
/imgsrc/scroll.svg -- 5.48kb -> 2.53kb (53.79%)
/imgsrc/document-split.svg -- 5.36kb -> 2.51kb (53.24%)
/imgsrc/search_add_saved.svg -- 5.66kb -> 2.65kb (53.16%)
/imgsrc/quickview.svg -- 5.11kb -> 2.43kb (52.54%)
/imgsrc/subset-fonts.svg -- 6.28kb -> 3.00kb (52.3%)
/imgsrc/convert.svg -- 6.03kb -> 2.89kb (52.14%)
/imgsrc/dialog_question.svg -- 5.54kb -> 2.67kb (51.85%)
/imgsrc/config.svg -- 6.15kb -> 2.97kb (51.71%)
/imgsrc/close-for-dark-theme.svg -- 2.52kb -> 1.24kb (50.7%)
/imgsrc/mail.svg -- 5.40kb -> 2.74kb (49.28%)
/imgsrc/generic-library.svg -- 3.49kb -> 1.78kb (49.1%)
/imgsrc/format-text-bold.svg -- 5.88kb -> 3.12kb (46.94%)
/imgsrc/save.svg -- 6.38kb -> 3.39kb (46.85%)
/imgsrc/catalog.svg -- 5.54kb -> 2.98kb (46.21%)
/imgsrc/book.svg -- 5.45kb -> 2.94kb (45.96%)
/imgsrc/fts.svg -- 3.26kb -> 1.81kb (44.63%)
/imgsrc/mimetypes/zero.svg -- 7.25kb -> 4.03kb (44.41%)
/imgsrc/insert-link.svg -- 6.85kb -> 3.81kb (44.37%)
/imgsrc/exec.svg -- 6.46kb -> 3.61kb (44.22%)
/imgsrc/chapters.svg -- 6.56kb -> 3.67kb (44.04%)
/imgsrc/heuristics.svg -- 7.65kb -> 4.50kb (41.14%)
/imgsrc/mimetypes/epub.svg -- 11.06kb -> 6.64kb (39.94%)
/imgsrc/character-set.svg -- 7.12kb -> 4.39kb (38.3%)
/imgsrc/sd.svg -- 18.28kb -> 11.34kb (37.96%)
/recipes/icons/cedar.png -- 5.66kb -> 3.58kb (36.8%)
/imgsrc/mimetypes/tpz.svg -- 9.09kb -> 6.12kb (32.71%)
/imgsrc/trim.svg -- 15.58kb -> 10.75kb (31%)
/imgsrc/mimetypes/djvu.svg -- 17.21kb -> 11.99kb (30.37%)
/imgsrc/scheduler.svg -- 12.42kb -> 8.74kb (29.64%)
/imgsrc/compress-image.svg -- 5.32kb -> 3.78kb (28.97%)
/imgsrc/mimetypes/png.svg -- 85.21kb -> 61.93kb (27.32%)
/imgsrc/rating.svg -- 25.32kb -> 19.14kb (24.4%)
/recipes/icons/granma.png -- 1.07kb -> 0.82kb (23.22%)
/resources/catalog/DefaultCover.jpg -- 22.08kb -> 17.57kb (20.44%)
/imgsrc/debug.svg -- 15.32kb -> 12.29kb (19.74%)
/src/calibre/ebooks/lrf/html/demo/a.png -- 2.10kb -> 1.71kb (18.33%)
/resources/images/clear_left-for-light-theme.png -- 1.68kb -> 1.39kb (17.25%)
/recipes/icons/yazihane.png -- 1.49kb -> 1.24kb (16.63%)
/resources/images/clear_left-for-dark-theme.png -- 1.67kb -> 1.41kb (15.74%)
/imgsrc/srv/cloud-download.svg -- 1.54kb -> 1.31kb (15.08%)
/resources/images/close-for-light-theme.png -- 2.26kb -> 1.92kb (14.68%)
/resources/images/h-ellipsis.png -- 1.19kb -> 1.02kb (14.16%)
/imgsrc/srv/selection-handle-vertical.svg -- 0.56kb -> 0.49kb (12.81%)
/imgsrc/mimetypes/odt.svg -- 12.47kb -> 11.04kb (11.43%)
/manual/images/fts-button.png -- 7.80kb -> 6.97kb (10.62%)
/manual/resources/languages.svg -- 3.41kb -> 3.07kb (9.83%)
/recipes/icons/list_apart.png -- 1.48kb -> 1.35kb (9.22%)
/resources/images/close-for-dark-theme.png -- 2.29kb -> 2.11kb (7.72%)
/recipes/icons/tagespost.png -- 26.08kb -> 24.31kb (6.8%)
/recipes/icons/new_statesman.png -- 0.87kb -> 0.82kb (5.74%)
/recipes/icons/the_insider.png -- 0.43kb -> 0.41kb (5.45%)
/manual/plugin_examples/interface_demo/images/icon.png -- 4.15kb -> 3.94kb (5.01%)
/manual/plugin_examples/webengine_demo/images/icon.png -- 4.15kb -> 3.94kb (5.01%)
/manual/plugin_examples/editor_demo/images/icon.png -- 4.15kb -> 3.94kb (5.01%)
/recipes/icons/denikn.cz.png -- 1.08kb -> 1.03kb (4.34%)
/manual/images/sg_tree.jpg -- 29.13kb -> 27.90kb (4.24%)
/src/calibre/ebooks/lrf/html/demo/large.jpg -- 45.69kb -> 43.82kb (4.11%)
/recipes/icons/elmundo.png -- 0.48kb -> 0.46kb (3.89%)
/manual/images/sg_cc.jpg -- 26.71kb -> 25.72kb (3.72%)
/manual/images/sg_restrict.jpg -- 25.74kb -> 24.85kb (3.45%)
/manual/resources/epub_cover.jpg -- 144.23kb -> 139.93kb (2.98%)
/resources/images/textures/grey_wash_wall.png -- 44.41kb -> 43.10kb (2.94%)
/imgsrc/modified-for-dark-theme.svg -- 110.77kb -> 107.69kb (2.78%)
/imgsrc/modified-for-light-theme.svg -- 110.77kb -> 107.69kb (2.78%)
/manual/images/sg_tb.jpg -- 14.17kb -> 13.78kb (2.78%)
/manual/images/sg_restrict2.jpg -- 18.06kb -> 17.58kb (2.63%)
/manual/images/sg_genre.jpg -- 22.72kb -> 22.24kb (2.14%)
/recipes/icons/iht.png -- 0.77kb -> 0.75kb (2.03%)
/recipes/icons/brigitte_de.png -- 0.60kb -> 0.59kb (1.62%)
/manual/images/sg_search.jpg -- 11.29kb -> 11.11kb (1.56%)
/imgsrc/srv/justify-left.svg -- 1.20kb -> 1.19kb (1.14%)
/imgsrc/srv/justify-full.svg -- 1.20kb -> 1.19kb (1.14%)
/imgsrc/srv/star.svg -- 1.20kb -> 1.19kb (1.14%)
/recipes/icons/old_games.png -- 0.44kb -> 0.44kb (1.11%)
/recipes/icons/novaya_gazeta_europe.png -- 2.65kb -> 2.62kb (1.03%)
/imgsrc/srv/slower.svg -- 0.85kb -> 0.84kb (0.92%)
/imgsrc/srv/reference-mode.svg -- 0.80kb -> 0.80kb (0.85%)
/imgsrc/srv/faster.svg -- 1.09kb -> 1.08kb (0.72%)
/imgsrc/srv/convert.svg -- 1.64kb -> 1.63kb (0.42%)
/imgsrc/srv/global-search.svg -- 2.10kb -> 2.09kb (0.33%)
/recipes/icons/7x7.png -- 1.44kb -> 1.43kb (0.27%)
/recipes/icons/ukraiyns_tizhdien.png -- 0.56kb -> 0.56kb (0.17%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2022-07-22 07:28:11 +00:00
Kovid Goyal
77478fd90c
string changes 2022-07-21 08:38:00 +05:30
Kovid Goyal
24ef17e56d
... 2022-07-19 21:54:36 +05:30
Kovid Goyal
b959c961e0
Add a FAQ entry about black screen in viewer 2022-07-19 09:49:44 +05:30
Kovid Goyal
07f8817974
Update GLIBC version numbers in FAQ 2022-07-19 09:38:19 +05:30
luz paz
df439bedd1 FIx typos
Found via `codespell -q 3 -S./Changelog.*,./resources/dictionaries  -L alo,ans,pard,ro`
2022-07-18 21:52:03 -04:00
Kovid Goyal
a41c3b775c
string changes 2022-07-18 11:04:36 +05:30
Kovid Goyal
563c1089df
Allow re-indexing a book for FTS by right clicking the book details panel 2022-07-17 20:18:48 +05:30
Kovid Goyal
2a56eaa2c7
Add a note about how to create dark and light icons in a custom theme 2022-07-15 20:19:13 +05:30
Kovid Goyal
06432e4eee
Fix a regression that broke handling of mouse clicks on some Linux Wayland systems with a touchpad
Basically, in Qt 6 Wayland, Qt reports the device for mouse events
as finger when they come from a touchpad instead of a mouse. This caused
them to be swallowed by the gesture recognizer as being synthesized
mouse events.

Fixes #1981629 [Viewer TOC and search results  are not clickable](https://bugs.launchpad.net/calibre/+bug/1981629)
2022-07-14 22:38:24 +05:30
Kovid Goyal
c1a2fddc29
another quantcast update 2022-07-14 20:20:13 +05:30
Charles Haley
58328a5beb Several interlocking changes:
1) Add a docstring syntax to the search query parser. """text""" uses text unchanged without escape processing.
2) Add tests for docstrings.
3) Update the search section of the manual.
4) Change the advanced search dialog to use docstrings for template searches.
5) Pass some books to the template dialog in advanced search to help with debugging template searches.
2022-07-14 12:32:46 +01:00
Kovid Goyal
fe865f5c99
... 2022-07-14 13:07:45 +05:30
Kovid Goyal
8e5666b306
Linux: Default to using XWayland instead of native Wayland as there are various bugs with Qt+Wayland . You can set the env var QT_QPA_PLATFORM=wayland to force calibre to use Wayland. 2022-07-14 08:22:07 +05:30
Kovid Goyal
c7ca4c9831
string changes 2022-07-08 08:17:38 +05:30
Charles Haley
ca02f122a2 Minor wording change in search descriptions in the manual. 2022-07-07 12:56:49 +01:00
Kovid Goyal
3ad1eb0e46
string changes 2022-07-07 07:33:30 +05:30
Kovid Goyal
49c8fd5191
Use a preference for choosing the color palette 2022-07-06 19:19:56 +05:30
Kovid Goyal
45fe6a409d
Change interface demo plugin to pass plugin name to get_icons() 2022-07-06 19:19:56 +05:30
Kovid Goyal
f0a619ac14
... 2022-07-06 19:19:55 +05:30
Kovid Goyal
ce171699dc
Restore CALIBRE_USE_DARK_PALETTE on windows 2022-07-06 19:19:55 +05:30
Kovid Goyal
8e655fda1c
Clarify that FTS finds only one instance per book 2022-07-06 19:19:54 +05:30
Kovid Goyal
e1e490b66e
Add a dedicated icon for FTS 2022-07-06 19:19:51 +05:30
Kovid Goyal
2ea40e6cef
Add basic docs for the new FTS feature 2022-07-06 19:19:51 +05:30
Kovid Goyal
bc97485ff2
Linux: Use the system dark mode setting
This comes from the desktop settings portal implemented in KDE 5.24 and
GNOME 42
2022-07-06 19:19:45 +05:30
Kovid Goyal
f695e49bd6
Windows: Automatically change colors between light and dark when the system wide preference is changed 2022-07-06 19:19:44 +05:30
Kovid Goyal
1d4964b366
Update icon theme docs 2022-07-06 19:19:44 +05:30
Kovid Goyal
8a33f48874
Support themeing for plugin icons 2022-07-06 19:19:43 +05:30