View Single Post
Old 02-14-2012, 07:24 AM   #1
Ptarmigan
Junior Member
Ptarmigan began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2012
Device: Kindle
Help with plugboard syntax, please

I'm trying to add series metadata (series and series_index) to the title when sending to my Kindle. Perversely, however, I want to add it at the end of the title than at the beginning, thus:

Quote:
A Princess of Mars (John Carter of Mars 01)
Gods of Mars (John Carter of Mars 02)
etc.

I've looked at the plugboard techniques sticky and the examples therein, plus the templates language section of the manual and after much furrowing of the brow and scratching of the head, I've come up with the following:

Code:
{title}{series:| (|}{series_index:0>2s| |)}
Unfortunately, when I close the plugboard editing dialog box, it changes what I've written to this:

Code:
{title}{series:|(|}{series_index:0>2s| |)}
with no space before the opening bracket, which leads to this:

Quote:
A Princess of Mars(John Carter of Mars 01)
Gods of Mars(John Carter of Mars 02)
etc.

Again, no space between the end of the title and the opening bracket enclosing the series info. Not the end of the world, but aesthetically displeasing.

Earlier, when I included an extraneous pipe, I got an error message about incorrect syntax when trying to save the plugboard, but didn't with the above. Nevertheless, I'm guessing that there is still something wrong with the syntax and Calibre is trying to correct it on saving. However, I've now reached the limits of my understanding.

So, can some kind soul point out what I'm doing wrong?

Thanks.
Ptarmigan is offline   Reply With Quote