09-16-2022, 12:08 PM | #916 |
Grand Sorcerer
Posts: 6,233
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
|
09-23-2022, 06:43 AM | #917 |
Custom User Title
Posts: 8,631
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Question: One of my action chains opens the Reading List "edit list" dialog. Normally, it's resizable by dragging the edge of the window. When called by the action chain, it isn't. Any idea what's going on?
It's probably not worth fixing, just curious. |
09-23-2022, 07:28 AM | #918 |
Wizard
Posts: 1,090
Karma: 1948136
Join Date: Aug 2015
Device: Kindle
|
No idea why something like this would happen. The Calibre Actions just calls the menu's qaction and it has no control over anything else.
|
09-23-2022, 07:30 AM | #919 |
Custom User Title
Posts: 8,631
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Perhaps some Qt weirdness because of the progress bar? That's my best guess.
|
09-29-2022, 08:16 PM | #920 |
Custom User Title
Posts: 8,631
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Question: Is it possible to set the default of a runtime variable to the value of a specified column of the selected book?
Code:
program: currentchap = globals(Current_Chapter=1); strcat('OEBPS/file', format_number(add(currentchap, 1), '04d'), '.xhtml#kobo.1.1') Last edited by ownedbycats; 09-29-2022 at 08:20 PM. |
09-29-2022, 08:42 PM | #921 | |
Wizard
Posts: 1,090
Karma: 1948136
Join Date: Aug 2015
Device: Kindle
|
Quote:
The only time the default value has any effect; is at config time to act as place holder for numerical values, to prevent template errors, as explained in the notes section of this post. Edit: Also the runtime variable cannot be per book, but per chain. Last edited by capink; 09-29-2022 at 08:59 PM. |
|
10-02-2022, 10:58 PM | #922 |
Connoisseur
Posts: 53
Karma: 10
Join Date: Jun 2021
Device: Onyx Boox Nova3
|
Is it possible to have icons on the menu listing of the chain variations?
|
10-03-2022, 06:19 AM | #923 | |
Wizard
Posts: 1,090
Karma: 1948136
Join Date: Aug 2015
Device: Kindle
|
Quote:
Code:
program: add_chain_variant('second variant','argument2', 'submenu1', 'icon.png') Code:
program: add_chain_variant('second variant','argument2', '', 'icon.png') |
|
10-06-2022, 08:43 AM | #924 |
Junior Member
Posts: 6
Karma: 10
Join Date: Oct 2022
Device: none
|
Can this plugin help me find all the books which are the first occurrences in any series (not necessarily volume 1)? I use Calibre 5.44.
Someone tried to help in another thread, suggested a custom column, but its code makes use of the book_values() function which doesn't work in my version. |
10-06-2022, 10:27 AM | #925 | |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Once you run the chain you can use search to find the books of interest. Or maybe a virtual library that shows only "first books". I don't know if this is the best way to do it. I thought about using book variables instead of selections but that seemed somewhat more complicated. There are other ways to build the list of ids that might be faster. EDIT: I tested it with calibre portable 5.44. It worked. Last edited by chaley; 10-06-2022 at 10:54 AM. |
|
10-06-2022, 12:34 PM | #926 |
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Here is a version of a "First book in series" chain that uses a template scope instead of selections. It is a bit faster and doesn't flash the selections on the screen. I didn't test it on 5.44.
|
10-06-2022, 12:55 PM | #927 | |
Wizard
Posts: 1,090
Karma: 1948136
Join Date: Aug 2015
Device: Kindle
|
Quote:
|
|
10-06-2022, 01:17 PM | #928 | ||
Grand Sorcerer
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
Attached is a copy of my chain that uses template scopes instead of selections, using category_items() in the scope template. Now @Hukuro gets to pick which one to use. @Hukuro: it should be @capink's version or the one on this post, suitably modified. The differences:
|
||
10-06-2022, 01:39 PM | #929 |
Wizard
Posts: 1,090
Karma: 1948136
Join Date: Aug 2015
Device: Kindle
|
Well, the chain variations feature can make a single chain perform either version. But it is in the experimental mode, which needs a tweak to enable. I will make it available to all users in the next version.
|
10-06-2022, 02:51 PM | #930 |
Junior Member
Posts: 6
Karma: 10
Join Date: Oct 2022
Device: none
|
Thank you both, capink and chaley. I tried both codes and they work as intended. I wouldn't be able to write something like this by myself. Thanks again for the help
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Editor Plugin] Editor Chains | capink | Plugins | 83 | Today 07:44 PM |
Action Chains Resources | capink | Plugins | 54 | 01-29-2024 11:24 PM |
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB | lrpirlet | Plugins | 2 | 08-18-2022 03:15 PM |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 05:25 AM |