![]() |
#1 |
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
Custom Metaboard Plugin Help
Hi:
I am hoping an expert can help me with the setup of the following metaboard plugin for my kindle 2. Code:
General Metadata Metadata: Put series into the title, using either initials or a shortened form. Strip leading articles from the series name (any) (inspired by Gary_M_Mugford) Spoiler: The solution requires creating three composite columns. The first column is used to remove the leading articles. The second is used to compute the 'shorten' form. The third is to compute the 'initials' form. Once you have these columns, the plugboard selects between them. You can hide any or all of the three columns on the library view. First column: Code: Name: #stripped_series. Template: {series:re(^(A|The|An)\s+,)||} Second column (the shortened form): Code: Name: #shortened. Template: {#stripped_series:shorten(4,-,4)} Third column (the initials form): Code: Name: #initials. Template: {#stripped_series:re(([^\s])[^\s]+(\s|$),\1)} Plugboard expression: Code: Template:{#stripped_series:lookup(.\s,#initials,.,#shortened,series)}{series_index:0>2s| [|] }{title} Destination field: title This set of fields and plugboard produces: Series: The Lord of the Rings Series index: 2 Title: The Two Towers Output: LotR [02] The Two Towers Series: Dahak Series index: 1 Title: Mutineers Moon Output: Dahak [01] Mutineers Moon Series: Berserkers Series Index: 4 Title: Berserker Throne Output: Bers-kers [04] Berserker Throne Series: Meg Langslow Mysteries Series Index: 3 Title: Revenge of the Wrought-Iron Flamingos Output: MLM [03] Revenge of the Wrought-Iron Flamingos I have setup the plugboard exactly as it is described in the thread, the three composite columns are extracting the correct data but the books are not being sent to my kindle in the correct format, can someone tell me where I am going wrong? I think I may be messing something up by having the following send to device template: Code:
{tags:re((.*?)(\,|$).*,\1)}/{#stripped_series:lookup(.\s,#initials,.,#shortened,series)}{series_index:0>2s| [|] } - {title} ![]() BTW, I do not know how to do that hide/show thingy, so please bare with my ignorance. ![]() |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,043
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
![]() |
![]() |
![]() |
#5 | |||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Quote:
Quote:
This template code is not for a send to device template it is a Plugboard expression meant to go under Preferences - Metadata plugboards (see attached). Try the following and revert your Send to device template back to what it was. Spoiler:
Good Luck. |
|||
![]() |
![]() |
Advert | |
|
![]() |
#6 |
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
Thank you so much for once again steering me in the right direction.
![]() ![]() ![]() |
![]() |
![]() |
![]() |
#7 |
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,526
Karma: 1464018
Join Date: May 2010
Location: USA
Device: Kindle Fire 2020, Kindle PW2
|
Hi:
Sorry to make a nag of myself again, but is there any way to adjust the plugboard in order for it to spell out the first word of the series and let the rest be initials? It seems the series are spelled out if the series name is only one word, but if there is more than one word in the series it uses the initials, and it is a little hard to tell what the series is by the initials. Nyn |
![]() |
![]() |
![]() |
#8 | |
Series Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can custom book data be displayed in a custom column? | kiwidude | Development | 9 | 03-02-2011 05:35 AM |
Using a plugin | jrmckins | Plugins | 3 | 12-12-2010 11:48 AM |
New Plugin Type Idea: Library Plugin | cgranade | Plugins | 3 | 09-15-2010 12:11 PM |
Possible storage plugin? | Krystian Galaj | Plugins | 15 | 06-20-2010 03:18 PM |
Calibre Plugin | zdavatz | Plugins | 17 | 05-20-2010 01:08 PM |