Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 01-14-2017, 05:17 AM   #1
PERSISTENCE
Member
PERSISTENCE began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jun 2010
Device: NONE
Truncate series name using template -- Help!! (use first 3 words)

Hi -
I want to display custom book titles in my library which will look like this:
[shortened version of the series name]-series #-book title

I am using a template/plugboard. However, I keep getting template errors.

I need help to edit (shorten) the series name.
I am trying to do this in a 2 step process:
1 -If the first word is an article (A/An/The), it is removed.
(I can do this using a custom column, and the following template:
#stripped_series. Template: {series:re(^(A|The|An)\s+,)||}


2- this is where I get stuck! (It's easiest to explain with examples so if my explanation is confusing, see the examples below.)
I then need to examine and keep the next two words of the series title.
BUT...if the word is an article, preposition or conjunction (a/an/the/and/&/or/of/from..etc), it is kept and NOT counted, so the next word is examined and kept.

EXAMPLES: SO, FOR EXAMPLE if your series name is
a) - Lord of the Rings and Other Stories by Tolkien
-->it would be shortened to Lord of the Rings
OR b) if it is -Kincaid & James mysteries --> it would be shortened to Kincaid & James
or c) Annie and the Alaskan Huskies -->would appear as Annie and the Alaskan


I'm really stuck. If anyone can help, I'd be eternally grateful! (Maybe there's an easier way to do this....??!)

Last edited by PERSISTENCE; 01-14-2017 at 05:54 AM.
PERSISTENCE is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free (nook/Kobo/HQN) More Than Words series [Biographical Romance] ATDrake Deals and Resources (No Self-Promotion or Affiliate Links) 5 11-14-2014 01:44 PM
Calibre Template and Series sehlat Calibre 4 09-16-2013 11:21 AM
Save Template, {series} etc Always Empty dbareis Library Management 13 07-01-2013 07:27 PM
save file template for series bucsie Calibre 2 11-08-2010 02:07 AM


All times are GMT -4. The time now is 01:04 AM.


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