View Single Post
Old 10-14-2010, 04:09 AM   #41
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by MikeP1212 View Post
Trying to get a "Save to Disk" (Metadata Plugboard) that inserts an Abbreviated Series Name & No in front of the Title (in the ePub metadata).
{series} {series_index:0>3s| - | - }{title} would result in a very long name.
I'd like to abbreviate the series down to the first letter of each word.
Instead of: "The Lord of the Rings - 002 - The Two Towers."
I'd Like: "TLotR - 002 - The Two Towers."
Any Help would be greatly appreciated.
Try
Code:
{series:re(([^\s])[^\s]+(\s|$),\1)}{series_index:0>3s| - | - }{title}
Personally, I would prefer
Code:
{series:shorten(4,-,4)}{series_index:0>3s| [|] }{title}
(for some values in the shorten) because the first letter of a single-word series name doesn't tell me enough, and it gets rid of 2 extra spaces.
chaley is offline   Reply With Quote