![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 53
Karma: 12028
Join Date: Aug 2010
Device: Kindle
|
Help with writing a plugboard
Hi,
I am trying to write a plugboard Template for Titles on sending to my Kindle, but having problems getting it to work, what I am trying to get is Title ( Series, Book {bookNum} ) So for example Rage of the a Demon King would appear as Rage of a Demon King (The Serpent War Saga, Book 3) What I have tried is {title} ({series}{, Book series_index}, but the syntax is wrong somewhere I also want to make sure that if the book doesn't have a series it would only have the Title on my Kindle. Can anyone help? Thanks, Gavin, |
![]() |
![]() |
![]() |
#2 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 53
Karma: 12028
Join Date: Aug 2010
Device: Kindle
|
After a bit more swearing and some more playing finally got it to work
![]() The syntax is {title}{series:0>1s| (|}{series_index:0>1s|, Book |)} |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
You could shorten it to: {title}{series:| (|, }{series_index:|Book |)}
The 0>1s part says format with leading zeros, to have a minimum width of 1, of type string. You got this from the calibre manual for the template language? If so, they used this here (with a 3 not a 1) to make sure series displays as 001, 002, 003, ... , 009, 010, 011, etc. The template language is a bit hard to understand, but this is what's happening. And you could just let it default to always displaying everything, by just not including that chunk. Or leave it alone because it still works, albeit in a visually confusing manner. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Plugboard help | rkr87 | Calibre | 1 | 07-17-2013 12:57 PM |
Plugboard only works sometimes | Scott Nielsen | Library Management | 2 | 12-15-2012 09:26 AM |
Plugboard Help! | ChrisKaos | Library Management | 0 | 04-22-2012 04:18 AM |
Help with plugboard syntax, please | Ptarmigan | Library Management | 3 | 02-15-2012 05:44 AM |
Metadata Plugboard | IxiaAurea | Calibre | 1 | 11-05-2011 01:13 PM |