Commit Graph

1135 Commits

Author SHA1 Message Date
Charles Haley d0ba1ada16 Fix for the string changes fix for this file. Both the original and the changed file were incorrect. 2023-04-24 21:05:01 +01:00
Kovid Goyal 8a450c458a String changes 2023-04-24 23:07:32 +05:30
Charles Haley cdc4a0a4d3 The formatter functions to support extra book files. 2023-04-24 11:31:40 +01:00
Kovid Goyal 4982620da4 ... 2023-04-19 12:12:43 +05:30
Kovid Goyal dc9da6b2e8 Allow adding arbitrary files to a book record stored as auxiliary data by right clicking the add books button and choosing "Add data files" 2023-04-18 22:31:58 +05:30
Kovid Goyal b044e70439 string changes 2023-04-14 05:55:16 +05:30
Kovid Goyal 96b58acc8f A GUI to manage the new trash can 2023-04-13 20:03:55 +05:30
chocolatechipcats 47d446f799 Plugboard section in template_lang
Moved the plugboard section up (just below the custom column section) and clarified that all modes can be used for it.
2023-04-07 17:13:40 -03:00
Charles Haley ff4ed26896 This is a large commit.
DB changes:
1) Add link columns to "normalized" tables. All such in-memory tables have an attribute self.link_map.
2) Add API to set and get links for fields
3) get_metadata now includes an attribute giving the link maps for the book. Book link maps are cached.
4) ProxyMetadata can return link maps
5) Added a test for the API.

URL Scheme:
1) Added a "book-details" URL that asks calibre to open a book info window on a book in some library

Book Details:
1) You can now have multiple book info windows.
2) If an item as an associated link then that link is made available using "(item link)" link text.
3) Book info windows on books in other libraries have no links

UI:
1) the Manage Category editor presents a fourth column for links.

OPF:
1) The OPF used for backing up (metadata.opf) contains the link map for the book. Currently this isn't used, but it should be used in recover_database. I didn't do anything with OPF3.
2023-03-25 16:46:14 +00:00
Charles Haley 762c1c0a19 calibre show-book URL: clear the current search if the book to be shown is not in the search results. 2023-03-19 14:22:44 +00:00
Kovid Goyal 8df18d2d21 ... 2023-03-14 09:55:26 +05:30
Kovid Goyal 2d244e8996 Mention the sort by tool in the manual 2023-03-14 09:53:33 +05:30
Kovid Goyal d2158d75b9 string changes 2023-01-31 12:24:18 +05:30
Kovid Goyal f56708d11b string changes 2023-01-24 20:59:58 +05:30
Charles Haley ba79438b31 1) Maintain compatibility with URLS that don't specify a virtual library.
2) Documentation.
2023-01-23 20:24:26 +00:00
Kovid Goyal 21994332d6 ... 2023-01-18 07:40:39 +05:30
Charles Haley 21e8b06813 New template function: switch_if() 2023-01-06 15:38:29 +00:00
Charles Haley f33f902a52 Small correction to the GPM language grammar. 2022-12-19 11:01:37 +00:00
Kovid Goyal c24f59151c Edit book: File browser: Allow using keyboard shortcuts to re-order the spine 2022-12-17 15:01:10 +05:30
Kovid Goyal 7f9bcd4288 Fix #1997985 [Developer documentation refers to deprecated git:// protocol](https://bugs.launchpad.net/calibre/+bug/1997985) 2022-11-25 22:04:52 +05:30
Kovid Goyal 7947010d73 Edit book: Allow using ctrl+shift+t in addition to ctrl+alt+t for selecting the contents of a tag 2022-11-13 22:17:50 +05:30
Charles Haley 096579e13b Formatter: Quick pass over messages and documentation. 2022-10-17 16:51:51 +01:00
Kovid Goyal dd8d3bfeef Cleanup previous PR 2022-10-17 20:11:16 +05:30
Kovid Goyal 8b270da20f Merge branch 'python_template_introspection' of https://github.com/un-pogaz/calibre 2022-10-17 19:58:34 +05:30
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