![]() |
#1006 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,915
Karma: 7176769
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
{#subseries}{#subseries_index:| | - }{#myshelves}{#hugonominees:| - |} Code:
{#series}{#series_index:| | - }{#genre}{tags:| - |} This GPM template does the same thing except for using newlines instead of the minus signs. Code:
program: # This template produces a 1-to-3 line result. # The first line is the subseries if there is one. # The next line is the shelves, which are always present. # The last line is the hugo nominees, if there is one. if $subseries then ss = $#subseries & ' ' & $#subseries_index & character('newline') else ss = '' fi; if $#hugonominees then hugo = character('newline') & $#hugonominees else hugo = '' fi; return ss & $#myshelves & hugo Last edited by chaley; 06-09-2024 at 12:38 PM. |
|
![]() |
![]() |
![]() |
#1007 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,310
Karma: 29121666
Join Date: Mar 2010
Location: UK
Device: Kobo Forma, Icarus, iPad Mini 2, Kobo Touch, Google Nexus 7
|
Ah yes - my mistake, it was you not Davidfor who helped me with the initial set-up for the subtitle field.
I think I will leave things as they are, although it's annoying not to have the separator (-) between the 'My Shelves' and 'Hugo Nominations' sections. I suspect I would need to change the order to subtitle, Hugo nominations, my shelves to get the separator working correctly. Thanks for all your help! |
![]() |
![]() |
![]() |
#1008 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,915
Karma: 7176769
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Try the template I last posted: Code:
{#subseries}{#subseries_index:| | - }{#myshelves}{#hugonominees:| - |} |
|
![]() |
![]() |
![]() |
#1009 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,310
Karma: 29121666
Join Date: Mar 2010
Location: UK
Device: Kobo Forma, Icarus, iPad Mini 2, Kobo Touch, Google Nexus 7
|
Quote:
This is in the Kobo Utilities plug-in? The KoboExtended driver? It doesn't seem to be possible to create a metadata plugboard to input to the subtitle field. Last edited by maddz; 06-09-2024 at 02:54 PM. |
|
![]() |
![]() |
![]() |
#1010 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 39,126
Karma: 153098470
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I didn't feel like creating the custom columns but I suspect it should be in the subtitle field on page 3 (Metadata, on device & advanced) of the KoboTouch/KoboTouchExtended driver configuration dialog.
|
![]() |
![]() |
![]() |
#1011 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,310
Karma: 29121666
Join Date: Mar 2010
Location: UK
Device: Kobo Forma, Icarus, iPad Mini 2, Kobo Touch, Google Nexus 7
|
Yes, that's where I've input it, as well as in the dialogue box when you click on the plug-in selector (the down arrow) and select the 'Update metadata in device library' option.
|
![]() |
![]() |
![]() |
#1012 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,915
Karma: 7176769
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
My guess is that I misspelled one of your column names. You can test this by using the template editor/tester. |
|
![]() |
![]() |
![]() |
#1013 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,310
Karma: 29121666
Join Date: Mar 2010
Location: UK
Device: Kobo Forma, Icarus, iPad Mini 2, Kobo Touch, Google Nexus 7
|
Quote:
I'll check next time I fire up Calibre; it's nearly bedtime for me. |
|
![]() |
![]() |
![]() |
#1014 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 746
Karma: 308700
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
Hello everyone, I have an advanced rule that I use in the emblems part to show me the author's image next to the cover.
program: rslt=''; tags = $tags; rslt = list_item(tags, 0, '&') & '.png'; for i in range(1, list_count(tags, '&')): if i == 4 then break fi; rslt = rslt & ':' & list_item(tags, i, '&') & '.png' rof; return rslt I thought about using it in the tags column to put one icon per label but it only shows me a single icon with the images of the other tags. Any solution or comment would be helpful. Last edited by dunhill; 07-13-2024 at 03:05 PM. |
![]() |
![]() |
![]() |
#1015 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,915
Karma: 7176769
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#1016 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 746
Karma: 308700
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
|
![]() |
![]() |
![]() |
#1017 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 166
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
I am trying to create a custom column from tags to manage collections on the kobo, but no values are being added (neither in the column, nor in the collections on the device). Maybe it's because I'm trying to use regex in the program code?
When I add a book recommended by someone, I add a tag "reco [name]". So for instance "reco Martha Wells". I would like the copy this tag to the "reco" column to use as a collection column. I created a "reco" column from other columns, acts like tags: Code:
program: switch_if( $tags == 'reco (.*)', 'reco \1', '') Part two, would it be possible to also, automatically add any books with a value in the "reco" column to a general collection named "friends recos"? Could I do that with something like this, either in the column or in the collections model in the KoboTouchExtended Driver? Code:
program: switch_if( $tags == 'reco (.*)', 'reco \1', $tags == 'reco (.*)', 'recos amis', '') |
![]() |
![]() |
![]() |
#1018 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,915
Karma: 7176769
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
![]() Also, if I am understanding you correctly there can be multiple 'reco XX' tags attached to a book. In this case you must process the tags one at a time. This template does that, and your case 2. Code:
program: result = ''; for t in $tags: if substr(t, 0, 5) == 'reco ' then result = list_join(',', result, ',', t & ',' & 'recos amis', ',') fi rof; result |
|
![]() |
![]() |
![]() |
#1019 | ||
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 166
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
Quote:
![]() Quote:
![]() |
||
![]() |
![]() |
![]() |
Tags |
custom column, tag, tags |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
custom column i need a little help | shinken | Calibre | 3 | 09-15-2010 03:41 AM |
Using Custom Metadata in Save Template | EJvdH | Calibre | 1 | 07-02-2010 06:06 AM |
Accessories Decalgirl Kindle 2 custom skin template | srmalloy | Amazon Kindle | 6 | 04-09-2010 09:55 PM |
Donations for Custom Recipes | ddavtian | Calibre | 5 | 01-23-2010 04:54 PM |
Help understanding custom recipes | andersent | Calibre | 0 | 12-17-2009 02:37 PM |