12-23-2013, 06:38 AM | #361 |
eBook Junkie
Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
That gives me a PLUGBOARD TEMPLATE ERROR in the name, I think it might be because of the different naming conventions. I don't think this will be doable because of that, but if you want to still proceed the different combinations can be:
Romance Fantasy Series Romance/International Read - Romance Read - Fantasy Series Read - Romance/International and so on and so forth So as you can see, they can be with or without the / and -. |
12-23-2013, 08:36 AM | #362 | |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
|
|
Advert | |
|
12-23-2013, 09:16 AM | #363 |
eBook Junkie
Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
Sorry I realized I didn't give you all the different options, but you have them all now.
|
12-23-2013, 11:05 AM | #364 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
When I get a chance I will try to figure this out. Luckily the big step is already done -- parsing the data -- now I just have to figure out how to select what's needed.
To clarify: Given a structure "start - middle/end" use the first letter of each, with applicable separators, assuming any section is optional? Spaces can exist, but will still act as one section, i.e. no getting F S for "Fantasy Series"? |
12-23-2013, 01:38 PM | #365 | |
eBook Junkie
Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
Quote:
That's cool if you cannot get the two together, I do not have that many of them and if necessary I can combine them to make one word, or leave them as they are and use memory to remember which are Fantasy Series and which are just Fantasy. |
|
Advert | |
|
12-23-2013, 02:11 PM | #366 | |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
I think I could, actually. I need to experiment though. Probably sometime tonight. |
|
12-23-2013, 08:40 PM | #367 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Without using "F S" for Fantasy Series, I made this:
Code:
program: #save stuff before " - " start=list_item(field('tags'),-2, ' - '); #save stuff after it end=list_item(field('tags'),-1, ' - '); #divides 'end' into two, at '/' part3=list_item(end,-2,'/'); part4=list_item(end,-1,'/'); #return a value strcat( #add first initial shorten(start,1,'',0), #add first separator if first initial not empty test(start,' - ',''), #add second initial shorten(part3,1,'',0), #add second separator if third not empty test(part3,'/',''), #add third initial shorten(part4,1,'',0), ) Code:
program:start=list_item(field('tags'),-2, ' - ');end=list_item(field('tags'),-1, ' - ');part3=list_item(end,-2,'/');part4=list_item(end,-1,'/');strcat(shorten(start,1,'',0),test(start,' - ',''),shorten(part3,1,'',0),test(part3,'/',''),shorten(part4,1,'',0),) |
12-23-2013, 08:57 PM | #368 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Just say the word and I will add in a few more ifs for multiple two-word sections.
Assuming it IS just the last section, here is the version with support for the multiword section: Code:
program: #save stuff before " - " start=list_item(field('tags'),-2, ' - '); #save stuff after it end=list_item(field('tags'),-1, ' - '); #divides 'end' into two, at '/' part3=list_item(end,-2,'/'); part4=list_item(end,-1,'/'); part3alt=list_item(part4,-2,' '); part4=list_item(part4,-1,' '); #return a value strcat( #add first initial shorten(start,1,'',0), #add first separator if first initial not empty test(start,' - ',''), #add second initial shorten(part3,1,'',0), #add second separator if third not empty test(part3,'/',''), #if last section had ' ' not '/', use these two lines instead ##add third initial part 1 shorten(part3alt,1,'',0), ##if third initial part 1 exists, add ' ' separator test(part3alt,' ',''), #add third initial shorten(part4,1,'',0), ) Code:
program:start=list_item(field('tags'),-2, ' - ');end=list_item(field('tags'),-1, ' - ');part3=list_item(end,-2,'/');part4=list_item(end,-1,'/');part3alt=list_item(part4,-2,' ');part4=list_item(part4,-1,' ');strcat(shorten(start,1,'',0),test(start,' - ',''),shorten(part3,1,'',0),test(part3,'/',''),shorten(part3alt,1,'',0),test(part3alt,' ',''),shorten(part4,1,'',0),) |
12-23-2013, 09:32 PM | #369 |
eBook Junkie
Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
I get that plugboard template error.
|
12-23-2013, 09:58 PM | #370 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
|
12-23-2013, 10:03 PM | #371 |
eBook Junkie
Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
This might be more complicated than it needs to be, I think I am going to try to adjust my plugboard to make the various sections shorter than they are to fit enough on the line, and of course to move the title closer to the beginning of the line.
|
12-23-2013, 10:04 PM | #372 |
eBook Junkie
Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
Yep they are, I do not get any error in Calibre, that is what shows up on the title line on the kindle.
|
12-23-2013, 10:05 PM | #373 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Sure, whatever floats your boat. I am available for any more attempts you wish to make though; this was actually very fun for me.
|
12-23-2013, 10:10 PM | #374 |
eBook Junkie
Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
|
12-23-2013, 10:14 PM | #375 | |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
|
|
Tags |
custom column, tag, tags |
|
Similar Threads | ||||
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 |