Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-13-2010, 05:50 PM   #1
MikeP1212
Junior Member
MikeP1212 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2010
Location: Australia
Device: iPhone
Post Metadata Plugboard - First Char of each word in Series

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.
MikeP1212 is offline   Reply With Quote
Old 10-14-2010, 04:04 AM   #2
chaley
"chaley", not "charley"
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: 5,433
Karma: 831552
Join Date: Jan 2010
Location: France
Device: Many android devices
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.

Edit: If someone wants to reply here, please do so in the sticky thread Interesting uses of templates, plugboards, and composite fields?

Last edited by chaley; 10-14-2010 at 04:08 AM.
chaley is offline   Reply With Quote
 
Enthusiast
Old 10-14-2010, 06:14 PM   #3
MikeP1212
Junior Member
MikeP1212 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2010
Location: Australia
Device: iPhone
Thanks - I went with opt 1 as I just want to group series together on a Kobo
MikeP1212 is offline   Reply With Quote
Reply

Tags
metadata plugboard

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-505 Getting Authors to sort by last name using Calibre's metadata plugboard. ligelowbee Sony Reader 5 10-14-2010 12:06 PM
Problem with Metadata Plugboard cheveguerra Calibre 3 10-05-2010 12:00 PM
bulk metadata - 2 issues with series cybmole Calibre 7 09-27-2010 07:18 AM
series metadata feature request speakingtohe Calibre 4 07-01-2010 05:58 PM
What is series metadata and how do I use it? Halo Calibre 2 12-05-2008 10:02 PM


All times are GMT -4. The time now is 07:54 PM.


MobileRead.com is a privately owned, operated and funded community.